diff --git a/.task/checksum/generate-ent-smart b/.task/checksum/generate-ent-smart index 28ee949b08..4aeff48950 100644 --- a/.task/checksum/generate-ent-smart +++ b/.task/checksum/generate-ent-smart @@ -1 +1 @@ -fe095aa63b84b3099bd44c6db00db598 +e4c905fbce5632dc1155d3e0432b7b8c diff --git a/.task/checksum/generate-graphql-smart b/.task/checksum/generate-graphql-smart index cf018b16ef..9f3e53f6c4 100644 --- a/.task/checksum/generate-graphql-smart +++ b/.task/checksum/generate-graphql-smart @@ -1 +1 @@ -f5b8cd5fe6f75515ccd06ffa0f92d633 +44edb6a5d139e2a639aafe568fb565d2 diff --git a/.task/checksum/generate-openapi-smart b/.task/checksum/generate-openapi-smart index 81c3b88646..dfcee21b2d 100644 --- a/.task/checksum/generate-openapi-smart +++ b/.task/checksum/generate-openapi-smart @@ -1 +1 @@ -27acd9d5fbe4a30c142aec2bdfcaca42 +b48624747daf7f64425c378e4ab53855 diff --git a/common/enums/allenums_test.go b/common/enums/allenums_test.go index f7266d8d0e..5c963cf3be 100644 --- a/common/enums/allenums_test.go +++ b/common/enums/allenums_test.go @@ -46,6 +46,9 @@ func TestEnumCoverage(t *testing.T) { {name: "AssessmentType", value: enums.AssessmentTypeInternal, unmarshal: func(v any) error { var e enums.AssessmentType; return e.UnmarshalGQL(v) }, parse: func() { enums.ToAssessmentType("INTERNAL") }}, + {name: "AudienceType", value: enums.AudienceTypeManual, + unmarshal: func(v any) error { var e enums.AudienceType; return e.UnmarshalGQL(v) }, + parse: func() { enums.ToAudienceType("MANUAL") }}, {name: "AssetType", value: enums.AssetTypeTechnology, unmarshal: func(v any) error { var e enums.AssetType; return e.UnmarshalGQL(v) }, parse: func() { enums.ToAssetType("TECHNOLOGY") }}, diff --git a/common/enums/audience_type.go b/common/enums/audience_type.go new file mode 100644 index 0000000000..d91dfac70d --- /dev/null +++ b/common/enums/audience_type.go @@ -0,0 +1,34 @@ +package enums + +import "io" + +// AudienceType represents how an audience resolves recipients. +type AudienceType string + +var ( + AudienceTypeManual AudienceType = "MANUAL" + AudienceTypeDynamic AudienceType = "DYNAMIC" + AudienceTypeInvalid AudienceType = "INVALID" +) + +var audienceTypeValues = []AudienceType{ + AudienceTypeManual, + AudienceTypeDynamic, +} + +// Values returns all AudienceType values. +func (AudienceType) Values() []string { return stringValues(audienceTypeValues) } + +// String returns the AudienceType as a string. +func (r AudienceType) String() string { return string(r) } + +// ToAudienceType parses an AudienceType from a string. +func ToAudienceType(r string) *AudienceType { + return parse(r, audienceTypeValues, &AudienceTypeInvalid) +} + +// MarshalGQL implements the Marshaler interface for gqlgen. +func (r AudienceType) MarshalGQL(w io.Writer) { marshalGQL(r, w) } + +// UnmarshalGQL implements the Unmarshaler interface for gqlgen. +func (r *AudienceType) UnmarshalGQL(v any) error { return unmarshalGQL(r, v) } diff --git a/common/enums/exporttype.go b/common/enums/exporttype.go index bbc1a2bd17..f221b86e49 100644 --- a/common/enums/exporttype.go +++ b/common/enums/exporttype.go @@ -10,6 +10,10 @@ var ( ExportTypeAssessment ExportType = "ASSESSMENT" // ExportTypeAsset indicates the asset. ExportTypeAsset ExportType = "ASSET" + // ExportTypeAudience indicates the audience. + ExportTypeAudience ExportType = "AUDIENCE" + // ExportTypeAudienceMember indicates the audiencemember. + ExportTypeAudienceMember ExportType = "AUDIENCE_MEMBER" // ExportTypeCampaign indicates the campaign. ExportTypeCampaign ExportType = "CAMPAIGN" // ExportTypeCheckResult indicates the checkresult. @@ -63,6 +67,8 @@ var ( var exportTypeValues = []ExportType{ ExportTypeAssessment, ExportTypeAsset, + ExportTypeAudience, + ExportTypeAudienceMember, ExportTypeCampaign, ExportTypeCheckResult, ExportTypeContact, diff --git a/db/migrations-goose-postgres/20260830093820_audience.sql b/db/migrations-goose-postgres/20260830093820_audience.sql new file mode 100644 index 0000000000..e95fae1cc6 --- /dev/null +++ b/db/migrations-goose-postgres/20260830093820_audience.sql @@ -0,0 +1,91 @@ +-- +goose Up +-- create "audiences" table +CREATE TABLE "audiences" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" character varying NULL, "audience_type" character varying NOT NULL DEFAULT 'MANUAL', "filters" jsonb NULL, "metadata" jsonb NULL, "owner_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "audiences_organizations_audiences" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL); +-- create index "audience_display_id_owner_id" to table: "audiences" +CREATE UNIQUE INDEX "audience_display_id_owner_id" ON "audiences" ("display_id", "owner_id"); +-- create index "audience_name_owner_id" to table: "audiences" +CREATE INDEX "audience_name_owner_id" ON "audiences" ("name", "owner_id") WHERE (deleted_at IS NULL); +-- create index "audience_owner_id_idx" to table: "audiences" +CREATE INDEX "audience_owner_id_idx" ON "audiences" ("owner_id"); +-- modify "groups" table +ALTER TABLE "groups" ADD COLUMN "organization_audience_creators" character varying NULL, ADD COLUMN "organization_audience_member_creators" character varying NULL, ADD CONSTRAINT "groups_organizations_audience_creators" FOREIGN KEY ("organization_audience_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_audience_member_creators" FOREIGN KEY ("organization_audience_member_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- create "audience_blocked_groups" table +CREATE TABLE "audience_blocked_groups" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_blocked_groups_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_blocked_groups_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- create index "audience_blocked_groups_group_id_idx" to table: "audience_blocked_groups" +CREATE INDEX "audience_blocked_groups_group_id_idx" ON "audience_blocked_groups" ("group_id"); +-- create "audience_editors" table +CREATE TABLE "audience_editors" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_editors_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_editors_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- create index "audience_editors_group_id_idx" to table: "audience_editors" +CREATE INDEX "audience_editors_group_id_idx" ON "audience_editors" ("group_id"); +-- create "audience_members" table +CREATE TABLE "audience_members" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "email" character varying NOT NULL, "full_name" character varying NULL, "metadata" jsonb NULL, "audience_id" character varying NOT NULL, "contact_id" character varying NULL, "group_id" character varying NULL, "identity_holder_id" character varying NULL, "owner_id" character varying NULL, "subscriber_id" character varying NULL, "user_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "audience_members_audiences_audience_members" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT "audience_members_contacts_audience_members" FOREIGN KEY ("contact_id") REFERENCES "contacts" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_groups_audience_members" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_identity_holders_audience_members" FOREIGN KEY ("identity_holder_id") REFERENCES "identity_holders" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_organizations_audience_members" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_subscribers_audience_members" FOREIGN KEY ("subscriber_id") REFERENCES "subscribers" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_users_audience_members" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE SET NULL); +-- create index "audience_member_contact_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_contact_id_idx" ON "audience_members" ("contact_id"); +-- create index "audience_member_group_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_group_id_idx" ON "audience_members" ("group_id"); +-- create index "audience_member_identity_holder_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_identity_holder_id_idx" ON "audience_members" ("identity_holder_id"); +-- create index "audience_member_owner_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_owner_id_idx" ON "audience_members" ("owner_id"); +-- create index "audience_member_subscriber_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_subscriber_id_idx" ON "audience_members" ("subscriber_id"); +-- create index "audience_member_user_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_user_id_idx" ON "audience_members" ("user_id"); +-- create index "audiencemember_audience_id_email" to table: "audience_members" +CREATE UNIQUE INDEX "audiencemember_audience_id_email" ON "audience_members" ("audience_id", "email") WHERE (deleted_at IS NULL); +-- create index "audiencemember_display_id_owner_id" to table: "audience_members" +CREATE UNIQUE INDEX "audiencemember_display_id_owner_id" ON "audience_members" ("display_id", "owner_id"); +-- create "audience_viewers" table +CREATE TABLE "audience_viewers" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_viewers_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_viewers_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- create index "audience_viewers_group_id_idx" to table: "audience_viewers" +CREATE INDEX "audience_viewers_group_id_idx" ON "audience_viewers" ("group_id"); +-- create "campaign_audiences" table +CREATE TABLE "campaign_audiences" ("campaign_id" character varying NOT NULL, "audience_id" character varying NOT NULL, PRIMARY KEY ("campaign_id", "audience_id"), CONSTRAINT "campaign_audiences_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "campaign_audiences_campaign_id" FOREIGN KEY ("campaign_id") REFERENCES "campaigns" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- create index "campaign_audiences_audience_id_idx" to table: "campaign_audiences" +CREATE INDEX "campaign_audiences_audience_id_idx" ON "campaign_audiences" ("audience_id"); + +-- +goose Down +-- reverse: create index "campaign_audiences_audience_id_idx" to table: "campaign_audiences" +DROP INDEX "campaign_audiences_audience_id_idx"; +-- reverse: create "campaign_audiences" table +DROP TABLE "campaign_audiences"; +-- reverse: create index "audience_viewers_group_id_idx" to table: "audience_viewers" +DROP INDEX "audience_viewers_group_id_idx"; +-- reverse: create "audience_viewers" table +DROP TABLE "audience_viewers"; +-- reverse: create index "audiencemember_display_id_owner_id" to table: "audience_members" +DROP INDEX "audiencemember_display_id_owner_id"; +-- reverse: create index "audiencemember_audience_id_email" to table: "audience_members" +DROP INDEX "audiencemember_audience_id_email"; +-- reverse: create index "audience_member_user_id_idx" to table: "audience_members" +DROP INDEX "audience_member_user_id_idx"; +-- reverse: create index "audience_member_subscriber_id_idx" to table: "audience_members" +DROP INDEX "audience_member_subscriber_id_idx"; +-- reverse: create index "audience_member_owner_id_idx" to table: "audience_members" +DROP INDEX "audience_member_owner_id_idx"; +-- reverse: create index "audience_member_identity_holder_id_idx" to table: "audience_members" +DROP INDEX "audience_member_identity_holder_id_idx"; +-- reverse: create index "audience_member_group_id_idx" to table: "audience_members" +DROP INDEX "audience_member_group_id_idx"; +-- reverse: create index "audience_member_contact_id_idx" to table: "audience_members" +DROP INDEX "audience_member_contact_id_idx"; +-- reverse: create "audience_members" table +DROP TABLE "audience_members"; +-- reverse: create index "audience_editors_group_id_idx" to table: "audience_editors" +DROP INDEX "audience_editors_group_id_idx"; +-- reverse: create "audience_editors" table +DROP TABLE "audience_editors"; +-- reverse: create index "audience_blocked_groups_group_id_idx" to table: "audience_blocked_groups" +DROP INDEX "audience_blocked_groups_group_id_idx"; +-- reverse: create "audience_blocked_groups" table +DROP TABLE "audience_blocked_groups"; +-- reverse: modify "groups" table +ALTER TABLE "groups" DROP CONSTRAINT "groups_organizations_audience_member_creators", DROP CONSTRAINT "groups_organizations_audience_creators", DROP COLUMN "organization_audience_member_creators", DROP COLUMN "organization_audience_creators"; +-- reverse: create index "audience_owner_id_idx" to table: "audiences" +DROP INDEX "audience_owner_id_idx"; +-- reverse: create index "audience_name_owner_id" to table: "audiences" +DROP INDEX "audience_name_owner_id"; +-- reverse: create index "audience_display_id_owner_id" to table: "audiences" +DROP INDEX "audience_display_id_owner_id"; +-- reverse: create "audiences" table +DROP TABLE "audiences"; diff --git a/db/migrations-goose-postgres/20260830093830_audience_history.sql b/db/migrations-goose-postgres/20260830093830_audience_history.sql new file mode 100644 index 0000000000..cc14e6eb1d --- /dev/null +++ b/db/migrations-goose-postgres/20260830093830_audience_history.sql @@ -0,0 +1,19 @@ +-- +goose Up +-- create "audience_history" table +CREATE TABLE "audience_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "owner_id" character varying NULL, "name" character varying NOT NULL, "description" character varying NULL, "audience_type" character varying NOT NULL DEFAULT 'MANUAL', "filters" jsonb NULL, "metadata" jsonb NULL, PRIMARY KEY ("id")); +-- create index "audiencehistory_history_time" to table: "audience_history" +CREATE INDEX "audiencehistory_history_time" ON "audience_history" ("history_time"); +-- create "audience_member_history" table +CREATE TABLE "audience_member_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "owner_id" character varying NULL, "audience_id" character varying NOT NULL, "contact_id" character varying NULL, "user_id" character varying NULL, "group_id" character varying NULL, "identity_holder_id" character varying NULL, "subscriber_id" character varying NULL, "email" character varying NOT NULL, "full_name" character varying NULL, "metadata" jsonb NULL, PRIMARY KEY ("id")); +-- create index "audiencememberhistory_history_time" to table: "audience_member_history" +CREATE INDEX "audiencememberhistory_history_time" ON "audience_member_history" ("history_time"); + +-- +goose Down +-- reverse: create index "audiencememberhistory_history_time" to table: "audience_member_history" +DROP INDEX "audiencememberhistory_history_time"; +-- reverse: create "audience_member_history" table +DROP TABLE "audience_member_history"; +-- reverse: create index "audiencehistory_history_time" to table: "audience_history" +DROP INDEX "audiencehistory_history_time"; +-- reverse: create "audience_history" table +DROP TABLE "audience_history"; diff --git a/db/migrations-goose-postgres/atlas.sum b/db/migrations-goose-postgres/atlas.sum index 1a9bf01d38..993beb1cb4 100644 --- a/db/migrations-goose-postgres/atlas.sum +++ b/db/migrations-goose-postgres/atlas.sum @@ -1,7 +1,9 @@ -h1:NHJ6QNYctYxJPzxfIZsieTE2DCRX3O5WCjPHBFiAi4k= +h1:YzYThbfXtYyKvXwVa9sjm7Hc6RAnOnZFXsPtgFjyvJE= 20260809191428_init.sql h1:e7XUbYRmYEuXlSQWAOGqtGoUWWTgdIqqEP+MKzHQsHA= 20260809191432_init_history.sql h1:KxDA3vA8rL783PP0DM5PVPb2BYSpDQh4nDVJOUnJvVo= 20260824131122_drop_scheduledjob_scheduledjobrun_jobresult_jobrunnerregistrationtoken_jobrunnertoken_jobrunner_jobtemplate.sql h1:RIPOncMYlv1z9a6/2vibmBv1QH2+mz6lq52OmIJUYG8= 20260824221933_evidence_auditor_ref_id.sql h1:A290U30Zv1ZVP2ZsaWbXL6N2a8V4ZRry1fVQNiby2bo= 20260824221936_evidence_auditor_ref_id_history.sql h1:k8smDz1tKSx0sAMMZ2UNgUa0kZww5SVbinqstIvgvtY= 20260826115831_policy_procedure_link_to_evidence.sql h1:+BJAcWwU/bYumpxUiSMNdT8NWZ4sxnkR6wtwgSLmg+Q= +20260830093820_audience.sql h1:KCw4LWnjoN3WUeZGx927hVDic1EYslacxo2dFahMu94= +20260830093830_audience_history.sql h1:lqNtWP0qxA7UQWWhq6CeXO7Z9HI/YGRFVOYuItXwcio= diff --git a/db/migrations/20260830093747_audience.sql b/db/migrations/20260830093747_audience.sql new file mode 100644 index 0000000000..495d1c5b55 --- /dev/null +++ b/db/migrations/20260830093747_audience.sql @@ -0,0 +1,44 @@ +-- Create "audiences" table +CREATE TABLE "audiences" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "name" character varying NOT NULL, "description" character varying NULL, "audience_type" character varying NOT NULL DEFAULT 'MANUAL', "filters" jsonb NULL, "metadata" jsonb NULL, "owner_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "audiences_organizations_audiences" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL); +-- Create index "audience_display_id_owner_id" to table: "audiences" +CREATE UNIQUE INDEX "audience_display_id_owner_id" ON "audiences" ("display_id", "owner_id"); +-- Create index "audience_name_owner_id" to table: "audiences" +CREATE INDEX "audience_name_owner_id" ON "audiences" ("name", "owner_id") WHERE (deleted_at IS NULL); +-- Create index "audience_owner_id_idx" to table: "audiences" +CREATE INDEX "audience_owner_id_idx" ON "audiences" ("owner_id"); +-- Modify "groups" table +ALTER TABLE "groups" ADD COLUMN "organization_audience_creators" character varying NULL, ADD COLUMN "organization_audience_member_creators" character varying NULL, ADD CONSTRAINT "groups_organizations_audience_creators" FOREIGN KEY ("organization_audience_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, ADD CONSTRAINT "groups_organizations_audience_member_creators" FOREIGN KEY ("organization_audience_member_creators") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL; +-- Create "audience_blocked_groups" table +CREATE TABLE "audience_blocked_groups" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_blocked_groups_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_blocked_groups_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- Create index "audience_blocked_groups_group_id_idx" to table: "audience_blocked_groups" +CREATE INDEX "audience_blocked_groups_group_id_idx" ON "audience_blocked_groups" ("group_id"); +-- Create "audience_editors" table +CREATE TABLE "audience_editors" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_editors_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_editors_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- Create index "audience_editors_group_id_idx" to table: "audience_editors" +CREATE INDEX "audience_editors_group_id_idx" ON "audience_editors" ("group_id"); +-- Create "audience_members" table +CREATE TABLE "audience_members" ("id" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "email" character varying NOT NULL, "full_name" character varying NULL, "metadata" jsonb NULL, "audience_id" character varying NOT NULL, "contact_id" character varying NULL, "group_id" character varying NULL, "identity_holder_id" character varying NULL, "owner_id" character varying NULL, "subscriber_id" character varying NULL, "user_id" character varying NULL, PRIMARY KEY ("id"), CONSTRAINT "audience_members_audiences_audience_members" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE NO ACTION, CONSTRAINT "audience_members_contacts_audience_members" FOREIGN KEY ("contact_id") REFERENCES "contacts" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_groups_audience_members" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_identity_holders_audience_members" FOREIGN KEY ("identity_holder_id") REFERENCES "identity_holders" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_organizations_audience_members" FOREIGN KEY ("owner_id") REFERENCES "organizations" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_subscribers_audience_members" FOREIGN KEY ("subscriber_id") REFERENCES "subscribers" ("id") ON UPDATE NO ACTION ON DELETE SET NULL, CONSTRAINT "audience_members_users_audience_members" FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON UPDATE NO ACTION ON DELETE SET NULL); +-- Create index "audience_member_contact_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_contact_id_idx" ON "audience_members" ("contact_id"); +-- Create index "audience_member_group_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_group_id_idx" ON "audience_members" ("group_id"); +-- Create index "audience_member_identity_holder_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_identity_holder_id_idx" ON "audience_members" ("identity_holder_id"); +-- Create index "audience_member_owner_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_owner_id_idx" ON "audience_members" ("owner_id"); +-- Create index "audience_member_subscriber_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_subscriber_id_idx" ON "audience_members" ("subscriber_id"); +-- Create index "audience_member_user_id_idx" to table: "audience_members" +CREATE INDEX "audience_member_user_id_idx" ON "audience_members" ("user_id"); +-- Create index "audiencemember_audience_id_email" to table: "audience_members" +CREATE UNIQUE INDEX "audiencemember_audience_id_email" ON "audience_members" ("audience_id", "email") WHERE (deleted_at IS NULL); +-- Create index "audiencemember_display_id_owner_id" to table: "audience_members" +CREATE UNIQUE INDEX "audiencemember_display_id_owner_id" ON "audience_members" ("display_id", "owner_id"); +-- Create "audience_viewers" table +CREATE TABLE "audience_viewers" ("audience_id" character varying NOT NULL, "group_id" character varying NOT NULL, PRIMARY KEY ("audience_id", "group_id"), CONSTRAINT "audience_viewers_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "audience_viewers_group_id" FOREIGN KEY ("group_id") REFERENCES "groups" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- Create index "audience_viewers_group_id_idx" to table: "audience_viewers" +CREATE INDEX "audience_viewers_group_id_idx" ON "audience_viewers" ("group_id"); +-- Create "campaign_audiences" table +CREATE TABLE "campaign_audiences" ("campaign_id" character varying NOT NULL, "audience_id" character varying NOT NULL, PRIMARY KEY ("campaign_id", "audience_id"), CONSTRAINT "campaign_audiences_audience_id" FOREIGN KEY ("audience_id") REFERENCES "audiences" ("id") ON UPDATE NO ACTION ON DELETE CASCADE, CONSTRAINT "campaign_audiences_campaign_id" FOREIGN KEY ("campaign_id") REFERENCES "campaigns" ("id") ON UPDATE NO ACTION ON DELETE CASCADE); +-- Create index "campaign_audiences_audience_id_idx" to table: "campaign_audiences" +CREATE INDEX "campaign_audiences_audience_id_idx" ON "campaign_audiences" ("audience_id"); diff --git a/db/migrations/20260830093758_audience_history.sql b/db/migrations/20260830093758_audience_history.sql new file mode 100644 index 0000000000..39259deb88 --- /dev/null +++ b/db/migrations/20260830093758_audience_history.sql @@ -0,0 +1,8 @@ +-- Create "audience_history" table +CREATE TABLE "audience_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "owner_id" character varying NULL, "name" character varying NOT NULL, "description" character varying NULL, "audience_type" character varying NOT NULL DEFAULT 'MANUAL', "filters" jsonb NULL, "metadata" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "audiencehistory_history_time" to table: "audience_history" +CREATE INDEX "audiencehistory_history_time" ON "audience_history" ("history_time"); +-- Create "audience_member_history" table +CREATE TABLE "audience_member_history" ("id" character varying NOT NULL, "history_time" timestamptz NOT NULL, "ref" character varying NULL, "operation" character varying NOT NULL, "created_at" timestamptz NULL, "updated_at" timestamptz NULL, "created_by" character varying NULL, "updated_by" character varying NULL, "updated_by_impersonator" character varying NULL, "deleted_at" timestamptz NULL, "deleted_by" character varying NULL, "display_id" character varying NOT NULL, "tags" jsonb NULL, "owner_id" character varying NULL, "audience_id" character varying NOT NULL, "contact_id" character varying NULL, "user_id" character varying NULL, "group_id" character varying NULL, "identity_holder_id" character varying NULL, "subscriber_id" character varying NULL, "email" character varying NOT NULL, "full_name" character varying NULL, "metadata" jsonb NULL, PRIMARY KEY ("id")); +-- Create index "audiencememberhistory_history_time" to table: "audience_member_history" +CREATE INDEX "audiencememberhistory_history_time" ON "audience_member_history" ("history_time"); diff --git a/db/migrations/atlas.sum b/db/migrations/atlas.sum index 367aca2cd2..c6f484253c 100644 --- a/db/migrations/atlas.sum +++ b/db/migrations/atlas.sum @@ -1,7 +1,9 @@ -h1:y4gce/cH3Z480tnC91dq+/4NXNQgP7ac1ucs1gtHMO0= +h1:UIQXTR5tbbaOQdDeDvLOcdThsg/f02lV0i921yVGtww= 20260809191420_init.sql h1:ObM5szvl8p6UZgYQ950JUsGmmDrA6j3EN3HAeEXJc4w= 20260809191425_init_history.sql h1:MqbWdqJijxlm1/ZFPqqkTgDz71pC6D4+fCSUCteBwKc= 20260824131122_drop_scheduledjob_scheduledjobrun_jobresult_jobrunnerregistrationtoken_jobrunnertoken_jobrunner_jobtemplate.sql h1:CVj3t5qSt3lvOvUKqL8Hwxa3Vq/3SJ44BrGrLz85Jk4= 20260824221924_evidence_auditor_ref_id.sql h1:QZz2mMDWVlfoZQpuMCXYzhJ8Th2A3P1jDAAx5/Qx9Gk= 20260824221927_evidence_auditor_ref_id_history.sql h1:hymocHYpjTm3UDSoIVzlDlq5J4VKV7oWIUXdvMEab6E= 20260826115807_policy_procedure_link_to_evidence.sql h1:QN2Ve4hzHLtcJystjrZ7WgPcR8Hxu3jc2dP7v9XMWjY= +20260830093747_audience.sql h1:CdYjtFtvzwG7AbbysnjMZ32NKlEehSNUPIAepfYqMQ4= +20260830093758_audience_history.sql h1:p0jZhDsO3UJYlZPJUPOlQhTonAbiqcy+nfxoMf1whSM= diff --git a/fga/model/automation/assessments.fga b/fga/model/automation/assessments.fga index 37876a6f3b..2155d10619 100644 --- a/fga/model/automation/assessments.fga +++ b/fga/model/automation/assessments.fga @@ -124,3 +124,42 @@ type campaign_target define parent_editor: can_edit from parent define parent_viewer: can_view from parent define parent: [campaign] + +# audiences are reusable campaign recipient lists, viewable/editable through org campaign permissions +# or direct object permissions +type audience + 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 + define parent_editor: can_edit from parent_context or can_edit_audience from parent_context + define parent_viewer: can_view_audience from parent_context + define parent_context: [organization] + +# audience member permissions are based on their parent audience +type audience_member + 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 from the audience + define parent_editor: can_edit from parent + define parent_viewer: can_view from parent + define parent: [audience] diff --git a/fga/model/generated/crud.fga b/fga/model/generated/crud.fga index a12e3ffe7d..32d0ce791e 100644 --- a/fga/model/generated/crud.fga +++ b/fga/model/generated/crud.fga @@ -26,6 +26,17 @@ extend type organization 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_audience: [service, user, group#member] or can_edit_audience or can_manage_campaigns or full_access + define can_edit_audience: [service, user, group#member] or can_delete_audience or can_manage_campaigns or full_access + define can_delete_audience: [service, user, group#member] or can_manage_campaigns or full_access + define audience_creator: [group#member] + define can_create_audience: can_edit or can_edit_audience or audience_creator or can_manage_campaigns + + define can_view_audience_member: [service, user] or can_edit_audience_member or full_access + define can_edit_audience_member: [service, user] or can_delete_audience_member or full_access + define can_delete_audience_member: [service, user] or full_access + define can_create_audience_member: can_edit or can_edit_audience_member + 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 diff --git a/fga/model/roles/roles.fga b/fga/model/roles/roles.fga index 4b9484a994..7580841cc5 100644 --- a/fga/model/roles/roles.fga +++ b/fga/model/roles/roles.fga @@ -54,7 +54,7 @@ extend type organization # @role: Workflow Manager | Manage workflows, jobs, integrations, and webhook configuration define workflow_manager: [service, user, group#member] - # @crud: campaign, assessment, template, email_template, email_branding, notification_template + # @crud: campaign, assessment, template, email_template, email_branding, notification_template, audience # @view: document_data, assessment_response define can_manage_campaigns: campaign_manager or admin # @role: Campaign Manager | Manage campaigns, assessments, templates, and email configuration diff --git a/internal/audiences/filters.go b/internal/audiences/filters.go new file mode 100644 index 0000000000..b5bd651fda --- /dev/null +++ b/internal/audiences/filters.go @@ -0,0 +1,315 @@ +package audiences + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "reflect" + "strings" + + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/entityops" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/generated/contact" + "github.com/theopenlane/core/v2/internal/ent/generated/identityholder" + "github.com/theopenlane/core/v2/pkg/celx" +) + +const resolveBatchSize = 100 + +var ( + errAudienceFiltersRequired = errors.New("audience filters must include at least one selector") + errManualAudienceFilters = errors.New("manual audiences cannot define filters") + errDynamicAudienceFiltersMissing = errors.New("dynamic audiences require filters") + errUnsupportedAudienceType = errors.New("unsupported audience type") + errSelectorSchemaRequired = errors.New("selector schema is required") + errSchemaNotRegistered = errors.New("schema is not registered") + errUnsupportedRecipientSource = errors.New("schema cannot be used as an audience recipient source") + errKeyMatchUnsupported = errors.New("key_match is not supported for audience selectors yet") + errSourceSelectorsUnsupported = errors.New("source selectors are not supported for audience selectors yet") + errSelectorSchemaNoExpressions = errors.New("selector schema does not support expressions") +) + +type filterSet struct { + Selectors []entityops.TargetSelector `json:"selectors,omitempty"` +} + +type Recipient struct { + Email string + FullName string + ContactID string + UserID string + GroupID string + SubscriberID string + Source string + SourceObjectID string + Metadata map[string]any +} + +type selectorResolveOptions[T any] struct { + targetType reflect.Type + fetchFn func(lastKnownID string) ([]T, error) + id func(T) string + recipient func(T) Recipient +} + +func parseSelectors(filters map[string]any) ([]entityops.TargetSelector, error) { + if len(filters) == 0 { + return nil, errAudienceFiltersRequired + } + + buf, err := json.Marshal(filters) + if err != nil { + return nil, fmt.Errorf("marshal audience filters: %w", err) + } + + if _, ok := filters["selectors"]; ok { + var set filterSet + if err := json.Unmarshal(buf, &set); err != nil { + return nil, fmt.Errorf("decode audience selectors: %w", err) + } + + return set.Selectors, nil + } + + var selector entityops.TargetSelector + if err := json.Unmarshal(buf, &selector); err != nil { + return nil, fmt.Errorf("decode audience selector: %w", err) + } + + return []entityops.TargetSelector{selector}, nil +} + +func ValidateAudienceFilters(audienceType enums.AudienceType, filters map[string]any) error { + switch audienceType { + case enums.AudienceTypeManual: + if len(filters) > 0 { + return errManualAudienceFilters + } + + return nil + case enums.AudienceTypeDynamic: + if len(filters) == 0 { + return errDynamicAudienceFiltersMissing + } + + return validateFilters(filters) + default: + return fmt.Errorf("%w: %q", errUnsupportedAudienceType, audienceType) + } +} + +func validateFilters(filters map[string]any) error { + selectors, err := parseSelectors(filters) + if err != nil { + return err + } + + if len(selectors) == 0 { + return errAudienceFiltersRequired + } + + for i, selector := range selectors { + if err := validateSelector(selector); err != nil { + return fmt.Errorf("selector %d: %w", i, err) + } + } + + return nil +} + +func ResolveRecipients(ctx context.Context, db *generated.Client, orgID string, filters map[string]any, handle func([]Recipient) error) error { + selectors, err := parseSelectors(filters) + if err != nil { + return err + } + + for _, selector := range selectors { + if err := validateSelector(selector); err != nil { + return err + } + + if err := resolveSelectors(ctx, db, orgID, selector, handle); err != nil { + return err + } + } + + return nil +} + +func validateSelector(selector entityops.TargetSelector) error { + if selector.Schema.IsZero() { + return errSelectorSchemaRequired + } + + schema, ok := entityops.LookupSchema(selector.Schema.Name) + if !ok { + return fmt.Errorf("%w: %q", errSchemaNotRegistered, selector.Schema.Name) + } + + switch schema.Snake { + case entityops.SchemaContact.Snake, entityops.SchemaIdentityHolder.Snake: + default: + return fmt.Errorf("%w: %q", errUnsupportedRecipientSource, schema.Snake) + } + + if selector.KeyMatch != nil { + return errKeyMatchUnsupported + } + + if len(selector.SourceContext) > 0 || !selector.SourceSchema.IsZero() { + return errSourceSelectorsUnsupported + } + + return nil +} + +func resolveSelectors(ctx context.Context, db *generated.Client, orgID string, selector entityops.TargetSelector, handle func([]Recipient) error) error { + schema, _ := entityops.LookupSchema(selector.Schema.Name) + + switch schema.Snake { + case entityops.SchemaContact.Snake: + return resolveSelector(ctx, selector, selectorResolveOptions[*generated.Contact]{ + targetType: reflect.TypeFor[entityops.ContactProjection](), + fetchFn: func(lastKnownID string) ([]*generated.Contact, error) { + query := db.Contact.Query(). + Where( + contact.OwnerIDEQ(orgID), + contact.EmailNotNil(), + contact.EmailNEQ(""), + ). + Order(contact.ByID()). + Limit(resolveBatchSize) + + if lastKnownID != "" { + query.Where(contact.IDGT(lastKnownID)) + } + + return query.All(ctx) + }, + id: func(c *generated.Contact) string { + return c.ID + }, + recipient: func(c *generated.Contact) Recipient { + return Recipient{ + Email: c.Email, + FullName: c.FullName, + ContactID: c.ID, + Source: entityops.SchemaContact.Snake, + SourceObjectID: c.ID, + } + }, + }, handle) + case entityops.SchemaIdentityHolder.Snake: + return resolveSelector(ctx, selector, selectorResolveOptions[*generated.IdentityHolder]{ + targetType: reflect.TypeFor[entityops.IdentityHolderProjection](), + fetchFn: func(lastKnownID string) ([]*generated.IdentityHolder, error) { + query := db.IdentityHolder.Query(). + Where( + identityholder.OwnerIDEQ(orgID), + identityholder.EmailNEQ(""), + ). + Order(identityholder.ByID()). + Limit(resolveBatchSize) + + if lastKnownID != "" { + query.Where(identityholder.IDGT(lastKnownID)) + } + + return query.All(ctx) + }, + id: func(holder *generated.IdentityHolder) string { + return holder.ID + }, + recipient: func(holder *generated.IdentityHolder) Recipient { + return Recipient{ + Email: holder.Email, + FullName: holder.FullName, + UserID: holder.UserID, + Source: entityops.SchemaIdentityHolder.Snake, + SourceObjectID: holder.ID, + } + }, + }, handle) + default: + return fmt.Errorf("%w: %q", errUnsupportedRecipientSource, schema.Snake) + } +} + +func resolveSelector[T any](ctx context.Context, selector entityops.TargetSelector, opts selectorResolveOptions[T], handle func([]Recipient) error) error { + eval, err := buildCelEvaluator(opts.targetType) + if err != nil { + return err + } + + var lastID string + for { + items, err := opts.fetchFn(lastID) + if err != nil { + return err + } + + recipients := make([]Recipient, 0, len(items)) + for _, item := range items { + lastID = opts.id(item) + + match, err := doesSelectorMatch(ctx, eval, selector.Expression, item) + if err != nil { + return err + } + + if !match { + continue + } + + recipients = append(recipients, opts.recipient(item)) + } + + if len(recipients) > 0 { + if err := handle(recipients); err != nil { + return err + } + } + + if len(items) < resolveBatchSize { + break + } + } + + return nil +} + +func buildCelEvaluator(targetType reflect.Type) (*celx.NativeEntityEvaluator, error) { + if targetType == nil { + return nil, errSelectorSchemaNoExpressions + } + + envCfg := celx.StrictEnvConfig() + envCfg.CrossTypeNumericComparisons = true + + eval, err := celx.NewNativeEntityEvaluator(envCfg, celx.FastEvalConfig(), targetType, nil) + if err != nil { + return nil, fmt.Errorf("build selector evaluator: %w", err) + } + + return eval, nil +} + +func doesSelectorMatch(ctx context.Context, eval *celx.NativeEntityEvaluator, expression string, entity any) (bool, error) { + if strings.TrimSpace(expression) == "" { + return true, nil + } + + data, err := json.Marshal(entity) + if err != nil { + return false, fmt.Errorf("marshal selector entity: %w", err) + } + + match, err := eval.EvaluateBool(ctx, expression, data) + if err != nil { + return false, fmt.Errorf("evaluate selector expression: %w", err) + } + + return match, nil +} diff --git a/internal/audiences/filters_test.go b/internal/audiences/filters_test.go new file mode 100644 index 0000000000..724dd99a81 --- /dev/null +++ b/internal/audiences/filters_test.go @@ -0,0 +1,104 @@ +package audiences + +import ( + "testing" + + "github.com/theopenlane/core/common/enums" +) + +func TestValidateAudienceFilters(t *testing.T) { + tests := []struct { + name string + audienceType enums.AudienceType + filters map[string]any + wantErr bool + }{ + { + name: "manual audience without filters", + audienceType: enums.AudienceTypeManual, + }, + { + name: "manual audience with filters", + audienceType: enums.AudienceTypeManual, + filters: map[string]any{ + "schema": "contact", + }, + wantErr: true, + }, + { + name: "dynamic employee audience", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "schema": "identity_holder", + "expression": "target.identity_holder_type == 'EMPLOYEE' && target.is_active == true", + }, + }, + { + name: "dynamic contact audience", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "schema": "contact", + "expression": "target.status == 'ACTIVE' && target.email != ''", + }, + }, + { + name: "dynamic multiple selector audience", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "selectors": []map[string]any{ + { + "schema": "contact", + "expression": "target.email != ''", + }, + { + "schema": "identity_holder", + "expression": "target.email != ''", + }, + }, + }, + }, + { + name: "dynamic audience without selector", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{}, + wantErr: true, + }, + { + name: "dynamic audience with unsupported schema", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "schema": "user", + }, + wantErr: true, + }, + { + name: "dynamic audience does not compile expression at save time", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "schema": "identity_holder", + "expression": "target.missing_field == true", + }, + }, + { + name: "dynamic audience with key match", + audienceType: enums.AudienceTypeDynamic, + filters: map[string]any{ + "schema": "contact", + "key_match": map[string]any{ + "target_field": "email", + "source_field": "email", + }, + }, + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + err := ValidateAudienceFilters(tt.audienceType, tt.filters) + if (err != nil) != tt.wantErr { + t.Fatalf("ValidateAudienceFilters() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +} diff --git a/internal/ent/authzgenerated/accessmap.go b/internal/ent/authzgenerated/accessmap.go index e480a18368..393f2268a0 100644 --- a/internal/ent/authzgenerated/accessmap.go +++ b/internal/ent/authzgenerated/accessmap.go @@ -362,6 +362,73 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { CheckViewAccess: false, HasSystemOwnedField: false, }, +}, "audience": {"owner": { + ObjectType: "owner", + SkipEditCheck: true, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "blocked_groups": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "editors": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "viewers": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "campaigns": { + ObjectType: "campaign", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, +}, "audience_member": {"owner": { + ObjectType: "owner", + SkipEditCheck: true, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "audience": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "contact": { + ObjectType: "contact", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "user": { + ObjectType: "user", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "group": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "identity_holder": { + ObjectType: "identity_holder", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "subscriber": { + ObjectType: "organization", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, }, "campaign": {"owner": { ObjectType: "owner", SkipEditCheck: true, @@ -452,6 +519,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audiences": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "controls": { ObjectType: "control", SkipEditCheck: false, @@ -550,6 +622,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "files": { ObjectType: "file", SkipEditCheck: false, @@ -2039,6 +2116,21 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_editors": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "audience_blocked_groups": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "audience_viewers": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "procedure_editors": { ObjectType: "procedure", SkipEditCheck: false, @@ -2174,6 +2266,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "invites": { ObjectType: "invite", SkipEditCheck: false, @@ -2328,6 +2425,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "tasks": { ObjectType: "task", SkipEditCheck: false, @@ -3033,6 +3135,16 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: true, CheckViewAccess: true, HasSystemOwnedField: false, +}, "audience_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, +}, "audience_member_creators": { + ObjectType: "group", + SkipEditCheck: true, + CheckViewAccess: true, + HasSystemOwnedField: false, }, "campaign_creators": { ObjectType: "group", SkipEditCheck: true, @@ -3668,6 +3780,16 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audiences": { + ObjectType: "audience", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "trust_center_watermark_configs": { ObjectType: "trust_center_watermark_config", SkipEditCheck: false, @@ -5024,6 +5146,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, }, "system_detail": {"owner": { ObjectType: "owner", @@ -5639,6 +5766,11 @@ var EdgeAccessMap = map[string]map[string]EdgeAccess{"api_token": {"owner": { SkipEditCheck: false, CheckViewAccess: false, HasSystemOwnedField: false, +}, "audience_members": { + ObjectType: "audience_member", + SkipEditCheck: false, + CheckViewAccess: false, + HasSystemOwnedField: false, }, "subcontrols": { ObjectType: "subcontrol", SkipEditCheck: false, diff --git a/internal/ent/checksum/.history_schema_checksum b/internal/ent/checksum/.history_schema_checksum index 57b5e70484..d3175b1501 100644 --- a/internal/ent/checksum/.history_schema_checksum +++ b/internal/ent/checksum/.history_schema_checksum @@ -1 +1 @@ -c01c5787ef00f2d600c097a52827c82e44d3cd1f869955dd627d53cec9ad5dba \ No newline at end of file +3828596fdbd8bac0b5f7211a3b434ab3315db4bbba298ae8fd7db3b5e4bc6a7f \ No newline at end of file diff --git a/internal/ent/checksum/.schema_checksum b/internal/ent/checksum/.schema_checksum index c2145b8466..1eb05e4ba9 100644 --- a/internal/ent/checksum/.schema_checksum +++ b/internal/ent/checksum/.schema_checksum @@ -1 +1 @@ -bcdd26a9bd84b4fdb25ac27b08cc662f62655524c2d9b742ee06ac2e89d1eb7d \ No newline at end of file +9f6331282ebddb90c74ac6188de5a9a9c0ca3d87e60f24f66a852bf19d18132d \ No newline at end of file diff --git a/internal/ent/csvgenerated/csv_generated.go b/internal/ent/csvgenerated/csv_generated.go index 4f4d53b463..415bef5f1b 100644 --- a/internal/ent/csvgenerated/csv_generated.go +++ b/internal/ent/csvgenerated/csv_generated.go @@ -939,6 +939,14 @@ var CSVReferenceRegistry = map[string]CSVSchemaInfo{ }, }, }, + "Audience": { + SchemaName: "Audience", + Rules: []CSVReferenceRule{}, + }, + "AudienceMember": { + SchemaName: "AudienceMember", + Rules: []CSVReferenceRule{}, + }, "Campaign": { SchemaName: "Campaign", Rules: []CSVReferenceRule{ @@ -2058,6 +2066,42 @@ type AssetCSVUpdateInput struct { // CSVInputWrapper marks AssetCSVUpdateInput for CSV header preprocessing. func (AssetCSVUpdateInput) CSVInputWrapper() {} +// AudienceCSVInput wraps CreateAudienceInput with CSV reference columns. +type AudienceCSVInput struct { + Input generated.CreateAudienceInput +} + +// CSVInputWrapper marks AudienceCSVInput for CSV header preprocessing. +func (AudienceCSVInput) CSVInputWrapper() {} + +// AudienceCSVUpdateInput wraps UpdateAudienceInput with CSV reference columns for bulk updates. +type AudienceCSVUpdateInput struct { + // ID is the entity ID to update + ID string `csv:"ID"` + Input generated.UpdateAudienceInput +} + +// CSVInputWrapper marks AudienceCSVUpdateInput for CSV header preprocessing. +func (AudienceCSVUpdateInput) CSVInputWrapper() {} + +// AudienceMemberCSVInput wraps CreateAudienceMemberInput with CSV reference columns. +type AudienceMemberCSVInput struct { + Input generated.CreateAudienceMemberInput +} + +// CSVInputWrapper marks AudienceMemberCSVInput for CSV header preprocessing. +func (AudienceMemberCSVInput) CSVInputWrapper() {} + +// AudienceMemberCSVUpdateInput wraps UpdateAudienceMemberInput with CSV reference columns for bulk updates. +type AudienceMemberCSVUpdateInput struct { + // ID is the entity ID to update + ID string `csv:"ID"` + Input generated.UpdateAudienceMemberInput +} + +// CSVInputWrapper marks AudienceMemberCSVUpdateInput for CSV header preprocessing. +func (AudienceMemberCSVUpdateInput) CSVInputWrapper() {} + // CampaignCSVInput wraps CreateCampaignInput with CSV reference columns. type CampaignCSVInput struct { Input generated.CreateCampaignInput diff --git a/internal/ent/entityops/entity_projection.go b/internal/ent/entityops/entity_projection.go index 6721a4ea81..189303eeaf 100644 --- a/internal/ent/entityops/entity_projection.go +++ b/internal/ent/entityops/entity_projection.go @@ -185,6 +185,32 @@ type AssetProjection struct { Website string `json:"website,omitempty"` } +// AudienceMemberProjection is the flat, CEL- and jsonschema-facing view of a AudienceMember: its +// readable scalar fields (id, columns, foreign-key ids) with snake_case json tags matching the field +// names used in expressions. It deliberately omits edges so it registers as a CEL native type, unlike +// the full generated.AudienceMember whose edge graph cannot be reflected +type AudienceMemberProjection struct { + // ID is the entity identifier, exposed to expressions as "id" + ID string `json:"id,omitempty"` + AudienceID string `json:"audience_id,omitempty"` + ContactID string `json:"contact_id,omitempty"` + CreatedAt time.Time `json:"created_at,omitempty"` + CreatedBy string `json:"created_by,omitempty"` + DisplayID string `json:"display_id,omitempty"` + Email string `json:"email,omitempty"` + FullName string `json:"full_name,omitempty"` + GroupID string `json:"group_id,omitempty"` + IdentityHolderID string `json:"identity_holder_id,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID string `json:"owner_id,omitempty"` + SubscriberID string `json:"subscriber_id,omitempty"` + Tags []string `json:"tags,omitempty"` + UpdatedAt time.Time `json:"updated_at,omitempty"` + UpdatedBy string `json:"updated_by,omitempty"` + UpdatedByImpersonator string `json:"updated_by_impersonator,omitempty"` + UserID string `json:"user_id,omitempty"` +} + // CampaignProjection is the flat, CEL- and jsonschema-facing view of a Campaign: its // readable scalar fields (id, columns, foreign-key ids) with snake_case json tags matching the field // names used in expressions. It deliberately omits edges so it registers as a CEL native type, unlike diff --git a/internal/ent/entityops/entity_registry.go b/internal/ent/entityops/entity_registry.go index 0d07396c46..5315eae608 100644 --- a/internal/ent/entityops/entity_registry.go +++ b/internal/ent/entityops/entity_registry.go @@ -22,6 +22,7 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -1090,6 +1091,74 @@ var ( }, }, } + SchemaAudience = &Schema{ + SchemaDescriptor: SchemaDescriptor{ + Name: "Audience", + Snake: "audience", + Lower: "audience", + }, + Load: func(ctx context.Context, client *generated.Client, entityID string) (json.RawMessage, error) { + ref := SchemaRef{Schema: "audience", Operation: refOpLoad, EntityID: entityID} + + entity, err := client.Audience.Get(ctx, entityID) + if err != nil { + return nil, logError(ctx, ref, ErrLoadFailed, err) + } + + data, err := json.Marshal(entity) + if err != nil { + return nil, logError(ctx, ref, ErrMarshalFailed, err) + } + + return data, nil + }, + } + SchemaAudienceMember = &Schema{ + SchemaDescriptor: SchemaDescriptor{ + Name: "AudienceMember", + Snake: "audience_member", + Lower: "audiencemember", + }, + ProjectionType: reflect.TypeFor[AudienceMemberProjection](), + Query: func(ctx context.Context, client *generated.Client, orgID string) ([]json.RawMessage, error) { + ref := SchemaRef{Schema: "audience_member", Operation: refOpQuery} + + entities, err := client.AudienceMember.Query(). + Where(audiencemember.OwnerID(orgID)). + All(ctx) + if err != nil { + return nil, logError(ctx, ref, ErrQueryFailed, err) + } + + results := make([]json.RawMessage, 0, len(entities)) + for _, e := range entities { + data, err := json.Marshal(e) + if err != nil { + logError(ctx, ref, ErrMarshalFailed, err) + continue + } + + results = append(results, data) + } + + return results, nil + }, + Load: func(ctx context.Context, client *generated.Client, entityID string) (json.RawMessage, error) { + ref := SchemaRef{Schema: "audience_member", Operation: refOpLoad, EntityID: entityID} + + entity, err := client.AudienceMember.Get(ctx, entityID) + if err != nil { + return nil, logError(ctx, ref, ErrLoadFailed, err) + } + + data, err := json.Marshal(entity) + if err != nil { + return nil, logError(ctx, ref, ErrMarshalFailed, err) + } + + return data, nil + }, + } SchemaCampaign = &Schema{ SchemaDescriptor: SchemaDescriptor{ Name: "Campaign", @@ -5147,6 +5216,44 @@ func init() { {Name: "updated_by_impersonator", Label: "UpdatedByImpersonator", Type: "string", MatchKey: true, Clearable: true}, {Name: "website", Label: "Website", Type: "string", MatchKey: true, InputKey: "website", Clearable: true}, } + SchemaAudience.Fields = []FieldDescriptor{ + {Name: "audience_type", Label: "AudienceType", Type: "enums.AudienceType"}, + {Name: "created_at", Label: "CreatedAt", Type: "time.Time", Clearable: true}, + {Name: "created_by", Label: "CreatedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "deleted_at", Label: "DeletedAt", Type: "time.Time", Clearable: true}, + {Name: "deleted_by", Label: "DeletedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "description", Label: "Description", Type: "string", MatchKey: true, Clearable: true}, + {Name: "display_id", Label: "DisplayID", Type: "string", MatchKey: true}, + {Name: "filters", Label: "Filters", Type: "map[string]interface {}", Clearable: true}, + {Name: "metadata", Label: "Metadata", Type: "map[string]interface {}", Clearable: true}, + {Name: "name", Label: "Name", Type: "string", MatchKey: true}, + {Name: "owner_id", Label: "OwnerID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "tags", Label: "Tags", Type: "[]string", Clearable: true}, + {Name: "updated_at", Label: "UpdatedAt", Type: "time.Time", Clearable: true}, + {Name: "updated_by", Label: "UpdatedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "updated_by_impersonator", Label: "UpdatedByImpersonator", Type: "string", MatchKey: true, Clearable: true}, + } + SchemaAudienceMember.Fields = []FieldDescriptor{ + {Name: "audience_id", Label: "AudienceID", Type: "string", MatchKey: true}, + {Name: "contact_id", Label: "ContactID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "created_at", Label: "CreatedAt", Type: "time.Time", Clearable: true}, + {Name: "created_by", Label: "CreatedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "deleted_at", Label: "DeletedAt", Type: "time.Time", Clearable: true}, + {Name: "deleted_by", Label: "DeletedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "display_id", Label: "DisplayID", Type: "string", MatchKey: true}, + {Name: "email", Label: "Email", Type: "string", MatchKey: true}, + {Name: "full_name", Label: "FullName", Type: "string", MatchKey: true, Clearable: true}, + {Name: "group_id", Label: "GroupID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "identity_holder_id", Label: "IdentityHolderID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "metadata", Label: "Metadata", Type: "map[string]interface {}", Clearable: true}, + {Name: "owner_id", Label: "OwnerID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "subscriber_id", Label: "SubscriberID", Type: "string", MatchKey: true, Clearable: true}, + {Name: "tags", Label: "Tags", Type: "[]string", Clearable: true}, + {Name: "updated_at", Label: "UpdatedAt", Type: "time.Time", Clearable: true}, + {Name: "updated_by", Label: "UpdatedBy", Type: "string", MatchKey: true, Clearable: true}, + {Name: "updated_by_impersonator", Label: "UpdatedByImpersonator", Type: "string", MatchKey: true, Clearable: true}, + {Name: "user_id", Label: "UserID", Type: "string", MatchKey: true, Clearable: true}, + } SchemaCampaign.Fields = []FieldDescriptor{ {Name: "assessment_id", Label: "AssessmentID", Type: "string", MatchKey: true, Clearable: true}, {Name: "campaign_type", Label: "CampaignType", Type: "enums.CampaignType"}, @@ -8222,6 +8329,122 @@ func init() { AddField: "add_vulnerability_ids", }, } + SchemaAudience.Edges = []EdgeDescriptor{ + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, + { + Name: "blocked_groups", + Label: "BlockedGroups", + Target: SchemaGroup, + TargetType: "Group", + CreateField: "blocked_group_ids", + AddField: "add_blocked_group_ids", + }, + { + Name: "campaigns", + Label: "Campaigns", + Target: SchemaCampaign, + TargetType: "Campaign", + CreateField: "campaign_ids", + AddField: "add_campaign_ids", + }, + { + Name: "editors", + Label: "Editors", + Target: SchemaGroup, + TargetType: "Group", + CreateField: "editor_ids", + AddField: "add_editor_ids", + }, + { + Name: "owner", + Label: "Owner", + Target: SchemaOrganization, + TargetType: "Organization", + Unique: true, + CreateField: "owner_id", + Field: "owner_id", + }, + { + Name: "viewers", + Label: "Viewers", + Target: SchemaGroup, + TargetType: "Group", + CreateField: "viewer_ids", + AddField: "add_viewer_ids", + }, + } + SchemaAudienceMember.Edges = []EdgeDescriptor{ + { + Name: "audience", + Label: "Audience", + Target: SchemaAudience, + TargetType: "Audience", + Unique: true, + CreateField: "audience_id", + Field: "audience_id", + }, + { + Name: "contact", + Label: "Contact", + Target: SchemaContact, + TargetType: "Contact", + Unique: true, + CreateField: "contact_id", + Field: "contact_id", + }, + { + Name: "group", + Label: "Group", + Target: SchemaGroup, + TargetType: "Group", + Unique: true, + CreateField: "group_id", + Field: "group_id", + }, + { + Name: "identity_holder", + Label: "IdentityHolder", + Target: SchemaIdentityHolder, + TargetType: "IdentityHolder", + Unique: true, + CreateField: "identity_holder_id", + Field: "identity_holder_id", + }, + { + Name: "owner", + Label: "Owner", + Target: SchemaOrganization, + TargetType: "Organization", + Unique: true, + CreateField: "owner_id", + Field: "owner_id", + }, + { + Name: "subscriber", + Label: "Subscriber", + Target: SchemaSubscriber, + TargetType: "Subscriber", + Unique: true, + CreateField: "subscriber_id", + Field: "subscriber_id", + }, + { + Name: "user", + Label: "User", + Target: SchemaUser, + TargetType: "User", + Unique: true, + CreateField: "user_id", + Field: "user_id", + }, + } SchemaCampaign.Edges = []EdgeDescriptor{ { Name: "assessment", @@ -8240,6 +8463,14 @@ func init() { CreateField: "assessment_response_ids", AddField: "add_assessment_response_ids", }, + { + Name: "audiences", + Label: "Audiences", + Target: SchemaAudience, + TargetType: "Audience", + CreateField: "audience_ids", + AddField: "add_audience_ids", + }, { Name: "blocked_groups", Label: "BlockedGroups", @@ -8509,6 +8740,14 @@ func init() { }, } SchemaContact.Edges = []EdgeDescriptor{ + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, { Name: "campaign_targets", Label: "CampaignTargets", @@ -10904,6 +11143,38 @@ func init() { CreateField: "action_plan_viewer_ids", AddField: "add_action_plan_viewer_ids", }, + { + Name: "audience_blocked_groups", + Label: "AudienceBlockedGroups", + Target: SchemaAudience, + TargetType: "Audience", + CreateField: "audience_blocked_group_ids", + AddField: "add_audience_blocked_group_ids", + }, + { + Name: "audience_editors", + Label: "AudienceEditors", + Target: SchemaAudience, + TargetType: "Audience", + CreateField: "audience_editor_ids", + AddField: "add_audience_editor_ids", + }, + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, + { + Name: "audience_viewers", + Label: "AudienceViewers", + Target: SchemaAudience, + TargetType: "Audience", + CreateField: "audience_viewer_ids", + AddField: "add_audience_viewer_ids", + }, { Name: "avatar_file", Label: "AvatarFile", @@ -11441,6 +11712,14 @@ func init() { CreateField: "asset_ids", AddField: "add_asset_ids", }, + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, { Name: "blocked_groups", Label: "BlockedGroups", @@ -12805,6 +13084,38 @@ func init() { CreateField: "asset_ids", AddField: "add_asset_ids", }, + { + Name: "audience_creators", + Label: "AudienceCreators", + Target: SchemaGroup, + TargetType: "Group", + CreateField: "audience_creator_ids", + AddField: "add_audience_creator_ids", + }, + { + Name: "audience_member_creators", + Label: "AudienceMemberCreators", + Target: SchemaGroup, + TargetType: "Group", + CreateField: "audience_member_creator_ids", + AddField: "add_audience_member_creator_ids", + }, + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, + { + Name: "audiences", + Label: "Audiences", + Target: SchemaAudience, + TargetType: "Audience", + CreateField: "audience_ids", + AddField: "add_audience_ids", + }, { Name: "avatar_file", Label: "AvatarFile", @@ -16031,6 +16342,14 @@ func init() { }, } SchemaSubscriber.Edges = []EdgeDescriptor{ + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, { Name: "campaign_targets", Label: "CampaignTargets", @@ -17023,6 +17342,14 @@ func init() { CreateField: "assigner_task_ids", AddField: "add_assigner_task_ids", }, + { + Name: "audience_members", + Label: "AudienceMembers", + Target: SchemaAudienceMember, + TargetType: "AudienceMember", + CreateField: "audience_member_ids", + AddField: "add_audience_member_ids", + }, { Name: "avatar_file", Label: "AvatarFile", @@ -18292,6 +18619,34 @@ func init() { return results, nil } + SchemaAudienceMember.QueryByKey = func(ctx context.Context, client *generated.Client, orgID string, field string, values []string) ([]json.RawMessage, error) { + ref := SchemaRef{Schema: "audience_member", Operation: refOpQuery} + + if !SchemaAudienceMember.MatchKeyField(field) { + return nil, logError(ctx, ref, ErrInvalidKeyField, fmt.Errorf("%s is not a match-key field on %s", field, "audience_member")) + } + + entities, err := client.AudienceMember.Query(). + Where(audiencemember.OwnerID(orgID)). + Where(predicate.AudienceMember(matchKeyIn(field, values))). + All(ctx) + if err != nil { + return nil, logError(ctx, ref, ErrQueryFailed, err) + } + + results := make([]json.RawMessage, 0, len(entities)) + for _, e := range entities { + data, err := json.Marshal(e) + if err != nil { + logError(ctx, ref, ErrMarshalFailed, err) + continue + } + + results = append(results, data) + } + + return results, nil + } SchemaCampaign.QueryByKey = func(ctx context.Context, client *generated.Client, orgID string, field string, values []string) ([]json.RawMessage, error) { ref := SchemaRef{Schema: "campaign", Operation: refOpQuery} @@ -19466,6 +19821,8 @@ var allSchemas = []*Schema{ SchemaAssessment, SchemaAssessmentResponse, SchemaAsset, + SchemaAudience, + SchemaAudienceMember, SchemaCampaign, SchemaCampaignTarget, SchemaCheckResult, diff --git a/internal/ent/exportablegenerated/exportable_generated.go b/internal/ent/exportablegenerated/exportable_generated.go index f3ba6ca3af..2d210c50ee 100644 --- a/internal/ent/exportablegenerated/exportable_generated.go +++ b/internal/ent/exportablegenerated/exportable_generated.go @@ -18,6 +18,12 @@ var ExportableSchemas = map[string]info{"ASSESSMENT": info{ }, "ASSET": info{ hasOwnerField: true, hasSystemOwnedField: true, +}, "AUDIENCE": info{ + hasOwnerField: true, + hasSystemOwnedField: false, +}, "AUDIENCE_MEMBER": info{ + hasOwnerField: true, + hasSystemOwnedField: false, }, "CAMPAIGN": info{ hasOwnerField: true, hasSystemOwnedField: false, diff --git a/internal/ent/generated/audience.go b/internal/ent/generated/audience.go new file mode 100644 index 0000000000..33fa27fa26 --- /dev/null +++ b/internal/ent/generated/audience.go @@ -0,0 +1,508 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "fmt" + "strings" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" +) + +// Audience is the model entity for the Audience schema. +type Audience struct { + config `json:"-"` + // ID of the ent. + ID string `json:"id,omitempty"` + // CreatedAt holds the value of the "created_at" field. + CreatedAt time.Time `json:"created_at,omitempty"` + // UpdatedAt holds the value of the "updated_at" field. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // CreatedBy holds the value of the "created_by" field. + CreatedBy string `json:"created_by,omitempty"` + // UpdatedBy holds the value of the "updated_by" field. + UpdatedBy string `json:"updated_by,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updated_by_impersonator,omitempty"` + // DeletedAt holds the value of the "deleted_at" field. + DeletedAt time.Time `json:"deleted_at,omitempty"` + // DeletedBy holds the value of the "deleted_by" field. + DeletedBy string `json:"deleted_by,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"display_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID string `json:"owner_id,omitempty"` + // the name of the audience + Name string `json:"name,omitempty"` + // the description of the audience + Description string `json:"description,omitempty"` + // the audience resolution type + AudienceType enums.AudienceType `json:"audience_type,omitempty"` + // selector filters for dynamic audiences + Filters map[string]interface{} `json:"filters,omitempty"` + // additional metadata about the audience + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the AudienceQuery when eager-loading is set. + Edges AudienceEdges `json:"edges"` + selectValues sql.SelectValues +} + +// AudienceEdges holds the relations/edges for other nodes in the graph. +type AudienceEdges struct { + // Owner holds the value of the owner edge. + Owner *Organization `json:"owner,omitempty"` + // groups that are blocked from viewing or editing the risk + BlockedGroups []*Group `json:"blocked_groups,omitempty"` + // provides edit access to the risk to members of the group + Editors []*Group `json:"editors,omitempty"` + // provides view access to the risk to members of the group + Viewers []*Group `json:"viewers,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` + // Campaigns holds the value of the campaigns edge. + Campaigns []*Campaign `json:"campaigns,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [6]bool + // totalCount holds the count of the edges above. + totalCount [6]map[string]int + + namedBlockedGroups map[string][]*Group + namedEditors map[string][]*Group + namedViewers map[string][]*Group + namedAudienceMembers map[string][]*AudienceMember + namedCampaigns map[string][]*Campaign +} + +// OwnerOrErr returns the Owner value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceEdges) OwnerOrErr() (*Organization, error) { + if e.Owner != nil { + return e.Owner, nil + } else if e.loadedTypes[0] { + return nil, &NotFoundError{label: organization.Label} + } + return nil, &NotLoadedError{edge: "owner"} +} + +// BlockedGroupsOrErr returns the BlockedGroups value or an error if the edge +// was not loaded in eager-loading. +func (e AudienceEdges) BlockedGroupsOrErr() ([]*Group, error) { + if e.loadedTypes[1] { + return e.BlockedGroups, nil + } + return nil, &NotLoadedError{edge: "blocked_groups"} +} + +// EditorsOrErr returns the Editors value or an error if the edge +// was not loaded in eager-loading. +func (e AudienceEdges) EditorsOrErr() ([]*Group, error) { + if e.loadedTypes[2] { + return e.Editors, nil + } + return nil, &NotLoadedError{edge: "editors"} +} + +// ViewersOrErr returns the Viewers value or an error if the edge +// was not loaded in eager-loading. +func (e AudienceEdges) ViewersOrErr() ([]*Group, error) { + if e.loadedTypes[3] { + return e.Viewers, nil + } + return nil, &NotLoadedError{edge: "viewers"} +} + +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e AudienceEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[4] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + +// CampaignsOrErr returns the Campaigns value or an error if the edge +// was not loaded in eager-loading. +func (e AudienceEdges) CampaignsOrErr() ([]*Campaign, error) { + if e.loadedTypes[5] { + return e.Campaigns, nil + } + return nil, &NotLoadedError{edge: "campaigns"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*Audience) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case audience.FieldTags, audience.FieldFilters, audience.FieldMetadata: + values[i] = new([]byte) + case audience.FieldID, audience.FieldCreatedBy, audience.FieldUpdatedBy, audience.FieldUpdatedByImpersonator, audience.FieldDeletedBy, audience.FieldDisplayID, audience.FieldOwnerID, audience.FieldName, audience.FieldDescription, audience.FieldAudienceType: + values[i] = new(sql.NullString) + case audience.FieldCreatedAt, audience.FieldUpdatedAt, audience.FieldDeletedAt: + 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 Audience fields. +func (_m *Audience) 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 audience.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 audience.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 audience.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 audience.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 audience.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 audience.FieldUpdatedByImpersonator: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field updated_by_impersonator", values[i]) + } else if value.Valid { + _m.UpdatedByImpersonator = new(string) + *_m.UpdatedByImpersonator = value.String + } + case audience.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 audience.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 audience.FieldDisplayID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field display_id", values[i]) + } else if value.Valid { + _m.DisplayID = value.String + } + case audience.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 audience.FieldOwnerID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field owner_id", values[i]) + } else if value.Valid { + _m.OwnerID = value.String + } + case audience.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 audience.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 audience.FieldAudienceType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field audience_type", values[i]) + } else if value.Valid { + _m.AudienceType = enums.AudienceType(value.String) + } + case audience.FieldFilters: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field filters", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Filters); err != nil { + return fmt.Errorf("unmarshal field filters: %w", err) + } + } + case audience.FieldMetadata: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field metadata", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { + return fmt.Errorf("unmarshal field metadata: %w", err) + } + } + default: + _m.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the Audience. +// This includes values selected through modifiers, order, etc. +func (_m *Audience) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) +} + +// QueryOwner queries the "owner" edge of the Audience entity. +func (_m *Audience) QueryOwner() *OrganizationQuery { + return NewAudienceClient(_m.config).QueryOwner(_m) +} + +// QueryBlockedGroups queries the "blocked_groups" edge of the Audience entity. +func (_m *Audience) QueryBlockedGroups() *GroupQuery { + return NewAudienceClient(_m.config).QueryBlockedGroups(_m) +} + +// QueryEditors queries the "editors" edge of the Audience entity. +func (_m *Audience) QueryEditors() *GroupQuery { + return NewAudienceClient(_m.config).QueryEditors(_m) +} + +// QueryViewers queries the "viewers" edge of the Audience entity. +func (_m *Audience) QueryViewers() *GroupQuery { + return NewAudienceClient(_m.config).QueryViewers(_m) +} + +// QueryAudienceMembers queries the "audience_members" edge of the Audience entity. +func (_m *Audience) QueryAudienceMembers() *AudienceMemberQuery { + return NewAudienceClient(_m.config).QueryAudienceMembers(_m) +} + +// QueryCampaigns queries the "campaigns" edge of the Audience entity. +func (_m *Audience) QueryCampaigns() *CampaignQuery { + return NewAudienceClient(_m.config).QueryCampaigns(_m) +} + +// Update returns a builder for updating this Audience. +// Note that you need to call Audience.Unwrap() before calling this method if this Audience +// was returned from a transaction, and the transaction was committed or rolled back. +func (_m *Audience) Update() *AudienceUpdateOne { + return NewAudienceClient(_m.config).UpdateOne(_m) +} + +// Unwrap unwraps the Audience 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 *Audience) Unwrap() *Audience { + _tx, ok := _m.config.driver.(*txDriver) + if !ok { + panic("generated: Audience is not a transactional entity") + } + _m.config.driver = _tx.drv + return _m +} + +// String implements the fmt.Stringer. +func (_m *Audience) String() string { + var builder strings.Builder + builder.WriteString("Audience(") + 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(", ") + if v := _m.UpdatedByImpersonator; v != nil { + builder.WriteString("updated_by_impersonator=") + builder.WriteString(*v) + } + 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("display_id=") + builder.WriteString(_m.DisplayID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", _m.Tags)) + builder.WriteString(", ") + builder.WriteString("owner_id=") + builder.WriteString(_m.OwnerID) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(_m.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(_m.Description) + builder.WriteString(", ") + builder.WriteString("audience_type=") + builder.WriteString(fmt.Sprintf("%v", _m.AudienceType)) + builder.WriteString(", ") + builder.WriteString("filters=") + builder.WriteString(fmt.Sprintf("%v", _m.Filters)) + builder.WriteString(", ") + builder.WriteString("metadata=") + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) + builder.WriteByte(')') + return builder.String() +} + +// NamedBlockedGroups returns the BlockedGroups named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Audience) NamedBlockedGroups(name string) ([]*Group, error) { + if _m.Edges.namedBlockedGroups == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedBlockedGroups[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Audience) appendNamedBlockedGroups(name string, edges ...*Group) { + if _m.Edges.namedBlockedGroups == nil { + _m.Edges.namedBlockedGroups = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedBlockedGroups[name] = []*Group{} + } else { + _m.Edges.namedBlockedGroups[name] = append(_m.Edges.namedBlockedGroups[name], edges...) + } +} + +// NamedEditors returns the Editors named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Audience) NamedEditors(name string) ([]*Group, error) { + if _m.Edges.namedEditors == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedEditors[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Audience) appendNamedEditors(name string, edges ...*Group) { + if _m.Edges.namedEditors == nil { + _m.Edges.namedEditors = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedEditors[name] = []*Group{} + } else { + _m.Edges.namedEditors[name] = append(_m.Edges.namedEditors[name], edges...) + } +} + +// NamedViewers returns the Viewers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Audience) NamedViewers(name string) ([]*Group, error) { + if _m.Edges.namedViewers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedViewers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Audience) appendNamedViewers(name string, edges ...*Group) { + if _m.Edges.namedViewers == nil { + _m.Edges.namedViewers = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedViewers[name] = []*Group{} + } else { + _m.Edges.namedViewers[name] = append(_m.Edges.namedViewers[name], edges...) + } +} + +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Audience) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Audience) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + +// NamedCampaigns returns the Campaigns named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Audience) NamedCampaigns(name string) ([]*Campaign, error) { + if _m.Edges.namedCampaigns == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedCampaigns[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Audience) appendNamedCampaigns(name string, edges ...*Campaign) { + if _m.Edges.namedCampaigns == nil { + _m.Edges.namedCampaigns = make(map[string][]*Campaign) + } + if len(edges) == 0 { + _m.Edges.namedCampaigns[name] = []*Campaign{} + } else { + _m.Edges.namedCampaigns[name] = append(_m.Edges.namedCampaigns[name], edges...) + } +} + +// Audiences is a parsable slice of Audience. +type Audiences []*Audience diff --git a/internal/ent/generated/audience/audience.go b/internal/ent/generated/audience/audience.go new file mode 100644 index 0000000000..77b2342aef --- /dev/null +++ b/internal/ent/generated/audience/audience.go @@ -0,0 +1,377 @@ +// Code generated by ent, DO NOT EDIT. + +package audience + +import ( + "fmt" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/common/enums" +) + +const ( + // Label holds the string label denoting the audience type in the database. + Label = "audience" + // FieldID holds the string denoting the id field in the database. + FieldID = "id" + // FieldCreatedAt holds the string denoting the created_at field in the database. + FieldCreatedAt = "created_at" + // FieldUpdatedAt holds the string denoting the updated_at field in the database. + FieldUpdatedAt = "updated_at" + // FieldCreatedBy holds the string denoting the created_by field in the database. + FieldCreatedBy = "created_by" + // FieldUpdatedBy holds the string denoting the updated_by field in the database. + FieldUpdatedBy = "updated_by" + // FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database. + FieldUpdatedByImpersonator = "updated_by_impersonator" + // FieldDeletedAt holds the string denoting the deleted_at field in the database. + FieldDeletedAt = "deleted_at" + // FieldDeletedBy holds the string denoting the deleted_by field in the database. + FieldDeletedBy = "deleted_by" + // FieldDisplayID holds the string denoting the display_id field in the database. + FieldDisplayID = "display_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // FieldOwnerID holds the string denoting the owner_id field in the database. + FieldOwnerID = "owner_id" + // FieldName holds the string denoting the name field in the database. + FieldName = "name" + // FieldDescription holds the string denoting the description field in the database. + FieldDescription = "description" + // FieldAudienceType holds the string denoting the audience_type field in the database. + FieldAudienceType = "audience_type" + // FieldFilters holds the string denoting the filters field in the database. + FieldFilters = "filters" + // FieldMetadata holds the string denoting the metadata field in the database. + FieldMetadata = "metadata" + // EdgeOwner holds the string denoting the owner edge name in mutations. + EdgeOwner = "owner" + // EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations. + EdgeBlockedGroups = "blocked_groups" + // EdgeEditors holds the string denoting the editors edge name in mutations. + EdgeEditors = "editors" + // EdgeViewers holds the string denoting the viewers edge name in mutations. + EdgeViewers = "viewers" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" + // EdgeCampaigns holds the string denoting the campaigns edge name in mutations. + EdgeCampaigns = "campaigns" + // Table holds the table name of the audience in the database. + Table = "audiences" + // OwnerTable is the table that holds the owner relation/edge. + OwnerTable = "audiences" + // OwnerInverseTable is the table name for the Organization entity. + // It exists in this package in order to avoid circular dependency with the "organization" package. + OwnerInverseTable = "organizations" + // OwnerColumn is the table column denoting the owner relation/edge. + OwnerColumn = "owner_id" + // BlockedGroupsTable is the table that holds the blocked_groups relation/edge. The primary key declared below. + BlockedGroupsTable = "audience_blocked_groups" + // BlockedGroupsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + BlockedGroupsInverseTable = "groups" + // EditorsTable is the table that holds the editors relation/edge. The primary key declared below. + EditorsTable = "audience_editors" + // EditorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + EditorsInverseTable = "groups" + // ViewersTable is the table that holds the viewers relation/edge. The primary key declared below. + ViewersTable = "audience_viewers" + // ViewersInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + ViewersInverseTable = "groups" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "audience_id" + // CampaignsTable is the table that holds the campaigns relation/edge. The primary key declared below. + CampaignsTable = "campaign_audiences" + // CampaignsInverseTable is the table name for the Campaign entity. + // It exists in this package in order to avoid circular dependency with the "campaign" package. + CampaignsInverseTable = "campaigns" +) + +// Columns holds all SQL columns for audience fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldUpdatedByImpersonator, + FieldDeletedAt, + FieldDeletedBy, + FieldDisplayID, + FieldTags, + FieldOwnerID, + FieldName, + FieldDescription, + FieldAudienceType, + FieldFilters, + FieldMetadata, +} + +var ( + // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the + // primary key for the blocked_groups relation (M2M). + BlockedGroupsPrimaryKey = []string{"audience_id", "group_id"} + // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the + // primary key for the editors relation (M2M). + EditorsPrimaryKey = []string{"audience_id", "group_id"} + // ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the + // primary key for the viewers relation (M2M). + ViewersPrimaryKey = []string{"audience_id", "group_id"} + // CampaignsPrimaryKey and CampaignsColumn2 are the table columns denoting the + // primary key for the campaigns relation (M2M). + CampaignsPrimaryKey = []string{"campaign_id", "audience_id"} +) + +// ValidColumn reports if the column name is valid (part of the table columns). +func ValidColumn(column string) bool { + for i := range Columns { + if column == Columns[i] { + return true + } + } + return false +} + +// Note that the variables below are initialized by the runtime +// package on the initialization of the application. Therefore, +// it should be imported in the main as follows: +// +// import _ "github.com/theopenlane/core/v2/internal/ent/generated/runtime" +var ( + Hooks [11]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. + DefaultUpdatedAt func() time.Time + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DisplayIDValidator is a validator for the "display_id" field. It is called by the builders before save. + DisplayIDValidator func(string) error + // 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 + // NameValidator is a validator for the "name" field. It is called by the builders before save. + NameValidator func(string) error + // DefaultID holds the default value on creation for the "id" field. + DefaultID func() string +) + +const DefaultAudienceType enums.AudienceType = "MANUAL" + +// AudienceTypeValidator is a validator for the "audience_type" field enum values. It is called by the builders before save. +func AudienceTypeValidator(at enums.AudienceType) error { + switch at.String() { + case "MANUAL", "DYNAMIC": + return nil + default: + return fmt.Errorf("audience: invalid enum value for audience_type field: %q", at) + } +} + +// OrderOption defines the ordering options for the Audience queries. +type OrderOption func(*sql.Selector) + +// ByID orders the results by the id field. +func ByID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldID, opts...).ToFunc() +} + +// ByCreatedAt orders the results by the created_at field. +func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedAt, opts...).ToFunc() +} + +// ByUpdatedAt orders the results by the updated_at field. +func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc() +} + +// ByCreatedBy orders the results by the created_by field. +func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedBy, opts...).ToFunc() +} + +// ByUpdatedBy orders the results by the updated_by field. +func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedBy, opts...).ToFunc() +} + +// ByUpdatedByImpersonator orders the results by the updated_by_impersonator field. +func ByUpdatedByImpersonator(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedByImpersonator, opts...).ToFunc() +} + +// ByDeletedAt orders the results by the deleted_at field. +func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedAt, opts...).ToFunc() +} + +// ByDeletedBy orders the results by the deleted_by field. +func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedBy, opts...).ToFunc() +} + +// ByDisplayID orders the results by the display_id field. +func ByDisplayID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDisplayID, opts...).ToFunc() +} + +// ByOwnerID orders the results by the owner_id field. +func ByOwnerID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOwnerID, opts...).ToFunc() +} + +// ByName orders the results by the name field. +func ByName(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldName, opts...).ToFunc() +} + +// ByDescription orders the results by the description field. +func ByDescription(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDescription, opts...).ToFunc() +} + +// ByAudienceType orders the results by the audience_type field. +func ByAudienceType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldAudienceType, opts...).ToFunc() +} + +// ByOwnerField orders the results by owner field. +func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newOwnerStep(), sql.OrderByField(field, opts...)) + } +} + +// ByBlockedGroupsCount orders the results by blocked_groups count. +func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newBlockedGroupsStep(), opts...) + } +} + +// ByBlockedGroups orders the results by blocked_groups terms. +func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newBlockedGroupsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByEditorsCount orders the results by editors count. +func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newEditorsStep(), opts...) + } +} + +// ByEditors orders the results by editors terms. +func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newEditorsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByViewersCount orders the results by viewers count. +func ByViewersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newViewersStep(), opts...) + } +} + +// ByViewers orders the results by viewers terms. +func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newViewersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), 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...)...) + } +} +func newOwnerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(OwnerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), + ) +} +func newBlockedGroupsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(BlockedGroupsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, BlockedGroupsTable, BlockedGroupsPrimaryKey...), + ) +} +func newEditorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(EditorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, EditorsTable, EditorsPrimaryKey...), + ) +} +func newViewersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ViewersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ViewersTable, ViewersPrimaryKey...), + ) +} +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} +func newCampaignsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(CampaignsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, CampaignsTable, CampaignsPrimaryKey...), + ) +} + +var ( + // enums.AudienceType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.AudienceType)(nil) + // enums.AudienceType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.AudienceType)(nil) +) diff --git a/internal/ent/generated/audience/where.go b/internal/ent/generated/audience/where.go new file mode 100644 index 0000000000..a8d369ebe0 --- /dev/null +++ b/internal/ent/generated/audience/where.go @@ -0,0 +1,1065 @@ +// Code generated by ent, DO NOT EDIT. + +package audience + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldID, id)) +} + +// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. +func CreatedAt(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldCreatedAt, v)) +} + +// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. +func UpdatedAt(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ. +func UpdatedByImpersonator(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ. +func DisplayID(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDisplayID, v)) +} + +// OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ. +func OwnerID(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldOwnerID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDescription, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldUpdatedByImpersonator, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// DisplayIDEQ applies the EQ predicate on the "display_id" field. +func DisplayIDEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDisplayID, v)) +} + +// DisplayIDNEQ applies the NEQ predicate on the "display_id" field. +func DisplayIDNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldDisplayID, v)) +} + +// DisplayIDIn applies the In predicate on the "display_id" field. +func DisplayIDIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldDisplayID, vs...)) +} + +// DisplayIDNotIn applies the NotIn predicate on the "display_id" field. +func DisplayIDNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldDisplayID, vs...)) +} + +// DisplayIDGT applies the GT predicate on the "display_id" field. +func DisplayIDGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldDisplayID, v)) +} + +// DisplayIDGTE applies the GTE predicate on the "display_id" field. +func DisplayIDGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldDisplayID, v)) +} + +// DisplayIDLT applies the LT predicate on the "display_id" field. +func DisplayIDLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldDisplayID, v)) +} + +// DisplayIDLTE applies the LTE predicate on the "display_id" field. +func DisplayIDLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldDisplayID, v)) +} + +// DisplayIDContains applies the Contains predicate on the "display_id" field. +func DisplayIDContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldDisplayID, v)) +} + +// DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field. +func DisplayIDHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldDisplayID, v)) +} + +// DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field. +func DisplayIDHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldDisplayID, v)) +} + +// DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field. +func DisplayIDEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldDisplayID, v)) +} + +// DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field. +func DisplayIDContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldDisplayID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldTags)) +} + +// OwnerIDEQ applies the EQ predicate on the "owner_id" field. +func OwnerIDEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldOwnerID, v)) +} + +// OwnerIDNEQ applies the NEQ predicate on the "owner_id" field. +func OwnerIDNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldOwnerID, v)) +} + +// OwnerIDIn applies the In predicate on the "owner_id" field. +func OwnerIDIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldOwnerID, vs...)) +} + +// OwnerIDNotIn applies the NotIn predicate on the "owner_id" field. +func OwnerIDNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldOwnerID, vs...)) +} + +// OwnerIDGT applies the GT predicate on the "owner_id" field. +func OwnerIDGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldOwnerID, v)) +} + +// OwnerIDGTE applies the GTE predicate on the "owner_id" field. +func OwnerIDGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldOwnerID, v)) +} + +// OwnerIDLT applies the LT predicate on the "owner_id" field. +func OwnerIDLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldOwnerID, v)) +} + +// OwnerIDLTE applies the LTE predicate on the "owner_id" field. +func OwnerIDLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldOwnerID, v)) +} + +// OwnerIDContains applies the Contains predicate on the "owner_id" field. +func OwnerIDContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldOwnerID, v)) +} + +// OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field. +func OwnerIDHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldOwnerID, v)) +} + +// OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field. +func OwnerIDHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldOwnerID, v)) +} + +// OwnerIDIsNil applies the IsNil predicate on the "owner_id" field. +func OwnerIDIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldOwnerID)) +} + +// OwnerIDNotNil applies the NotNil predicate on the "owner_id" field. +func OwnerIDNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldOwnerID)) +} + +// OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field. +func OwnerIDEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldOwnerID, v)) +} + +// OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field. +func OwnerIDContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldOwnerID, v)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.Audience { + return predicate.Audience(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.Audience { + return predicate.Audience(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.Audience { + return predicate.Audience(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.Audience { + return predicate.Audience(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.Audience { + return predicate.Audience(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.Audience { + return predicate.Audience(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.Audience { + return predicate.Audience(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.Audience { + return predicate.Audience(sql.FieldContainsFold(FieldDescription, v)) +} + +// AudienceTypeEQ applies the EQ predicate on the "audience_type" field. +func AudienceTypeEQ(v enums.AudienceType) predicate.Audience { + vc := v + return predicate.Audience(sql.FieldEQ(FieldAudienceType, vc)) +} + +// AudienceTypeNEQ applies the NEQ predicate on the "audience_type" field. +func AudienceTypeNEQ(v enums.AudienceType) predicate.Audience { + vc := v + return predicate.Audience(sql.FieldNEQ(FieldAudienceType, vc)) +} + +// AudienceTypeIn applies the In predicate on the "audience_type" field. +func AudienceTypeIn(vs ...enums.AudienceType) predicate.Audience { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Audience(sql.FieldIn(FieldAudienceType, v...)) +} + +// AudienceTypeNotIn applies the NotIn predicate on the "audience_type" field. +func AudienceTypeNotIn(vs ...enums.AudienceType) predicate.Audience { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.Audience(sql.FieldNotIn(FieldAudienceType, v...)) +} + +// FiltersIsNil applies the IsNil predicate on the "filters" field. +func FiltersIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldFilters)) +} + +// FiltersNotNil applies the NotNil predicate on the "filters" field. +func FiltersNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldFilters)) +} + +// MetadataIsNil applies the IsNil predicate on the "metadata" field. +func MetadataIsNil() predicate.Audience { + return predicate.Audience(sql.FieldIsNull(FieldMetadata)) +} + +// MetadataNotNil applies the NotNil predicate on the "metadata" field. +func MetadataNotNil() predicate.Audience { + return predicate.Audience(sql.FieldNotNull(FieldMetadata)) +} + +// HasOwner applies the HasEdge predicate on the "owner" edge. +func HasOwner() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates). +func HasOwnerWith(preds ...predicate.Organization) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newOwnerStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge. +func HasBlockedGroups() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, BlockedGroupsTable, BlockedGroupsPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates). +func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newBlockedGroupsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasEditors applies the HasEdge predicate on the "editors" edge. +func HasEditors() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, EditorsTable, EditorsPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates). +func HasEditorsWith(preds ...predicate.Group) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newEditorsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasViewers applies the HasEdge predicate on the "viewers" edge. +func HasViewers() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, ViewersTable, ViewersPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasViewersWith applies the HasEdge predicate on the "viewers" edge with a given conditions (other predicates). +func HasViewersWith(preds ...predicate.Group) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newViewersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasCampaigns applies the HasEdge predicate on the "campaigns" edge. +func HasCampaigns() predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, CampaignsTable, CampaignsPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasCampaignsWith applies the HasEdge predicate on the "campaigns" edge with a given conditions (other predicates). +func HasCampaignsWith(preds ...predicate.Campaign) predicate.Audience { + return predicate.Audience(func(s *sql.Selector) { + step := newCampaignsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.Audience) predicate.Audience { + return predicate.Audience(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.Audience) predicate.Audience { + return predicate.Audience(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.Audience) predicate.Audience { + return predicate.Audience(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/audience_create.go b/internal/ent/generated/audience_create.go new file mode 100644 index 0000000000..e65307fce5 --- /dev/null +++ b/internal/ent/generated/audience_create.go @@ -0,0 +1,665 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/campaign" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" +) + +// AudienceCreate is the builder for creating a Audience entity. +type AudienceCreate struct { + config + mutation *AudienceMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (_c *AudienceCreate) SetCreatedAt(v time.Time) *AudienceCreate { + _c.mutation.SetCreatedAt(v) + return _c +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableCreatedAt(v *time.Time) *AudienceCreate { + if v != nil { + _c.SetCreatedAt(*v) + } + return _c +} + +// SetUpdatedAt sets the "updated_at" field. +func (_c *AudienceCreate) SetUpdatedAt(v time.Time) *AudienceCreate { + _c.mutation.SetUpdatedAt(v) + return _c +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableUpdatedAt(v *time.Time) *AudienceCreate { + if v != nil { + _c.SetUpdatedAt(*v) + } + return _c +} + +// SetCreatedBy sets the "created_by" field. +func (_c *AudienceCreate) SetCreatedBy(v string) *AudienceCreate { + _c.mutation.SetCreatedBy(v) + return _c +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableCreatedBy(v *string) *AudienceCreate { + if v != nil { + _c.SetCreatedBy(*v) + } + return _c +} + +// SetUpdatedBy sets the "updated_by" field. +func (_c *AudienceCreate) SetUpdatedBy(v string) *AudienceCreate { + _c.mutation.SetUpdatedBy(v) + return _c +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableUpdatedBy(v *string) *AudienceCreate { + if v != nil { + _c.SetUpdatedBy(*v) + } + return _c +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_c *AudienceCreate) SetUpdatedByImpersonator(v string) *AudienceCreate { + _c.mutation.SetUpdatedByImpersonator(v) + return _c +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableUpdatedByImpersonator(v *string) *AudienceCreate { + if v != nil { + _c.SetUpdatedByImpersonator(*v) + } + return _c +} + +// SetDeletedAt sets the "deleted_at" field. +func (_c *AudienceCreate) SetDeletedAt(v time.Time) *AudienceCreate { + _c.mutation.SetDeletedAt(v) + return _c +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableDeletedAt(v *time.Time) *AudienceCreate { + if v != nil { + _c.SetDeletedAt(*v) + } + return _c +} + +// SetDeletedBy sets the "deleted_by" field. +func (_c *AudienceCreate) SetDeletedBy(v string) *AudienceCreate { + _c.mutation.SetDeletedBy(v) + return _c +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableDeletedBy(v *string) *AudienceCreate { + if v != nil { + _c.SetDeletedBy(*v) + } + return _c +} + +// SetDisplayID sets the "display_id" field. +func (_c *AudienceCreate) SetDisplayID(v string) *AudienceCreate { + _c.mutation.SetDisplayID(v) + return _c +} + +// SetTags sets the "tags" field. +func (_c *AudienceCreate) SetTags(v []string) *AudienceCreate { + _c.mutation.SetTags(v) + return _c +} + +// SetOwnerID sets the "owner_id" field. +func (_c *AudienceCreate) SetOwnerID(v string) *AudienceCreate { + _c.mutation.SetOwnerID(v) + return _c +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableOwnerID(v *string) *AudienceCreate { + if v != nil { + _c.SetOwnerID(*v) + } + return _c +} + +// SetName sets the "name" field. +func (_c *AudienceCreate) SetName(v string) *AudienceCreate { + _c.mutation.SetName(v) + return _c +} + +// SetDescription sets the "description" field. +func (_c *AudienceCreate) SetDescription(v string) *AudienceCreate { + _c.mutation.SetDescription(v) + return _c +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableDescription(v *string) *AudienceCreate { + if v != nil { + _c.SetDescription(*v) + } + return _c +} + +// SetAudienceType sets the "audience_type" field. +func (_c *AudienceCreate) SetAudienceType(v enums.AudienceType) *AudienceCreate { + _c.mutation.SetAudienceType(v) + return _c +} + +// SetNillableAudienceType sets the "audience_type" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableAudienceType(v *enums.AudienceType) *AudienceCreate { + if v != nil { + _c.SetAudienceType(*v) + } + return _c +} + +// SetFilters sets the "filters" field. +func (_c *AudienceCreate) SetFilters(v map[string]interface{}) *AudienceCreate { + _c.mutation.SetFilters(v) + return _c +} + +// SetMetadata sets the "metadata" field. +func (_c *AudienceCreate) SetMetadata(v map[string]interface{}) *AudienceCreate { + _c.mutation.SetMetadata(v) + return _c +} + +// SetID sets the "id" field. +func (_c *AudienceCreate) SetID(v string) *AudienceCreate { + _c.mutation.SetID(v) + return _c +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (_c *AudienceCreate) SetNillableID(v *string) *AudienceCreate { + if v != nil { + _c.SetID(*v) + } + return _c +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_c *AudienceCreate) SetOwner(v *Organization) *AudienceCreate { + return _c.SetOwnerID(v.ID) +} + +// AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by IDs. +func (_c *AudienceCreate) AddBlockedGroupIDs(ids ...string) *AudienceCreate { + _c.mutation.AddBlockedGroupIDs(ids...) + return _c +} + +// AddBlockedGroups adds the "blocked_groups" edges to the Group entity. +func (_c *AudienceCreate) AddBlockedGroups(v ...*Group) *AudienceCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddBlockedGroupIDs(ids...) +} + +// AddEditorIDs adds the "editors" edge to the Group entity by IDs. +func (_c *AudienceCreate) AddEditorIDs(ids ...string) *AudienceCreate { + _c.mutation.AddEditorIDs(ids...) + return _c +} + +// AddEditors adds the "editors" edges to the Group entity. +func (_c *AudienceCreate) AddEditors(v ...*Group) *AudienceCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddEditorIDs(ids...) +} + +// AddViewerIDs adds the "viewers" edge to the Group entity by IDs. +func (_c *AudienceCreate) AddViewerIDs(ids ...string) *AudienceCreate { + _c.mutation.AddViewerIDs(ids...) + return _c +} + +// AddViewers adds the "viewers" edges to the Group entity. +func (_c *AudienceCreate) AddViewers(v ...*Group) *AudienceCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddViewerIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *AudienceCreate) AddAudienceMemberIDs(ids ...string) *AudienceCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *AudienceCreate) AddAudienceMembers(v ...*AudienceMember) *AudienceCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_c *AudienceCreate) AddCampaignIDs(ids ...string) *AudienceCreate { + _c.mutation.AddCampaignIDs(ids...) + return _c +} + +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_c *AudienceCreate) AddCampaigns(v ...*Campaign) *AudienceCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddCampaignIDs(ids...) +} + +// Mutation returns the AudienceMutation object of the builder. +func (_c *AudienceCreate) Mutation() *AudienceMutation { + return _c.mutation +} + +// Save creates the Audience in the database. +func (_c *AudienceCreate) Save(ctx context.Context) (*Audience, 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 *AudienceCreate) SaveX(ctx context.Context) *Audience { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceCreate) 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 *AudienceCreate) defaults() error { + if _, ok := _c.mutation.CreatedAt(); !ok { + if audience.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized audience.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := audience.DefaultCreatedAt() + _c.mutation.SetCreatedAt(v) + } + if _, ok := _c.mutation.UpdatedAt(); !ok { + if audience.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audience.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audience.DefaultUpdatedAt() + _c.mutation.SetUpdatedAt(v) + } + if _, ok := _c.mutation.Tags(); !ok { + v := audience.DefaultTags + _c.mutation.SetTags(v) + } + if _, ok := _c.mutation.AudienceType(); !ok { + v := audience.DefaultAudienceType + _c.mutation.SetAudienceType(v) + } + if _, ok := _c.mutation.ID(); !ok { + if audience.DefaultID == nil { + return fmt.Errorf("generated: uninitialized audience.DefaultID (forgotten import generated/runtime?)") + } + v := audience.DefaultID() + _c.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_c *AudienceCreate) check() error { + if _, ok := _c.mutation.DisplayID(); !ok { + return &ValidationError{Name: "display_id", err: errors.New(`generated: missing required field "Audience.display_id"`)} + } + if v, ok := _c.mutation.DisplayID(); ok { + if err := audience.DisplayIDValidator(v); err != nil { + return &ValidationError{Name: "display_id", err: fmt.Errorf(`generated: validator failed for field "Audience.display_id": %w`, err)} + } + } + if v, ok := _c.mutation.OwnerID(); ok { + if err := audience.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "Audience.owner_id": %w`, err)} + } + } + if _, ok := _c.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`generated: missing required field "Audience.name"`)} + } + if v, ok := _c.mutation.Name(); ok { + if err := audience.NameValidator(v); err != nil { + return &ValidationError{Name: "name", err: fmt.Errorf(`generated: validator failed for field "Audience.name": %w`, err)} + } + } + if _, ok := _c.mutation.AudienceType(); !ok { + return &ValidationError{Name: "audience_type", err: errors.New(`generated: missing required field "Audience.audience_type"`)} + } + if v, ok := _c.mutation.AudienceType(); ok { + if err := audience.AudienceTypeValidator(v); err != nil { + return &ValidationError{Name: "audience_type", err: fmt.Errorf(`generated: validator failed for field "Audience.audience_type": %w`, err)} + } + } + return nil +} + +func (_c *AudienceCreate) sqlSave(ctx context.Context) (*Audience, 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 Audience.ID type: %T", _spec.ID.Value) + } + } + _c.mutation.id = &_node.ID + _c.mutation.done = true + return _node, nil +} + +func (_c *AudienceCreate) createSpec() (*Audience, *sqlgraph.CreateSpec) { + var ( + _node = &Audience{config: _c.config} + _spec = sqlgraph.NewCreateSpec(audience.Table, sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString)) + ) + if id, ok := _c.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := _c.mutation.CreatedAt(); ok { + _spec.SetField(audience.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := _c.mutation.UpdatedAt(); ok { + _spec.SetField(audience.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := _c.mutation.CreatedBy(); ok { + _spec.SetField(audience.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := _c.mutation.UpdatedBy(); ok { + _spec.SetField(audience.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := _c.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audience.FieldUpdatedByImpersonator, field.TypeString, value) + _node.UpdatedByImpersonator = &value + } + if value, ok := _c.mutation.DeletedAt(); ok { + _spec.SetField(audience.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := _c.mutation.DeletedBy(); ok { + _spec.SetField(audience.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := _c.mutation.DisplayID(); ok { + _spec.SetField(audience.FieldDisplayID, field.TypeString, value) + _node.DisplayID = value + } + if value, ok := _c.mutation.Tags(); ok { + _spec.SetField(audience.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := _c.mutation.Name(); ok { + _spec.SetField(audience.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := _c.mutation.Description(); ok { + _spec.SetField(audience.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := _c.mutation.AudienceType(); ok { + _spec.SetField(audience.FieldAudienceType, field.TypeEnum, value) + _node.AudienceType = value + } + if value, ok := _c.mutation.Filters(); ok { + _spec.SetField(audience.FieldFilters, field.TypeJSON, value) + _node.Filters = value + } + if value, ok := _c.mutation.Metadata(); ok { + _spec.SetField(audience.FieldMetadata, field.TypeJSON, value) + _node.Metadata = value + } + if nodes := _c.mutation.OwnerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.OwnerID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.BlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.EditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.CampaignsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// AudienceCreateBulk is the builder for creating many Audience entities in bulk. +type AudienceCreateBulk struct { + config + err error + builders []*AudienceCreate +} + +// Save creates the Audience entities in the database. +func (_c *AudienceCreateBulk) Save(ctx context.Context) ([]*Audience, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*Audience, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { + func(i int, root context.Context) { + builder := _c.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*AudienceMutation) + if !ok { + return nil, fmt.Errorf("unexpected mutation type %T", m) + } + if err := builder.check(); err != nil { + return nil, err + } + builder.mutation = mutation + var err error + nodes[i], specs[i] = builder.createSpec() + if i < len(mutators)-1 { + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) + } else { + spec := &sqlgraph.BatchCreateSpec{Nodes: specs} + // Invoke the actual operation on the latest mutation in the chain. + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + } + } + if err != nil { + return nil, err + } + mutation.id = &nodes[i].ID + mutation.done = true + return nodes[i], nil + }) + for i := len(builder.hooks) - 1; i >= 0; i-- { + mut = builder.hooks[i](mut) + } + mutators[i] = mut + }(i, ctx) + } + if len(mutators) > 0 { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (_c *AudienceCreateBulk) SaveX(ctx context.Context) []*Audience { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/audience_delete.go b/internal/ent/generated/audience_delete.go new file mode 100644 index 0000000000..4f33717bb6 --- /dev/null +++ b/internal/ent/generated/audience_delete.go @@ -0,0 +1,88 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" +) + +// AudienceDelete is the builder for deleting a Audience entity. +type AudienceDelete struct { + config + hooks []Hook + mutation *AudienceMutation +} + +// Where appends a list predicates to the AudienceDelete builder. +func (_d *AudienceDelete) Where(ps ...predicate.Audience) *AudienceDelete { + _d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (_d *AudienceDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (_d *AudienceDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(audience.Table, sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString)) + if ps := _d.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + _d.mutation.done = true + return affected, err +} + +// AudienceDeleteOne is the builder for deleting a single Audience entity. +type AudienceDeleteOne struct { + _d *AudienceDelete +} + +// Where appends a list predicates to the AudienceDelete builder. +func (_d *AudienceDeleteOne) Where(ps ...predicate.Audience) *AudienceDeleteOne { + _d._d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query. +func (_d *AudienceDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{audience.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/audience_query.go b/internal/ent/generated/audience_query.go new file mode 100644 index 0000000000..facfe398b2 --- /dev/null +++ b/internal/ent/generated/audience_query.go @@ -0,0 +1,1265 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "database/sql/driver" + "errors" + "fmt" + "math" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/campaign" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" + + "github.com/theopenlane/core/v2/pkg/logx" +) + +// AudienceQuery is the builder for querying Audience entities. +type AudienceQuery struct { + config + ctx *QueryContext + order []audience.OrderOption + inters []Interceptor + predicates []predicate.Audience + withOwner *OrganizationQuery + withBlockedGroups *GroupQuery + withEditors *GroupQuery + withViewers *GroupQuery + withAudienceMembers *AudienceMemberQuery + withCampaigns *CampaignQuery + loadTotal []func(context.Context, []*Audience) error + modifiers []func(*sql.Selector) + withNamedBlockedGroups map[string]*GroupQuery + withNamedEditors map[string]*GroupQuery + withNamedViewers map[string]*GroupQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery + withNamedCampaigns map[string]*CampaignQuery + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the AudienceQuery builder. +func (_q *AudienceQuery) Where(ps ...predicate.Audience) *AudienceQuery { + _q.predicates = append(_q.predicates, ps...) + return _q +} + +// Limit the number of records to be returned by this query. +func (_q *AudienceQuery) Limit(limit int) *AudienceQuery { + _q.ctx.Limit = &limit + return _q +} + +// Offset to start from. +func (_q *AudienceQuery) Offset(offset int) *AudienceQuery { + _q.ctx.Offset = &offset + return _q +} + +// Unique configures the query builder to filter duplicate records on query. +// By default, unique is set to true, and can be disabled using this method. +func (_q *AudienceQuery) Unique(unique bool) *AudienceQuery { + _q.ctx.Unique = &unique + return _q +} + +// Order specifies how the records should be ordered. +func (_q *AudienceQuery) Order(o ...audience.OrderOption) *AudienceQuery { + _q.order = append(_q.order, o...) + return _q +} + +// QueryOwner chains the current query on the "owner" edge. +func (_q *AudienceQuery) QueryOwner() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, selector), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audience.OwnerTable, audience.OwnerColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryBlockedGroups chains the current query on the "blocked_groups" edge. +func (_q *AudienceQuery) QueryBlockedGroups() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, selector), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.BlockedGroupsTable, audience.BlockedGroupsPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryEditors chains the current query on the "editors" edge. +func (_q *AudienceQuery) QueryEditors() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, selector), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.EditorsTable, audience.EditorsPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryViewers chains the current query on the "viewers" edge. +func (_q *AudienceQuery) QueryViewers() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, selector), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.ViewersTable, audience.ViewersPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *AudienceQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(audience.Table, audience.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, audience.AudienceMembersTable, audience.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryCampaigns chains the current query on the "campaigns" edge. +func (_q *AudienceQuery) 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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, selector), + sqlgraph.To(campaign.Table, campaign.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, audience.CampaignsTable, audience.CampaignsPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first Audience entity from the query. +// Returns a *NotFoundError when no Audience was found. +func (_q *AudienceQuery) First(ctx context.Context) (*Audience, 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{audience.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (_q *AudienceQuery) FirstX(ctx context.Context) *Audience { + node, err := _q.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first Audience ID from the query. +// Returns a *NotFoundError when no Audience ID was found. +func (_q *AudienceQuery) 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{audience.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (_q *AudienceQuery) FirstIDX(ctx context.Context) string { + id, err := _q.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single Audience entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one Audience entity is found. +// Returns a *NotFoundError when no Audience entities are found. +func (_q *AudienceQuery) Only(ctx context.Context) (*Audience, 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{audience.Label} + default: + return nil, &NotSingularError{audience.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (_q *AudienceQuery) OnlyX(ctx context.Context) *Audience { + node, err := _q.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only Audience ID in the query. +// Returns a *NotSingularError when more than one Audience ID is found. +// Returns a *NotFoundError when no entities are found. +func (_q *AudienceQuery) 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{audience.Label} + default: + err = &NotSingularError{audience.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (_q *AudienceQuery) 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 Audiences. +func (_q *AudienceQuery) All(ctx context.Context) ([]*Audience, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*Audience, *AudienceQuery]() + return withInterceptors[[]*Audience](ctx, _q, qr, _q.inters) +} + +// AllX is like All, but panics if an error occurs. +func (_q *AudienceQuery) AllX(ctx context.Context) []*Audience { + nodes, err := _q.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of Audience IDs. +func (_q *AudienceQuery) 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(audience.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (_q *AudienceQuery) 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 *AudienceQuery) 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[*AudienceQuery](), _q.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (_q *AudienceQuery) 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 *AudienceQuery) 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 *AudienceQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the AudienceQuery 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 *AudienceQuery) Clone() *AudienceQuery { + if _q == nil { + return nil + } + return &AudienceQuery{ + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]audience.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.Audience{}, _q.predicates...), + withOwner: _q.withOwner.Clone(), + withBlockedGroups: _q.withBlockedGroups.Clone(), + withEditors: _q.withEditors.Clone(), + withViewers: _q.withViewers.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), + withCampaigns: _q.withCampaigns.Clone(), + // clone intermediate query. + sql: _q.sql.Clone(), + path: _q.path, + modifiers: append([]func(*sql.Selector){}, _q.modifiers...), + } +} + +// WithOwner tells the query-builder to eager-load the nodes that are connected to +// the "owner" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithOwner(opts ...func(*OrganizationQuery)) *AudienceQuery { + query := (&OrganizationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOwner = query + return _q +} + +// WithBlockedGroups tells the query-builder to eager-load the nodes that are connected to +// the "blocked_groups" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithBlockedGroups(opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withBlockedGroups = query + return _q +} + +// WithEditors tells the query-builder to eager-load the nodes that are connected to +// the "editors" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithEditors(opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withEditors = query + return _q +} + +// WithViewers tells the query-builder to eager-load the nodes that are connected to +// the "viewers" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithViewers(opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withViewers = query + return _q +} + +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *AudienceQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 *AudienceQuery) WithCampaigns(opts ...func(*CampaignQuery)) *AudienceQuery { + query := (&CampaignClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withCampaigns = 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.Audience.Query(). +// GroupBy(audience.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (_q *AudienceQuery) GroupBy(field string, fields ...string) *AudienceGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &AudienceGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields + grbuild.label = audience.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.Audience.Query(). +// Select(audience.FieldCreatedAt). +// Scan(ctx, &v) +func (_q *AudienceQuery) Select(fields ...string) *AudienceSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &AudienceSelect{AudienceQuery: _q} + sbuild.label = audience.Label + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a AudienceSelect configured with the given aggregations. +func (_q *AudienceQuery) Aggregate(fns ...AggregateFunc) *AudienceSelect { + return _q.Select().Aggregate(fns...) +} + +func (_q *AudienceQuery) 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 !audience.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 audience.Policy == nil { + return errors.New("generated: uninitialized audience.Policy (forgotten import generated/runtime?)") + } + if err := audience.Policy.EvalQuery(ctx, _q); err != nil { + return err + } + return nil +} + +func (_q *AudienceQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Audience, error) { + var ( + nodes = []*Audience{} + _spec = _q.querySpec() + loadedTypes = [6]bool{ + _q.withOwner != nil, + _q.withBlockedGroups != nil, + _q.withEditors != nil, + _q.withViewers != nil, + _q.withAudienceMembers != nil, + _q.withCampaigns != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*Audience).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &Audience{config: _q.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + 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.withOwner; query != nil { + if err := _q.loadOwner(ctx, query, nodes, nil, + func(n *Audience, e *Organization) { n.Edges.Owner = e }); err != nil { + return nil, err + } + } + if query := _q.withBlockedGroups; query != nil { + if err := _q.loadBlockedGroups(ctx, query, nodes, + func(n *Audience) { n.Edges.BlockedGroups = []*Group{} }, + func(n *Audience, e *Group) { n.Edges.BlockedGroups = append(n.Edges.BlockedGroups, e) }); err != nil { + return nil, err + } + } + if query := _q.withEditors; query != nil { + if err := _q.loadEditors(ctx, query, nodes, + func(n *Audience) { n.Edges.Editors = []*Group{} }, + func(n *Audience, e *Group) { n.Edges.Editors = append(n.Edges.Editors, e) }); err != nil { + return nil, err + } + } + if query := _q.withViewers; query != nil { + if err := _q.loadViewers(ctx, query, nodes, + func(n *Audience) { n.Edges.Viewers = []*Group{} }, + func(n *Audience, e *Group) { n.Edges.Viewers = append(n.Edges.Viewers, e) }); err != nil { + return nil, err + } + } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Audience) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *Audience, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) }); err != nil { + return nil, err + } + } + if query := _q.withCampaigns; query != nil { + if err := _q.loadCampaigns(ctx, query, nodes, + func(n *Audience) { n.Edges.Campaigns = []*Campaign{} }, + func(n *Audience, e *Campaign) { n.Edges.Campaigns = append(n.Edges.Campaigns, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedBlockedGroups { + if err := _q.loadBlockedGroups(ctx, query, nodes, + func(n *Audience) { n.appendNamedBlockedGroups(name) }, + func(n *Audience, e *Group) { n.appendNamedBlockedGroups(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedEditors { + if err := _q.loadEditors(ctx, query, nodes, + func(n *Audience) { n.appendNamedEditors(name) }, + func(n *Audience, e *Group) { n.appendNamedEditors(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedViewers { + if err := _q.loadViewers(ctx, query, nodes, + func(n *Audience) { n.appendNamedViewers(name) }, + func(n *Audience, e *Group) { n.appendNamedViewers(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Audience) { n.appendNamedAudienceMembers(name) }, + func(n *Audience, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedCampaigns { + if err := _q.loadCampaigns(ctx, query, nodes, + func(n *Audience) { n.appendNamedCampaigns(name) }, + func(n *Audience, e *Campaign) { n.appendNamedCampaigns(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 *AudienceQuery) loadOwner(ctx context.Context, query *OrganizationQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *Organization)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*Audience) + for i := range nodes { + fk := nodes[i].OwnerID + 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 "owner_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceQuery) loadBlockedGroups(ctx context.Context, query *GroupQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *Group)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Audience) + nids := make(map[string]map[*Audience]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(audience.BlockedGroupsTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.BlockedGroupsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.BlockedGroupsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(audience.BlockedGroupsPrimaryKey[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[*Audience]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Group](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 "blocked_groups" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *AudienceQuery) loadEditors(ctx context.Context, query *GroupQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *Group)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Audience) + nids := make(map[string]map[*Audience]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(audience.EditorsTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.EditorsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.EditorsPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(audience.EditorsPrimaryKey[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[*Audience]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Group](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 "editors" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *AudienceQuery) loadViewers(ctx context.Context, query *GroupQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *Group)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Audience) + nids := make(map[string]map[*Audience]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(audience.ViewersTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.ViewersPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.ViewersPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(audience.ViewersPrimaryKey[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[*Audience]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Group](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 "viewers" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *AudienceQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Audience) + 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(audiencemember.FieldAudienceID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(audience.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.AudienceID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "audience_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *AudienceQuery) loadCampaigns(ctx context.Context, query *CampaignQuery, nodes []*Audience, init func(*Audience), assign func(*Audience, *Campaign)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Audience) + nids := make(map[string]map[*Audience]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(audience.CampaignsTable) + s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(audience.CampaignsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(audience.CampaignsPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(audience.CampaignsPrimaryKey[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[*Audience]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Campaign](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 "campaigns" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} + +func (_q *AudienceQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + 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 *AudienceQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(audience.Table, audience.Columns, sqlgraph.NewFieldSpec(audience.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, audience.FieldID) + for i := range fields { + if fields[i] != audience.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + if _q.withOwner != nil { + _spec.Node.AddColumnOnce(audience.FieldOwnerID) + } + } + 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 *AudienceQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) + t1 := builder.Table(audience.Table) + columns := _q.ctx.Fields + if len(columns) == 0 { + columns = audience.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() + } + 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 *AudienceQuery) Modify(modifiers ...func(s *sql.Selector)) *AudienceSelect { + _q.modifiers = append(_q.modifiers, modifiers...) + return _q.Select() +} + +// WithNamedBlockedGroups tells the query-builder to eager-load the nodes that are connected to the "blocked_groups" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithNamedBlockedGroups(name string, opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedBlockedGroups == nil { + _q.withNamedBlockedGroups = make(map[string]*GroupQuery) + } + _q.withNamedBlockedGroups[name] = query + return _q +} + +// WithNamedEditors tells the query-builder to eager-load the nodes that are connected to the "editors" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithNamedEditors(name string, opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedEditors == nil { + _q.withNamedEditors = make(map[string]*GroupQuery) + } + _q.withNamedEditors[name] = query + return _q +} + +// WithNamedViewers tells the query-builder to eager-load the nodes that are connected to the "viewers" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithNamedViewers(name string, opts ...func(*GroupQuery)) *AudienceQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedViewers == nil { + _q.withNamedViewers = make(map[string]*GroupQuery) + } + _q.withNamedViewers[name] = query + return _q +} + +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *AudienceQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + +// WithNamedCampaigns tells the query-builder to eager-load the nodes that are connected to the "campaigns" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceQuery) WithNamedCampaigns(name string, opts ...func(*CampaignQuery)) *AudienceQuery { + query := (&CampaignClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedCampaigns == nil { + _q.withNamedCampaigns = make(map[string]*CampaignQuery) + } + _q.withNamedCampaigns[name] = query + return _q +} + +// CountIDs returns the count of ids with FGA batch filtering applied +func (aq *AudienceQuery) CountIDs(ctx context.Context) (int, error) { + logx.FromContext(ctx).Debug().Str("query_type", "Audience").Str("operation", "count_ids").Msg("CountIDs: starting") + + ctx = setContextOp(ctx, aq.ctx, ent.OpQueryIDs) + + ids, err := aq.IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("query_type", "Audience").Str("operation", "count_ids").Msg("CountIDs: IDs() failed") + + return 0, err + } + + logx.FromContext(ctx).Debug().Str("query_type", "Audience").Str("operation", "count_ids").Int("count", len(ids)).Msg("CountIDs: completed") + + return len(ids), nil +} + +// AudienceGroupBy is the group-by builder for Audience entities. +type AudienceGroupBy struct { + selector + build *AudienceQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (_g *AudienceGroupBy) Aggregate(fns ...AggregateFunc) *AudienceGroupBy { + _g.fns = append(_g.fns, fns...) + return _g +} + +// Scan applies the selector query and scans the result into the given value. +func (_g *AudienceGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceQuery, *AudienceGroupBy](ctx, _g.build, _g, _g.build.inters, v) +} + +func (_g *AudienceGroupBy) sqlScan(ctx context.Context, root *AudienceQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*_g.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// AudienceSelect is the builder for selecting fields of Audience entities. +type AudienceSelect struct { + *AudienceQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (_s *AudienceSelect) Aggregate(fns ...AggregateFunc) *AudienceSelect { + _s.fns = append(_s.fns, fns...) + return _s +} + +// Scan applies the selector query and scans the result into the given value. +func (_s *AudienceSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceQuery, *AudienceSelect](ctx, _s.AudienceQuery, _s, _s.inters, v) +} + +func (_s *AudienceSelect) sqlScan(ctx context.Context, root *AudienceQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*_s.selector.flds); { + case n == 0 && len(aggregation) > 0: + selector.Select(aggregation...) + case n != 0 && len(aggregation) > 0: + selector.AppendSelect(aggregation...) + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _s.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (_s *AudienceSelect) Modify(modifiers ...func(s *sql.Selector)) *AudienceSelect { + _s.modifiers = append(_s.modifiers, modifiers...) + return _s +} diff --git a/internal/ent/generated/audience_update.go b/internal/ent/generated/audience_update.go new file mode 100644 index 0000000000..0fc307431c --- /dev/null +++ b/internal/ent/generated/audience_update.go @@ -0,0 +1,1710 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/dialect/sql/sqljson" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/campaign" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" +) + +// AudienceUpdate is the builder for updating Audience entities. +type AudienceUpdate struct { + config + hooks []Hook + mutation *AudienceMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the AudienceUpdate builder. +func (_u *AudienceUpdate) Where(ps ...predicate.Audience) *AudienceUpdate { + _u.mutation.Where(ps...) + return _u +} + +// SetUpdatedAt sets the "updated_at" field. +func (_u *AudienceUpdate) SetUpdatedAt(v time.Time) *AudienceUpdate { + _u.mutation.SetUpdatedAt(v) + return _u +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (_u *AudienceUpdate) ClearUpdatedAt() *AudienceUpdate { + _u.mutation.ClearUpdatedAt() + return _u +} + +// SetUpdatedBy sets the "updated_by" field. +func (_u *AudienceUpdate) SetUpdatedBy(v string) *AudienceUpdate { + _u.mutation.SetUpdatedBy(v) + return _u +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableUpdatedBy(v *string) *AudienceUpdate { + if v != nil { + _u.SetUpdatedBy(*v) + } + return _u +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (_u *AudienceUpdate) ClearUpdatedBy() *AudienceUpdate { + _u.mutation.ClearUpdatedBy() + return _u +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_u *AudienceUpdate) SetUpdatedByImpersonator(v string) *AudienceUpdate { + _u.mutation.SetUpdatedByImpersonator(v) + return _u +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableUpdatedByImpersonator(v *string) *AudienceUpdate { + if v != nil { + _u.SetUpdatedByImpersonator(*v) + } + return _u +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (_u *AudienceUpdate) ClearUpdatedByImpersonator() *AudienceUpdate { + _u.mutation.ClearUpdatedByImpersonator() + return _u +} + +// SetDeletedAt sets the "deleted_at" field. +func (_u *AudienceUpdate) SetDeletedAt(v time.Time) *AudienceUpdate { + _u.mutation.SetDeletedAt(v) + return _u +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableDeletedAt(v *time.Time) *AudienceUpdate { + if v != nil { + _u.SetDeletedAt(*v) + } + return _u +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (_u *AudienceUpdate) ClearDeletedAt() *AudienceUpdate { + _u.mutation.ClearDeletedAt() + return _u +} + +// SetDeletedBy sets the "deleted_by" field. +func (_u *AudienceUpdate) SetDeletedBy(v string) *AudienceUpdate { + _u.mutation.SetDeletedBy(v) + return _u +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableDeletedBy(v *string) *AudienceUpdate { + if v != nil { + _u.SetDeletedBy(*v) + } + return _u +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (_u *AudienceUpdate) ClearDeletedBy() *AudienceUpdate { + _u.mutation.ClearDeletedBy() + return _u +} + +// SetTags sets the "tags" field. +func (_u *AudienceUpdate) SetTags(v []string) *AudienceUpdate { + _u.mutation.SetTags(v) + return _u +} + +// AppendTags appends value to the "tags" field. +func (_u *AudienceUpdate) AppendTags(v []string) *AudienceUpdate { + _u.mutation.AppendTags(v) + return _u +} + +// ClearTags clears the value of the "tags" field. +func (_u *AudienceUpdate) ClearTags() *AudienceUpdate { + _u.mutation.ClearTags() + return _u +} + +// SetOwnerID sets the "owner_id" field. +func (_u *AudienceUpdate) SetOwnerID(v string) *AudienceUpdate { + _u.mutation.SetOwnerID(v) + return _u +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableOwnerID(v *string) *AudienceUpdate { + if v != nil { + _u.SetOwnerID(*v) + } + return _u +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (_u *AudienceUpdate) ClearOwnerID() *AudienceUpdate { + _u.mutation.ClearOwnerID() + return _u +} + +// SetName sets the "name" field. +func (_u *AudienceUpdate) SetName(v string) *AudienceUpdate { + _u.mutation.SetName(v) + return _u +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableName(v *string) *AudienceUpdate { + if v != nil { + _u.SetName(*v) + } + return _u +} + +// SetDescription sets the "description" field. +func (_u *AudienceUpdate) SetDescription(v string) *AudienceUpdate { + _u.mutation.SetDescription(v) + return _u +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableDescription(v *string) *AudienceUpdate { + if v != nil { + _u.SetDescription(*v) + } + return _u +} + +// ClearDescription clears the value of the "description" field. +func (_u *AudienceUpdate) ClearDescription() *AudienceUpdate { + _u.mutation.ClearDescription() + return _u +} + +// SetAudienceType sets the "audience_type" field. +func (_u *AudienceUpdate) SetAudienceType(v enums.AudienceType) *AudienceUpdate { + _u.mutation.SetAudienceType(v) + return _u +} + +// SetNillableAudienceType sets the "audience_type" field if the given value is not nil. +func (_u *AudienceUpdate) SetNillableAudienceType(v *enums.AudienceType) *AudienceUpdate { + if v != nil { + _u.SetAudienceType(*v) + } + return _u +} + +// SetFilters sets the "filters" field. +func (_u *AudienceUpdate) SetFilters(v map[string]interface{}) *AudienceUpdate { + _u.mutation.SetFilters(v) + return _u +} + +// ClearFilters clears the value of the "filters" field. +func (_u *AudienceUpdate) ClearFilters() *AudienceUpdate { + _u.mutation.ClearFilters() + return _u +} + +// SetMetadata sets the "metadata" field. +func (_u *AudienceUpdate) SetMetadata(v map[string]interface{}) *AudienceUpdate { + _u.mutation.SetMetadata(v) + return _u +} + +// ClearMetadata clears the value of the "metadata" field. +func (_u *AudienceUpdate) ClearMetadata() *AudienceUpdate { + _u.mutation.ClearMetadata() + return _u +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_u *AudienceUpdate) SetOwner(v *Organization) *AudienceUpdate { + return _u.SetOwnerID(v.ID) +} + +// AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by IDs. +func (_u *AudienceUpdate) AddBlockedGroupIDs(ids ...string) *AudienceUpdate { + _u.mutation.AddBlockedGroupIDs(ids...) + return _u +} + +// AddBlockedGroups adds the "blocked_groups" edges to the Group entity. +func (_u *AudienceUpdate) AddBlockedGroups(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddBlockedGroupIDs(ids...) +} + +// AddEditorIDs adds the "editors" edge to the Group entity by IDs. +func (_u *AudienceUpdate) AddEditorIDs(ids ...string) *AudienceUpdate { + _u.mutation.AddEditorIDs(ids...) + return _u +} + +// AddEditors adds the "editors" edges to the Group entity. +func (_u *AudienceUpdate) AddEditors(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddEditorIDs(ids...) +} + +// AddViewerIDs adds the "viewers" edge to the Group entity by IDs. +func (_u *AudienceUpdate) AddViewerIDs(ids ...string) *AudienceUpdate { + _u.mutation.AddViewerIDs(ids...) + return _u +} + +// AddViewers adds the "viewers" edges to the Group entity. +func (_u *AudienceUpdate) AddViewers(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddViewerIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *AudienceUpdate) AddAudienceMemberIDs(ids ...string) *AudienceUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *AudienceUpdate) AddAudienceMembers(v ...*AudienceMember) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_u *AudienceUpdate) AddCampaignIDs(ids ...string) *AudienceUpdate { + _u.mutation.AddCampaignIDs(ids...) + return _u +} + +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_u *AudienceUpdate) AddCampaigns(v ...*Campaign) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddCampaignIDs(ids...) +} + +// Mutation returns the AudienceMutation object of the builder. +func (_u *AudienceUpdate) Mutation() *AudienceMutation { + return _u.mutation +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (_u *AudienceUpdate) ClearOwner() *AudienceUpdate { + _u.mutation.ClearOwner() + return _u +} + +// ClearBlockedGroups clears all "blocked_groups" edges to the Group entity. +func (_u *AudienceUpdate) ClearBlockedGroups() *AudienceUpdate { + _u.mutation.ClearBlockedGroups() + return _u +} + +// RemoveBlockedGroupIDs removes the "blocked_groups" edge to Group entities by IDs. +func (_u *AudienceUpdate) RemoveBlockedGroupIDs(ids ...string) *AudienceUpdate { + _u.mutation.RemoveBlockedGroupIDs(ids...) + return _u +} + +// RemoveBlockedGroups removes "blocked_groups" edges to Group entities. +func (_u *AudienceUpdate) RemoveBlockedGroups(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveBlockedGroupIDs(ids...) +} + +// ClearEditors clears all "editors" edges to the Group entity. +func (_u *AudienceUpdate) ClearEditors() *AudienceUpdate { + _u.mutation.ClearEditors() + return _u +} + +// RemoveEditorIDs removes the "editors" edge to Group entities by IDs. +func (_u *AudienceUpdate) RemoveEditorIDs(ids ...string) *AudienceUpdate { + _u.mutation.RemoveEditorIDs(ids...) + return _u +} + +// RemoveEditors removes "editors" edges to Group entities. +func (_u *AudienceUpdate) RemoveEditors(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEditorIDs(ids...) +} + +// ClearViewers clears all "viewers" edges to the Group entity. +func (_u *AudienceUpdate) ClearViewers() *AudienceUpdate { + _u.mutation.ClearViewers() + return _u +} + +// RemoveViewerIDs removes the "viewers" edge to Group entities by IDs. +func (_u *AudienceUpdate) RemoveViewerIDs(ids ...string) *AudienceUpdate { + _u.mutation.RemoveViewerIDs(ids...) + return _u +} + +// RemoveViewers removes "viewers" edges to Group entities. +func (_u *AudienceUpdate) RemoveViewers(v ...*Group) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveViewerIDs(ids...) +} + +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *AudienceUpdate) ClearAudienceMembers() *AudienceUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *AudienceUpdate) RemoveAudienceMemberIDs(ids ...string) *AudienceUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *AudienceUpdate) RemoveAudienceMembers(v ...*AudienceMember) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + +// ClearCampaigns clears all "campaigns" edges to the Campaign entity. +func (_u *AudienceUpdate) ClearCampaigns() *AudienceUpdate { + _u.mutation.ClearCampaigns() + return _u +} + +// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. +func (_u *AudienceUpdate) RemoveCampaignIDs(ids ...string) *AudienceUpdate { + _u.mutation.RemoveCampaignIDs(ids...) + return _u +} + +// RemoveCampaigns removes "campaigns" edges to Campaign entities. +func (_u *AudienceUpdate) RemoveCampaigns(v ...*Campaign) *AudienceUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCampaignIDs(ids...) +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (_u *AudienceUpdate) 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 *AudienceUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (_u *AudienceUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceUpdate) 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 *AudienceUpdate) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if audience.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audience.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audience.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_u *AudienceUpdate) check() error { + if v, ok := _u.mutation.OwnerID(); ok { + if err := audience.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "Audience.owner_id": %w`, err)} + } + } + if v, ok := _u.mutation.Name(); ok { + if err := audience.NameValidator(v); err != nil { + return &ValidationError{Name: "name", err: fmt.Errorf(`generated: validator failed for field "Audience.name": %w`, err)} + } + } + if v, ok := _u.mutation.AudienceType(); ok { + if err := audience.AudienceTypeValidator(v); err != nil { + return &ValidationError{Name: "audience_type", err: fmt.Errorf(`generated: validator failed for field "Audience.audience_type": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *AudienceUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AudienceUpdate { + _u.modifiers = append(_u.modifiers, modifiers...) + return _u +} + +func (_u *AudienceUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(audience.Table, audience.Columns, sqlgraph.NewFieldSpec(audience.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(audience.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(audience.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audience.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audience.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(audience.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audience.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audience.FieldUpdatedByImpersonator, field.TypeString, value) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audience.FieldUpdatedByImpersonator, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(audience.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audience.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(audience.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audience.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(audience.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, audience.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audience.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.Name(); ok { + _spec.SetField(audience.FieldName, field.TypeString, value) + } + if value, ok := _u.mutation.Description(); ok { + _spec.SetField(audience.FieldDescription, field.TypeString, value) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(audience.FieldDescription, field.TypeString) + } + if value, ok := _u.mutation.AudienceType(); ok { + _spec.SetField(audience.FieldAudienceType, field.TypeEnum, value) + } + if value, ok := _u.mutation.Filters(); ok { + _spec.SetField(audience.FieldFilters, field.TypeJSON, value) + } + if _u.mutation.FiltersCleared() { + _spec.ClearField(audience.FieldFilters, field.TypeJSON) + } + if value, ok := _u.mutation.Metadata(); ok { + _spec.SetField(audience.FieldMetadata, field.TypeJSON, value) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audience.FieldMetadata, field.TypeJSON) + } + if _u.mutation.OwnerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + _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: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedBlockedGroupsIDs(); len(nodes) > 0 && !_u.mutation.BlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.BlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEditorsIDs(); len(nodes) > 0 && !_u.mutation.EditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedViewersIDs(); len(nodes) > 0 && !_u.mutation.ViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignsIDs(); len(nodes) > 0 && !_u.mutation.CampaignsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.AddModifiers(_u.modifiers...) + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audience.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + _u.mutation.done = true + return _node, nil +} + +// AudienceUpdateOne is the builder for updating a single Audience entity. +type AudienceUpdateOne struct { + config + fields []string + hooks []Hook + mutation *AudienceMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (_u *AudienceUpdateOne) SetUpdatedAt(v time.Time) *AudienceUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (_u *AudienceUpdateOne) ClearUpdatedAt() *AudienceUpdateOne { + _u.mutation.ClearUpdatedAt() + return _u +} + +// SetUpdatedBy sets the "updated_by" field. +func (_u *AudienceUpdateOne) SetUpdatedBy(v string) *AudienceUpdateOne { + _u.mutation.SetUpdatedBy(v) + return _u +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableUpdatedBy(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetUpdatedBy(*v) + } + return _u +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (_u *AudienceUpdateOne) ClearUpdatedBy() *AudienceUpdateOne { + _u.mutation.ClearUpdatedBy() + return _u +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_u *AudienceUpdateOne) SetUpdatedByImpersonator(v string) *AudienceUpdateOne { + _u.mutation.SetUpdatedByImpersonator(v) + return _u +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableUpdatedByImpersonator(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetUpdatedByImpersonator(*v) + } + return _u +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (_u *AudienceUpdateOne) ClearUpdatedByImpersonator() *AudienceUpdateOne { + _u.mutation.ClearUpdatedByImpersonator() + return _u +} + +// SetDeletedAt sets the "deleted_at" field. +func (_u *AudienceUpdateOne) SetDeletedAt(v time.Time) *AudienceUpdateOne { + _u.mutation.SetDeletedAt(v) + return _u +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableDeletedAt(v *time.Time) *AudienceUpdateOne { + if v != nil { + _u.SetDeletedAt(*v) + } + return _u +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (_u *AudienceUpdateOne) ClearDeletedAt() *AudienceUpdateOne { + _u.mutation.ClearDeletedAt() + return _u +} + +// SetDeletedBy sets the "deleted_by" field. +func (_u *AudienceUpdateOne) SetDeletedBy(v string) *AudienceUpdateOne { + _u.mutation.SetDeletedBy(v) + return _u +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableDeletedBy(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetDeletedBy(*v) + } + return _u +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (_u *AudienceUpdateOne) ClearDeletedBy() *AudienceUpdateOne { + _u.mutation.ClearDeletedBy() + return _u +} + +// SetTags sets the "tags" field. +func (_u *AudienceUpdateOne) SetTags(v []string) *AudienceUpdateOne { + _u.mutation.SetTags(v) + return _u +} + +// AppendTags appends value to the "tags" field. +func (_u *AudienceUpdateOne) AppendTags(v []string) *AudienceUpdateOne { + _u.mutation.AppendTags(v) + return _u +} + +// ClearTags clears the value of the "tags" field. +func (_u *AudienceUpdateOne) ClearTags() *AudienceUpdateOne { + _u.mutation.ClearTags() + return _u +} + +// SetOwnerID sets the "owner_id" field. +func (_u *AudienceUpdateOne) SetOwnerID(v string) *AudienceUpdateOne { + _u.mutation.SetOwnerID(v) + return _u +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableOwnerID(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetOwnerID(*v) + } + return _u +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (_u *AudienceUpdateOne) ClearOwnerID() *AudienceUpdateOne { + _u.mutation.ClearOwnerID() + return _u +} + +// SetName sets the "name" field. +func (_u *AudienceUpdateOne) SetName(v string) *AudienceUpdateOne { + _u.mutation.SetName(v) + return _u +} + +// SetNillableName sets the "name" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableName(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetName(*v) + } + return _u +} + +// SetDescription sets the "description" field. +func (_u *AudienceUpdateOne) SetDescription(v string) *AudienceUpdateOne { + _u.mutation.SetDescription(v) + return _u +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableDescription(v *string) *AudienceUpdateOne { + if v != nil { + _u.SetDescription(*v) + } + return _u +} + +// ClearDescription clears the value of the "description" field. +func (_u *AudienceUpdateOne) ClearDescription() *AudienceUpdateOne { + _u.mutation.ClearDescription() + return _u +} + +// SetAudienceType sets the "audience_type" field. +func (_u *AudienceUpdateOne) SetAudienceType(v enums.AudienceType) *AudienceUpdateOne { + _u.mutation.SetAudienceType(v) + return _u +} + +// SetNillableAudienceType sets the "audience_type" field if the given value is not nil. +func (_u *AudienceUpdateOne) SetNillableAudienceType(v *enums.AudienceType) *AudienceUpdateOne { + if v != nil { + _u.SetAudienceType(*v) + } + return _u +} + +// SetFilters sets the "filters" field. +func (_u *AudienceUpdateOne) SetFilters(v map[string]interface{}) *AudienceUpdateOne { + _u.mutation.SetFilters(v) + return _u +} + +// ClearFilters clears the value of the "filters" field. +func (_u *AudienceUpdateOne) ClearFilters() *AudienceUpdateOne { + _u.mutation.ClearFilters() + return _u +} + +// SetMetadata sets the "metadata" field. +func (_u *AudienceUpdateOne) SetMetadata(v map[string]interface{}) *AudienceUpdateOne { + _u.mutation.SetMetadata(v) + return _u +} + +// ClearMetadata clears the value of the "metadata" field. +func (_u *AudienceUpdateOne) ClearMetadata() *AudienceUpdateOne { + _u.mutation.ClearMetadata() + return _u +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_u *AudienceUpdateOne) SetOwner(v *Organization) *AudienceUpdateOne { + return _u.SetOwnerID(v.ID) +} + +// AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by IDs. +func (_u *AudienceUpdateOne) AddBlockedGroupIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.AddBlockedGroupIDs(ids...) + return _u +} + +// AddBlockedGroups adds the "blocked_groups" edges to the Group entity. +func (_u *AudienceUpdateOne) AddBlockedGroups(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddBlockedGroupIDs(ids...) +} + +// AddEditorIDs adds the "editors" edge to the Group entity by IDs. +func (_u *AudienceUpdateOne) AddEditorIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.AddEditorIDs(ids...) + return _u +} + +// AddEditors adds the "editors" edges to the Group entity. +func (_u *AudienceUpdateOne) AddEditors(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddEditorIDs(ids...) +} + +// AddViewerIDs adds the "viewers" edge to the Group entity by IDs. +func (_u *AudienceUpdateOne) AddViewerIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.AddViewerIDs(ids...) + return _u +} + +// AddViewers adds the "viewers" edges to the Group entity. +func (_u *AudienceUpdateOne) AddViewers(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddViewerIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *AudienceUpdateOne) AddAudienceMemberIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *AudienceUpdateOne) AddAudienceMembers(v ...*AudienceMember) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by IDs. +func (_u *AudienceUpdateOne) AddCampaignIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.AddCampaignIDs(ids...) + return _u +} + +// AddCampaigns adds the "campaigns" edges to the Campaign entity. +func (_u *AudienceUpdateOne) AddCampaigns(v ...*Campaign) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddCampaignIDs(ids...) +} + +// Mutation returns the AudienceMutation object of the builder. +func (_u *AudienceUpdateOne) Mutation() *AudienceMutation { + return _u.mutation +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (_u *AudienceUpdateOne) ClearOwner() *AudienceUpdateOne { + _u.mutation.ClearOwner() + return _u +} + +// ClearBlockedGroups clears all "blocked_groups" edges to the Group entity. +func (_u *AudienceUpdateOne) ClearBlockedGroups() *AudienceUpdateOne { + _u.mutation.ClearBlockedGroups() + return _u +} + +// RemoveBlockedGroupIDs removes the "blocked_groups" edge to Group entities by IDs. +func (_u *AudienceUpdateOne) RemoveBlockedGroupIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.RemoveBlockedGroupIDs(ids...) + return _u +} + +// RemoveBlockedGroups removes "blocked_groups" edges to Group entities. +func (_u *AudienceUpdateOne) RemoveBlockedGroups(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveBlockedGroupIDs(ids...) +} + +// ClearEditors clears all "editors" edges to the Group entity. +func (_u *AudienceUpdateOne) ClearEditors() *AudienceUpdateOne { + _u.mutation.ClearEditors() + return _u +} + +// RemoveEditorIDs removes the "editors" edge to Group entities by IDs. +func (_u *AudienceUpdateOne) RemoveEditorIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.RemoveEditorIDs(ids...) + return _u +} + +// RemoveEditors removes "editors" edges to Group entities. +func (_u *AudienceUpdateOne) RemoveEditors(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveEditorIDs(ids...) +} + +// ClearViewers clears all "viewers" edges to the Group entity. +func (_u *AudienceUpdateOne) ClearViewers() *AudienceUpdateOne { + _u.mutation.ClearViewers() + return _u +} + +// RemoveViewerIDs removes the "viewers" edge to Group entities by IDs. +func (_u *AudienceUpdateOne) RemoveViewerIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.RemoveViewerIDs(ids...) + return _u +} + +// RemoveViewers removes "viewers" edges to Group entities. +func (_u *AudienceUpdateOne) RemoveViewers(v ...*Group) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveViewerIDs(ids...) +} + +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *AudienceUpdateOne) ClearAudienceMembers() *AudienceUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *AudienceUpdateOne) RemoveAudienceMemberIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *AudienceUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + +// ClearCampaigns clears all "campaigns" edges to the Campaign entity. +func (_u *AudienceUpdateOne) ClearCampaigns() *AudienceUpdateOne { + _u.mutation.ClearCampaigns() + return _u +} + +// RemoveCampaignIDs removes the "campaigns" edge to Campaign entities by IDs. +func (_u *AudienceUpdateOne) RemoveCampaignIDs(ids ...string) *AudienceUpdateOne { + _u.mutation.RemoveCampaignIDs(ids...) + return _u +} + +// RemoveCampaigns removes "campaigns" edges to Campaign entities. +func (_u *AudienceUpdateOne) RemoveCampaigns(v ...*Campaign) *AudienceUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveCampaignIDs(ids...) +} + +// Where appends a list predicates to the AudienceUpdate builder. +func (_u *AudienceUpdateOne) Where(ps ...predicate.Audience) *AudienceUpdateOne { + _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 *AudienceUpdateOne) Select(field string, fields ...string) *AudienceUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u +} + +// Save executes the query and returns the updated Audience entity. +func (_u *AudienceUpdateOne) Save(ctx context.Context) (*Audience, error) { + if err := _u.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceUpdateOne) SaveX(ctx context.Context) *Audience { + node, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (_u *AudienceUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceUpdateOne) 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 *AudienceUpdateOne) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if audience.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audience.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audience.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_u *AudienceUpdateOne) check() error { + if v, ok := _u.mutation.OwnerID(); ok { + if err := audience.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "Audience.owner_id": %w`, err)} + } + } + if v, ok := _u.mutation.Name(); ok { + if err := audience.NameValidator(v); err != nil { + return &ValidationError{Name: "name", err: fmt.Errorf(`generated: validator failed for field "Audience.name": %w`, err)} + } + } + if v, ok := _u.mutation.AudienceType(); ok { + if err := audience.AudienceTypeValidator(v); err != nil { + return &ValidationError{Name: "audience_type", err: fmt.Errorf(`generated: validator failed for field "Audience.audience_type": %w`, err)} + } + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *AudienceUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AudienceUpdateOne { + _u.modifiers = append(_u.modifiers, modifiers...) + return _u +} + +func (_u *AudienceUpdateOne) sqlSave(ctx context.Context) (_node *Audience, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(audience.Table, audience.Columns, sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString)) + id, ok := _u.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "Audience.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, audience.FieldID) + for _, f := range fields { + if !audience.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != audience.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(audience.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(audience.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audience.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audience.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(audience.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audience.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audience.FieldUpdatedByImpersonator, field.TypeString, value) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audience.FieldUpdatedByImpersonator, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(audience.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audience.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(audience.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audience.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(audience.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, audience.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audience.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.Name(); ok { + _spec.SetField(audience.FieldName, field.TypeString, value) + } + if value, ok := _u.mutation.Description(); ok { + _spec.SetField(audience.FieldDescription, field.TypeString, value) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(audience.FieldDescription, field.TypeString) + } + if value, ok := _u.mutation.AudienceType(); ok { + _spec.SetField(audience.FieldAudienceType, field.TypeEnum, value) + } + if value, ok := _u.mutation.Filters(); ok { + _spec.SetField(audience.FieldFilters, field.TypeJSON, value) + } + if _u.mutation.FiltersCleared() { + _spec.ClearField(audience.FieldFilters, field.TypeJSON) + } + if value, ok := _u.mutation.Metadata(); ok { + _spec.SetField(audience.FieldMetadata, field.TypeJSON, value) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audience.FieldMetadata, field.TypeJSON) + } + if _u.mutation.OwnerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + _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: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedBlockedGroupsIDs(); len(nodes) > 0 && !_u.mutation.BlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.BlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.EditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedEditorsIDs(); len(nodes) > 0 && !_u.mutation.EditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.EditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedViewersIDs(); len(nodes) > 0 && !_u.mutation.ViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedCampaignsIDs(); len(nodes) > 0 && !_u.mutation.CampaignsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + 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.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(campaign.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.AddModifiers(_u.modifiers...) + _node = &Audience{config: _u.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audience.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + _u.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/audiencemember.go b/internal/ent/generated/audiencemember.go new file mode 100644 index 0000000000..c1f099e518 --- /dev/null +++ b/internal/ent/generated/audiencemember.go @@ -0,0 +1,457 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "fmt" + "strings" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/contact" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/identityholder" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" + "github.com/theopenlane/core/v2/internal/ent/generated/user" +) + +// AudienceMember is the model entity for the AudienceMember schema. +type AudienceMember struct { + config `json:"-"` + // ID of the ent. + ID string `json:"id,omitempty"` + // CreatedAt holds the value of the "created_at" field. + CreatedAt time.Time `json:"created_at,omitempty"` + // UpdatedAt holds the value of the "updated_at" field. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // CreatedBy holds the value of the "created_by" field. + CreatedBy string `json:"created_by,omitempty"` + // UpdatedBy holds the value of the "updated_by" field. + UpdatedBy string `json:"updated_by,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updated_by_impersonator,omitempty"` + // DeletedAt holds the value of the "deleted_at" field. + DeletedAt time.Time `json:"deleted_at,omitempty"` + // DeletedBy holds the value of the "deleted_by" field. + DeletedBy string `json:"deleted_by,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"display_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID string `json:"owner_id,omitempty"` + // the audience this member belongs to + AudienceID string `json:"audience_id,omitempty"` + // the contact associated with this audience member + ContactID string `json:"contact_id,omitempty"` + // the user associated with this audience member + UserID string `json:"user_id,omitempty"` + // the group associated with this audience member + GroupID string `json:"group_id,omitempty"` + // the identity holder associated with this audience member + IdentityHolderID string `json:"identity_holder_id,omitempty"` + // the subscriber associated with this audience member + SubscriberID string `json:"subscriber_id,omitempty"` + // the email address for this audience member + Email string `json:"email,omitempty"` + // the name of this audience member, if known + FullName string `json:"full_name,omitempty"` + // additional metadata about the audience member + Metadata map[string]interface{} `json:"metadata,omitempty"` + // Edges holds the relations/edges for other nodes in the graph. + // The values are being populated by the AudienceMemberQuery when eager-loading is set. + Edges AudienceMemberEdges `json:"edges"` + selectValues sql.SelectValues +} + +// AudienceMemberEdges holds the relations/edges for other nodes in the graph. +type AudienceMemberEdges struct { + // Owner holds the value of the owner edge. + Owner *Organization `json:"owner,omitempty"` + // Audience holds the value of the audience edge. + Audience *Audience `json:"audience,omitempty"` + // Contact holds the value of the contact edge. + Contact *Contact `json:"contact,omitempty"` + // User holds the value of the user edge. + User *User `json:"user,omitempty"` + // Group holds the value of the group edge. + Group *Group `json:"group,omitempty"` + // IdentityHolder holds the value of the identity_holder edge. + IdentityHolder *IdentityHolder `json:"identity_holder,omitempty"` + // Subscriber holds the value of the subscriber edge. + Subscriber *Subscriber `json:"subscriber,omitempty"` + // loadedTypes holds the information for reporting if a + // type was loaded (or requested) in eager-loading or not. + loadedTypes [7]bool + // totalCount holds the count of the edges above. + totalCount [7]map[string]int +} + +// OwnerOrErr returns the Owner value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) OwnerOrErr() (*Organization, error) { + if e.Owner != nil { + return e.Owner, nil + } else if e.loadedTypes[0] { + return nil, &NotFoundError{label: organization.Label} + } + return nil, &NotLoadedError{edge: "owner"} +} + +// AudienceOrErr returns the Audience value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) AudienceOrErr() (*Audience, error) { + if e.Audience != nil { + return e.Audience, nil + } else if e.loadedTypes[1] { + return nil, &NotFoundError{label: audience.Label} + } + return nil, &NotLoadedError{edge: "audience"} +} + +// ContactOrErr returns the Contact value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) ContactOrErr() (*Contact, error) { + if e.Contact != nil { + return e.Contact, nil + } else if e.loadedTypes[2] { + return nil, &NotFoundError{label: contact.Label} + } + return nil, &NotLoadedError{edge: "contact"} +} + +// UserOrErr returns the User value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) UserOrErr() (*User, error) { + if e.User != nil { + return e.User, nil + } else if e.loadedTypes[3] { + return nil, &NotFoundError{label: user.Label} + } + return nil, &NotLoadedError{edge: "user"} +} + +// GroupOrErr returns the Group value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) GroupOrErr() (*Group, error) { + if e.Group != nil { + return e.Group, nil + } else if e.loadedTypes[4] { + return nil, &NotFoundError{label: group.Label} + } + return nil, &NotLoadedError{edge: "group"} +} + +// IdentityHolderOrErr returns the IdentityHolder value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) IdentityHolderOrErr() (*IdentityHolder, error) { + if e.IdentityHolder != nil { + return e.IdentityHolder, nil + } else if e.loadedTypes[5] { + return nil, &NotFoundError{label: identityholder.Label} + } + return nil, &NotLoadedError{edge: "identity_holder"} +} + +// SubscriberOrErr returns the Subscriber value or an error if the edge +// was not loaded in eager-loading, or loaded but was not found. +func (e AudienceMemberEdges) SubscriberOrErr() (*Subscriber, error) { + if e.Subscriber != nil { + return e.Subscriber, nil + } else if e.loadedTypes[6] { + return nil, &NotFoundError{label: subscriber.Label} + } + return nil, &NotLoadedError{edge: "subscriber"} +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*AudienceMember) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case audiencemember.FieldTags, audiencemember.FieldMetadata: + values[i] = new([]byte) + case audiencemember.FieldID, audiencemember.FieldCreatedBy, audiencemember.FieldUpdatedBy, audiencemember.FieldUpdatedByImpersonator, audiencemember.FieldDeletedBy, audiencemember.FieldDisplayID, audiencemember.FieldOwnerID, audiencemember.FieldAudienceID, audiencemember.FieldContactID, audiencemember.FieldUserID, audiencemember.FieldGroupID, audiencemember.FieldIdentityHolderID, audiencemember.FieldSubscriberID, audiencemember.FieldEmail, audiencemember.FieldFullName: + values[i] = new(sql.NullString) + case audiencemember.FieldCreatedAt, audiencemember.FieldUpdatedAt, audiencemember.FieldDeletedAt: + 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 AudienceMember fields. +func (_m *AudienceMember) 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 audiencemember.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 audiencemember.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 audiencemember.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 audiencemember.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 audiencemember.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 audiencemember.FieldUpdatedByImpersonator: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field updated_by_impersonator", values[i]) + } else if value.Valid { + _m.UpdatedByImpersonator = new(string) + *_m.UpdatedByImpersonator = value.String + } + case audiencemember.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 audiencemember.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 audiencemember.FieldDisplayID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field display_id", values[i]) + } else if value.Valid { + _m.DisplayID = value.String + } + case audiencemember.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 audiencemember.FieldOwnerID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field owner_id", values[i]) + } else if value.Valid { + _m.OwnerID = value.String + } + case audiencemember.FieldAudienceID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field audience_id", values[i]) + } else if value.Valid { + _m.AudienceID = value.String + } + case audiencemember.FieldContactID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field contact_id", values[i]) + } else if value.Valid { + _m.ContactID = value.String + } + case audiencemember.FieldUserID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field user_id", values[i]) + } else if value.Valid { + _m.UserID = value.String + } + case audiencemember.FieldGroupID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field group_id", values[i]) + } else if value.Valid { + _m.GroupID = value.String + } + case audiencemember.FieldIdentityHolderID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field identity_holder_id", values[i]) + } else if value.Valid { + _m.IdentityHolderID = value.String + } + case audiencemember.FieldSubscriberID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subscriber_id", values[i]) + } else if value.Valid { + _m.SubscriberID = value.String + } + case audiencemember.FieldEmail: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field email", values[i]) + } else if value.Valid { + _m.Email = value.String + } + case audiencemember.FieldFullName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field full_name", values[i]) + } else if value.Valid { + _m.FullName = value.String + } + case audiencemember.FieldMetadata: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field metadata", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { + return fmt.Errorf("unmarshal field metadata: %w", err) + } + } + default: + _m.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the AudienceMember. +// This includes values selected through modifiers, order, etc. +func (_m *AudienceMember) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) +} + +// QueryOwner queries the "owner" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryOwner() *OrganizationQuery { + return NewAudienceMemberClient(_m.config).QueryOwner(_m) +} + +// QueryAudience queries the "audience" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryAudience() *AudienceQuery { + return NewAudienceMemberClient(_m.config).QueryAudience(_m) +} + +// QueryContact queries the "contact" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryContact() *ContactQuery { + return NewAudienceMemberClient(_m.config).QueryContact(_m) +} + +// QueryUser queries the "user" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryUser() *UserQuery { + return NewAudienceMemberClient(_m.config).QueryUser(_m) +} + +// QueryGroup queries the "group" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryGroup() *GroupQuery { + return NewAudienceMemberClient(_m.config).QueryGroup(_m) +} + +// QueryIdentityHolder queries the "identity_holder" edge of the AudienceMember entity. +func (_m *AudienceMember) QueryIdentityHolder() *IdentityHolderQuery { + return NewAudienceMemberClient(_m.config).QueryIdentityHolder(_m) +} + +// QuerySubscriber queries the "subscriber" edge of the AudienceMember entity. +func (_m *AudienceMember) QuerySubscriber() *SubscriberQuery { + return NewAudienceMemberClient(_m.config).QuerySubscriber(_m) +} + +// Update returns a builder for updating this AudienceMember. +// Note that you need to call AudienceMember.Unwrap() before calling this method if this AudienceMember +// was returned from a transaction, and the transaction was committed or rolled back. +func (_m *AudienceMember) Update() *AudienceMemberUpdateOne { + return NewAudienceMemberClient(_m.config).UpdateOne(_m) +} + +// Unwrap unwraps the AudienceMember 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 *AudienceMember) Unwrap() *AudienceMember { + _tx, ok := _m.config.driver.(*txDriver) + if !ok { + panic("generated: AudienceMember is not a transactional entity") + } + _m.config.driver = _tx.drv + return _m +} + +// String implements the fmt.Stringer. +func (_m *AudienceMember) String() string { + var builder strings.Builder + builder.WriteString("AudienceMember(") + 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(", ") + if v := _m.UpdatedByImpersonator; v != nil { + builder.WriteString("updated_by_impersonator=") + builder.WriteString(*v) + } + 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("display_id=") + builder.WriteString(_m.DisplayID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", _m.Tags)) + builder.WriteString(", ") + builder.WriteString("owner_id=") + builder.WriteString(_m.OwnerID) + builder.WriteString(", ") + builder.WriteString("audience_id=") + builder.WriteString(_m.AudienceID) + builder.WriteString(", ") + builder.WriteString("contact_id=") + builder.WriteString(_m.ContactID) + builder.WriteString(", ") + builder.WriteString("user_id=") + builder.WriteString(_m.UserID) + builder.WriteString(", ") + builder.WriteString("group_id=") + builder.WriteString(_m.GroupID) + builder.WriteString(", ") + builder.WriteString("identity_holder_id=") + builder.WriteString(_m.IdentityHolderID) + builder.WriteString(", ") + builder.WriteString("subscriber_id=") + builder.WriteString(_m.SubscriberID) + builder.WriteString(", ") + builder.WriteString("email=") + builder.WriteString(_m.Email) + builder.WriteString(", ") + builder.WriteString("full_name=") + builder.WriteString(_m.FullName) + builder.WriteString(", ") + builder.WriteString("metadata=") + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) + builder.WriteByte(')') + return builder.String() +} + +// AudienceMembers is a parsable slice of AudienceMember. +type AudienceMembers []*AudienceMember diff --git a/internal/ent/generated/audiencemember/audiencemember.go b/internal/ent/generated/audiencemember/audiencemember.go new file mode 100644 index 0000000000..a851e5f5ec --- /dev/null +++ b/internal/ent/generated/audiencemember/audiencemember.go @@ -0,0 +1,375 @@ +// Code generated by ent, DO NOT EDIT. + +package audiencemember + +import ( + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" +) + +const ( + // Label holds the string label denoting the audiencemember type in the database. + Label = "audience_member" + // FieldID holds the string denoting the id field in the database. + FieldID = "id" + // FieldCreatedAt holds the string denoting the created_at field in the database. + FieldCreatedAt = "created_at" + // FieldUpdatedAt holds the string denoting the updated_at field in the database. + FieldUpdatedAt = "updated_at" + // FieldCreatedBy holds the string denoting the created_by field in the database. + FieldCreatedBy = "created_by" + // FieldUpdatedBy holds the string denoting the updated_by field in the database. + FieldUpdatedBy = "updated_by" + // FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database. + FieldUpdatedByImpersonator = "updated_by_impersonator" + // FieldDeletedAt holds the string denoting the deleted_at field in the database. + FieldDeletedAt = "deleted_at" + // FieldDeletedBy holds the string denoting the deleted_by field in the database. + FieldDeletedBy = "deleted_by" + // FieldDisplayID holds the string denoting the display_id field in the database. + FieldDisplayID = "display_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // FieldOwnerID holds the string denoting the owner_id field in the database. + FieldOwnerID = "owner_id" + // FieldAudienceID holds the string denoting the audience_id field in the database. + FieldAudienceID = "audience_id" + // FieldContactID holds the string denoting the contact_id field in the database. + FieldContactID = "contact_id" + // FieldUserID holds the string denoting the user_id field in the database. + FieldUserID = "user_id" + // FieldGroupID holds the string denoting the group_id field in the database. + FieldGroupID = "group_id" + // FieldIdentityHolderID holds the string denoting the identity_holder_id field in the database. + FieldIdentityHolderID = "identity_holder_id" + // FieldSubscriberID holds the string denoting the subscriber_id field in the database. + FieldSubscriberID = "subscriber_id" + // FieldEmail holds the string denoting the email field in the database. + FieldEmail = "email" + // FieldFullName holds the string denoting the full_name field in the database. + FieldFullName = "full_name" + // FieldMetadata holds the string denoting the metadata field in the database. + FieldMetadata = "metadata" + // EdgeOwner holds the string denoting the owner edge name in mutations. + EdgeOwner = "owner" + // EdgeAudience holds the string denoting the audience edge name in mutations. + EdgeAudience = "audience" + // EdgeContact holds the string denoting the contact edge name in mutations. + EdgeContact = "contact" + // EdgeUser holds the string denoting the user edge name in mutations. + EdgeUser = "user" + // EdgeGroup holds the string denoting the group edge name in mutations. + EdgeGroup = "group" + // EdgeIdentityHolder holds the string denoting the identity_holder edge name in mutations. + EdgeIdentityHolder = "identity_holder" + // EdgeSubscriber holds the string denoting the subscriber edge name in mutations. + EdgeSubscriber = "subscriber" + // Table holds the table name of the audiencemember in the database. + Table = "audience_members" + // OwnerTable is the table that holds the owner relation/edge. + OwnerTable = "audience_members" + // OwnerInverseTable is the table name for the Organization entity. + // It exists in this package in order to avoid circular dependency with the "organization" package. + OwnerInverseTable = "organizations" + // OwnerColumn is the table column denoting the owner relation/edge. + OwnerColumn = "owner_id" + // AudienceTable is the table that holds the audience relation/edge. + AudienceTable = "audience_members" + // AudienceInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudienceInverseTable = "audiences" + // AudienceColumn is the table column denoting the audience relation/edge. + AudienceColumn = "audience_id" + // ContactTable is the table that holds the contact relation/edge. + ContactTable = "audience_members" + // ContactInverseTable is the table name for the Contact entity. + // It exists in this package in order to avoid circular dependency with the "contact" package. + ContactInverseTable = "contacts" + // ContactColumn is the table column denoting the contact relation/edge. + ContactColumn = "contact_id" + // UserTable is the table that holds the user relation/edge. + UserTable = "audience_members" + // UserInverseTable is the table name for the User entity. + // It exists in this package in order to avoid circular dependency with the "user" package. + UserInverseTable = "users" + // UserColumn is the table column denoting the user relation/edge. + UserColumn = "user_id" + // GroupTable is the table that holds the group relation/edge. + GroupTable = "audience_members" + // GroupInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + GroupInverseTable = "groups" + // GroupColumn is the table column denoting the group relation/edge. + GroupColumn = "group_id" + // IdentityHolderTable is the table that holds the identity_holder relation/edge. + IdentityHolderTable = "audience_members" + // IdentityHolderInverseTable is the table name for the IdentityHolder entity. + // It exists in this package in order to avoid circular dependency with the "identityholder" package. + IdentityHolderInverseTable = "identity_holders" + // IdentityHolderColumn is the table column denoting the identity_holder relation/edge. + IdentityHolderColumn = "identity_holder_id" + // SubscriberTable is the table that holds the subscriber relation/edge. + SubscriberTable = "audience_members" + // SubscriberInverseTable is the table name for the Subscriber entity. + // It exists in this package in order to avoid circular dependency with the "subscriber" package. + SubscriberInverseTable = "subscribers" + // SubscriberColumn is the table column denoting the subscriber relation/edge. + SubscriberColumn = "subscriber_id" +) + +// Columns holds all SQL columns for audiencemember fields. +var Columns = []string{ + FieldID, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldUpdatedByImpersonator, + FieldDeletedAt, + FieldDeletedBy, + FieldDisplayID, + FieldTags, + FieldOwnerID, + FieldAudienceID, + FieldContactID, + FieldUserID, + FieldGroupID, + FieldIdentityHolderID, + FieldSubscriberID, + FieldEmail, + FieldFullName, + FieldMetadata, +} + +// ValidColumn reports if the column name is valid (part of the table columns). +func ValidColumn(column string) bool { + for i := range Columns { + if column == Columns[i] { + return true + } + } + return false +} + +// Note that the variables below are initialized by the runtime +// package on the initialization of the application. Therefore, +// it should be imported in the main as follows: +// +// import _ "github.com/theopenlane/core/v2/internal/ent/generated/runtime" +var ( + 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. + DefaultUpdatedAt func() time.Time + // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. + UpdateDefaultUpdatedAt func() time.Time + // DisplayIDValidator is a validator for the "display_id" field. It is called by the builders before save. + DisplayIDValidator func(string) error + // 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 + // AudienceIDValidator is a validator for the "audience_id" field. It is called by the builders before save. + AudienceIDValidator func(string) error + // EmailValidator is a validator for the "email" field. It is called by the builders before save. + EmailValidator func(string) error + // DefaultID holds the default value on creation for the "id" field. + DefaultID func() string +) + +// OrderOption defines the ordering options for the AudienceMember queries. +type OrderOption func(*sql.Selector) + +// ByID orders the results by the id field. +func ByID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldID, opts...).ToFunc() +} + +// ByCreatedAt orders the results by the created_at field. +func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedAt, opts...).ToFunc() +} + +// ByUpdatedAt orders the results by the updated_at field. +func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc() +} + +// ByCreatedBy orders the results by the created_by field. +func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedBy, opts...).ToFunc() +} + +// ByUpdatedBy orders the results by the updated_by field. +func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedBy, opts...).ToFunc() +} + +// ByUpdatedByImpersonator orders the results by the updated_by_impersonator field. +func ByUpdatedByImpersonator(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedByImpersonator, opts...).ToFunc() +} + +// ByDeletedAt orders the results by the deleted_at field. +func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedAt, opts...).ToFunc() +} + +// ByDeletedBy orders the results by the deleted_by field. +func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedBy, opts...).ToFunc() +} + +// ByDisplayID orders the results by the display_id field. +func ByDisplayID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDisplayID, opts...).ToFunc() +} + +// ByOwnerID orders the results by the owner_id field. +func ByOwnerID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOwnerID, opts...).ToFunc() +} + +// ByAudienceID orders the results by the audience_id field. +func ByAudienceID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldAudienceID, opts...).ToFunc() +} + +// ByContactID orders the results by the contact_id field. +func ByContactID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldContactID, opts...).ToFunc() +} + +// ByUserID orders the results by the user_id field. +func ByUserID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUserID, opts...).ToFunc() +} + +// ByGroupID orders the results by the group_id field. +func ByGroupID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldGroupID, opts...).ToFunc() +} + +// ByIdentityHolderID orders the results by the identity_holder_id field. +func ByIdentityHolderID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldIdentityHolderID, opts...).ToFunc() +} + +// BySubscriberID orders the results by the subscriber_id field. +func BySubscriberID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubscriberID, opts...).ToFunc() +} + +// ByEmail orders the results by the email field. +func ByEmail(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldEmail, opts...).ToFunc() +} + +// ByFullName orders the results by the full_name field. +func ByFullName(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFullName, opts...).ToFunc() +} + +// ByOwnerField orders the results by owner field. +func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newOwnerStep(), sql.OrderByField(field, opts...)) + } +} + +// ByAudienceField orders the results by audience field. +func ByAudienceField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceStep(), sql.OrderByField(field, opts...)) + } +} + +// ByContactField orders the results by contact field. +func ByContactField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newContactStep(), sql.OrderByField(field, opts...)) + } +} + +// ByUserField orders the results by user field. +func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newUserStep(), sql.OrderByField(field, opts...)) + } +} + +// ByGroupField orders the results by group field. +func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newGroupStep(), sql.OrderByField(field, opts...)) + } +} + +// ByIdentityHolderField orders the results by identity_holder field. +func ByIdentityHolderField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newIdentityHolderStep(), sql.OrderByField(field, opts...)) + } +} + +// BySubscriberField orders the results by subscriber field. +func BySubscriberField(field string, opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newSubscriberStep(), sql.OrderByField(field, opts...)) + } +} +func newOwnerStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(OwnerInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), + ) +} +func newAudienceStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, AudienceTable, AudienceColumn), + ) +} +func newContactStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(ContactInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, ContactTable, ContactColumn), + ) +} +func newUserStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(UserInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn), + ) +} +func newGroupStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(GroupInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, GroupTable, GroupColumn), + ) +} +func newIdentityHolderStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(IdentityHolderInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, IdentityHolderTable, IdentityHolderColumn), + ) +} +func newSubscriberStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(SubscriberInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, SubscriberTable, SubscriberColumn), + ) +} diff --git a/internal/ent/generated/audiencemember/where.go b/internal/ent/generated/audiencemember/where.go new file mode 100644 index 0000000000..c90c3d81de --- /dev/null +++ b/internal/ent/generated/audiencemember/where.go @@ -0,0 +1,1517 @@ +// Code generated by ent, DO NOT EDIT. + +package audiencemember + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldID, id)) +} + +// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. +func CreatedAt(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldCreatedAt, v)) +} + +// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. +func UpdatedAt(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ. +func UpdatedByImpersonator(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ. +func DisplayID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDisplayID, v)) +} + +// OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ. +func OwnerID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldOwnerID, v)) +} + +// AudienceID applies equality check predicate on the "audience_id" field. It's identical to AudienceIDEQ. +func AudienceID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldAudienceID, v)) +} + +// ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ. +func ContactID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldContactID, v)) +} + +// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. +func UserID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUserID, v)) +} + +// GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ. +func GroupID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldGroupID, v)) +} + +// IdentityHolderID applies equality check predicate on the "identity_holder_id" field. It's identical to IdentityHolderIDEQ. +func IdentityHolderID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldIdentityHolderID, v)) +} + +// SubscriberID applies equality check predicate on the "subscriber_id" field. It's identical to SubscriberIDEQ. +func SubscriberID(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldSubscriberID, v)) +} + +// Email applies equality check predicate on the "email" field. It's identical to EmailEQ. +func Email(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldEmail, v)) +} + +// FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ. +func FullName(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldFullName, v)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldUpdatedByImpersonator, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// DisplayIDEQ applies the EQ predicate on the "display_id" field. +func DisplayIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldDisplayID, v)) +} + +// DisplayIDNEQ applies the NEQ predicate on the "display_id" field. +func DisplayIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldDisplayID, v)) +} + +// DisplayIDIn applies the In predicate on the "display_id" field. +func DisplayIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldDisplayID, vs...)) +} + +// DisplayIDNotIn applies the NotIn predicate on the "display_id" field. +func DisplayIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldDisplayID, vs...)) +} + +// DisplayIDGT applies the GT predicate on the "display_id" field. +func DisplayIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldDisplayID, v)) +} + +// DisplayIDGTE applies the GTE predicate on the "display_id" field. +func DisplayIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldDisplayID, v)) +} + +// DisplayIDLT applies the LT predicate on the "display_id" field. +func DisplayIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldDisplayID, v)) +} + +// DisplayIDLTE applies the LTE predicate on the "display_id" field. +func DisplayIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldDisplayID, v)) +} + +// DisplayIDContains applies the Contains predicate on the "display_id" field. +func DisplayIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldDisplayID, v)) +} + +// DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field. +func DisplayIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldDisplayID, v)) +} + +// DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field. +func DisplayIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldDisplayID, v)) +} + +// DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field. +func DisplayIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldDisplayID, v)) +} + +// DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field. +func DisplayIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldDisplayID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldTags)) +} + +// OwnerIDEQ applies the EQ predicate on the "owner_id" field. +func OwnerIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldOwnerID, v)) +} + +// OwnerIDNEQ applies the NEQ predicate on the "owner_id" field. +func OwnerIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldOwnerID, v)) +} + +// OwnerIDIn applies the In predicate on the "owner_id" field. +func OwnerIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldOwnerID, vs...)) +} + +// OwnerIDNotIn applies the NotIn predicate on the "owner_id" field. +func OwnerIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldOwnerID, vs...)) +} + +// OwnerIDGT applies the GT predicate on the "owner_id" field. +func OwnerIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldOwnerID, v)) +} + +// OwnerIDGTE applies the GTE predicate on the "owner_id" field. +func OwnerIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldOwnerID, v)) +} + +// OwnerIDLT applies the LT predicate on the "owner_id" field. +func OwnerIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldOwnerID, v)) +} + +// OwnerIDLTE applies the LTE predicate on the "owner_id" field. +func OwnerIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldOwnerID, v)) +} + +// OwnerIDContains applies the Contains predicate on the "owner_id" field. +func OwnerIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldOwnerID, v)) +} + +// OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field. +func OwnerIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldOwnerID, v)) +} + +// OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field. +func OwnerIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldOwnerID, v)) +} + +// OwnerIDIsNil applies the IsNil predicate on the "owner_id" field. +func OwnerIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldOwnerID)) +} + +// OwnerIDNotNil applies the NotNil predicate on the "owner_id" field. +func OwnerIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldOwnerID)) +} + +// OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field. +func OwnerIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldOwnerID, v)) +} + +// OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field. +func OwnerIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldOwnerID, v)) +} + +// AudienceIDEQ applies the EQ predicate on the "audience_id" field. +func AudienceIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldAudienceID, v)) +} + +// AudienceIDNEQ applies the NEQ predicate on the "audience_id" field. +func AudienceIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldAudienceID, v)) +} + +// AudienceIDIn applies the In predicate on the "audience_id" field. +func AudienceIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldAudienceID, vs...)) +} + +// AudienceIDNotIn applies the NotIn predicate on the "audience_id" field. +func AudienceIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldAudienceID, vs...)) +} + +// AudienceIDGT applies the GT predicate on the "audience_id" field. +func AudienceIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldAudienceID, v)) +} + +// AudienceIDGTE applies the GTE predicate on the "audience_id" field. +func AudienceIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldAudienceID, v)) +} + +// AudienceIDLT applies the LT predicate on the "audience_id" field. +func AudienceIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldAudienceID, v)) +} + +// AudienceIDLTE applies the LTE predicate on the "audience_id" field. +func AudienceIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldAudienceID, v)) +} + +// AudienceIDContains applies the Contains predicate on the "audience_id" field. +func AudienceIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldAudienceID, v)) +} + +// AudienceIDHasPrefix applies the HasPrefix predicate on the "audience_id" field. +func AudienceIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldAudienceID, v)) +} + +// AudienceIDHasSuffix applies the HasSuffix predicate on the "audience_id" field. +func AudienceIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldAudienceID, v)) +} + +// AudienceIDEqualFold applies the EqualFold predicate on the "audience_id" field. +func AudienceIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldAudienceID, v)) +} + +// AudienceIDContainsFold applies the ContainsFold predicate on the "audience_id" field. +func AudienceIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldAudienceID, v)) +} + +// ContactIDEQ applies the EQ predicate on the "contact_id" field. +func ContactIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldContactID, v)) +} + +// ContactIDNEQ applies the NEQ predicate on the "contact_id" field. +func ContactIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldContactID, v)) +} + +// ContactIDIn applies the In predicate on the "contact_id" field. +func ContactIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldContactID, vs...)) +} + +// ContactIDNotIn applies the NotIn predicate on the "contact_id" field. +func ContactIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldContactID, vs...)) +} + +// ContactIDGT applies the GT predicate on the "contact_id" field. +func ContactIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldContactID, v)) +} + +// ContactIDGTE applies the GTE predicate on the "contact_id" field. +func ContactIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldContactID, v)) +} + +// ContactIDLT applies the LT predicate on the "contact_id" field. +func ContactIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldContactID, v)) +} + +// ContactIDLTE applies the LTE predicate on the "contact_id" field. +func ContactIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldContactID, v)) +} + +// ContactIDContains applies the Contains predicate on the "contact_id" field. +func ContactIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldContactID, v)) +} + +// ContactIDHasPrefix applies the HasPrefix predicate on the "contact_id" field. +func ContactIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldContactID, v)) +} + +// ContactIDHasSuffix applies the HasSuffix predicate on the "contact_id" field. +func ContactIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldContactID, v)) +} + +// ContactIDIsNil applies the IsNil predicate on the "contact_id" field. +func ContactIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldContactID)) +} + +// ContactIDNotNil applies the NotNil predicate on the "contact_id" field. +func ContactIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldContactID)) +} + +// ContactIDEqualFold applies the EqualFold predicate on the "contact_id" field. +func ContactIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldContactID, v)) +} + +// ContactIDContainsFold applies the ContainsFold predicate on the "contact_id" field. +func ContactIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldContactID, v)) +} + +// UserIDEQ applies the EQ predicate on the "user_id" field. +func UserIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldUserID, v)) +} + +// UserIDNEQ applies the NEQ predicate on the "user_id" field. +func UserIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldUserID, v)) +} + +// UserIDIn applies the In predicate on the "user_id" field. +func UserIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldUserID, vs...)) +} + +// UserIDNotIn applies the NotIn predicate on the "user_id" field. +func UserIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldUserID, vs...)) +} + +// UserIDGT applies the GT predicate on the "user_id" field. +func UserIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldUserID, v)) +} + +// UserIDGTE applies the GTE predicate on the "user_id" field. +func UserIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldUserID, v)) +} + +// UserIDLT applies the LT predicate on the "user_id" field. +func UserIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldUserID, v)) +} + +// UserIDLTE applies the LTE predicate on the "user_id" field. +func UserIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldUserID, v)) +} + +// UserIDContains applies the Contains predicate on the "user_id" field. +func UserIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldUserID, v)) +} + +// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field. +func UserIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldUserID, v)) +} + +// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field. +func UserIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldUserID, v)) +} + +// UserIDIsNil applies the IsNil predicate on the "user_id" field. +func UserIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldUserID)) +} + +// UserIDNotNil applies the NotNil predicate on the "user_id" field. +func UserIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldUserID)) +} + +// UserIDEqualFold applies the EqualFold predicate on the "user_id" field. +func UserIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldUserID, v)) +} + +// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field. +func UserIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldUserID, v)) +} + +// GroupIDEQ applies the EQ predicate on the "group_id" field. +func GroupIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldGroupID, v)) +} + +// GroupIDNEQ applies the NEQ predicate on the "group_id" field. +func GroupIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldGroupID, v)) +} + +// GroupIDIn applies the In predicate on the "group_id" field. +func GroupIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldGroupID, vs...)) +} + +// GroupIDNotIn applies the NotIn predicate on the "group_id" field. +func GroupIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldGroupID, vs...)) +} + +// GroupIDGT applies the GT predicate on the "group_id" field. +func GroupIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldGroupID, v)) +} + +// GroupIDGTE applies the GTE predicate on the "group_id" field. +func GroupIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldGroupID, v)) +} + +// GroupIDLT applies the LT predicate on the "group_id" field. +func GroupIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldGroupID, v)) +} + +// GroupIDLTE applies the LTE predicate on the "group_id" field. +func GroupIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldGroupID, v)) +} + +// GroupIDContains applies the Contains predicate on the "group_id" field. +func GroupIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldGroupID, v)) +} + +// GroupIDHasPrefix applies the HasPrefix predicate on the "group_id" field. +func GroupIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldGroupID, v)) +} + +// GroupIDHasSuffix applies the HasSuffix predicate on the "group_id" field. +func GroupIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldGroupID, v)) +} + +// GroupIDIsNil applies the IsNil predicate on the "group_id" field. +func GroupIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldGroupID)) +} + +// GroupIDNotNil applies the NotNil predicate on the "group_id" field. +func GroupIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldGroupID)) +} + +// GroupIDEqualFold applies the EqualFold predicate on the "group_id" field. +func GroupIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldGroupID, v)) +} + +// GroupIDContainsFold applies the ContainsFold predicate on the "group_id" field. +func GroupIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldGroupID, v)) +} + +// IdentityHolderIDEQ applies the EQ predicate on the "identity_holder_id" field. +func IdentityHolderIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDNEQ applies the NEQ predicate on the "identity_holder_id" field. +func IdentityHolderIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDIn applies the In predicate on the "identity_holder_id" field. +func IdentityHolderIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldIdentityHolderID, vs...)) +} + +// IdentityHolderIDNotIn applies the NotIn predicate on the "identity_holder_id" field. +func IdentityHolderIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldIdentityHolderID, vs...)) +} + +// IdentityHolderIDGT applies the GT predicate on the "identity_holder_id" field. +func IdentityHolderIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDGTE applies the GTE predicate on the "identity_holder_id" field. +func IdentityHolderIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDLT applies the LT predicate on the "identity_holder_id" field. +func IdentityHolderIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDLTE applies the LTE predicate on the "identity_holder_id" field. +func IdentityHolderIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDContains applies the Contains predicate on the "identity_holder_id" field. +func IdentityHolderIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDHasPrefix applies the HasPrefix predicate on the "identity_holder_id" field. +func IdentityHolderIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDHasSuffix applies the HasSuffix predicate on the "identity_holder_id" field. +func IdentityHolderIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDIsNil applies the IsNil predicate on the "identity_holder_id" field. +func IdentityHolderIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldIdentityHolderID)) +} + +// IdentityHolderIDNotNil applies the NotNil predicate on the "identity_holder_id" field. +func IdentityHolderIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldIdentityHolderID)) +} + +// IdentityHolderIDEqualFold applies the EqualFold predicate on the "identity_holder_id" field. +func IdentityHolderIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDContainsFold applies the ContainsFold predicate on the "identity_holder_id" field. +func IdentityHolderIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldIdentityHolderID, v)) +} + +// SubscriberIDEQ applies the EQ predicate on the "subscriber_id" field. +func SubscriberIDEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldSubscriberID, v)) +} + +// SubscriberIDNEQ applies the NEQ predicate on the "subscriber_id" field. +func SubscriberIDNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldSubscriberID, v)) +} + +// SubscriberIDIn applies the In predicate on the "subscriber_id" field. +func SubscriberIDIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldSubscriberID, vs...)) +} + +// SubscriberIDNotIn applies the NotIn predicate on the "subscriber_id" field. +func SubscriberIDNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldSubscriberID, vs...)) +} + +// SubscriberIDGT applies the GT predicate on the "subscriber_id" field. +func SubscriberIDGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldSubscriberID, v)) +} + +// SubscriberIDGTE applies the GTE predicate on the "subscriber_id" field. +func SubscriberIDGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldSubscriberID, v)) +} + +// SubscriberIDLT applies the LT predicate on the "subscriber_id" field. +func SubscriberIDLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldSubscriberID, v)) +} + +// SubscriberIDLTE applies the LTE predicate on the "subscriber_id" field. +func SubscriberIDLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldSubscriberID, v)) +} + +// SubscriberIDContains applies the Contains predicate on the "subscriber_id" field. +func SubscriberIDContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldSubscriberID, v)) +} + +// SubscriberIDHasPrefix applies the HasPrefix predicate on the "subscriber_id" field. +func SubscriberIDHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldSubscriberID, v)) +} + +// SubscriberIDHasSuffix applies the HasSuffix predicate on the "subscriber_id" field. +func SubscriberIDHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldSubscriberID, v)) +} + +// SubscriberIDIsNil applies the IsNil predicate on the "subscriber_id" field. +func SubscriberIDIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldSubscriberID)) +} + +// SubscriberIDNotNil applies the NotNil predicate on the "subscriber_id" field. +func SubscriberIDNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldSubscriberID)) +} + +// SubscriberIDEqualFold applies the EqualFold predicate on the "subscriber_id" field. +func SubscriberIDEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldSubscriberID, v)) +} + +// SubscriberIDContainsFold applies the ContainsFold predicate on the "subscriber_id" field. +func SubscriberIDContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldSubscriberID, v)) +} + +// EmailEQ applies the EQ predicate on the "email" field. +func EmailEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldEmail, v)) +} + +// EmailNEQ applies the NEQ predicate on the "email" field. +func EmailNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldEmail, v)) +} + +// EmailIn applies the In predicate on the "email" field. +func EmailIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldEmail, vs...)) +} + +// EmailNotIn applies the NotIn predicate on the "email" field. +func EmailNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldEmail, vs...)) +} + +// EmailGT applies the GT predicate on the "email" field. +func EmailGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldEmail, v)) +} + +// EmailGTE applies the GTE predicate on the "email" field. +func EmailGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldEmail, v)) +} + +// EmailLT applies the LT predicate on the "email" field. +func EmailLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldEmail, v)) +} + +// EmailLTE applies the LTE predicate on the "email" field. +func EmailLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldEmail, v)) +} + +// EmailContains applies the Contains predicate on the "email" field. +func EmailContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldEmail, v)) +} + +// EmailHasPrefix applies the HasPrefix predicate on the "email" field. +func EmailHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldEmail, v)) +} + +// EmailHasSuffix applies the HasSuffix predicate on the "email" field. +func EmailHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldEmail, v)) +} + +// EmailEqualFold applies the EqualFold predicate on the "email" field. +func EmailEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldEmail, v)) +} + +// EmailContainsFold applies the ContainsFold predicate on the "email" field. +func EmailContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldEmail, v)) +} + +// FullNameEQ applies the EQ predicate on the "full_name" field. +func FullNameEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEQ(FieldFullName, v)) +} + +// FullNameNEQ applies the NEQ predicate on the "full_name" field. +func FullNameNEQ(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNEQ(FieldFullName, v)) +} + +// FullNameIn applies the In predicate on the "full_name" field. +func FullNameIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIn(FieldFullName, vs...)) +} + +// FullNameNotIn applies the NotIn predicate on the "full_name" field. +func FullNameNotIn(vs ...string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotIn(FieldFullName, vs...)) +} + +// FullNameGT applies the GT predicate on the "full_name" field. +func FullNameGT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGT(FieldFullName, v)) +} + +// FullNameGTE applies the GTE predicate on the "full_name" field. +func FullNameGTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldGTE(FieldFullName, v)) +} + +// FullNameLT applies the LT predicate on the "full_name" field. +func FullNameLT(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLT(FieldFullName, v)) +} + +// FullNameLTE applies the LTE predicate on the "full_name" field. +func FullNameLTE(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldLTE(FieldFullName, v)) +} + +// FullNameContains applies the Contains predicate on the "full_name" field. +func FullNameContains(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContains(FieldFullName, v)) +} + +// FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field. +func FullNameHasPrefix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasPrefix(FieldFullName, v)) +} + +// FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field. +func FullNameHasSuffix(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldHasSuffix(FieldFullName, v)) +} + +// FullNameIsNil applies the IsNil predicate on the "full_name" field. +func FullNameIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldFullName)) +} + +// FullNameNotNil applies the NotNil predicate on the "full_name" field. +func FullNameNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldFullName)) +} + +// FullNameEqualFold applies the EqualFold predicate on the "full_name" field. +func FullNameEqualFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldEqualFold(FieldFullName, v)) +} + +// FullNameContainsFold applies the ContainsFold predicate on the "full_name" field. +func FullNameContainsFold(v string) predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldContainsFold(FieldFullName, v)) +} + +// MetadataIsNil applies the IsNil predicate on the "metadata" field. +func MetadataIsNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldIsNull(FieldMetadata)) +} + +// MetadataNotNil applies the NotNil predicate on the "metadata" field. +func MetadataNotNil() predicate.AudienceMember { + return predicate.AudienceMember(sql.FieldNotNull(FieldMetadata)) +} + +// HasOwner applies the HasEdge predicate on the "owner" edge. +func HasOwner() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, OwnerTable, OwnerColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates). +func HasOwnerWith(preds ...predicate.Organization) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newOwnerStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudience applies the HasEdge predicate on the "audience" edge. +func HasAudience() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, AudienceTable, AudienceColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceWith applies the HasEdge predicate on the "audience" edge with a given conditions (other predicates). +func HasAudienceWith(preds ...predicate.Audience) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newAudienceStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasContact applies the HasEdge predicate on the "contact" edge. +func HasContact() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, ContactTable, ContactColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasContactWith applies the HasEdge predicate on the "contact" edge with a given conditions (other predicates). +func HasContactWith(preds ...predicate.Contact) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newContactStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasUser applies the HasEdge predicate on the "user" edge. +func HasUser() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates). +func HasUserWith(preds ...predicate.User) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newUserStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasGroup applies the HasEdge predicate on the "group" edge. +func HasGroup() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, GroupTable, GroupColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates). +func HasGroupWith(preds ...predicate.Group) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newGroupStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasIdentityHolder applies the HasEdge predicate on the "identity_holder" edge. +func HasIdentityHolder() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, IdentityHolderTable, IdentityHolderColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasIdentityHolderWith applies the HasEdge predicate on the "identity_holder" edge with a given conditions (other predicates). +func HasIdentityHolderWith(preds ...predicate.IdentityHolder) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newIdentityHolderStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasSubscriber applies the HasEdge predicate on the "subscriber" edge. +func HasSubscriber() predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, SubscriberTable, SubscriberColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasSubscriberWith applies the HasEdge predicate on the "subscriber" edge with a given conditions (other predicates). +func HasSubscriberWith(preds ...predicate.Subscriber) predicate.AudienceMember { + return predicate.AudienceMember(func(s *sql.Selector) { + step := newSubscriberStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.AudienceMember) predicate.AudienceMember { + return predicate.AudienceMember(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.AudienceMember) predicate.AudienceMember { + return predicate.AudienceMember(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.AudienceMember) predicate.AudienceMember { + return predicate.AudienceMember(sql.NotPredicates(p)) +} diff --git a/internal/ent/generated/audiencemember_create.go b/internal/ent/generated/audiencemember_create.go new file mode 100644 index 0000000000..e82d6e3247 --- /dev/null +++ b/internal/ent/generated/audiencemember_create.go @@ -0,0 +1,691 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/contact" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/identityholder" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" + "github.com/theopenlane/core/v2/internal/ent/generated/user" +) + +// AudienceMemberCreate is the builder for creating a AudienceMember entity. +type AudienceMemberCreate struct { + config + mutation *AudienceMemberMutation + hooks []Hook +} + +// SetCreatedAt sets the "created_at" field. +func (_c *AudienceMemberCreate) SetCreatedAt(v time.Time) *AudienceMemberCreate { + _c.mutation.SetCreatedAt(v) + return _c +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableCreatedAt(v *time.Time) *AudienceMemberCreate { + if v != nil { + _c.SetCreatedAt(*v) + } + return _c +} + +// SetUpdatedAt sets the "updated_at" field. +func (_c *AudienceMemberCreate) SetUpdatedAt(v time.Time) *AudienceMemberCreate { + _c.mutation.SetUpdatedAt(v) + return _c +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableUpdatedAt(v *time.Time) *AudienceMemberCreate { + if v != nil { + _c.SetUpdatedAt(*v) + } + return _c +} + +// SetCreatedBy sets the "created_by" field. +func (_c *AudienceMemberCreate) SetCreatedBy(v string) *AudienceMemberCreate { + _c.mutation.SetCreatedBy(v) + return _c +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableCreatedBy(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetCreatedBy(*v) + } + return _c +} + +// SetUpdatedBy sets the "updated_by" field. +func (_c *AudienceMemberCreate) SetUpdatedBy(v string) *AudienceMemberCreate { + _c.mutation.SetUpdatedBy(v) + return _c +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableUpdatedBy(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetUpdatedBy(*v) + } + return _c +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_c *AudienceMemberCreate) SetUpdatedByImpersonator(v string) *AudienceMemberCreate { + _c.mutation.SetUpdatedByImpersonator(v) + return _c +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableUpdatedByImpersonator(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetUpdatedByImpersonator(*v) + } + return _c +} + +// SetDeletedAt sets the "deleted_at" field. +func (_c *AudienceMemberCreate) SetDeletedAt(v time.Time) *AudienceMemberCreate { + _c.mutation.SetDeletedAt(v) + return _c +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableDeletedAt(v *time.Time) *AudienceMemberCreate { + if v != nil { + _c.SetDeletedAt(*v) + } + return _c +} + +// SetDeletedBy sets the "deleted_by" field. +func (_c *AudienceMemberCreate) SetDeletedBy(v string) *AudienceMemberCreate { + _c.mutation.SetDeletedBy(v) + return _c +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableDeletedBy(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetDeletedBy(*v) + } + return _c +} + +// SetDisplayID sets the "display_id" field. +func (_c *AudienceMemberCreate) SetDisplayID(v string) *AudienceMemberCreate { + _c.mutation.SetDisplayID(v) + return _c +} + +// SetTags sets the "tags" field. +func (_c *AudienceMemberCreate) SetTags(v []string) *AudienceMemberCreate { + _c.mutation.SetTags(v) + return _c +} + +// SetOwnerID sets the "owner_id" field. +func (_c *AudienceMemberCreate) SetOwnerID(v string) *AudienceMemberCreate { + _c.mutation.SetOwnerID(v) + return _c +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableOwnerID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetOwnerID(*v) + } + return _c +} + +// SetAudienceID sets the "audience_id" field. +func (_c *AudienceMemberCreate) SetAudienceID(v string) *AudienceMemberCreate { + _c.mutation.SetAudienceID(v) + return _c +} + +// SetContactID sets the "contact_id" field. +func (_c *AudienceMemberCreate) SetContactID(v string) *AudienceMemberCreate { + _c.mutation.SetContactID(v) + return _c +} + +// SetNillableContactID sets the "contact_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableContactID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetContactID(*v) + } + return _c +} + +// SetUserID sets the "user_id" field. +func (_c *AudienceMemberCreate) SetUserID(v string) *AudienceMemberCreate { + _c.mutation.SetUserID(v) + return _c +} + +// SetNillableUserID sets the "user_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableUserID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetUserID(*v) + } + return _c +} + +// SetGroupID sets the "group_id" field. +func (_c *AudienceMemberCreate) SetGroupID(v string) *AudienceMemberCreate { + _c.mutation.SetGroupID(v) + return _c +} + +// SetNillableGroupID sets the "group_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableGroupID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetGroupID(*v) + } + return _c +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (_c *AudienceMemberCreate) SetIdentityHolderID(v string) *AudienceMemberCreate { + _c.mutation.SetIdentityHolderID(v) + return _c +} + +// SetNillableIdentityHolderID sets the "identity_holder_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableIdentityHolderID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetIdentityHolderID(*v) + } + return _c +} + +// SetSubscriberID sets the "subscriber_id" field. +func (_c *AudienceMemberCreate) SetSubscriberID(v string) *AudienceMemberCreate { + _c.mutation.SetSubscriberID(v) + return _c +} + +// SetNillableSubscriberID sets the "subscriber_id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableSubscriberID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetSubscriberID(*v) + } + return _c +} + +// SetEmail sets the "email" field. +func (_c *AudienceMemberCreate) SetEmail(v string) *AudienceMemberCreate { + _c.mutation.SetEmail(v) + return _c +} + +// SetFullName sets the "full_name" field. +func (_c *AudienceMemberCreate) SetFullName(v string) *AudienceMemberCreate { + _c.mutation.SetFullName(v) + return _c +} + +// SetNillableFullName sets the "full_name" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableFullName(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetFullName(*v) + } + return _c +} + +// SetMetadata sets the "metadata" field. +func (_c *AudienceMemberCreate) SetMetadata(v map[string]interface{}) *AudienceMemberCreate { + _c.mutation.SetMetadata(v) + return _c +} + +// SetID sets the "id" field. +func (_c *AudienceMemberCreate) SetID(v string) *AudienceMemberCreate { + _c.mutation.SetID(v) + return _c +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (_c *AudienceMemberCreate) SetNillableID(v *string) *AudienceMemberCreate { + if v != nil { + _c.SetID(*v) + } + return _c +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_c *AudienceMemberCreate) SetOwner(v *Organization) *AudienceMemberCreate { + return _c.SetOwnerID(v.ID) +} + +// SetAudience sets the "audience" edge to the Audience entity. +func (_c *AudienceMemberCreate) SetAudience(v *Audience) *AudienceMemberCreate { + return _c.SetAudienceID(v.ID) +} + +// SetContact sets the "contact" edge to the Contact entity. +func (_c *AudienceMemberCreate) SetContact(v *Contact) *AudienceMemberCreate { + return _c.SetContactID(v.ID) +} + +// SetUser sets the "user" edge to the User entity. +func (_c *AudienceMemberCreate) SetUser(v *User) *AudienceMemberCreate { + return _c.SetUserID(v.ID) +} + +// SetGroup sets the "group" edge to the Group entity. +func (_c *AudienceMemberCreate) SetGroup(v *Group) *AudienceMemberCreate { + return _c.SetGroupID(v.ID) +} + +// SetIdentityHolder sets the "identity_holder" edge to the IdentityHolder entity. +func (_c *AudienceMemberCreate) SetIdentityHolder(v *IdentityHolder) *AudienceMemberCreate { + return _c.SetIdentityHolderID(v.ID) +} + +// SetSubscriber sets the "subscriber" edge to the Subscriber entity. +func (_c *AudienceMemberCreate) SetSubscriber(v *Subscriber) *AudienceMemberCreate { + return _c.SetSubscriberID(v.ID) +} + +// Mutation returns the AudienceMemberMutation object of the builder. +func (_c *AudienceMemberCreate) Mutation() *AudienceMemberMutation { + return _c.mutation +} + +// Save creates the AudienceMember in the database. +func (_c *AudienceMemberCreate) Save(ctx context.Context) (*AudienceMember, 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 *AudienceMemberCreate) SaveX(ctx context.Context) *AudienceMember { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceMemberCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceMemberCreate) 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 *AudienceMemberCreate) defaults() error { + if _, ok := _c.mutation.CreatedAt(); !ok { + if audiencemember.DefaultCreatedAt == nil { + return fmt.Errorf("generated: uninitialized audiencemember.DefaultCreatedAt (forgotten import generated/runtime?)") + } + v := audiencemember.DefaultCreatedAt() + _c.mutation.SetCreatedAt(v) + } + if _, ok := _c.mutation.UpdatedAt(); !ok { + if audiencemember.DefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audiencemember.DefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audiencemember.DefaultUpdatedAt() + _c.mutation.SetUpdatedAt(v) + } + if _, ok := _c.mutation.Tags(); !ok { + v := audiencemember.DefaultTags + _c.mutation.SetTags(v) + } + if _, ok := _c.mutation.ID(); !ok { + if audiencemember.DefaultID == nil { + return fmt.Errorf("generated: uninitialized audiencemember.DefaultID (forgotten import generated/runtime?)") + } + v := audiencemember.DefaultID() + _c.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_c *AudienceMemberCreate) check() error { + if _, ok := _c.mutation.DisplayID(); !ok { + return &ValidationError{Name: "display_id", err: errors.New(`generated: missing required field "AudienceMember.display_id"`)} + } + if v, ok := _c.mutation.DisplayID(); ok { + if err := audiencemember.DisplayIDValidator(v); err != nil { + return &ValidationError{Name: "display_id", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.display_id": %w`, err)} + } + } + if v, ok := _c.mutation.OwnerID(); ok { + if err := audiencemember.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.owner_id": %w`, err)} + } + } + if _, ok := _c.mutation.AudienceID(); !ok { + return &ValidationError{Name: "audience_id", err: errors.New(`generated: missing required field "AudienceMember.audience_id"`)} + } + if v, ok := _c.mutation.AudienceID(); ok { + if err := audiencemember.AudienceIDValidator(v); err != nil { + return &ValidationError{Name: "audience_id", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.audience_id": %w`, err)} + } + } + if _, ok := _c.mutation.Email(); !ok { + return &ValidationError{Name: "email", err: errors.New(`generated: missing required field "AudienceMember.email"`)} + } + if v, ok := _c.mutation.Email(); ok { + if err := audiencemember.EmailValidator(v); err != nil { + return &ValidationError{Name: "email", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.email": %w`, err)} + } + } + if len(_c.mutation.AudienceIDs()) == 0 { + return &ValidationError{Name: "audience", err: errors.New(`generated: missing required edge "AudienceMember.audience"`)} + } + return nil +} + +func (_c *AudienceMemberCreate) sqlSave(ctx context.Context) (*AudienceMember, 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 AudienceMember.ID type: %T", _spec.ID.Value) + } + } + _c.mutation.id = &_node.ID + _c.mutation.done = true + return _node, nil +} + +func (_c *AudienceMemberCreate) createSpec() (*AudienceMember, *sqlgraph.CreateSpec) { + var ( + _node = &AudienceMember{config: _c.config} + _spec = sqlgraph.NewCreateSpec(audiencemember.Table, sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString)) + ) + if id, ok := _c.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := _c.mutation.CreatedAt(); ok { + _spec.SetField(audiencemember.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := _c.mutation.UpdatedAt(); ok { + _spec.SetField(audiencemember.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := _c.mutation.CreatedBy(); ok { + _spec.SetField(audiencemember.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := _c.mutation.UpdatedBy(); ok { + _spec.SetField(audiencemember.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := _c.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audiencemember.FieldUpdatedByImpersonator, field.TypeString, value) + _node.UpdatedByImpersonator = &value + } + if value, ok := _c.mutation.DeletedAt(); ok { + _spec.SetField(audiencemember.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := _c.mutation.DeletedBy(); ok { + _spec.SetField(audiencemember.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := _c.mutation.DisplayID(); ok { + _spec.SetField(audiencemember.FieldDisplayID, field.TypeString, value) + _node.DisplayID = value + } + if value, ok := _c.mutation.Tags(); ok { + _spec.SetField(audiencemember.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := _c.mutation.Email(); ok { + _spec.SetField(audiencemember.FieldEmail, field.TypeString, value) + _node.Email = value + } + if value, ok := _c.mutation.FullName(); ok { + _spec.SetField(audiencemember.FieldFullName, field.TypeString, value) + _node.FullName = value + } + if value, ok := _c.mutation.Metadata(); ok { + _spec.SetField(audiencemember.FieldMetadata, field.TypeJSON, value) + _node.Metadata = value + } + if nodes := _c.mutation.OwnerIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.OwnerID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.AudienceTable, + Columns: []string{audiencemember.AudienceColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.AudienceID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.ContactIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.ContactID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.UserID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.GroupIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.GroupID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.IdentityHolderIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.IdentityHolderID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.SubscriberIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _node.SubscriberID = nodes[0] + _spec.Edges = append(_spec.Edges, edge) + } + return _node, _spec +} + +// AudienceMemberCreateBulk is the builder for creating many AudienceMember entities in bulk. +type AudienceMemberCreateBulk struct { + config + err error + builders []*AudienceMemberCreate +} + +// Save creates the AudienceMember entities in the database. +func (_c *AudienceMemberCreateBulk) Save(ctx context.Context) ([]*AudienceMember, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*AudienceMember, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { + func(i int, root context.Context) { + builder := _c.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*AudienceMemberMutation) + if !ok { + return nil, fmt.Errorf("unexpected mutation type %T", m) + } + if err := builder.check(); err != nil { + return nil, err + } + builder.mutation = mutation + var err error + nodes[i], specs[i] = builder.createSpec() + if i < len(mutators)-1 { + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) + } else { + spec := &sqlgraph.BatchCreateSpec{Nodes: specs} + // Invoke the actual operation on the latest mutation in the chain. + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + } + } + if err != nil { + return nil, err + } + mutation.id = &nodes[i].ID + mutation.done = true + return nodes[i], nil + }) + for i := len(builder.hooks) - 1; i >= 0; i-- { + mut = builder.hooks[i](mut) + } + mutators[i] = mut + }(i, ctx) + } + if len(mutators) > 0 { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (_c *AudienceMemberCreateBulk) SaveX(ctx context.Context) []*AudienceMember { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceMemberCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceMemberCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/audiencemember_delete.go b/internal/ent/generated/audiencemember_delete.go new file mode 100644 index 0000000000..6356fb6c59 --- /dev/null +++ b/internal/ent/generated/audiencemember_delete.go @@ -0,0 +1,88 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" +) + +// AudienceMemberDelete is the builder for deleting a AudienceMember entity. +type AudienceMemberDelete struct { + config + hooks []Hook + mutation *AudienceMemberMutation +} + +// Where appends a list predicates to the AudienceMemberDelete builder. +func (_d *AudienceMemberDelete) Where(ps ...predicate.AudienceMember) *AudienceMemberDelete { + _d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (_d *AudienceMemberDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceMemberDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (_d *AudienceMemberDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(audiencemember.Table, sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString)) + if ps := _d.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + _d.mutation.done = true + return affected, err +} + +// AudienceMemberDeleteOne is the builder for deleting a single AudienceMember entity. +type AudienceMemberDeleteOne struct { + _d *AudienceMemberDelete +} + +// Where appends a list predicates to the AudienceMemberDelete builder. +func (_d *AudienceMemberDeleteOne) Where(ps ...predicate.AudienceMember) *AudienceMemberDeleteOne { + _d._d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query. +func (_d *AudienceMemberDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{audiencemember.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceMemberDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/generated/audiencemember_query.go b/internal/ent/generated/audiencemember_query.go new file mode 100644 index 0000000000..c8e33eb72c --- /dev/null +++ b/internal/ent/generated/audiencemember_query.go @@ -0,0 +1,1112 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "fmt" + "math" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/contact" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/identityholder" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" + "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" + "github.com/theopenlane/core/v2/internal/ent/generated/user" + + "github.com/theopenlane/core/v2/pkg/logx" +) + +// AudienceMemberQuery is the builder for querying AudienceMember entities. +type AudienceMemberQuery struct { + config + ctx *QueryContext + order []audiencemember.OrderOption + inters []Interceptor + predicates []predicate.AudienceMember + withOwner *OrganizationQuery + withAudience *AudienceQuery + withContact *ContactQuery + withUser *UserQuery + withGroup *GroupQuery + withIdentityHolder *IdentityHolderQuery + withSubscriber *SubscriberQuery + loadTotal []func(context.Context, []*AudienceMember) error + modifiers []func(*sql.Selector) + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the AudienceMemberQuery builder. +func (_q *AudienceMemberQuery) Where(ps ...predicate.AudienceMember) *AudienceMemberQuery { + _q.predicates = append(_q.predicates, ps...) + return _q +} + +// Limit the number of records to be returned by this query. +func (_q *AudienceMemberQuery) Limit(limit int) *AudienceMemberQuery { + _q.ctx.Limit = &limit + return _q +} + +// Offset to start from. +func (_q *AudienceMemberQuery) Offset(offset int) *AudienceMemberQuery { + _q.ctx.Offset = &offset + return _q +} + +// Unique configures the query builder to filter duplicate records on query. +// By default, unique is set to true, and can be disabled using this method. +func (_q *AudienceMemberQuery) Unique(unique bool) *AudienceMemberQuery { + _q.ctx.Unique = &unique + return _q +} + +// Order specifies how the records should be ordered. +func (_q *AudienceMemberQuery) Order(o ...audiencemember.OrderOption) *AudienceMemberQuery { + _q.order = append(_q.order, o...) + return _q +} + +// QueryOwner chains the current query on the "owner" edge. +func (_q *AudienceMemberQuery) QueryOwner() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.OwnerTable, audiencemember.OwnerColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudience chains the current query on the "audience" edge. +func (_q *AudienceMemberQuery) QueryAudience() *AudienceQuery { + query := (&AudienceClient{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(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.AudienceTable, audiencemember.AudienceColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryContact chains the current query on the "contact" edge. +func (_q *AudienceMemberQuery) QueryContact() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.ContactTable, audiencemember.ContactColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryUser chains the current query on the "user" edge. +func (_q *AudienceMemberQuery) QueryUser() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.UserTable, audiencemember.UserColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryGroup chains the current query on the "group" edge. +func (_q *AudienceMemberQuery) QueryGroup() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.GroupTable, audiencemember.GroupColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryIdentityHolder chains the current query on the "identity_holder" edge. +func (_q *AudienceMemberQuery) QueryIdentityHolder() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(identityholder.Table, identityholder.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.IdentityHolderTable, audiencemember.IdentityHolderColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QuerySubscriber chains the current query on the "subscriber" edge. +func (_q *AudienceMemberQuery) QuerySubscriber() *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 + } + selector := _q.sqlQuery(ctx) + if err := selector.Err(); err != nil { + return nil, err + } + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, selector), + sqlgraph.To(subscriber.Table, subscriber.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.SubscriberTable, audiencemember.SubscriberColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// First returns the first AudienceMember entity from the query. +// Returns a *NotFoundError when no AudienceMember was found. +func (_q *AudienceMemberQuery) First(ctx context.Context) (*AudienceMember, 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{audiencemember.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (_q *AudienceMemberQuery) FirstX(ctx context.Context) *AudienceMember { + node, err := _q.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first AudienceMember ID from the query. +// Returns a *NotFoundError when no AudienceMember ID was found. +func (_q *AudienceMemberQuery) 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{audiencemember.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (_q *AudienceMemberQuery) FirstIDX(ctx context.Context) string { + id, err := _q.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single AudienceMember entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one AudienceMember entity is found. +// Returns a *NotFoundError when no AudienceMember entities are found. +func (_q *AudienceMemberQuery) Only(ctx context.Context) (*AudienceMember, 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{audiencemember.Label} + default: + return nil, &NotSingularError{audiencemember.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (_q *AudienceMemberQuery) OnlyX(ctx context.Context) *AudienceMember { + node, err := _q.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only AudienceMember ID in the query. +// Returns a *NotSingularError when more than one AudienceMember ID is found. +// Returns a *NotFoundError when no entities are found. +func (_q *AudienceMemberQuery) 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{audiencemember.Label} + default: + err = &NotSingularError{audiencemember.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (_q *AudienceMemberQuery) 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 AudienceMembers. +func (_q *AudienceMemberQuery) All(ctx context.Context) ([]*AudienceMember, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*AudienceMember, *AudienceMemberQuery]() + return withInterceptors[[]*AudienceMember](ctx, _q, qr, _q.inters) +} + +// AllX is like All, but panics if an error occurs. +func (_q *AudienceMemberQuery) AllX(ctx context.Context) []*AudienceMember { + nodes, err := _q.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of AudienceMember IDs. +func (_q *AudienceMemberQuery) 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(audiencemember.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (_q *AudienceMemberQuery) 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 *AudienceMemberQuery) 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[*AudienceMemberQuery](), _q.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (_q *AudienceMemberQuery) 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 *AudienceMemberQuery) 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 *AudienceMemberQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the AudienceMemberQuery 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 *AudienceMemberQuery) Clone() *AudienceMemberQuery { + if _q == nil { + return nil + } + return &AudienceMemberQuery{ + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]audiencemember.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.AudienceMember{}, _q.predicates...), + withOwner: _q.withOwner.Clone(), + withAudience: _q.withAudience.Clone(), + withContact: _q.withContact.Clone(), + withUser: _q.withUser.Clone(), + withGroup: _q.withGroup.Clone(), + withIdentityHolder: _q.withIdentityHolder.Clone(), + withSubscriber: _q.withSubscriber.Clone(), + // clone intermediate query. + sql: _q.sql.Clone(), + path: _q.path, + modifiers: append([]func(*sql.Selector){}, _q.modifiers...), + } +} + +// WithOwner tells the query-builder to eager-load the nodes that are connected to +// the "owner" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithOwner(opts ...func(*OrganizationQuery)) *AudienceMemberQuery { + query := (&OrganizationClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withOwner = query + return _q +} + +// WithAudience tells the query-builder to eager-load the nodes that are connected to +// the "audience" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithAudience(opts ...func(*AudienceQuery)) *AudienceMemberQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudience = query + return _q +} + +// WithContact tells the query-builder to eager-load the nodes that are connected to +// the "contact" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithContact(opts ...func(*ContactQuery)) *AudienceMemberQuery { + query := (&ContactClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withContact = query + return _q +} + +// WithUser tells the query-builder to eager-load the nodes that are connected to +// the "user" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithUser(opts ...func(*UserQuery)) *AudienceMemberQuery { + query := (&UserClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withUser = query + return _q +} + +// WithGroup tells the query-builder to eager-load the nodes that are connected to +// the "group" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithGroup(opts ...func(*GroupQuery)) *AudienceMemberQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withGroup = query + return _q +} + +// WithIdentityHolder tells the query-builder to eager-load the nodes that are connected to +// the "identity_holder" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithIdentityHolder(opts ...func(*IdentityHolderQuery)) *AudienceMemberQuery { + query := (&IdentityHolderClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withIdentityHolder = query + return _q +} + +// WithSubscriber tells the query-builder to eager-load the nodes that are connected to +// the "subscriber" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *AudienceMemberQuery) WithSubscriber(opts ...func(*SubscriberQuery)) *AudienceMemberQuery { + query := (&SubscriberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withSubscriber = 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.AudienceMember.Query(). +// GroupBy(audiencemember.FieldCreatedAt). +// Aggregate(generated.Count()). +// Scan(ctx, &v) +func (_q *AudienceMemberQuery) GroupBy(field string, fields ...string) *AudienceMemberGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &AudienceMemberGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields + grbuild.label = audiencemember.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.AudienceMember.Query(). +// Select(audiencemember.FieldCreatedAt). +// Scan(ctx, &v) +func (_q *AudienceMemberQuery) Select(fields ...string) *AudienceMemberSelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &AudienceMemberSelect{AudienceMemberQuery: _q} + sbuild.label = audiencemember.Label + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a AudienceMemberSelect configured with the given aggregations. +func (_q *AudienceMemberQuery) Aggregate(fns ...AggregateFunc) *AudienceMemberSelect { + return _q.Select().Aggregate(fns...) +} + +func (_q *AudienceMemberQuery) 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 !audiencemember.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 audiencemember.Policy == nil { + return errors.New("generated: uninitialized audiencemember.Policy (forgotten import generated/runtime?)") + } + if err := audiencemember.Policy.EvalQuery(ctx, _q); err != nil { + return err + } + return nil +} + +func (_q *AudienceMemberQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*AudienceMember, error) { + var ( + nodes = []*AudienceMember{} + _spec = _q.querySpec() + loadedTypes = [7]bool{ + _q.withOwner != nil, + _q.withAudience != nil, + _q.withContact != nil, + _q.withUser != nil, + _q.withGroup != nil, + _q.withIdentityHolder != nil, + _q.withSubscriber != nil, + } + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*AudienceMember).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &AudienceMember{config: _q.config} + nodes = append(nodes, node) + node.Edges.loadedTypes = loadedTypes + return node.assignValues(columns, values) + } + 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.withOwner; query != nil { + if err := _q.loadOwner(ctx, query, nodes, nil, + func(n *AudienceMember, e *Organization) { n.Edges.Owner = e }); err != nil { + return nil, err + } + } + if query := _q.withAudience; query != nil { + if err := _q.loadAudience(ctx, query, nodes, nil, + func(n *AudienceMember, e *Audience) { n.Edges.Audience = e }); err != nil { + return nil, err + } + } + if query := _q.withContact; query != nil { + if err := _q.loadContact(ctx, query, nodes, nil, + func(n *AudienceMember, e *Contact) { n.Edges.Contact = e }); err != nil { + return nil, err + } + } + if query := _q.withUser; query != nil { + if err := _q.loadUser(ctx, query, nodes, nil, + func(n *AudienceMember, e *User) { n.Edges.User = e }); err != nil { + return nil, err + } + } + if query := _q.withGroup; query != nil { + if err := _q.loadGroup(ctx, query, nodes, nil, + func(n *AudienceMember, e *Group) { n.Edges.Group = e }); err != nil { + return nil, err + } + } + if query := _q.withIdentityHolder; query != nil { + if err := _q.loadIdentityHolder(ctx, query, nodes, nil, + func(n *AudienceMember, e *IdentityHolder) { n.Edges.IdentityHolder = e }); err != nil { + return nil, err + } + } + if query := _q.withSubscriber; query != nil { + if err := _q.loadSubscriber(ctx, query, nodes, nil, + func(n *AudienceMember, e *Subscriber) { n.Edges.Subscriber = 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 *AudienceMemberQuery) loadOwner(ctx context.Context, query *OrganizationQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *Organization)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].OwnerID + 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 "owner_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadAudience(ctx context.Context, query *AudienceQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *Audience)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].AudienceID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(audience.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 "audience_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadContact(ctx context.Context, query *ContactQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *Contact)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].ContactID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(contact.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 "contact_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadUser(ctx context.Context, query *UserQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *User)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].UserID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(user.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 "user_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadGroup(ctx context.Context, query *GroupQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *Group)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].GroupID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(group.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 "group_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadIdentityHolder(ctx context.Context, query *IdentityHolderQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *IdentityHolder)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].IdentityHolderID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(identityholder.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 "identity_holder_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} +func (_q *AudienceMemberQuery) loadSubscriber(ctx context.Context, query *SubscriberQuery, nodes []*AudienceMember, init func(*AudienceMember), assign func(*AudienceMember, *Subscriber)) error { + ids := make([]string, 0, len(nodes)) + nodeids := make(map[string][]*AudienceMember) + for i := range nodes { + fk := nodes[i].SubscriberID + if _, ok := nodeids[fk]; !ok { + ids = append(ids, fk) + } + nodeids[fk] = append(nodeids[fk], nodes[i]) + } + if len(ids) == 0 { + return nil + } + query.Where(subscriber.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 "subscriber_id" returned %v`, n.ID) + } + for i := range nodes { + assign(nodes[i], n) + } + } + return nil +} + +func (_q *AudienceMemberQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + 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 *AudienceMemberQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(audiencemember.Table, audiencemember.Columns, sqlgraph.NewFieldSpec(audiencemember.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, audiencemember.FieldID) + for i := range fields { + if fields[i] != audiencemember.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + if _q.withOwner != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldOwnerID) + } + if _q.withAudience != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldAudienceID) + } + if _q.withContact != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldContactID) + } + if _q.withUser != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldUserID) + } + if _q.withGroup != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldGroupID) + } + if _q.withIdentityHolder != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldIdentityHolderID) + } + if _q.withSubscriber != nil { + _spec.Node.AddColumnOnce(audiencemember.FieldSubscriberID) + } + } + 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 *AudienceMemberQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) + t1 := builder.Table(audiencemember.Table) + columns := _q.ctx.Fields + if len(columns) == 0 { + columns = audiencemember.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() + } + 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 *AudienceMemberQuery) Modify(modifiers ...func(s *sql.Selector)) *AudienceMemberSelect { + _q.modifiers = append(_q.modifiers, modifiers...) + return _q.Select() +} + +// CountIDs returns the count of ids with FGA batch filtering applied +func (amq *AudienceMemberQuery) CountIDs(ctx context.Context) (int, error) { + logx.FromContext(ctx).Debug().Str("query_type", "AudienceMember").Str("operation", "count_ids").Msg("CountIDs: starting") + + ctx = setContextOp(ctx, amq.ctx, ent.OpQueryIDs) + + ids, err := amq.IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("query_type", "AudienceMember").Str("operation", "count_ids").Msg("CountIDs: IDs() failed") + + return 0, err + } + + logx.FromContext(ctx).Debug().Str("query_type", "AudienceMember").Str("operation", "count_ids").Int("count", len(ids)).Msg("CountIDs: completed") + + return len(ids), nil +} + +// AudienceMemberGroupBy is the group-by builder for AudienceMember entities. +type AudienceMemberGroupBy struct { + selector + build *AudienceMemberQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (_g *AudienceMemberGroupBy) Aggregate(fns ...AggregateFunc) *AudienceMemberGroupBy { + _g.fns = append(_g.fns, fns...) + return _g +} + +// Scan applies the selector query and scans the result into the given value. +func (_g *AudienceMemberGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceMemberQuery, *AudienceMemberGroupBy](ctx, _g.build, _g, _g.build.inters, v) +} + +func (_g *AudienceMemberGroupBy) sqlScan(ctx context.Context, root *AudienceMemberQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*_g.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// AudienceMemberSelect is the builder for selecting fields of AudienceMember entities. +type AudienceMemberSelect struct { + *AudienceMemberQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (_s *AudienceMemberSelect) Aggregate(fns ...AggregateFunc) *AudienceMemberSelect { + _s.fns = append(_s.fns, fns...) + return _s +} + +// Scan applies the selector query and scans the result into the given value. +func (_s *AudienceMemberSelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceMemberQuery, *AudienceMemberSelect](ctx, _s.AudienceMemberQuery, _s, _s.inters, v) +} + +func (_s *AudienceMemberSelect) sqlScan(ctx context.Context, root *AudienceMemberQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*_s.selector.flds); { + case n == 0 && len(aggregation) > 0: + selector.Select(aggregation...) + case n != 0 && len(aggregation) > 0: + selector.AppendSelect(aggregation...) + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _s.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// Modify adds a query modifier for attaching custom logic to queries. +func (_s *AudienceMemberSelect) Modify(modifiers ...func(s *sql.Selector)) *AudienceMemberSelect { + _s.modifiers = append(_s.modifiers, modifiers...) + return _s +} diff --git a/internal/ent/generated/audiencemember_update.go b/internal/ent/generated/audiencemember_update.go new file mode 100644 index 0000000000..dc330bbe54 --- /dev/null +++ b/internal/ent/generated/audiencemember_update.go @@ -0,0 +1,1427 @@ +// Code generated by ent, DO NOT EDIT. + +package generated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/dialect/sql/sqljson" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/contact" + "github.com/theopenlane/core/v2/internal/ent/generated/group" + "github.com/theopenlane/core/v2/internal/ent/generated/identityholder" + "github.com/theopenlane/core/v2/internal/ent/generated/organization" + "github.com/theopenlane/core/v2/internal/ent/generated/predicate" + "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" + "github.com/theopenlane/core/v2/internal/ent/generated/user" +) + +// AudienceMemberUpdate is the builder for updating AudienceMember entities. +type AudienceMemberUpdate struct { + config + hooks []Hook + mutation *AudienceMemberMutation + modifiers []func(*sql.UpdateBuilder) +} + +// Where appends a list predicates to the AudienceMemberUpdate builder. +func (_u *AudienceMemberUpdate) Where(ps ...predicate.AudienceMember) *AudienceMemberUpdate { + _u.mutation.Where(ps...) + return _u +} + +// SetUpdatedAt sets the "updated_at" field. +func (_u *AudienceMemberUpdate) SetUpdatedAt(v time.Time) *AudienceMemberUpdate { + _u.mutation.SetUpdatedAt(v) + return _u +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (_u *AudienceMemberUpdate) ClearUpdatedAt() *AudienceMemberUpdate { + _u.mutation.ClearUpdatedAt() + return _u +} + +// SetUpdatedBy sets the "updated_by" field. +func (_u *AudienceMemberUpdate) SetUpdatedBy(v string) *AudienceMemberUpdate { + _u.mutation.SetUpdatedBy(v) + return _u +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableUpdatedBy(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetUpdatedBy(*v) + } + return _u +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (_u *AudienceMemberUpdate) ClearUpdatedBy() *AudienceMemberUpdate { + _u.mutation.ClearUpdatedBy() + return _u +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_u *AudienceMemberUpdate) SetUpdatedByImpersonator(v string) *AudienceMemberUpdate { + _u.mutation.SetUpdatedByImpersonator(v) + return _u +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableUpdatedByImpersonator(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetUpdatedByImpersonator(*v) + } + return _u +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (_u *AudienceMemberUpdate) ClearUpdatedByImpersonator() *AudienceMemberUpdate { + _u.mutation.ClearUpdatedByImpersonator() + return _u +} + +// SetDeletedAt sets the "deleted_at" field. +func (_u *AudienceMemberUpdate) SetDeletedAt(v time.Time) *AudienceMemberUpdate { + _u.mutation.SetDeletedAt(v) + return _u +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableDeletedAt(v *time.Time) *AudienceMemberUpdate { + if v != nil { + _u.SetDeletedAt(*v) + } + return _u +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (_u *AudienceMemberUpdate) ClearDeletedAt() *AudienceMemberUpdate { + _u.mutation.ClearDeletedAt() + return _u +} + +// SetDeletedBy sets the "deleted_by" field. +func (_u *AudienceMemberUpdate) SetDeletedBy(v string) *AudienceMemberUpdate { + _u.mutation.SetDeletedBy(v) + return _u +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableDeletedBy(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetDeletedBy(*v) + } + return _u +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (_u *AudienceMemberUpdate) ClearDeletedBy() *AudienceMemberUpdate { + _u.mutation.ClearDeletedBy() + return _u +} + +// SetTags sets the "tags" field. +func (_u *AudienceMemberUpdate) SetTags(v []string) *AudienceMemberUpdate { + _u.mutation.SetTags(v) + return _u +} + +// AppendTags appends value to the "tags" field. +func (_u *AudienceMemberUpdate) AppendTags(v []string) *AudienceMemberUpdate { + _u.mutation.AppendTags(v) + return _u +} + +// ClearTags clears the value of the "tags" field. +func (_u *AudienceMemberUpdate) ClearTags() *AudienceMemberUpdate { + _u.mutation.ClearTags() + return _u +} + +// SetOwnerID sets the "owner_id" field. +func (_u *AudienceMemberUpdate) SetOwnerID(v string) *AudienceMemberUpdate { + _u.mutation.SetOwnerID(v) + return _u +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableOwnerID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetOwnerID(*v) + } + return _u +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (_u *AudienceMemberUpdate) ClearOwnerID() *AudienceMemberUpdate { + _u.mutation.ClearOwnerID() + return _u +} + +// SetContactID sets the "contact_id" field. +func (_u *AudienceMemberUpdate) SetContactID(v string) *AudienceMemberUpdate { + _u.mutation.SetContactID(v) + return _u +} + +// SetNillableContactID sets the "contact_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableContactID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetContactID(*v) + } + return _u +} + +// ClearContactID clears the value of the "contact_id" field. +func (_u *AudienceMemberUpdate) ClearContactID() *AudienceMemberUpdate { + _u.mutation.ClearContactID() + return _u +} + +// SetUserID sets the "user_id" field. +func (_u *AudienceMemberUpdate) SetUserID(v string) *AudienceMemberUpdate { + _u.mutation.SetUserID(v) + return _u +} + +// SetNillableUserID sets the "user_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableUserID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetUserID(*v) + } + return _u +} + +// ClearUserID clears the value of the "user_id" field. +func (_u *AudienceMemberUpdate) ClearUserID() *AudienceMemberUpdate { + _u.mutation.ClearUserID() + return _u +} + +// SetGroupID sets the "group_id" field. +func (_u *AudienceMemberUpdate) SetGroupID(v string) *AudienceMemberUpdate { + _u.mutation.SetGroupID(v) + return _u +} + +// SetNillableGroupID sets the "group_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableGroupID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetGroupID(*v) + } + return _u +} + +// ClearGroupID clears the value of the "group_id" field. +func (_u *AudienceMemberUpdate) ClearGroupID() *AudienceMemberUpdate { + _u.mutation.ClearGroupID() + return _u +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (_u *AudienceMemberUpdate) SetIdentityHolderID(v string) *AudienceMemberUpdate { + _u.mutation.SetIdentityHolderID(v) + return _u +} + +// SetNillableIdentityHolderID sets the "identity_holder_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableIdentityHolderID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetIdentityHolderID(*v) + } + return _u +} + +// ClearIdentityHolderID clears the value of the "identity_holder_id" field. +func (_u *AudienceMemberUpdate) ClearIdentityHolderID() *AudienceMemberUpdate { + _u.mutation.ClearIdentityHolderID() + return _u +} + +// SetSubscriberID sets the "subscriber_id" field. +func (_u *AudienceMemberUpdate) SetSubscriberID(v string) *AudienceMemberUpdate { + _u.mutation.SetSubscriberID(v) + return _u +} + +// SetNillableSubscriberID sets the "subscriber_id" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableSubscriberID(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetSubscriberID(*v) + } + return _u +} + +// ClearSubscriberID clears the value of the "subscriber_id" field. +func (_u *AudienceMemberUpdate) ClearSubscriberID() *AudienceMemberUpdate { + _u.mutation.ClearSubscriberID() + return _u +} + +// SetEmail sets the "email" field. +func (_u *AudienceMemberUpdate) SetEmail(v string) *AudienceMemberUpdate { + _u.mutation.SetEmail(v) + return _u +} + +// SetNillableEmail sets the "email" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableEmail(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetEmail(*v) + } + return _u +} + +// SetFullName sets the "full_name" field. +func (_u *AudienceMemberUpdate) SetFullName(v string) *AudienceMemberUpdate { + _u.mutation.SetFullName(v) + return _u +} + +// SetNillableFullName sets the "full_name" field if the given value is not nil. +func (_u *AudienceMemberUpdate) SetNillableFullName(v *string) *AudienceMemberUpdate { + if v != nil { + _u.SetFullName(*v) + } + return _u +} + +// ClearFullName clears the value of the "full_name" field. +func (_u *AudienceMemberUpdate) ClearFullName() *AudienceMemberUpdate { + _u.mutation.ClearFullName() + return _u +} + +// SetMetadata sets the "metadata" field. +func (_u *AudienceMemberUpdate) SetMetadata(v map[string]interface{}) *AudienceMemberUpdate { + _u.mutation.SetMetadata(v) + return _u +} + +// ClearMetadata clears the value of the "metadata" field. +func (_u *AudienceMemberUpdate) ClearMetadata() *AudienceMemberUpdate { + _u.mutation.ClearMetadata() + return _u +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_u *AudienceMemberUpdate) SetOwner(v *Organization) *AudienceMemberUpdate { + return _u.SetOwnerID(v.ID) +} + +// SetContact sets the "contact" edge to the Contact entity. +func (_u *AudienceMemberUpdate) SetContact(v *Contact) *AudienceMemberUpdate { + return _u.SetContactID(v.ID) +} + +// SetUser sets the "user" edge to the User entity. +func (_u *AudienceMemberUpdate) SetUser(v *User) *AudienceMemberUpdate { + return _u.SetUserID(v.ID) +} + +// SetGroup sets the "group" edge to the Group entity. +func (_u *AudienceMemberUpdate) SetGroup(v *Group) *AudienceMemberUpdate { + return _u.SetGroupID(v.ID) +} + +// SetIdentityHolder sets the "identity_holder" edge to the IdentityHolder entity. +func (_u *AudienceMemberUpdate) SetIdentityHolder(v *IdentityHolder) *AudienceMemberUpdate { + return _u.SetIdentityHolderID(v.ID) +} + +// SetSubscriber sets the "subscriber" edge to the Subscriber entity. +func (_u *AudienceMemberUpdate) SetSubscriber(v *Subscriber) *AudienceMemberUpdate { + return _u.SetSubscriberID(v.ID) +} + +// Mutation returns the AudienceMemberMutation object of the builder. +func (_u *AudienceMemberUpdate) Mutation() *AudienceMemberMutation { + return _u.mutation +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (_u *AudienceMemberUpdate) ClearOwner() *AudienceMemberUpdate { + _u.mutation.ClearOwner() + return _u +} + +// ClearContact clears the "contact" edge to the Contact entity. +func (_u *AudienceMemberUpdate) ClearContact() *AudienceMemberUpdate { + _u.mutation.ClearContact() + return _u +} + +// ClearUser clears the "user" edge to the User entity. +func (_u *AudienceMemberUpdate) ClearUser() *AudienceMemberUpdate { + _u.mutation.ClearUser() + return _u +} + +// ClearGroup clears the "group" edge to the Group entity. +func (_u *AudienceMemberUpdate) ClearGroup() *AudienceMemberUpdate { + _u.mutation.ClearGroup() + return _u +} + +// ClearIdentityHolder clears the "identity_holder" edge to the IdentityHolder entity. +func (_u *AudienceMemberUpdate) ClearIdentityHolder() *AudienceMemberUpdate { + _u.mutation.ClearIdentityHolder() + return _u +} + +// ClearSubscriber clears the "subscriber" edge to the Subscriber entity. +func (_u *AudienceMemberUpdate) ClearSubscriber() *AudienceMemberUpdate { + _u.mutation.ClearSubscriber() + return _u +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (_u *AudienceMemberUpdate) 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 *AudienceMemberUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (_u *AudienceMemberUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceMemberUpdate) 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 *AudienceMemberUpdate) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if audiencemember.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audiencemember.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audiencemember.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_u *AudienceMemberUpdate) check() error { + if v, ok := _u.mutation.OwnerID(); ok { + if err := audiencemember.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.owner_id": %w`, err)} + } + } + if v, ok := _u.mutation.Email(); ok { + if err := audiencemember.EmailValidator(v); err != nil { + return &ValidationError{Name: "email", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.email": %w`, err)} + } + } + if _u.mutation.AudienceCleared() && len(_u.mutation.AudienceIDs()) > 0 { + return errors.New(`generated: clearing a required unique edge "AudienceMember.audience"`) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *AudienceMemberUpdate) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AudienceMemberUpdate { + _u.modifiers = append(_u.modifiers, modifiers...) + return _u +} + +func (_u *AudienceMemberUpdate) sqlSave(ctx context.Context) (_node int, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(audiencemember.Table, audiencemember.Columns, sqlgraph.NewFieldSpec(audiencemember.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(audiencemember.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(audiencemember.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencemember.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencemember.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(audiencemember.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencemember.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audiencemember.FieldUpdatedByImpersonator, field.TypeString, value) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencemember.FieldUpdatedByImpersonator, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(audiencemember.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencemember.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(audiencemember.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencemember.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(audiencemember.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, audiencemember.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencemember.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.Email(); ok { + _spec.SetField(audiencemember.FieldEmail, field.TypeString, value) + } + if value, ok := _u.mutation.FullName(); ok { + _spec.SetField(audiencemember.FieldFullName, field.TypeString, value) + } + if _u.mutation.FullNameCleared() { + _spec.ClearField(audiencemember.FieldFullName, field.TypeString) + } + if value, ok := _u.mutation.Metadata(); ok { + _spec.SetField(audiencemember.FieldMetadata, field.TypeJSON, value) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencemember.FieldMetadata, field.TypeJSON) + } + if _u.mutation.OwnerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + _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: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ContactCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ContactIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.GroupCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.GroupIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IdentityHolderCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IdentityHolderIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubscriberCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubscriberIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.AddModifiers(_u.modifiers...) + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencemember.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + _u.mutation.done = true + return _node, nil +} + +// AudienceMemberUpdateOne is the builder for updating a single AudienceMember entity. +type AudienceMemberUpdateOne struct { + config + fields []string + hooks []Hook + mutation *AudienceMemberMutation + modifiers []func(*sql.UpdateBuilder) +} + +// SetUpdatedAt sets the "updated_at" field. +func (_u *AudienceMemberUpdateOne) SetUpdatedAt(v time.Time) *AudienceMemberUpdateOne { + _u.mutation.SetUpdatedAt(v) + return _u +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (_u *AudienceMemberUpdateOne) ClearUpdatedAt() *AudienceMemberUpdateOne { + _u.mutation.ClearUpdatedAt() + return _u +} + +// SetUpdatedBy sets the "updated_by" field. +func (_u *AudienceMemberUpdateOne) SetUpdatedBy(v string) *AudienceMemberUpdateOne { + _u.mutation.SetUpdatedBy(v) + return _u +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableUpdatedBy(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetUpdatedBy(*v) + } + return _u +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (_u *AudienceMemberUpdateOne) ClearUpdatedBy() *AudienceMemberUpdateOne { + _u.mutation.ClearUpdatedBy() + return _u +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_u *AudienceMemberUpdateOne) SetUpdatedByImpersonator(v string) *AudienceMemberUpdateOne { + _u.mutation.SetUpdatedByImpersonator(v) + return _u +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableUpdatedByImpersonator(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetUpdatedByImpersonator(*v) + } + return _u +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (_u *AudienceMemberUpdateOne) ClearUpdatedByImpersonator() *AudienceMemberUpdateOne { + _u.mutation.ClearUpdatedByImpersonator() + return _u +} + +// SetDeletedAt sets the "deleted_at" field. +func (_u *AudienceMemberUpdateOne) SetDeletedAt(v time.Time) *AudienceMemberUpdateOne { + _u.mutation.SetDeletedAt(v) + return _u +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableDeletedAt(v *time.Time) *AudienceMemberUpdateOne { + if v != nil { + _u.SetDeletedAt(*v) + } + return _u +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (_u *AudienceMemberUpdateOne) ClearDeletedAt() *AudienceMemberUpdateOne { + _u.mutation.ClearDeletedAt() + return _u +} + +// SetDeletedBy sets the "deleted_by" field. +func (_u *AudienceMemberUpdateOne) SetDeletedBy(v string) *AudienceMemberUpdateOne { + _u.mutation.SetDeletedBy(v) + return _u +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableDeletedBy(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetDeletedBy(*v) + } + return _u +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (_u *AudienceMemberUpdateOne) ClearDeletedBy() *AudienceMemberUpdateOne { + _u.mutation.ClearDeletedBy() + return _u +} + +// SetTags sets the "tags" field. +func (_u *AudienceMemberUpdateOne) SetTags(v []string) *AudienceMemberUpdateOne { + _u.mutation.SetTags(v) + return _u +} + +// AppendTags appends value to the "tags" field. +func (_u *AudienceMemberUpdateOne) AppendTags(v []string) *AudienceMemberUpdateOne { + _u.mutation.AppendTags(v) + return _u +} + +// ClearTags clears the value of the "tags" field. +func (_u *AudienceMemberUpdateOne) ClearTags() *AudienceMemberUpdateOne { + _u.mutation.ClearTags() + return _u +} + +// SetOwnerID sets the "owner_id" field. +func (_u *AudienceMemberUpdateOne) SetOwnerID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetOwnerID(v) + return _u +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableOwnerID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetOwnerID(*v) + } + return _u +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (_u *AudienceMemberUpdateOne) ClearOwnerID() *AudienceMemberUpdateOne { + _u.mutation.ClearOwnerID() + return _u +} + +// SetContactID sets the "contact_id" field. +func (_u *AudienceMemberUpdateOne) SetContactID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetContactID(v) + return _u +} + +// SetNillableContactID sets the "contact_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableContactID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetContactID(*v) + } + return _u +} + +// ClearContactID clears the value of the "contact_id" field. +func (_u *AudienceMemberUpdateOne) ClearContactID() *AudienceMemberUpdateOne { + _u.mutation.ClearContactID() + return _u +} + +// SetUserID sets the "user_id" field. +func (_u *AudienceMemberUpdateOne) SetUserID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetUserID(v) + return _u +} + +// SetNillableUserID sets the "user_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableUserID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetUserID(*v) + } + return _u +} + +// ClearUserID clears the value of the "user_id" field. +func (_u *AudienceMemberUpdateOne) ClearUserID() *AudienceMemberUpdateOne { + _u.mutation.ClearUserID() + return _u +} + +// SetGroupID sets the "group_id" field. +func (_u *AudienceMemberUpdateOne) SetGroupID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetGroupID(v) + return _u +} + +// SetNillableGroupID sets the "group_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableGroupID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetGroupID(*v) + } + return _u +} + +// ClearGroupID clears the value of the "group_id" field. +func (_u *AudienceMemberUpdateOne) ClearGroupID() *AudienceMemberUpdateOne { + _u.mutation.ClearGroupID() + return _u +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (_u *AudienceMemberUpdateOne) SetIdentityHolderID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetIdentityHolderID(v) + return _u +} + +// SetNillableIdentityHolderID sets the "identity_holder_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableIdentityHolderID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetIdentityHolderID(*v) + } + return _u +} + +// ClearIdentityHolderID clears the value of the "identity_holder_id" field. +func (_u *AudienceMemberUpdateOne) ClearIdentityHolderID() *AudienceMemberUpdateOne { + _u.mutation.ClearIdentityHolderID() + return _u +} + +// SetSubscriberID sets the "subscriber_id" field. +func (_u *AudienceMemberUpdateOne) SetSubscriberID(v string) *AudienceMemberUpdateOne { + _u.mutation.SetSubscriberID(v) + return _u +} + +// SetNillableSubscriberID sets the "subscriber_id" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableSubscriberID(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetSubscriberID(*v) + } + return _u +} + +// ClearSubscriberID clears the value of the "subscriber_id" field. +func (_u *AudienceMemberUpdateOne) ClearSubscriberID() *AudienceMemberUpdateOne { + _u.mutation.ClearSubscriberID() + return _u +} + +// SetEmail sets the "email" field. +func (_u *AudienceMemberUpdateOne) SetEmail(v string) *AudienceMemberUpdateOne { + _u.mutation.SetEmail(v) + return _u +} + +// SetNillableEmail sets the "email" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableEmail(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetEmail(*v) + } + return _u +} + +// SetFullName sets the "full_name" field. +func (_u *AudienceMemberUpdateOne) SetFullName(v string) *AudienceMemberUpdateOne { + _u.mutation.SetFullName(v) + return _u +} + +// SetNillableFullName sets the "full_name" field if the given value is not nil. +func (_u *AudienceMemberUpdateOne) SetNillableFullName(v *string) *AudienceMemberUpdateOne { + if v != nil { + _u.SetFullName(*v) + } + return _u +} + +// ClearFullName clears the value of the "full_name" field. +func (_u *AudienceMemberUpdateOne) ClearFullName() *AudienceMemberUpdateOne { + _u.mutation.ClearFullName() + return _u +} + +// SetMetadata sets the "metadata" field. +func (_u *AudienceMemberUpdateOne) SetMetadata(v map[string]interface{}) *AudienceMemberUpdateOne { + _u.mutation.SetMetadata(v) + return _u +} + +// ClearMetadata clears the value of the "metadata" field. +func (_u *AudienceMemberUpdateOne) ClearMetadata() *AudienceMemberUpdateOne { + _u.mutation.ClearMetadata() + return _u +} + +// SetOwner sets the "owner" edge to the Organization entity. +func (_u *AudienceMemberUpdateOne) SetOwner(v *Organization) *AudienceMemberUpdateOne { + return _u.SetOwnerID(v.ID) +} + +// SetContact sets the "contact" edge to the Contact entity. +func (_u *AudienceMemberUpdateOne) SetContact(v *Contact) *AudienceMemberUpdateOne { + return _u.SetContactID(v.ID) +} + +// SetUser sets the "user" edge to the User entity. +func (_u *AudienceMemberUpdateOne) SetUser(v *User) *AudienceMemberUpdateOne { + return _u.SetUserID(v.ID) +} + +// SetGroup sets the "group" edge to the Group entity. +func (_u *AudienceMemberUpdateOne) SetGroup(v *Group) *AudienceMemberUpdateOne { + return _u.SetGroupID(v.ID) +} + +// SetIdentityHolder sets the "identity_holder" edge to the IdentityHolder entity. +func (_u *AudienceMemberUpdateOne) SetIdentityHolder(v *IdentityHolder) *AudienceMemberUpdateOne { + return _u.SetIdentityHolderID(v.ID) +} + +// SetSubscriber sets the "subscriber" edge to the Subscriber entity. +func (_u *AudienceMemberUpdateOne) SetSubscriber(v *Subscriber) *AudienceMemberUpdateOne { + return _u.SetSubscriberID(v.ID) +} + +// Mutation returns the AudienceMemberMutation object of the builder. +func (_u *AudienceMemberUpdateOne) Mutation() *AudienceMemberMutation { + return _u.mutation +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (_u *AudienceMemberUpdateOne) ClearOwner() *AudienceMemberUpdateOne { + _u.mutation.ClearOwner() + return _u +} + +// ClearContact clears the "contact" edge to the Contact entity. +func (_u *AudienceMemberUpdateOne) ClearContact() *AudienceMemberUpdateOne { + _u.mutation.ClearContact() + return _u +} + +// ClearUser clears the "user" edge to the User entity. +func (_u *AudienceMemberUpdateOne) ClearUser() *AudienceMemberUpdateOne { + _u.mutation.ClearUser() + return _u +} + +// ClearGroup clears the "group" edge to the Group entity. +func (_u *AudienceMemberUpdateOne) ClearGroup() *AudienceMemberUpdateOne { + _u.mutation.ClearGroup() + return _u +} + +// ClearIdentityHolder clears the "identity_holder" edge to the IdentityHolder entity. +func (_u *AudienceMemberUpdateOne) ClearIdentityHolder() *AudienceMemberUpdateOne { + _u.mutation.ClearIdentityHolder() + return _u +} + +// ClearSubscriber clears the "subscriber" edge to the Subscriber entity. +func (_u *AudienceMemberUpdateOne) ClearSubscriber() *AudienceMemberUpdateOne { + _u.mutation.ClearSubscriber() + return _u +} + +// Where appends a list predicates to the AudienceMemberUpdate builder. +func (_u *AudienceMemberUpdateOne) Where(ps ...predicate.AudienceMember) *AudienceMemberUpdateOne { + _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 *AudienceMemberUpdateOne) Select(field string, fields ...string) *AudienceMemberUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u +} + +// Save executes the query and returns the updated AudienceMember entity. +func (_u *AudienceMemberUpdateOne) Save(ctx context.Context) (*AudienceMember, error) { + if err := _u.defaults(); err != nil { + return nil, err + } + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceMemberUpdateOne) SaveX(ctx context.Context) *AudienceMember { + node, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (_u *AudienceMemberUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceMemberUpdateOne) 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 *AudienceMemberUpdateOne) defaults() error { + if _, ok := _u.mutation.UpdatedAt(); !ok && !_u.mutation.UpdatedAtCleared() { + if audiencemember.UpdateDefaultUpdatedAt == nil { + return fmt.Errorf("generated: uninitialized audiencemember.UpdateDefaultUpdatedAt (forgotten import generated/runtime?)") + } + v := audiencemember.UpdateDefaultUpdatedAt() + _u.mutation.SetUpdatedAt(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_u *AudienceMemberUpdateOne) check() error { + if v, ok := _u.mutation.OwnerID(); ok { + if err := audiencemember.OwnerIDValidator(v); err != nil { + return &ValidationError{Name: "owner_id", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.owner_id": %w`, err)} + } + } + if v, ok := _u.mutation.Email(); ok { + if err := audiencemember.EmailValidator(v); err != nil { + return &ValidationError{Name: "email", err: fmt.Errorf(`generated: validator failed for field "AudienceMember.email": %w`, err)} + } + } + if _u.mutation.AudienceCleared() && len(_u.mutation.AudienceIDs()) > 0 { + return errors.New(`generated: clearing a required unique edge "AudienceMember.audience"`) + } + return nil +} + +// Modify adds a statement modifier for attaching custom logic to the UPDATE statement. +func (_u *AudienceMemberUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *AudienceMemberUpdateOne { + _u.modifiers = append(_u.modifiers, modifiers...) + return _u +} + +func (_u *AudienceMemberUpdateOne) sqlSave(ctx context.Context) (_node *AudienceMember, err error) { + if err := _u.check(); err != nil { + return _node, err + } + _spec := sqlgraph.NewUpdateSpec(audiencemember.Table, audiencemember.Columns, sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString)) + id, ok := _u.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`generated: missing "AudienceMember.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, audiencemember.FieldID) + for _, f := range fields { + if !audiencemember.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("generated: invalid field %q for query", f)} + } + if f != audiencemember.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(audiencemember.FieldCreatedAt, field.TypeTime) + } + if value, ok := _u.mutation.UpdatedAt(); ok { + _spec.SetField(audiencemember.FieldUpdatedAt, field.TypeTime, value) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencemember.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencemember.FieldCreatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedBy(); ok { + _spec.SetField(audiencemember.FieldUpdatedBy, field.TypeString, value) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencemember.FieldUpdatedBy, field.TypeString) + } + if value, ok := _u.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audiencemember.FieldUpdatedByImpersonator, field.TypeString, value) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencemember.FieldUpdatedByImpersonator, field.TypeString) + } + if value, ok := _u.mutation.DeletedAt(); ok { + _spec.SetField(audiencemember.FieldDeletedAt, field.TypeTime, value) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencemember.FieldDeletedAt, field.TypeTime) + } + if value, ok := _u.mutation.DeletedBy(); ok { + _spec.SetField(audiencemember.FieldDeletedBy, field.TypeString, value) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencemember.FieldDeletedBy, field.TypeString) + } + if value, ok := _u.mutation.Tags(); ok { + _spec.SetField(audiencemember.FieldTags, field.TypeJSON, value) + } + if value, ok := _u.mutation.AppendedTags(); ok { + _spec.AddModifier(func(u *sql.UpdateBuilder) { + sqljson.Append(u, audiencemember.FieldTags, value) + }) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencemember.FieldTags, field.TypeJSON) + } + if value, ok := _u.mutation.Email(); ok { + _spec.SetField(audiencemember.FieldEmail, field.TypeString, value) + } + if value, ok := _u.mutation.FullName(); ok { + _spec.SetField(audiencemember.FieldFullName, field.TypeString, value) + } + if _u.mutation.FullNameCleared() { + _spec.ClearField(audiencemember.FieldFullName, field.TypeString) + } + if value, ok := _u.mutation.Metadata(); ok { + _spec.SetField(audiencemember.FieldMetadata, field.TypeJSON, value) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencemember.FieldMetadata, field.TypeJSON) + } + if _u.mutation.OwnerCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + _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: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(organization.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.ContactCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.ContactIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(contact.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.UserCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.UserIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(user.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.GroupCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.GroupIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.IdentityHolderCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.IdentityHolderIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(identityholder.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.SubscriberCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.SubscriberIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(subscriber.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + _spec.AddModifiers(_u.modifiers...) + _node = &AudienceMember{config: _u.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencemember.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + _u.mutation.done = true + return _node, nil +} diff --git a/internal/ent/generated/authz_checks.go b/internal/ent/generated/authz_checks.go index 7f56fa1563..fc6ad34bfb 100644 --- a/internal/ent/generated/authz_checks.go +++ b/internal/ent/generated/authz_checks.go @@ -51,6 +51,8 @@ var selfAccessTypes = map[string]bool{ "assessment": true, "assessment_response": true, "asset": true, + "audience": true, + "audience_member": true, "campaign": true, "campaign_target": true, "check_result": true, @@ -691,6 +693,302 @@ func (m *AssetMutation) CheckAccessForDelete(ctx context.Context) error { return ErrPermissionDenied } +func (q *AudienceQuery) CheckAccess(ctx context.Context) error { + gCtx := graphql.GetFieldContext(ctx) + + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + var objectID string + + // check id from graphql arg context + // when all objects are requested, the interceptor will check object access + // check the where input first + whereArg := gCtx.Args["where"] + if whereArg != nil { + where, ok := whereArg.(*AudienceWhereInput) + if ok && where != nil && where.ID != nil { + objectID = *where.ID + } + } + + // if that doesn't work, check for the id in the request args + if objectID == "" { + objectID, _ = gCtx.Args["id"].(string) + } + + // request is for a list objects, will get filtered in interceptors + if objectID == "" { + return privacy.Allowf("nil request, bypassing auth check") + } + + // check if the user has access to the object requested + ac := fgax.AccessCheck{ + Relation: fgax.CanView, + ObjectType: "audience", + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + ObjectID: objectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + access, err := q.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + // Skip to the next privacy rule (equivalent to return nil) + return privacy.Skip +} + +func (m *AudienceMutation) CheckAccessForEdit(ctx context.Context) error { + var objectID string + + gCtx := graphql.GetFieldContext(ctx) + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + // check the id from the args + if objectID == "" { + objectID, _ = gCtx.Args["id"].(string) + } + + // request is for a list objects, will get filtered in interceptors + if objectID == "" { + return privacy.Allowf("nil request, bypassing auth check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + ac := fgax.AccessCheck{ + Relation: fgax.CanEdit, + ObjectType: "audience", + ObjectID: objectID, + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + log.Debug().Interface("access_check", ac).Msg("checking relationship tuples") + + access, err := m.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + log.Error().Interface("access_check", ac).Bool("access_result", access).Msg("access denied") + + // return error if the action is not allowed + return ErrPermissionDenied +} + +func (m *AudienceMutation) CheckAccessForDelete(ctx context.Context) error { + gCtx := graphql.GetFieldContext(ctx) + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + objectID, ok := gCtx.Args["id"].(string) + if !ok { + log.Info().Msg("no id found in args, skipping auth check, will be filtered in hooks") + + return privacy.Allowf("nil request, bypassing auth check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + ac := fgax.AccessCheck{ + Relation: fgax.CanDelete, + ObjectType: "audience", + ObjectID: objectID, + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + log.Debug().Interface("access_check", ac).Msg("checking relationship tuples") + + access, err := m.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + log.Error().Interface("access_check", ac).Bool("access_result", access).Msg("access denied") + + // return error if the action is not allowed + return ErrPermissionDenied +} + +func (q *AudienceMemberQuery) CheckAccess(ctx context.Context) error { + gCtx := graphql.GetFieldContext(ctx) + + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + var objectID string + + // check id from graphql arg context + // when all objects are requested, the interceptor will check object access + // check the where input first + whereArg := gCtx.Args["where"] + if whereArg != nil { + where, ok := whereArg.(*AudienceMemberWhereInput) + if ok && where != nil && where.ID != nil { + objectID = *where.ID + } + } + + // if that doesn't work, check for the id in the request args + if objectID == "" { + objectID, _ = gCtx.Args["id"].(string) + } + + // request is for a list objects, will get filtered in interceptors + if objectID == "" { + return privacy.Allowf("nil request, bypassing auth check") + } + + // check if the user has access to the object requested + ac := fgax.AccessCheck{ + Relation: fgax.CanView, + ObjectType: "audience_member", + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + ObjectID: objectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + access, err := q.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + // Skip to the next privacy rule (equivalent to return nil) + return privacy.Skip +} + +func (m *AudienceMemberMutation) CheckAccessForEdit(ctx context.Context) error { + var objectID string + + gCtx := graphql.GetFieldContext(ctx) + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + // check the id from the args + if objectID == "" { + objectID, _ = gCtx.Args["id"].(string) + } + + // request is for a list objects, will get filtered in interceptors + if objectID == "" { + return privacy.Allowf("nil request, bypassing auth check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + ac := fgax.AccessCheck{ + Relation: fgax.CanEdit, + ObjectType: "audience_member", + ObjectID: objectID, + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + log.Debug().Interface("access_check", ac).Msg("checking relationship tuples") + + access, err := m.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + log.Error().Interface("access_check", ac).Bool("access_result", access).Msg("access denied") + + // return error if the action is not allowed + return ErrPermissionDenied +} + +func (m *AudienceMemberMutation) CheckAccessForDelete(ctx context.Context) error { + gCtx := graphql.GetFieldContext(ctx) + if gCtx == nil { + // Skip to the next privacy rule (equivalent to return nil) + // if this is not a graphql request + return privacy.Skipf("not a graphql request, no context to check") + } + + objectID, ok := gCtx.Args["id"].(string) + if !ok { + log.Info().Msg("no id found in args, skipping auth check, will be filtered in hooks") + + return privacy.Allowf("nil request, bypassing auth check") + } + + caller, ok := auth.CallerFromContext(ctx) + if !ok || caller == nil { + log.Error().Msg("unable to get caller from context") + return privacy.Skipf("unable to get caller from context") + } + + ac := fgax.AccessCheck{ + Relation: fgax.CanDelete, + ObjectType: "audience_member", + ObjectID: objectID, + SubjectType: caller.SubjectType(), + SubjectID: caller.SubjectID, + Context: newOrganizationContextKey(caller.SubjectEmail), + } + + log.Debug().Interface("access_check", ac).Msg("checking relationship tuples") + + access, err := m.Authz.CheckAccess(ctx, ac) + if err == nil && access { + return privacy.Allow + } + + log.Error().Interface("access_check", ac).Bool("access_result", access).Msg("access denied") + + // return error if the action is not allowed + return ErrPermissionDenied +} + func (q *CampaignQuery) CheckAccess(ctx context.Context) error { gCtx := graphql.GetFieldContext(ctx) diff --git a/internal/ent/generated/campaign.go b/internal/ent/generated/campaign.go index 179ab90e6f..a11a0a4f7e 100644 --- a/internal/ent/generated/campaign.go +++ b/internal/ent/generated/campaign.go @@ -157,15 +157,17 @@ type CampaignEdges struct { Groups []*Group `json:"groups,omitempty"` // IdentityHolders holds the value of the identity_holders edge. IdentityHolders []*IdentityHolder `json:"identity_holders,omitempty"` + // Audiences holds the value of the audiences edge. + Audiences []*Audience `json:"audiences,omitempty"` // Controls holds the value of the controls edge. Controls []*Control `json:"controls,omitempty"` // WorkflowObjectRefs holds the value of the workflow_object_refs edge. WorkflowObjectRefs []*WorkflowObjectRef `json:"workflow_object_refs,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [20]bool + loadedTypes [21]bool // totalCount holds the count of the edges above. - totalCount [20]map[string]int + totalCount [21]map[string]int namedBlockedGroups map[string][]*Group namedEditors map[string][]*Group @@ -176,6 +178,7 @@ type CampaignEdges struct { namedUsers map[string][]*User namedGroups map[string][]*Group namedIdentityHolders map[string][]*IdentityHolder + namedAudiences map[string][]*Audience namedControls map[string][]*Control namedWorkflowObjectRefs map[string][]*WorkflowObjectRef } @@ -360,10 +363,19 @@ func (e CampaignEdges) IdentityHoldersOrErr() ([]*IdentityHolder, error) { return nil, &NotLoadedError{edge: "identity_holders"} } +// AudiencesOrErr returns the Audiences value or an error if the edge +// was not loaded in eager-loading. +func (e CampaignEdges) AudiencesOrErr() ([]*Audience, error) { + if e.loadedTypes[18] { + return e.Audiences, nil + } + return nil, &NotLoadedError{edge: "audiences"} +} + // ControlsOrErr returns the Controls value or an error if the edge // was not loaded in eager-loading. func (e CampaignEdges) ControlsOrErr() ([]*Control, error) { - if e.loadedTypes[18] { + if e.loadedTypes[19] { return e.Controls, nil } return nil, &NotLoadedError{edge: "controls"} @@ -372,7 +384,7 @@ func (e CampaignEdges) ControlsOrErr() ([]*Control, error) { // WorkflowObjectRefsOrErr returns the WorkflowObjectRefs value or an error if the edge // was not loaded in eager-loading. func (e CampaignEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, error) { - if e.loadedTypes[19] { + if e.loadedTypes[20] { return e.WorkflowObjectRefs, nil } return nil, &NotLoadedError{edge: "workflow_object_refs"} @@ -787,6 +799,11 @@ func (_m *Campaign) QueryIdentityHolders() *IdentityHolderQuery { return NewCampaignClient(_m.config).QueryIdentityHolders(_m) } +// QueryAudiences queries the "audiences" edge of the Campaign entity. +func (_m *Campaign) QueryAudiences() *AudienceQuery { + return NewCampaignClient(_m.config).QueryAudiences(_m) +} + // QueryControls queries the "controls" edge of the Campaign entity. func (_m *Campaign) QueryControls() *ControlQuery { return NewCampaignClient(_m.config).QueryControls(_m) @@ -1185,6 +1202,30 @@ func (_m *Campaign) appendNamedIdentityHolders(name string, edges ...*IdentityHo } } +// NamedAudiences returns the Audiences named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Campaign) NamedAudiences(name string) ([]*Audience, error) { + if _m.Edges.namedAudiences == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudiences[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Campaign) appendNamedAudiences(name string, edges ...*Audience) { + if _m.Edges.namedAudiences == nil { + _m.Edges.namedAudiences = make(map[string][]*Audience) + } + if len(edges) == 0 { + _m.Edges.namedAudiences[name] = []*Audience{} + } else { + _m.Edges.namedAudiences[name] = append(_m.Edges.namedAudiences[name], edges...) + } +} + // NamedControls returns the Controls named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *Campaign) NamedControls(name string) ([]*Control, error) { diff --git a/internal/ent/generated/campaign/campaign.go b/internal/ent/generated/campaign/campaign.go index fd3ec3fc13..3ad47bd10e 100644 --- a/internal/ent/generated/campaign/campaign.go +++ b/internal/ent/generated/campaign/campaign.go @@ -138,6 +138,8 @@ const ( EdgeGroups = "groups" // EdgeIdentityHolders holds the string denoting the identity_holders edge name in mutations. EdgeIdentityHolders = "identity_holders" + // EdgeAudiences holds the string denoting the audiences edge name in mutations. + EdgeAudiences = "audiences" // EdgeControls holds the string denoting the controls edge name in mutations. EdgeControls = "controls" // EdgeWorkflowObjectRefs holds the string denoting the workflow_object_refs edge name in mutations. @@ -256,6 +258,11 @@ const ( // IdentityHoldersInverseTable is the table name for the IdentityHolder entity. // It exists in this package in order to avoid circular dependency with the "identityholder" package. IdentityHoldersInverseTable = "identity_holders" + // AudiencesTable is the table that holds the audiences relation/edge. The primary key declared below. + AudiencesTable = "campaign_audiences" + // AudiencesInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudiencesInverseTable = "audiences" // ControlsTable is the table that holds the controls relation/edge. The primary key declared below. ControlsTable = "control_campaigns" // ControlsInverseTable is the table name for the Control entity. @@ -339,6 +346,9 @@ var ( // IdentityHoldersPrimaryKey and IdentityHoldersColumn2 are the table columns denoting the // primary key for the identity_holders relation (M2M). IdentityHoldersPrimaryKey = []string{"campaign_id", "identity_holder_id"} + // AudiencesPrimaryKey and AudiencesColumn2 are the table columns denoting the + // primary key for the audiences relation (M2M). + AudiencesPrimaryKey = []string{"campaign_id", "audience_id"} // ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the // primary key for the controls relation (M2M). ControlsPrimaryKey = []string{"control_id", "campaign_id"} @@ -830,6 +840,20 @@ func ByIdentityHolders(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudiencesCount orders the results by audiences count. +func ByAudiencesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudiencesStep(), opts...) + } +} + +// ByAudiences orders the results by audiences terms. +func ByAudiences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudiencesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByControlsCount orders the results by controls count. func ByControlsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -983,6 +1007,13 @@ func newIdentityHoldersStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2M, false, IdentityHoldersTable, IdentityHoldersPrimaryKey...), ) } +func newAudiencesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudiencesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, AudiencesTable, AudiencesPrimaryKey...), + ) +} func newControlsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/campaign/where.go b/internal/ent/generated/campaign/where.go index 70b006c671..01470b7796 100644 --- a/internal/ent/generated/campaign/where.go +++ b/internal/ent/generated/campaign/where.go @@ -3011,6 +3011,29 @@ func HasIdentityHoldersWith(preds ...predicate.IdentityHolder) predicate.Campaig }) } +// HasAudiences applies the HasEdge predicate on the "audiences" edge. +func HasAudiences() predicate.Campaign { + return predicate.Campaign(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, AudiencesTable, AudiencesPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudiencesWith applies the HasEdge predicate on the "audiences" edge with a given conditions (other predicates). +func HasAudiencesWith(preds ...predicate.Audience) predicate.Campaign { + return predicate.Campaign(func(s *sql.Selector) { + step := newAudiencesStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasControls applies the HasEdge predicate on the "controls" edge. func HasControls() predicate.Campaign { return predicate.Campaign(func(s *sql.Selector) { diff --git a/internal/ent/generated/campaign_create.go b/internal/ent/generated/campaign_create.go index b2cf54f3ca..d97c3df8b1 100644 --- a/internal/ent/generated/campaign_create.go +++ b/internal/ent/generated/campaign_create.go @@ -14,6 +14,7 @@ import ( "github.com/theopenlane/core/common/models" "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -787,6 +788,21 @@ func (_c *CampaignCreate) AddIdentityHolders(v ...*IdentityHolder) *CampaignCrea return _c.AddIdentityHolderIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_c *CampaignCreate) AddAudienceIDs(ids ...string) *CampaignCreate { + _c.mutation.AddAudienceIDs(ids...) + return _c +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_c *CampaignCreate) AddAudiences(v ...*Audience) *CampaignCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceIDs(ids...) +} + // AddControlIDs adds the "controls" edge to the Control entity by IDs. func (_c *CampaignCreate) AddControlIDs(ids ...string) *CampaignCreate { _c.mutation.AddControlIDs(ids...) @@ -1442,6 +1458,22 @@ func (_c *CampaignCreate) createSpec() (*Campaign, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.ControlsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, diff --git a/internal/ent/generated/campaign_query.go b/internal/ent/generated/campaign_query.go index 905343a6ff..407ff81e11 100644 --- a/internal/ent/generated/campaign_query.go +++ b/internal/ent/generated/campaign_query.go @@ -15,6 +15,7 @@ import ( "entgo.io/ent/schema/field" "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -59,6 +60,7 @@ type CampaignQuery struct { withUsers *UserQuery withGroups *GroupQuery withIdentityHolders *IdentityHolderQuery + withAudiences *AudienceQuery withControls *ControlQuery withWorkflowObjectRefs *WorkflowObjectRefQuery loadTotal []func(context.Context, []*Campaign) error @@ -72,6 +74,7 @@ type CampaignQuery struct { withNamedUsers map[string]*UserQuery withNamedGroups map[string]*GroupQuery withNamedIdentityHolders map[string]*IdentityHolderQuery + withNamedAudiences map[string]*AudienceQuery withNamedControls map[string]*ControlQuery withNamedWorkflowObjectRefs map[string]*WorkflowObjectRefQuery // intermediate query (i.e. traversal path). @@ -506,6 +509,28 @@ func (_q *CampaignQuery) QueryIdentityHolders() *IdentityHolderQuery { return query } +// QueryAudiences chains the current query on the "audiences" edge. +func (_q *CampaignQuery) QueryAudiences() *AudienceQuery { + query := (&AudienceClient{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(campaign.Table, campaign.FieldID, selector), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, campaign.AudiencesTable, campaign.AudiencesPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryControls chains the current query on the "controls" edge. func (_q *CampaignQuery) QueryControls() *ControlQuery { query := (&ControlClient{config: _q.config}).Query() @@ -760,6 +785,7 @@ func (_q *CampaignQuery) Clone() *CampaignQuery { withUsers: _q.withUsers.Clone(), withGroups: _q.withGroups.Clone(), withIdentityHolders: _q.withIdentityHolders.Clone(), + withAudiences: _q.withAudiences.Clone(), withControls: _q.withControls.Clone(), withWorkflowObjectRefs: _q.withWorkflowObjectRefs.Clone(), // clone intermediate query. @@ -967,6 +993,17 @@ func (_q *CampaignQuery) WithIdentityHolders(opts ...func(*IdentityHolderQuery)) return _q } +// WithAudiences tells the query-builder to eager-load the nodes that are connected to +// the "audiences" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *CampaignQuery) WithAudiences(opts ...func(*AudienceQuery)) *CampaignQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudiences = 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 *CampaignQuery) WithControls(opts ...func(*ControlQuery)) *CampaignQuery { @@ -1073,7 +1110,7 @@ func (_q *CampaignQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cam var ( nodes = []*Campaign{} _spec = _q.querySpec() - loadedTypes = [20]bool{ + loadedTypes = [21]bool{ _q.withOwner != nil, _q.withBlockedGroups != nil, _q.withEditors != nil, @@ -1092,6 +1129,7 @@ func (_q *CampaignQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cam _q.withUsers != nil, _q.withGroups != nil, _q.withIdentityHolders != nil, + _q.withAudiences != nil, _q.withControls != nil, _q.withWorkflowObjectRefs != nil, } @@ -1236,6 +1274,13 @@ func (_q *CampaignQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cam return nil, err } } + if query := _q.withAudiences; query != nil { + if err := _q.loadAudiences(ctx, query, nodes, + func(n *Campaign) { n.Edges.Audiences = []*Audience{} }, + func(n *Campaign, e *Audience) { n.Edges.Audiences = append(n.Edges.Audiences, e) }); err != nil { + return nil, err + } + } if query := _q.withControls; query != nil { if err := _q.loadControls(ctx, query, nodes, func(n *Campaign) { n.Edges.Controls = []*Control{} }, @@ -1315,6 +1360,13 @@ func (_q *CampaignQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cam return nil, err } } + for name, query := range _q.withNamedAudiences { + if err := _q.loadAudiences(ctx, query, nodes, + func(n *Campaign) { n.appendNamedAudiences(name) }, + func(n *Campaign, e *Audience) { n.appendNamedAudiences(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedControls { if err := _q.loadControls(ctx, query, nodes, func(n *Campaign) { n.appendNamedControls(name) }, @@ -2085,6 +2137,67 @@ func (_q *CampaignQuery) loadIdentityHolders(ctx context.Context, query *Identit } return nil } +func (_q *CampaignQuery) loadAudiences(ctx context.Context, query *AudienceQuery, nodes []*Campaign, init func(*Campaign), assign func(*Campaign, *Audience)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Campaign) + nids := make(map[string]map[*Campaign]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(campaign.AudiencesTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(campaign.AudiencesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.AudiencesPrimaryKey[0]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(campaign.AudiencesPrimaryKey[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[*Campaign]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Audience](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 "audiences" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} func (_q *CampaignQuery) loadControls(ctx context.Context, query *ControlQuery, nodes []*Campaign, init func(*Campaign), assign func(*Campaign, *Control)) error { edgeIDs := make([]driver.Value, len(nodes)) byID := make(map[string]*Campaign) @@ -2424,6 +2537,20 @@ func (_q *CampaignQuery) WithNamedIdentityHolders(name string, opts ...func(*Ide return _q } +// WithNamedAudiences tells the query-builder to eager-load the nodes that are connected to the "audiences" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *CampaignQuery) WithNamedAudiences(name string, opts ...func(*AudienceQuery)) *CampaignQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudiences == nil { + _q.withNamedAudiences = make(map[string]*AudienceQuery) + } + _q.withNamedAudiences[name] = query + return _q +} + // WithNamedControls tells the query-builder to eager-load the nodes that are connected to the "controls" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *CampaignQuery) WithNamedControls(name string, opts ...func(*ControlQuery)) *CampaignQuery { diff --git a/internal/ent/generated/campaign_update.go b/internal/ent/generated/campaign_update.go index 51f7e28277..4740ee9f36 100644 --- a/internal/ent/generated/campaign_update.go +++ b/internal/ent/generated/campaign_update.go @@ -16,6 +16,7 @@ import ( "github.com/theopenlane/core/common/models" "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -954,6 +955,21 @@ func (_u *CampaignUpdate) AddIdentityHolders(v ...*IdentityHolder) *CampaignUpda return _u.AddIdentityHolderIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_u *CampaignUpdate) AddAudienceIDs(ids ...string) *CampaignUpdate { + _u.mutation.AddAudienceIDs(ids...) + return _u +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_u *CampaignUpdate) AddAudiences(v ...*Audience) *CampaignUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceIDs(ids...) +} + // AddControlIDs adds the "controls" edge to the Control entity by IDs. func (_u *CampaignUpdate) AddControlIDs(ids ...string) *CampaignUpdate { _u.mutation.AddControlIDs(ids...) @@ -1226,6 +1242,27 @@ func (_u *CampaignUpdate) RemoveIdentityHolders(v ...*IdentityHolder) *CampaignU return _u.RemoveIdentityHolderIDs(ids...) } +// ClearAudiences clears all "audiences" edges to the Audience entity. +func (_u *CampaignUpdate) ClearAudiences() *CampaignUpdate { + _u.mutation.ClearAudiences() + return _u +} + +// RemoveAudienceIDs removes the "audiences" edge to Audience entities by IDs. +func (_u *CampaignUpdate) RemoveAudienceIDs(ids ...string) *CampaignUpdate { + _u.mutation.RemoveAudienceIDs(ids...) + return _u +} + +// RemoveAudiences removes "audiences" edges to Audience entities. +func (_u *CampaignUpdate) RemoveAudiences(v ...*Audience) *CampaignUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceIDs(ids...) +} + // ClearControls clears all "controls" edges to the Control entity. func (_u *CampaignUpdate) ClearControls() *CampaignUpdate { _u.mutation.ClearControls() @@ -2185,6 +2222,51 @@ func (_u *CampaignUpdate) sqlSave(ctx context.Context) (_node int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudiencesIDs(); len(nodes) > 0 && !_u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + 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.M2M, @@ -3205,6 +3287,21 @@ func (_u *CampaignUpdateOne) AddIdentityHolders(v ...*IdentityHolder) *CampaignU return _u.AddIdentityHolderIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_u *CampaignUpdateOne) AddAudienceIDs(ids ...string) *CampaignUpdateOne { + _u.mutation.AddAudienceIDs(ids...) + return _u +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_u *CampaignUpdateOne) AddAudiences(v ...*Audience) *CampaignUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceIDs(ids...) +} + // AddControlIDs adds the "controls" edge to the Control entity by IDs. func (_u *CampaignUpdateOne) AddControlIDs(ids ...string) *CampaignUpdateOne { _u.mutation.AddControlIDs(ids...) @@ -3477,6 +3574,27 @@ func (_u *CampaignUpdateOne) RemoveIdentityHolders(v ...*IdentityHolder) *Campai return _u.RemoveIdentityHolderIDs(ids...) } +// ClearAudiences clears all "audiences" edges to the Audience entity. +func (_u *CampaignUpdateOne) ClearAudiences() *CampaignUpdateOne { + _u.mutation.ClearAudiences() + return _u +} + +// RemoveAudienceIDs removes the "audiences" edge to Audience entities by IDs. +func (_u *CampaignUpdateOne) RemoveAudienceIDs(ids ...string) *CampaignUpdateOne { + _u.mutation.RemoveAudienceIDs(ids...) + return _u +} + +// RemoveAudiences removes "audiences" edges to Audience entities. +func (_u *CampaignUpdateOne) RemoveAudiences(v ...*Audience) *CampaignUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceIDs(ids...) +} + // ClearControls clears all "controls" edges to the Control entity. func (_u *CampaignUpdateOne) ClearControls() *CampaignUpdateOne { _u.mutation.ClearControls() @@ -4466,6 +4584,51 @@ func (_u *CampaignUpdateOne) sqlSave(ctx context.Context) (_node *Campaign, err } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudiencesIDs(); len(nodes) > 0 && !_u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + 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.M2M, diff --git a/internal/ent/generated/client.go b/internal/ent/generated/client.go index a6a6eef541..4cb533c44f 100644 --- a/internal/ent/generated/client.go +++ b/internal/ent/generated/client.go @@ -24,6 +24,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -152,6 +154,10 @@ type Client struct { AssessmentResponse *AssessmentResponseClient // Asset is the client for interacting with the Asset builders. Asset *AssetClient + // Audience is the client for interacting with the Audience builders. + Audience *AudienceClient + // AudienceMember is the client for interacting with the AudienceMember builders. + AudienceMember *AudienceMemberClient // Campaign is the client for interacting with the Campaign builders. Campaign *CampaignClient // CampaignTarget is the client for interacting with the CampaignTarget builders. @@ -367,6 +373,8 @@ func (c *Client) init() { c.Assessment = NewAssessmentClient(c.config) c.AssessmentResponse = NewAssessmentResponseClient(c.config) c.Asset = NewAssetClient(c.config) + c.Audience = NewAudienceClient(c.config) + c.AudienceMember = NewAudienceMemberClient(c.config) c.Campaign = NewCampaignClient(c.config) c.CampaignTarget = NewCampaignTargetClient(c.config) c.CheckResult = NewCheckResultClient(c.config) @@ -665,6 +673,8 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { Assessment: NewAssessmentClient(cfg), AssessmentResponse: NewAssessmentResponseClient(cfg), Asset: NewAssetClient(cfg), + Audience: NewAudienceClient(cfg), + AudienceMember: NewAudienceMemberClient(cfg), Campaign: NewCampaignClient(cfg), CampaignTarget: NewCampaignTargetClient(cfg), CheckResult: NewCheckResultClient(cfg), @@ -784,6 +794,8 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) Assessment: NewAssessmentClient(cfg), AssessmentResponse: NewAssessmentResponseClient(cfg), Asset: NewAssetClient(cfg), + Audience: NewAudienceClient(cfg), + AudienceMember: NewAudienceMemberClient(cfg), Campaign: NewCampaignClient(cfg), CampaignTarget: NewCampaignTargetClient(cfg), CheckResult: NewCheckResultClient(cfg), @@ -909,18 +921,19 @@ func (c *Client) Close() error { func (c *Client) Use(hooks ...Hook) { for _, n := range []interface{ Use(...Hook) }{ c.APIToken, c.ActionPlan, c.Assessment, c.AssessmentResponse, c.Asset, - c.Campaign, c.CampaignTarget, c.CheckResult, c.Contact, c.Control, - c.ControlImplementation, c.ControlObjective, c.CustomDomain, c.CustomTypeEnum, - c.DNSVerification, c.DirectoryAccount, c.DirectoryGroup, c.DirectoryMembership, - c.DirectorySyncRun, c.Discussion, c.DocumentData, c.EmailTemplate, - c.EmailVerificationToken, c.Entity, c.EntityType, c.Event, c.Evidence, - c.Export, c.File, c.FileDownloadToken, c.Finding, c.FindingControl, c.Group, - c.GroupMembership, c.GroupSetting, c.Hush, c.IdentityHolder, - c.ImpersonationEvent, c.Integration, c.IntegrationRun, c.IntegrationWebhook, - c.InternalPolicy, c.Invite, c.MappableDomain, c.MappedControl, c.Narrative, - c.Note, c.Notification, c.NotificationPreference, c.NotificationTemplate, - c.Onboarding, c.OrgMembership, c.OrgModule, c.OrgPrice, c.OrgProduct, - c.OrgSubscription, c.Organization, c.OrganizationSetting, c.PasswordResetToken, + c.Audience, c.AudienceMember, c.Campaign, c.CampaignTarget, c.CheckResult, + c.Contact, c.Control, c.ControlImplementation, c.ControlObjective, + c.CustomDomain, c.CustomTypeEnum, c.DNSVerification, c.DirectoryAccount, + c.DirectoryGroup, c.DirectoryMembership, c.DirectorySyncRun, c.Discussion, + c.DocumentData, c.EmailTemplate, c.EmailVerificationToken, c.Entity, + c.EntityType, c.Event, c.Evidence, c.Export, c.File, c.FileDownloadToken, + c.Finding, c.FindingControl, c.Group, c.GroupMembership, c.GroupSetting, + c.Hush, c.IdentityHolder, c.ImpersonationEvent, c.Integration, + c.IntegrationRun, c.IntegrationWebhook, c.InternalPolicy, c.Invite, + c.MappableDomain, c.MappedControl, c.Narrative, c.Note, c.Notification, + c.NotificationPreference, c.NotificationTemplate, c.Onboarding, + c.OrgMembership, c.OrgModule, c.OrgPrice, c.OrgProduct, c.OrgSubscription, + c.Organization, c.OrganizationSetting, c.PasswordResetToken, c.PersonalAccessToken, c.Platform, c.Procedure, c.Program, c.ProgramMembership, c.Remediation, c.Review, c.Risk, c.SLADefinition, c.Scan, c.Standard, c.Subcontrol, c.Subprocessor, c.Subscriber, c.SystemDetail, c.TFASetting, @@ -941,18 +954,19 @@ func (c *Client) Use(hooks ...Hook) { func (c *Client) Intercept(interceptors ...Interceptor) { for _, n := range []interface{ Intercept(...Interceptor) }{ c.APIToken, c.ActionPlan, c.Assessment, c.AssessmentResponse, c.Asset, - c.Campaign, c.CampaignTarget, c.CheckResult, c.Contact, c.Control, - c.ControlImplementation, c.ControlObjective, c.CustomDomain, c.CustomTypeEnum, - c.DNSVerification, c.DirectoryAccount, c.DirectoryGroup, c.DirectoryMembership, - c.DirectorySyncRun, c.Discussion, c.DocumentData, c.EmailTemplate, - c.EmailVerificationToken, c.Entity, c.EntityType, c.Event, c.Evidence, - c.Export, c.File, c.FileDownloadToken, c.Finding, c.FindingControl, c.Group, - c.GroupMembership, c.GroupSetting, c.Hush, c.IdentityHolder, - c.ImpersonationEvent, c.Integration, c.IntegrationRun, c.IntegrationWebhook, - c.InternalPolicy, c.Invite, c.MappableDomain, c.MappedControl, c.Narrative, - c.Note, c.Notification, c.NotificationPreference, c.NotificationTemplate, - c.Onboarding, c.OrgMembership, c.OrgModule, c.OrgPrice, c.OrgProduct, - c.OrgSubscription, c.Organization, c.OrganizationSetting, c.PasswordResetToken, + c.Audience, c.AudienceMember, c.Campaign, c.CampaignTarget, c.CheckResult, + c.Contact, c.Control, c.ControlImplementation, c.ControlObjective, + c.CustomDomain, c.CustomTypeEnum, c.DNSVerification, c.DirectoryAccount, + c.DirectoryGroup, c.DirectoryMembership, c.DirectorySyncRun, c.Discussion, + c.DocumentData, c.EmailTemplate, c.EmailVerificationToken, c.Entity, + c.EntityType, c.Event, c.Evidence, c.Export, c.File, c.FileDownloadToken, + c.Finding, c.FindingControl, c.Group, c.GroupMembership, c.GroupSetting, + c.Hush, c.IdentityHolder, c.ImpersonationEvent, c.Integration, + c.IntegrationRun, c.IntegrationWebhook, c.InternalPolicy, c.Invite, + c.MappableDomain, c.MappedControl, c.Narrative, c.Note, c.Notification, + c.NotificationPreference, c.NotificationTemplate, c.Onboarding, + c.OrgMembership, c.OrgModule, c.OrgPrice, c.OrgProduct, c.OrgSubscription, + c.Organization, c.OrganizationSetting, c.PasswordResetToken, c.PersonalAccessToken, c.Platform, c.Procedure, c.Program, c.ProgramMembership, c.Remediation, c.Review, c.Risk, c.SLADefinition, c.Scan, c.Standard, c.Subcontrol, c.Subprocessor, c.Subscriber, c.SystemDetail, c.TFASetting, @@ -1053,6 +1067,10 @@ func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) { return c.AssessmentResponse.mutate(ctx, m) case *AssetMutation: return c.Asset.mutate(ctx, m) + case *AudienceMutation: + return c.Audience.mutate(ctx, m) + case *AudienceMemberMutation: + return c.AudienceMember.mutate(ctx, m) case *CampaignMutation: return c.Campaign.mutate(ctx, m) case *CampaignTargetMutation: @@ -3027,6 +3045,484 @@ func (c *AssetClient) mutate(ctx context.Context, m *AssetMutation) (Value, erro } } +// AudienceClient is a client for the Audience schema. +type AudienceClient struct { + config +} + +// NewAudienceClient returns a client for the Audience from the given config. +func NewAudienceClient(c config) *AudienceClient { + return &AudienceClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `audience.Hooks(f(g(h())))`. +func (c *AudienceClient) Use(hooks ...Hook) { + c.hooks.Audience = append(c.hooks.Audience, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `audience.Intercept(f(g(h())))`. +func (c *AudienceClient) Intercept(interceptors ...Interceptor) { + c.inters.Audience = append(c.inters.Audience, interceptors...) +} + +// Create returns a builder for creating a Audience entity. +func (c *AudienceClient) Create() *AudienceCreate { + mutation := newAudienceMutation(c.config, OpCreate) + return &AudienceCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of Audience entities. +func (c *AudienceClient) CreateBulk(builders ...*AudienceCreate) *AudienceCreateBulk { + return &AudienceCreateBulk{config: c.config, builders: builders} +} + +// MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates +// a builder and applies setFunc on it. +func (c *AudienceClient) MapCreateBulk(slice any, setFunc func(*AudienceCreate, int)) *AudienceCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &AudienceCreateBulk{err: fmt.Errorf("calling to AudienceClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*AudienceCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &AudienceCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for Audience. +func (c *AudienceClient) Update() *AudienceUpdate { + mutation := newAudienceMutation(c.config, OpUpdate) + return &AudienceUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *AudienceClient) UpdateOne(_m *Audience) *AudienceUpdateOne { + mutation := newAudienceMutation(c.config, OpUpdateOne, withAudience(_m)) + return &AudienceUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *AudienceClient) UpdateOneID(id string) *AudienceUpdateOne { + mutation := newAudienceMutation(c.config, OpUpdateOne, withAudienceID(id)) + return &AudienceUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for Audience. +func (c *AudienceClient) Delete() *AudienceDelete { + mutation := newAudienceMutation(c.config, OpDelete) + return &AudienceDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *AudienceClient) DeleteOne(_m *Audience) *AudienceDeleteOne { + return c.DeleteOneID(_m.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *AudienceClient) DeleteOneID(id string) *AudienceDeleteOne { + builder := c.Delete().Where(audience.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &AudienceDeleteOne{builder} +} + +// Query returns a query builder for Audience. +func (c *AudienceClient) Query() *AudienceQuery { + return &AudienceQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeAudience}, + inters: c.Interceptors(), + } +} + +// Get returns a Audience entity by its id. +func (c *AudienceClient) Get(ctx context.Context, id string) (*Audience, error) { + return c.Query().Where(audience.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *AudienceClient) GetX(ctx context.Context, id string) *Audience { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOwner queries the owner edge of a Audience. +func (c *AudienceClient) QueryOwner(_m *Audience) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audience.OwnerTable, audience.OwnerColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryBlockedGroups queries the blocked_groups edge of a Audience. +func (c *AudienceClient) QueryBlockedGroups(_m *Audience) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.BlockedGroupsTable, audience.BlockedGroupsPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryEditors queries the editors edge of a Audience. +func (c *AudienceClient) QueryEditors(_m *Audience) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.EditorsTable, audience.EditorsPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryViewers queries the viewers edge of a Audience. +func (c *AudienceClient) QueryViewers(_m *Audience) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, audience.ViewersTable, audience.ViewersPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudienceMembers queries the audience_members edge of a Audience. +func (c *AudienceClient) QueryAudienceMembers(_m *Audience) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, audience.AudienceMembersTable, audience.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryCampaigns queries the campaigns edge of a Audience. +func (c *AudienceClient) QueryCampaigns(_m *Audience) *CampaignQuery { + query := (&CampaignClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audience.Table, audience.FieldID, id), + sqlgraph.To(campaign.Table, campaign.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, audience.CampaignsTable, audience.CampaignsPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *AudienceClient) Hooks() []Hook { + hooks := c.hooks.Audience + return append(hooks[:len(hooks):len(hooks)], audience.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *AudienceClient) Interceptors() []Interceptor { + inters := c.inters.Audience + return append(inters[:len(inters):len(inters)], audience.Interceptors[:]...) +} + +func (c *AudienceClient) mutate(ctx context.Context, m *AudienceMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&AudienceCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&AudienceUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&AudienceUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&AudienceDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown Audience mutation op: %q", m.Op()) + } +} + +// AudienceMemberClient is a client for the AudienceMember schema. +type AudienceMemberClient struct { + config +} + +// NewAudienceMemberClient returns a client for the AudienceMember from the given config. +func NewAudienceMemberClient(c config) *AudienceMemberClient { + return &AudienceMemberClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `audiencemember.Hooks(f(g(h())))`. +func (c *AudienceMemberClient) Use(hooks ...Hook) { + c.hooks.AudienceMember = append(c.hooks.AudienceMember, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `audiencemember.Intercept(f(g(h())))`. +func (c *AudienceMemberClient) Intercept(interceptors ...Interceptor) { + c.inters.AudienceMember = append(c.inters.AudienceMember, interceptors...) +} + +// Create returns a builder for creating a AudienceMember entity. +func (c *AudienceMemberClient) Create() *AudienceMemberCreate { + mutation := newAudienceMemberMutation(c.config, OpCreate) + return &AudienceMemberCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of AudienceMember entities. +func (c *AudienceMemberClient) CreateBulk(builders ...*AudienceMemberCreate) *AudienceMemberCreateBulk { + return &AudienceMemberCreateBulk{config: c.config, builders: builders} +} + +// MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates +// a builder and applies setFunc on it. +func (c *AudienceMemberClient) MapCreateBulk(slice any, setFunc func(*AudienceMemberCreate, int)) *AudienceMemberCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &AudienceMemberCreateBulk{err: fmt.Errorf("calling to AudienceMemberClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*AudienceMemberCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &AudienceMemberCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for AudienceMember. +func (c *AudienceMemberClient) Update() *AudienceMemberUpdate { + mutation := newAudienceMemberMutation(c.config, OpUpdate) + return &AudienceMemberUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *AudienceMemberClient) UpdateOne(_m *AudienceMember) *AudienceMemberUpdateOne { + mutation := newAudienceMemberMutation(c.config, OpUpdateOne, withAudienceMember(_m)) + return &AudienceMemberUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *AudienceMemberClient) UpdateOneID(id string) *AudienceMemberUpdateOne { + mutation := newAudienceMemberMutation(c.config, OpUpdateOne, withAudienceMemberID(id)) + return &AudienceMemberUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for AudienceMember. +func (c *AudienceMemberClient) Delete() *AudienceMemberDelete { + mutation := newAudienceMemberMutation(c.config, OpDelete) + return &AudienceMemberDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *AudienceMemberClient) DeleteOne(_m *AudienceMember) *AudienceMemberDeleteOne { + return c.DeleteOneID(_m.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *AudienceMemberClient) DeleteOneID(id string) *AudienceMemberDeleteOne { + builder := c.Delete().Where(audiencemember.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &AudienceMemberDeleteOne{builder} +} + +// Query returns a query builder for AudienceMember. +func (c *AudienceMemberClient) Query() *AudienceMemberQuery { + return &AudienceMemberQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeAudienceMember}, + inters: c.Interceptors(), + } +} + +// Get returns a AudienceMember entity by its id. +func (c *AudienceMemberClient) Get(ctx context.Context, id string) (*AudienceMember, error) { + return c.Query().Where(audiencemember.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *AudienceMemberClient) GetX(ctx context.Context, id string) *AudienceMember { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// QueryOwner queries the owner edge of a AudienceMember. +func (c *AudienceMemberClient) QueryOwner(_m *AudienceMember) *OrganizationQuery { + query := (&OrganizationClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(organization.Table, organization.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.OwnerTable, audiencemember.OwnerColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudience queries the audience edge of a AudienceMember. +func (c *AudienceMemberClient) QueryAudience(_m *AudienceMember) *AudienceQuery { + query := (&AudienceClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.AudienceTable, audiencemember.AudienceColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryContact queries the contact edge of a AudienceMember. +func (c *AudienceMemberClient) QueryContact(_m *AudienceMember) *ContactQuery { + query := (&ContactClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(contact.Table, contact.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.ContactTable, audiencemember.ContactColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryUser queries the user edge of a AudienceMember. +func (c *AudienceMemberClient) QueryUser(_m *AudienceMember) *UserQuery { + query := (&UserClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(user.Table, user.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.UserTable, audiencemember.UserColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryGroup queries the group edge of a AudienceMember. +func (c *AudienceMemberClient) QueryGroup(_m *AudienceMember) *GroupQuery { + query := (&GroupClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.GroupTable, audiencemember.GroupColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryIdentityHolder queries the identity_holder edge of a AudienceMember. +func (c *AudienceMemberClient) QueryIdentityHolder(_m *AudienceMember) *IdentityHolderQuery { + query := (&IdentityHolderClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(identityholder.Table, identityholder.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.IdentityHolderTable, audiencemember.IdentityHolderColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QuerySubscriber queries the subscriber edge of a AudienceMember. +func (c *AudienceMemberClient) QuerySubscriber(_m *AudienceMember) *SubscriberQuery { + query := (&SubscriberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(audiencemember.Table, audiencemember.FieldID, id), + sqlgraph.To(subscriber.Table, subscriber.FieldID), + sqlgraph.Edge(sqlgraph.M2O, true, audiencemember.SubscriberTable, audiencemember.SubscriberColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// Hooks returns the client hooks. +func (c *AudienceMemberClient) Hooks() []Hook { + hooks := c.hooks.AudienceMember + return append(hooks[:len(hooks):len(hooks)], audiencemember.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *AudienceMemberClient) Interceptors() []Interceptor { + inters := c.inters.AudienceMember + return append(inters[:len(inters):len(inters)], audiencemember.Interceptors[:]...) +} + +func (c *AudienceMemberClient) mutate(ctx context.Context, m *AudienceMemberMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&AudienceMemberCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&AudienceMemberUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&AudienceMemberUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&AudienceMemberDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("generated: unknown AudienceMember mutation op: %q", m.Op()) + } +} + // CampaignClient is a client for the Campaign schema. type CampaignClient struct { config @@ -3423,6 +3919,22 @@ func (c *CampaignClient) QueryIdentityHolders(_m *Campaign) *IdentityHolderQuery return query } +// QueryAudiences queries the audiences edge of a Campaign. +func (c *CampaignClient) QueryAudiences(_m *Campaign) *AudienceQuery { + query := (&AudienceClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(campaign.Table, campaign.FieldID, id), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, false, campaign.AudiencesTable, campaign.AudiencesPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryControls queries the controls edge of a Campaign. func (c *CampaignClient) QueryControls(_m *Campaign) *ControlQuery { query := (&ControlClient{config: c.config}).Query() @@ -4132,6 +4644,22 @@ func (c *ContactClient) QueryCampaignTargets(_m *Contact) *CampaignTargetQuery { return query } +// QueryAudienceMembers queries the audience_members edge of a Contact. +func (c *ContactClient) QueryAudienceMembers(_m *Contact) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(contact.Table, contact.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, contact.AudienceMembersTable, contact.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryFiles queries the files edge of a Contact. func (c *ContactClient) QueryFiles(_m *Contact) *FileQuery { query := (&FileClient{config: c.config}).Query() @@ -12059,6 +12587,54 @@ func (c *GroupClient) QueryCampaignViewers(_m *Group) *CampaignQuery { return query } +// QueryAudienceEditors queries the audience_editors edge of a Group. +func (c *GroupClient) QueryAudienceEditors(_m *Group) *AudienceQuery { + query := (&AudienceClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceEditorsTable, group.AudienceEditorsPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudienceBlockedGroups queries the audience_blocked_groups edge of a Group. +func (c *GroupClient) QueryAudienceBlockedGroups(_m *Group) *AudienceQuery { + query := (&AudienceClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceBlockedGroupsTable, group.AudienceBlockedGroupsPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudienceViewers queries the audience_viewers edge of a Group. +func (c *GroupClient) QueryAudienceViewers(_m *Group) *AudienceQuery { + query := (&AudienceClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceViewersTable, group.AudienceViewersPrimaryKey...), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryProcedureEditors queries the procedure_editors edge of a Group. func (c *GroupClient) QueryProcedureEditors(_m *Group) *ProcedureQuery { query := (&ProcedureClient{config: c.config}).Query() @@ -12491,6 +13067,22 @@ func (c *GroupClient) QueryCampaignTargets(_m *Group) *CampaignTargetQuery { return query } +// QueryAudienceMembers queries the audience_members edge of a Group. +func (c *GroupClient) QueryAudienceMembers(_m *Group) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(group.Table, group.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, group.AudienceMembersTable, group.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryInvites queries the invites edge of a Group. func (c *GroupClient) QueryInvites(_m *Group) *InviteQuery { query := (&InviteClient{config: c.config}).Query() @@ -13511,6 +14103,22 @@ func (c *IdentityHolderClient) QueryCampaigns(_m *IdentityHolder) *CampaignQuery return query } +// QueryAudienceMembers queries the audience_members edge of a IdentityHolder. +func (c *IdentityHolderClient) QueryAudienceMembers(_m *IdentityHolder) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(identityholder.Table, identityholder.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, identityholder.AudienceMembersTable, identityholder.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryTasks queries the tasks edge of a IdentityHolder. func (c *IdentityHolderClient) QueryTasks(_m *IdentityHolder) *TaskQuery { query := (&TaskClient{config: c.config}).Query() @@ -18403,6 +19011,38 @@ func (c *OrganizationClient) QueryAssetCreators(_m *Organization) *GroupQuery { return query } +// QueryAudienceCreators queries the audience_creators edge of a Organization. +func (c *OrganizationClient) QueryAudienceCreators(_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.AudienceCreatorsTable, organization.AudienceCreatorsColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudienceMemberCreators queries the audience_member_creators edge of a Organization. +func (c *OrganizationClient) QueryAudienceMemberCreators(_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.AudienceMemberCreatorsTable, organization.AudienceMemberCreatorsColumn), + ) + 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() @@ -20435,6 +21075,38 @@ func (c *OrganizationClient) QueryExports(_m *Organization) *ExportQuery { return query } +// QueryAudiences queries the audiences edge of a Organization. +func (c *OrganizationClient) QueryAudiences(_m *Organization) *AudienceQuery { + query := (&AudienceClient{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(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudiencesTable, organization.AudiencesColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + +// QueryAudienceMembers queries the audience_members edge of a Organization. +func (c *OrganizationClient) QueryAudienceMembers(_m *Organization) *AudienceMemberQuery { + query := (&AudienceMemberClient{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(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudienceMembersTable, organization.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QueryTrustCenterWatermarkConfigs queries the trust_center_watermark_configs edge of a Organization. func (c *OrganizationClient) QueryTrustCenterWatermarkConfigs(_m *Organization) *TrustCenterWatermarkConfigQuery { query := (&TrustCenterWatermarkConfigClient{config: c.config}).Query() @@ -26883,6 +27555,22 @@ func (c *SubscriberClient) QueryUser(_m *Subscriber) *UserQuery { return query } +// QueryAudienceMembers queries the audience_members edge of a Subscriber. +func (c *SubscriberClient) QueryAudienceMembers(_m *Subscriber) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(subscriber.Table, subscriber.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, subscriber.AudienceMembersTable, subscriber.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // Hooks returns the client hooks. func (c *SubscriberClient) Hooks() []Hook { hooks := c.hooks.Subscriber @@ -30828,6 +31516,22 @@ func (c *UserClient) QueryCampaignTargets(_m *User) *CampaignTargetQuery { return query } +// QueryAudienceMembers queries the audience_members edge of a User. +func (c *UserClient) QueryAudienceMembers(_m *User) *AudienceMemberQuery { + query := (&AudienceMemberClient{config: c.config}).Query() + query.path = func(context.Context) (fromV *sql.Selector, _ error) { + id := _m.ID + step := sqlgraph.NewStep( + sqlgraph.From(user.Table, user.FieldID, id), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, user.AudienceMembersTable, user.AudienceMembersColumn), + ) + fromV = sqlgraph.Neighbors(_m.driver.Dialect(), step) + return fromV, nil + } + return query +} + // QuerySubcontrols queries the subcontrols edge of a User. func (c *UserClient) QuerySubcontrols(_m *User) *SubcontrolQuery { query := (&SubcontrolClient{config: c.config}).Query() @@ -34398,50 +35102,51 @@ func (c *WorkflowProposalClient) mutate(ctx context.Context, m *WorkflowProposal // hooks and interceptors per client, for fast access. type ( hooks struct { - APIToken, ActionPlan, Assessment, AssessmentResponse, Asset, Campaign, - CampaignTarget, CheckResult, Contact, Control, ControlImplementation, - ControlObjective, CustomDomain, CustomTypeEnum, DNSVerification, - DirectoryAccount, DirectoryGroup, DirectoryMembership, DirectorySyncRun, - Discussion, DocumentData, EmailTemplate, EmailVerificationToken, Entity, - EntityType, Event, Evidence, Export, File, FileDownloadToken, Finding, - FindingControl, Group, GroupMembership, GroupSetting, Hush, IdentityHolder, - ImpersonationEvent, Integration, IntegrationRun, IntegrationWebhook, - InternalPolicy, Invite, MappableDomain, MappedControl, Narrative, Note, - Notification, NotificationPreference, NotificationTemplate, Onboarding, - OrgMembership, OrgModule, OrgPrice, OrgProduct, OrgSubscription, Organization, - OrganizationSetting, PasswordResetToken, PersonalAccessToken, Platform, - Procedure, Program, ProgramMembership, Remediation, Review, Risk, - SLADefinition, Scan, Standard, Subcontrol, Subprocessor, Subscriber, - SystemDetail, TFASetting, TagDefinition, Task, Template, TrustCenter, - TrustCenterCompliance, TrustCenterDoc, TrustCenterEntity, TrustCenterFAQ, - TrustCenterNDARequest, TrustCenterSetting, TrustCenterSubprocessor, - TrustCenterWatermarkConfig, User, UserSetting, VendorRiskScore, - VendorScoringConfig, Vulnerability, Webauthn, WorkflowAssignment, - WorkflowAssignmentTarget, WorkflowDefinition, WorkflowEvent, WorkflowInstance, - WorkflowObjectRef, WorkflowProposal []ent.Hook + APIToken, ActionPlan, Assessment, AssessmentResponse, Asset, Audience, + AudienceMember, Campaign, CampaignTarget, CheckResult, Contact, Control, + ControlImplementation, ControlObjective, CustomDomain, CustomTypeEnum, + DNSVerification, DirectoryAccount, DirectoryGroup, DirectoryMembership, + DirectorySyncRun, Discussion, DocumentData, EmailTemplate, + EmailVerificationToken, Entity, EntityType, Event, Evidence, Export, File, + FileDownloadToken, Finding, FindingControl, Group, GroupMembership, + GroupSetting, Hush, IdentityHolder, ImpersonationEvent, Integration, + IntegrationRun, IntegrationWebhook, InternalPolicy, Invite, MappableDomain, + MappedControl, Narrative, Note, Notification, NotificationPreference, + NotificationTemplate, Onboarding, OrgMembership, OrgModule, OrgPrice, + OrgProduct, OrgSubscription, Organization, OrganizationSetting, + PasswordResetToken, PersonalAccessToken, Platform, Procedure, Program, + ProgramMembership, Remediation, Review, Risk, SLADefinition, Scan, Standard, + Subcontrol, Subprocessor, Subscriber, SystemDetail, TFASetting, TagDefinition, + Task, Template, TrustCenter, TrustCenterCompliance, TrustCenterDoc, + TrustCenterEntity, TrustCenterFAQ, TrustCenterNDARequest, TrustCenterSetting, + TrustCenterSubprocessor, TrustCenterWatermarkConfig, User, UserSetting, + VendorRiskScore, VendorScoringConfig, Vulnerability, Webauthn, + WorkflowAssignment, WorkflowAssignmentTarget, WorkflowDefinition, + WorkflowEvent, WorkflowInstance, WorkflowObjectRef, WorkflowProposal []ent.Hook } inters struct { - APIToken, ActionPlan, Assessment, AssessmentResponse, Asset, Campaign, - CampaignTarget, CheckResult, Contact, Control, ControlImplementation, - ControlObjective, CustomDomain, CustomTypeEnum, DNSVerification, - DirectoryAccount, DirectoryGroup, DirectoryMembership, DirectorySyncRun, - Discussion, DocumentData, EmailTemplate, EmailVerificationToken, Entity, - EntityType, Event, Evidence, Export, File, FileDownloadToken, Finding, - FindingControl, Group, GroupMembership, GroupSetting, Hush, IdentityHolder, - ImpersonationEvent, Integration, IntegrationRun, IntegrationWebhook, - InternalPolicy, Invite, MappableDomain, MappedControl, Narrative, Note, - Notification, NotificationPreference, NotificationTemplate, Onboarding, - OrgMembership, OrgModule, OrgPrice, OrgProduct, OrgSubscription, Organization, - OrganizationSetting, PasswordResetToken, PersonalAccessToken, Platform, - Procedure, Program, ProgramMembership, Remediation, Review, Risk, - SLADefinition, Scan, Standard, Subcontrol, Subprocessor, Subscriber, - SystemDetail, TFASetting, TagDefinition, Task, Template, TrustCenter, - TrustCenterCompliance, TrustCenterDoc, TrustCenterEntity, TrustCenterFAQ, - TrustCenterNDARequest, TrustCenterSetting, TrustCenterSubprocessor, - TrustCenterWatermarkConfig, User, UserSetting, VendorRiskScore, - VendorScoringConfig, Vulnerability, Webauthn, WorkflowAssignment, - WorkflowAssignmentTarget, WorkflowDefinition, WorkflowEvent, WorkflowInstance, - WorkflowObjectRef, WorkflowProposal []ent.Interceptor + APIToken, ActionPlan, Assessment, AssessmentResponse, Asset, Audience, + AudienceMember, Campaign, CampaignTarget, CheckResult, Contact, Control, + ControlImplementation, ControlObjective, CustomDomain, CustomTypeEnum, + DNSVerification, DirectoryAccount, DirectoryGroup, DirectoryMembership, + DirectorySyncRun, Discussion, DocumentData, EmailTemplate, + EmailVerificationToken, Entity, EntityType, Event, Evidence, Export, File, + FileDownloadToken, Finding, FindingControl, Group, GroupMembership, + GroupSetting, Hush, IdentityHolder, ImpersonationEvent, Integration, + IntegrationRun, IntegrationWebhook, InternalPolicy, Invite, MappableDomain, + MappedControl, Narrative, Note, Notification, NotificationPreference, + NotificationTemplate, Onboarding, OrgMembership, OrgModule, OrgPrice, + OrgProduct, OrgSubscription, Organization, OrganizationSetting, + PasswordResetToken, PersonalAccessToken, Platform, Procedure, Program, + ProgramMembership, Remediation, Review, Risk, SLADefinition, Scan, Standard, + Subcontrol, Subprocessor, Subscriber, SystemDetail, TFASetting, TagDefinition, + Task, Template, TrustCenter, TrustCenterCompliance, TrustCenterDoc, + TrustCenterEntity, TrustCenterFAQ, TrustCenterNDARequest, TrustCenterSetting, + TrustCenterSubprocessor, TrustCenterWatermarkConfig, User, UserSetting, + VendorRiskScore, VendorScoringConfig, Vulnerability, Webauthn, + WorkflowAssignment, WorkflowAssignmentTarget, WorkflowDefinition, + WorkflowEvent, WorkflowInstance, WorkflowObjectRef, + WorkflowProposal []ent.Interceptor } ) diff --git a/internal/ent/generated/contact.go b/internal/ent/generated/contact.go index 3e348fba85..54305cdd1c 100644 --- a/internal/ent/generated/contact.go +++ b/internal/ent/generated/contact.go @@ -75,19 +75,22 @@ type ContactEdges struct { Campaigns []*Campaign `json:"campaigns,omitempty"` // CampaignTargets holds the value of the campaign_targets edge. CampaignTargets []*CampaignTarget `json:"campaign_targets,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // Files holds the value of the files edge. Files []*File `json:"files,omitempty"` // Subscribers holds the value of the subscribers edge. Subscribers []*Subscriber `json:"subscribers,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [6]bool + loadedTypes [7]bool // totalCount holds the count of the edges above. - totalCount [6]map[string]int + totalCount [7]map[string]int namedEntities map[string][]*Entity namedCampaigns map[string][]*Campaign namedCampaignTargets map[string][]*CampaignTarget + namedAudienceMembers map[string][]*AudienceMember namedFiles map[string][]*File namedSubscribers map[string][]*Subscriber } @@ -130,10 +133,19 @@ func (e ContactEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { return nil, &NotLoadedError{edge: "campaign_targets"} } +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e ContactEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[4] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // FilesOrErr returns the Files value or an error if the edge // was not loaded in eager-loading. func (e ContactEdges) FilesOrErr() ([]*File, error) { - if e.loadedTypes[4] { + if e.loadedTypes[5] { return e.Files, nil } return nil, &NotLoadedError{edge: "files"} @@ -142,7 +154,7 @@ func (e ContactEdges) FilesOrErr() ([]*File, error) { // SubscribersOrErr returns the Subscribers value or an error if the edge // was not loaded in eager-loading. func (e ContactEdges) SubscribersOrErr() ([]*Subscriber, error) { - if e.loadedTypes[5] { + if e.loadedTypes[6] { return e.Subscribers, nil } return nil, &NotLoadedError{edge: "subscribers"} @@ -333,6 +345,11 @@ func (_m *Contact) QueryCampaignTargets() *CampaignTargetQuery { return NewContactClient(_m.config).QueryCampaignTargets(_m) } +// QueryAudienceMembers queries the "audience_members" edge of the Contact entity. +func (_m *Contact) QueryAudienceMembers() *AudienceMemberQuery { + return NewContactClient(_m.config).QueryAudienceMembers(_m) +} + // QueryFiles queries the "files" edge of the Contact entity. func (_m *Contact) QueryFiles() *FileQuery { return NewContactClient(_m.config).QueryFiles(_m) @@ -502,6 +519,30 @@ func (_m *Contact) appendNamedCampaignTargets(name string, edges ...*CampaignTar } } +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Contact) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Contact) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // NamedFiles returns the Files named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *Contact) NamedFiles(name string) ([]*File, error) { diff --git a/internal/ent/generated/contact/contact.go b/internal/ent/generated/contact/contact.go index 53deeea327..383d8c53a4 100644 --- a/internal/ent/generated/contact/contact.go +++ b/internal/ent/generated/contact/contact.go @@ -64,6 +64,8 @@ const ( EdgeCampaigns = "campaigns" // EdgeCampaignTargets holds the string denoting the campaign_targets edge name in mutations. EdgeCampaignTargets = "campaign_targets" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeSubscribers holds the string denoting the subscribers edge name in mutations. @@ -94,6 +96,13 @@ const ( CampaignTargetsInverseTable = "campaign_targets" // CampaignTargetsColumn is the table column denoting the campaign_targets relation/edge. CampaignTargetsColumn = "contact_id" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "contact_id" // FilesTable is the table that holds the files relation/edge. The primary key declared below. FilesTable = "contact_files" // FilesInverseTable is the table name for the File entity. @@ -342,6 +351,20 @@ func ByCampaignTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByFilesCount orders the results by files count. func ByFilesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -397,6 +420,13 @@ func newCampaignTargetsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, CampaignTargetsTable, CampaignTargetsColumn), ) } +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} func newFilesStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/contact/where.go b/internal/ent/generated/contact/where.go index 30746306a3..03095a760d 100644 --- a/internal/ent/generated/contact/where.go +++ b/internal/ent/generated/contact/where.go @@ -1459,6 +1459,29 @@ func HasCampaignTargetsWith(preds ...predicate.CampaignTarget) predicate.Contact }) } +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.Contact { + return predicate.Contact(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.Contact { + return predicate.Contact(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasFiles applies the HasEdge predicate on the "files" edge. func HasFiles() predicate.Contact { return predicate.Contact(func(s *sql.Selector) { diff --git a/internal/ent/generated/contact_create.go b/internal/ent/generated/contact_create.go index 3b2c76ab99..00c0276b2a 100644 --- a/internal/ent/generated/contact_create.go +++ b/internal/ent/generated/contact_create.go @@ -12,6 +12,7 @@ import ( "entgo.io/ent/schema/field" "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/common/models" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -350,6 +351,21 @@ func (_c *ContactCreate) AddCampaignTargets(v ...*CampaignTarget) *ContactCreate return _c.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *ContactCreate) AddAudienceMemberIDs(ids ...string) *ContactCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *ContactCreate) AddAudienceMembers(v ...*AudienceMember) *ContactCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + // AddFileIDs adds the "files" edge to the File entity by IDs. func (_c *ContactCreate) AddFileIDs(ids ...string) *ContactCreate { _c.mutation.AddFileIDs(ids...) @@ -651,6 +667,22 @@ func (_c *ContactCreate) createSpec() (*Contact, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.FilesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, diff --git a/internal/ent/generated/contact_query.go b/internal/ent/generated/contact_query.go index 42532d8778..b0c2076ca7 100644 --- a/internal/ent/generated/contact_query.go +++ b/internal/ent/generated/contact_query.go @@ -13,6 +13,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -36,6 +37,7 @@ type ContactQuery struct { withEntities *EntityQuery withCampaigns *CampaignQuery withCampaignTargets *CampaignTargetQuery + withAudienceMembers *AudienceMemberQuery withFiles *FileQuery withSubscribers *SubscriberQuery loadTotal []func(context.Context, []*Contact) error @@ -43,6 +45,7 @@ type ContactQuery struct { withNamedEntities map[string]*EntityQuery withNamedCampaigns map[string]*CampaignQuery withNamedCampaignTargets map[string]*CampaignTargetQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery withNamedFiles map[string]*FileQuery withNamedSubscribers map[string]*SubscriberQuery // intermediate query (i.e. traversal path). @@ -169,6 +172,28 @@ func (_q *ContactQuery) QueryCampaignTargets() *CampaignTargetQuery { return query } +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *ContactQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(contact.Table, contact.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, contact.AudienceMembersTable, contact.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryFiles chains the current query on the "files" edge. func (_q *ContactQuery) QueryFiles() *FileQuery { query := (&FileClient{config: _q.config}).Query() @@ -409,6 +434,7 @@ func (_q *ContactQuery) Clone() *ContactQuery { withEntities: _q.withEntities.Clone(), withCampaigns: _q.withCampaigns.Clone(), withCampaignTargets: _q.withCampaignTargets.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), withFiles: _q.withFiles.Clone(), withSubscribers: _q.withSubscribers.Clone(), // clone intermediate query. @@ -462,6 +488,17 @@ func (_q *ContactQuery) WithCampaignTargets(opts ...func(*CampaignTargetQuery)) return _q } +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *ContactQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *ContactQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 *ContactQuery) WithFiles(opts ...func(*FileQuery)) *ContactQuery { @@ -568,11 +605,12 @@ func (_q *ContactQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cont var ( nodes = []*Contact{} _spec = _q.querySpec() - loadedTypes = [6]bool{ + loadedTypes = [7]bool{ _q.withOwner != nil, _q.withEntities != nil, _q.withCampaigns != nil, _q.withCampaignTargets != nil, + _q.withAudienceMembers != nil, _q.withFiles != nil, _q.withSubscribers != nil, } @@ -625,6 +663,13 @@ func (_q *ContactQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cont return nil, err } } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Contact) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *Contact, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) }); err != nil { + return nil, err + } + } if query := _q.withFiles; query != nil { if err := _q.loadFiles(ctx, query, nodes, func(n *Contact) { n.Edges.Files = []*File{} }, @@ -660,6 +705,13 @@ func (_q *ContactQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Cont return nil, err } } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Contact) { n.appendNamedAudienceMembers(name) }, + func(n *Contact, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedFiles { if err := _q.loadFiles(ctx, query, nodes, func(n *Contact) { n.appendNamedFiles(name) }, @@ -863,6 +915,36 @@ func (_q *ContactQuery) loadCampaignTargets(ctx context.Context, query *Campaign } return nil } +func (_q *ContactQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*Contact, init func(*Contact), assign func(*Contact, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Contact) + 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(audiencemember.FieldContactID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(contact.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.ContactID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "contact_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} func (_q *ContactQuery) loadFiles(ctx context.Context, query *FileQuery, nodes []*Contact, init func(*Contact), assign func(*Contact, *File)) error { edgeIDs := make([]driver.Value, len(nodes)) byID := make(map[string]*Contact) @@ -1093,6 +1175,20 @@ func (_q *ContactQuery) WithNamedCampaignTargets(name string, opts ...func(*Camp return _q } +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *ContactQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *ContactQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // WithNamedFiles tells the query-builder to eager-load the nodes that are connected to the "files" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *ContactQuery) WithNamedFiles(name string, opts ...func(*FileQuery)) *ContactQuery { diff --git a/internal/ent/generated/contact_update.go b/internal/ent/generated/contact_update.go index a4451150c7..82c6cd52a0 100644 --- a/internal/ent/generated/contact_update.go +++ b/internal/ent/generated/contact_update.go @@ -14,6 +14,7 @@ import ( "entgo.io/ent/schema/field" "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/common/models" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -412,6 +413,21 @@ func (_u *ContactUpdate) AddCampaignTargets(v ...*CampaignTarget) *ContactUpdate return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *ContactUpdate) AddAudienceMemberIDs(ids ...string) *ContactUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *ContactUpdate) AddAudienceMembers(v ...*AudienceMember) *ContactUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddFileIDs adds the "files" edge to the File entity by IDs. func (_u *ContactUpdate) AddFileIDs(ids ...string) *ContactUpdate { _u.mutation.AddFileIDs(ids...) @@ -516,6 +532,27 @@ func (_u *ContactUpdate) RemoveCampaignTargets(v ...*CampaignTarget) *ContactUpd return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *ContactUpdate) ClearAudienceMembers() *ContactUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *ContactUpdate) RemoveAudienceMemberIDs(ids ...string) *ContactUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *ContactUpdate) RemoveAudienceMembers(v ...*AudienceMember) *ContactUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearFiles clears all "files" edges to the File entity. func (_u *ContactUpdate) ClearFiles() *ContactUpdate { _u.mutation.ClearFiles() @@ -916,6 +953,51 @@ func (_u *ContactUpdate) sqlSave(ctx context.Context) (_node int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.FilesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, @@ -1402,6 +1484,21 @@ func (_u *ContactUpdateOne) AddCampaignTargets(v ...*CampaignTarget) *ContactUpd return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *ContactUpdateOne) AddAudienceMemberIDs(ids ...string) *ContactUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *ContactUpdateOne) AddAudienceMembers(v ...*AudienceMember) *ContactUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddFileIDs adds the "files" edge to the File entity by IDs. func (_u *ContactUpdateOne) AddFileIDs(ids ...string) *ContactUpdateOne { _u.mutation.AddFileIDs(ids...) @@ -1506,6 +1603,27 @@ func (_u *ContactUpdateOne) RemoveCampaignTargets(v ...*CampaignTarget) *Contact return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *ContactUpdateOne) ClearAudienceMembers() *ContactUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *ContactUpdateOne) RemoveAudienceMemberIDs(ids ...string) *ContactUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *ContactUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *ContactUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearFiles clears all "files" edges to the File entity. func (_u *ContactUpdateOne) ClearFiles() *ContactUpdateOne { _u.mutation.ClearFiles() @@ -1936,6 +2054,51 @@ func (_u *ContactUpdateOne) sqlSave(ctx context.Context) (_node *Contact, err er } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.FilesCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, diff --git a/internal/ent/generated/edge_cleanup.go b/internal/ent/generated/edge_cleanup.go index b4432b222e..492fe80db4 100644 --- a/internal/ent/generated/edge_cleanup.go +++ b/internal/ent/generated/edge_cleanup.go @@ -13,6 +13,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -138,6 +140,18 @@ func AssetEdgeCleanup(ctx context.Context, id string) error { return nil } +func AudienceEdgeCleanup(ctx context.Context, id string) error { + ctx = entfga.WithDeleteTuplesFirst(privacy.DecisionContext(ctx, privacy.Allowf("cleanup audience edge"))) + + return nil +} + +func AudienceMemberEdgeCleanup(ctx context.Context, id string) error { + ctx = entfga.WithDeleteTuplesFirst(privacy.DecisionContext(ctx, privacy.Allowf("cleanup audiencemember edge"))) + + return nil +} + func CampaignEdgeCleanup(ctx context.Context, id string) error { ctx = entfga.WithDeleteTuplesFirst(privacy.DecisionContext(ctx, privacy.Allowf("cleanup campaign edge"))) @@ -1706,6 +1720,52 @@ func OrganizationEdgeCleanup(ctx context.Context, id string) error { } } + { + ids, err := FromContext(ctx).Audience.Query().Where(audience.HasOwnerWith(organization.ID(id))).IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("error querying audience ids for cleanup") + return err + } + for _, edgeID := range ids { + if err := AudienceEdgeCleanup(ctx, edgeID); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("id", edgeID).Msg("error cleaning up audience edges") + return err + } + } + } + if exists, err := FromContext(ctx).Audience.Query().Where((audience.HasOwnerWith(organization.ID(id)))).Exist(ctx); err == nil && exists { + if err := PurgeAudienceHistory(ctx, audience.HasOwnerWith(organization.ID(id))); err != nil { + return err + } + if audienceCount, err := FromContext(ctx).Audience.Delete().Where(audience.HasOwnerWith(organization.ID(id))).Exec(ctx); err != nil { + logx.FromContext(ctx).Error().Err(err).Int("count", audienceCount).Msg("error deleting audience") + return err + } + } + + { + ids, err := FromContext(ctx).AudienceMember.Query().Where(audiencemember.HasOwnerWith(organization.ID(id))).IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("error querying audiencemember ids for cleanup") + return err + } + for _, edgeID := range ids { + if err := AudienceMemberEdgeCleanup(ctx, edgeID); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("id", edgeID).Msg("error cleaning up audiencemember edges") + return err + } + } + } + if exists, err := FromContext(ctx).AudienceMember.Query().Where((audiencemember.HasOwnerWith(organization.ID(id)))).Exist(ctx); err == nil && exists { + if err := PurgeAudienceMemberHistory(ctx, audiencemember.HasOwnerWith(organization.ID(id))); err != nil { + return err + } + if audiencememberCount, err := FromContext(ctx).AudienceMember.Delete().Where(audiencemember.HasOwnerWith(organization.ID(id))).Exec(ctx); err != nil { + logx.FromContext(ctx).Error().Err(err).Int("count", audiencememberCount).Msg("error deleting audiencemember") + return err + } + } + { ids, err := FromContext(ctx).TrustCenterWatermarkConfig.Query().Where(trustcenterwatermarkconfig.HasOwnerWith(organization.ID(id))).IDs(ctx) if err != nil { diff --git a/internal/ent/generated/ent.go b/internal/ent/generated/ent.go index 69f1f515fe..9d70e537c0 100644 --- a/internal/ent/generated/ent.go +++ b/internal/ent/generated/ent.go @@ -17,6 +17,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -177,6 +179,8 @@ func checkColumn(t, c string) error { assessment.Table: assessment.ValidColumn, assessmentresponse.Table: assessmentresponse.ValidColumn, asset.Table: asset.ValidColumn, + audience.Table: audience.ValidColumn, + audiencemember.Table: audiencemember.ValidColumn, campaign.Table: campaign.ValidColumn, campaigntarget.Table: campaigntarget.ValidColumn, checkresult.Table: checkresult.ValidColumn, diff --git a/internal/ent/generated/entql.go b/internal/ent/generated/entql.go index b0558c6c41..368c168110 100644 --- a/internal/ent/generated/entql.go +++ b/internal/ent/generated/entql.go @@ -8,6 +8,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -113,7 +115,7 @@ import ( // schemaGraph holds a representation of ent/schema at runtime. var schemaGraph = func() *sqlgraph.Schema { - graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 100)} + graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 102)} graph.Nodes[0] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: apitoken.Table, @@ -348,6 +350,66 @@ var schemaGraph = func() *sqlgraph.Schema { }, } graph.Nodes[5] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: audience.Table, + Columns: audience.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: audience.FieldID, + }, + }, + Type: "Audience", + Fields: map[string]*sqlgraph.FieldSpec{ + audience.FieldCreatedAt: {Type: field.TypeTime, Column: audience.FieldCreatedAt}, + audience.FieldUpdatedAt: {Type: field.TypeTime, Column: audience.FieldUpdatedAt}, + audience.FieldCreatedBy: {Type: field.TypeString, Column: audience.FieldCreatedBy}, + audience.FieldUpdatedBy: {Type: field.TypeString, Column: audience.FieldUpdatedBy}, + audience.FieldUpdatedByImpersonator: {Type: field.TypeString, Column: audience.FieldUpdatedByImpersonator}, + audience.FieldDeletedAt: {Type: field.TypeTime, Column: audience.FieldDeletedAt}, + audience.FieldDeletedBy: {Type: field.TypeString, Column: audience.FieldDeletedBy}, + audience.FieldDisplayID: {Type: field.TypeString, Column: audience.FieldDisplayID}, + audience.FieldTags: {Type: field.TypeJSON, Column: audience.FieldTags}, + audience.FieldOwnerID: {Type: field.TypeString, Column: audience.FieldOwnerID}, + audience.FieldName: {Type: field.TypeString, Column: audience.FieldName}, + audience.FieldDescription: {Type: field.TypeString, Column: audience.FieldDescription}, + audience.FieldAudienceType: {Type: field.TypeEnum, Column: audience.FieldAudienceType}, + audience.FieldFilters: {Type: field.TypeJSON, Column: audience.FieldFilters}, + audience.FieldMetadata: {Type: field.TypeJSON, Column: audience.FieldMetadata}, + }, + } + graph.Nodes[6] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: audiencemember.Table, + Columns: audiencemember.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: audiencemember.FieldID, + }, + }, + Type: "AudienceMember", + Fields: map[string]*sqlgraph.FieldSpec{ + audiencemember.FieldCreatedAt: {Type: field.TypeTime, Column: audiencemember.FieldCreatedAt}, + audiencemember.FieldUpdatedAt: {Type: field.TypeTime, Column: audiencemember.FieldUpdatedAt}, + audiencemember.FieldCreatedBy: {Type: field.TypeString, Column: audiencemember.FieldCreatedBy}, + audiencemember.FieldUpdatedBy: {Type: field.TypeString, Column: audiencemember.FieldUpdatedBy}, + audiencemember.FieldUpdatedByImpersonator: {Type: field.TypeString, Column: audiencemember.FieldUpdatedByImpersonator}, + audiencemember.FieldDeletedAt: {Type: field.TypeTime, Column: audiencemember.FieldDeletedAt}, + audiencemember.FieldDeletedBy: {Type: field.TypeString, Column: audiencemember.FieldDeletedBy}, + audiencemember.FieldDisplayID: {Type: field.TypeString, Column: audiencemember.FieldDisplayID}, + audiencemember.FieldTags: {Type: field.TypeJSON, Column: audiencemember.FieldTags}, + audiencemember.FieldOwnerID: {Type: field.TypeString, Column: audiencemember.FieldOwnerID}, + audiencemember.FieldAudienceID: {Type: field.TypeString, Column: audiencemember.FieldAudienceID}, + audiencemember.FieldContactID: {Type: field.TypeString, Column: audiencemember.FieldContactID}, + audiencemember.FieldUserID: {Type: field.TypeString, Column: audiencemember.FieldUserID}, + audiencemember.FieldGroupID: {Type: field.TypeString, Column: audiencemember.FieldGroupID}, + audiencemember.FieldIdentityHolderID: {Type: field.TypeString, Column: audiencemember.FieldIdentityHolderID}, + audiencemember.FieldSubscriberID: {Type: field.TypeString, Column: audiencemember.FieldSubscriberID}, + audiencemember.FieldEmail: {Type: field.TypeString, Column: audiencemember.FieldEmail}, + audiencemember.FieldFullName: {Type: field.TypeString, Column: audiencemember.FieldFullName}, + audiencemember.FieldMetadata: {Type: field.TypeJSON, Column: audiencemember.FieldMetadata}, + }, + } + graph.Nodes[7] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: campaign.Table, Columns: campaign.Columns, @@ -402,7 +464,7 @@ var schemaGraph = func() *sqlgraph.Schema { campaign.FieldTrustCenterID: {Type: field.TypeString, Column: campaign.FieldTrustCenterID}, }, } - graph.Nodes[6] = &sqlgraph.Node{ + graph.Nodes[8] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: campaigntarget.Table, Columns: campaigntarget.Columns, @@ -435,7 +497,7 @@ var schemaGraph = func() *sqlgraph.Schema { campaigntarget.FieldMetadata: {Type: field.TypeJSON, Column: campaigntarget.FieldMetadata}, }, } - graph.Nodes[7] = &sqlgraph.Node{ + graph.Nodes[9] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: checkresult.Table, Columns: checkresult.Columns, @@ -463,7 +525,7 @@ var schemaGraph = func() *sqlgraph.Schema { checkresult.FieldIntegrationID: {Type: field.TypeString, Column: checkresult.FieldIntegrationID}, }, } - graph.Nodes[8] = &sqlgraph.Node{ + graph.Nodes[10] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: contact.Table, Columns: contact.Columns, @@ -495,7 +557,7 @@ var schemaGraph = func() *sqlgraph.Schema { contact.FieldObservedAt: {Type: field.TypeTime, Column: contact.FieldObservedAt}, }, } - graph.Nodes[9] = &sqlgraph.Node{ + graph.Nodes[11] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: control.Table, Columns: control.Columns, @@ -562,7 +624,7 @@ var schemaGraph = func() *sqlgraph.Schema { control.FieldIsTrustCenterControl: {Type: field.TypeBool, Column: control.FieldIsTrustCenterControl}, }, } - graph.Nodes[10] = &sqlgraph.Node{ + graph.Nodes[12] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: controlimplementation.Table, Columns: controlimplementation.Columns, @@ -593,7 +655,7 @@ var schemaGraph = func() *sqlgraph.Schema { controlimplementation.FieldDetailsJSON: {Type: field.TypeJSON, Column: controlimplementation.FieldDetailsJSON}, }, } - graph.Nodes[11] = &sqlgraph.Node{ + graph.Nodes[13] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: controlobjective.Table, Columns: controlobjective.Columns, @@ -628,7 +690,7 @@ var schemaGraph = func() *sqlgraph.Schema { controlobjective.FieldSubcategory: {Type: field.TypeString, Column: controlobjective.FieldSubcategory}, }, } - graph.Nodes[12] = &sqlgraph.Node{ + graph.Nodes[14] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: customdomain.Table, Columns: customdomain.Columns, @@ -658,7 +720,7 @@ var schemaGraph = func() *sqlgraph.Schema { customdomain.FieldDomainType: {Type: field.TypeEnum, Column: customdomain.FieldDomainType}, }, } - graph.Nodes[13] = &sqlgraph.Node{ + graph.Nodes[15] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: customtypeenum.Table, Columns: customtypeenum.Columns, @@ -688,7 +750,7 @@ var schemaGraph = func() *sqlgraph.Schema { customtypeenum.FieldIcon: {Type: field.TypeString, Column: customtypeenum.FieldIcon}, }, } - graph.Nodes[14] = &sqlgraph.Node{ + graph.Nodes[16] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: dnsverification.Table, Columns: dnsverification.Columns, @@ -719,7 +781,7 @@ var schemaGraph = func() *sqlgraph.Schema { dnsverification.FieldAcmeChallengeStatusReason: {Type: field.TypeString, Column: dnsverification.FieldAcmeChallengeStatusReason}, }, } - graph.Nodes[15] = &sqlgraph.Node{ + graph.Nodes[17] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: directoryaccount.Table, Columns: directoryaccount.Columns, @@ -780,7 +842,7 @@ var schemaGraph = func() *sqlgraph.Schema { directoryaccount.FieldPrimarySource: {Type: field.TypeBool, Column: directoryaccount.FieldPrimarySource}, }, } - graph.Nodes[16] = &sqlgraph.Node{ + graph.Nodes[18] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: directorygroup.Table, Columns: directorygroup.Columns, @@ -828,7 +890,7 @@ var schemaGraph = func() *sqlgraph.Schema { directorygroup.FieldDirectoryName: {Type: field.TypeString, Column: directorygroup.FieldDirectoryName}, }, } - graph.Nodes[17] = &sqlgraph.Node{ + graph.Nodes[19] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: directorymembership.Table, Columns: directorymembership.Columns, @@ -868,7 +930,7 @@ var schemaGraph = func() *sqlgraph.Schema { directorymembership.FieldMetadata: {Type: field.TypeJSON, Column: directorymembership.FieldMetadata}, }, } - graph.Nodes[18] = &sqlgraph.Node{ + graph.Nodes[20] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: directorysyncrun.Table, Columns: directorysyncrun.Columns, @@ -904,7 +966,7 @@ var schemaGraph = func() *sqlgraph.Schema { directorysyncrun.FieldStats: {Type: field.TypeJSON, Column: directorysyncrun.FieldStats}, }, } - graph.Nodes[19] = &sqlgraph.Node{ + graph.Nodes[21] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: discussion.Table, Columns: discussion.Columns, @@ -927,7 +989,7 @@ var schemaGraph = func() *sqlgraph.Schema { discussion.FieldIsResolved: {Type: field.TypeBool, Column: discussion.FieldIsResolved}, }, } - graph.Nodes[20] = &sqlgraph.Node{ + graph.Nodes[22] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: documentdata.Table, Columns: documentdata.Columns, @@ -955,7 +1017,7 @@ var schemaGraph = func() *sqlgraph.Schema { documentdata.FieldData: {Type: field.TypeJSON, Column: documentdata.FieldData}, }, } - graph.Nodes[21] = &sqlgraph.Node{ + graph.Nodes[23] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: emailtemplate.Table, Columns: emailtemplate.Columns, @@ -1000,7 +1062,7 @@ var schemaGraph = func() *sqlgraph.Schema { emailtemplate.FieldTrustCenterID: {Type: field.TypeString, Column: emailtemplate.FieldTrustCenterID}, }, } - graph.Nodes[22] = &sqlgraph.Node{ + graph.Nodes[24] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: emailverificationtoken.Table, Columns: emailverificationtoken.Columns, @@ -1024,7 +1086,7 @@ var schemaGraph = func() *sqlgraph.Schema { emailverificationtoken.FieldSecret: {Type: field.TypeBytes, Column: emailverificationtoken.FieldSecret}, }, } - graph.Nodes[23] = &sqlgraph.Node{ + graph.Nodes[25] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entity.Table, Columns: entity.Columns, @@ -1103,7 +1165,7 @@ var schemaGraph = func() *sqlgraph.Schema { entity.FieldObservedAt: {Type: field.TypeTime, Column: entity.FieldObservedAt}, }, } - graph.Nodes[24] = &sqlgraph.Node{ + graph.Nodes[26] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitytype.Table, Columns: entitytype.Columns, @@ -1129,7 +1191,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitytype.FieldName: {Type: field.TypeString, Column: entitytype.FieldName}, }, } - graph.Nodes[25] = &sqlgraph.Node{ + graph.Nodes[27] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: event.Table, Columns: event.Columns, @@ -1151,7 +1213,7 @@ var schemaGraph = func() *sqlgraph.Schema { event.FieldMetadata: {Type: field.TypeJSON, Column: event.FieldMetadata}, }, } - graph.Nodes[26] = &sqlgraph.Node{ + graph.Nodes[28] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: evidence.Table, Columns: evidence.Columns, @@ -1191,7 +1253,7 @@ var schemaGraph = func() *sqlgraph.Schema { evidence.FieldAuditorReferenceID: {Type: field.TypeString, Column: evidence.FieldAuditorReferenceID}, }, } - graph.Nodes[27] = &sqlgraph.Node{ + graph.Nodes[29] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: export.Table, Columns: export.Columns, @@ -1221,7 +1283,7 @@ var schemaGraph = func() *sqlgraph.Schema { export.FieldExportMetadata: {Type: field.TypeJSON, Column: export.FieldExportMetadata}, }, } - graph.Nodes[28] = &sqlgraph.Node{ + graph.Nodes[30] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: file.Table, Columns: file.Columns, @@ -1270,7 +1332,7 @@ var schemaGraph = func() *sqlgraph.Schema { file.FieldLastAccessedAt: {Type: field.TypeTime, Column: file.FieldLastAccessedAt}, }, } - graph.Nodes[29] = &sqlgraph.Node{ + graph.Nodes[31] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: filedownloadtoken.Table, Columns: filedownloadtoken.Columns, @@ -1296,7 +1358,7 @@ var schemaGraph = func() *sqlgraph.Schema { filedownloadtoken.FieldSecret: {Type: field.TypeBytes, Column: filedownloadtoken.FieldSecret}, }, } - graph.Nodes[30] = &sqlgraph.Node{ + graph.Nodes[32] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: finding.Table, Columns: finding.Columns, @@ -1372,7 +1434,7 @@ var schemaGraph = func() *sqlgraph.Schema { finding.FieldRawPayload: {Type: field.TypeJSON, Column: finding.FieldRawPayload}, }, } - graph.Nodes[31] = &sqlgraph.Node{ + graph.Nodes[33] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: findingcontrol.Table, Columns: findingcontrol.Columns, @@ -1400,7 +1462,7 @@ var schemaGraph = func() *sqlgraph.Schema { findingcontrol.FieldDiscoveredAt: {Type: field.TypeTime, Column: findingcontrol.FieldDiscoveredAt}, }, } - graph.Nodes[32] = &sqlgraph.Node{ + graph.Nodes[34] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: group.Table, Columns: group.Columns, @@ -1437,7 +1499,7 @@ var schemaGraph = func() *sqlgraph.Schema { group.FieldScimGroupMailing: {Type: field.TypeString, Column: group.FieldScimGroupMailing}, }, } - graph.Nodes[33] = &sqlgraph.Node{ + graph.Nodes[35] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupmembership.Table, Columns: groupmembership.Columns, @@ -1458,7 +1520,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupmembership.FieldUserID: {Type: field.TypeString, Column: groupmembership.FieldUserID}, }, } - graph.Nodes[34] = &sqlgraph.Node{ + graph.Nodes[36] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupsetting.Table, Columns: groupsetting.Columns, @@ -1483,7 +1545,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupsetting.FieldGroupID: {Type: field.TypeString, Column: groupsetting.FieldGroupID}, }, } - graph.Nodes[35] = &sqlgraph.Node{ + graph.Nodes[37] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: hush.Table, Columns: hush.Columns, @@ -1516,7 +1578,7 @@ var schemaGraph = func() *sqlgraph.Schema { hush.FieldExpiresAt: {Type: field.TypeTime, Column: hush.FieldExpiresAt}, }, } - graph.Nodes[36] = &sqlgraph.Node{ + graph.Nodes[38] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: identityholder.Table, Columns: identityholder.Columns, @@ -1568,7 +1630,7 @@ var schemaGraph = func() *sqlgraph.Schema { identityholder.FieldAvatarRemoteURL: {Type: field.TypeString, Column: identityholder.FieldAvatarRemoteURL}, }, } - graph.Nodes[37] = &sqlgraph.Node{ + graph.Nodes[39] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: impersonationevent.Table, Columns: impersonationevent.Columns, @@ -1598,7 +1660,7 @@ var schemaGraph = func() *sqlgraph.Schema { impersonationevent.FieldTargetUserID: {Type: field.TypeString, Column: impersonationevent.FieldTargetUserID}, }, } - graph.Nodes[38] = &sqlgraph.Node{ + graph.Nodes[40] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: integration.Table, Columns: integration.Columns, @@ -1645,7 +1707,7 @@ var schemaGraph = func() *sqlgraph.Schema { integration.FieldCampaignEmail: {Type: field.TypeBool, Column: integration.FieldCampaignEmail}, }, } - graph.Nodes[39] = &sqlgraph.Node{ + graph.Nodes[41] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: integrationrun.Table, Columns: integrationrun.Columns, @@ -1683,7 +1745,7 @@ var schemaGraph = func() *sqlgraph.Schema { integrationrun.FieldMetrics: {Type: field.TypeJSON, Column: integrationrun.FieldMetrics}, }, } - graph.Nodes[40] = &sqlgraph.Node{ + graph.Nodes[42] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: integrationwebhook.Table, Columns: integrationwebhook.Columns, @@ -1718,7 +1780,7 @@ var schemaGraph = func() *sqlgraph.Schema { integrationwebhook.FieldMetadata: {Type: field.TypeJSON, Column: integrationwebhook.FieldMetadata}, }, } - graph.Nodes[41] = &sqlgraph.Node{ + graph.Nodes[43] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: internalpolicy.Table, Columns: internalpolicy.Columns, @@ -1774,7 +1836,7 @@ var schemaGraph = func() *sqlgraph.Schema { internalpolicy.FieldExternalUUID: {Type: field.TypeString, Column: internalpolicy.FieldExternalUUID}, }, } - graph.Nodes[42] = &sqlgraph.Node{ + graph.Nodes[44] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: invite.Table, Columns: invite.Columns, @@ -1805,7 +1867,7 @@ var schemaGraph = func() *sqlgraph.Schema { invite.FieldSSOExempt: {Type: field.TypeBool, Column: invite.FieldSSOExempt}, }, } - graph.Nodes[43] = &sqlgraph.Node{ + graph.Nodes[45] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: mappabledomain.Table, Columns: mappabledomain.Columns, @@ -1828,7 +1890,7 @@ var schemaGraph = func() *sqlgraph.Schema { mappabledomain.FieldZoneID: {Type: field.TypeString, Column: mappabledomain.FieldZoneID}, }, } - graph.Nodes[44] = &sqlgraph.Node{ + graph.Nodes[46] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: mappedcontrol.Table, Columns: mappedcontrol.Columns, @@ -1857,7 +1919,7 @@ var schemaGraph = func() *sqlgraph.Schema { mappedcontrol.FieldSource: {Type: field.TypeEnum, Column: mappedcontrol.FieldSource}, }, } - graph.Nodes[45] = &sqlgraph.Node{ + graph.Nodes[47] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: narrative.Table, Columns: narrative.Columns, @@ -1886,7 +1948,7 @@ var schemaGraph = func() *sqlgraph.Schema { narrative.FieldDetails: {Type: field.TypeString, Column: narrative.FieldDetails}, }, } - graph.Nodes[46] = &sqlgraph.Node{ + graph.Nodes[48] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: note.Table, Columns: note.Columns, @@ -1917,7 +1979,7 @@ var schemaGraph = func() *sqlgraph.Schema { note.FieldNotifiedAt: {Type: field.TypeTime, Column: note.FieldNotifiedAt}, }, } - graph.Nodes[47] = &sqlgraph.Node{ + graph.Nodes[49] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notification.Table, Columns: notification.Columns, @@ -1947,7 +2009,7 @@ var schemaGraph = func() *sqlgraph.Schema { notification.FieldTopic: {Type: field.TypeEnum, Column: notification.FieldTopic}, }, } - graph.Nodes[48] = &sqlgraph.Node{ + graph.Nodes[50] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notificationpreference.Table, Columns: notificationpreference.Columns, @@ -1989,7 +2051,7 @@ var schemaGraph = func() *sqlgraph.Schema { notificationpreference.FieldMetadata: {Type: field.TypeJSON, Column: notificationpreference.FieldMetadata}, }, } - graph.Nodes[49] = &sqlgraph.Node{ + graph.Nodes[51] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notificationtemplate.Table, Columns: notificationtemplate.Columns, @@ -2036,7 +2098,7 @@ var schemaGraph = func() *sqlgraph.Schema { notificationtemplate.FieldDefaults: {Type: field.TypeJSON, Column: notificationtemplate.FieldDefaults}, }, } - graph.Nodes[50] = &sqlgraph.Node{ + graph.Nodes[52] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: onboarding.Table, Columns: onboarding.Columns, @@ -2058,7 +2120,7 @@ var schemaGraph = func() *sqlgraph.Schema { onboarding.FieldDemoRequested: {Type: field.TypeBool, Column: onboarding.FieldDemoRequested}, }, } - graph.Nodes[51] = &sqlgraph.Node{ + graph.Nodes[53] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgmembership.Table, Columns: orgmembership.Columns, @@ -2087,7 +2149,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgmembership.FieldTfaEnforcedAt: {Type: field.TypeTime, Column: orgmembership.FieldTfaEnforcedAt}, }, } - graph.Nodes[52] = &sqlgraph.Node{ + graph.Nodes[54] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgmodule.Table, Columns: orgmodule.Columns, @@ -2118,7 +2180,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgmodule.FieldPriceID: {Type: field.TypeString, Column: orgmodule.FieldPriceID}, }, } - graph.Nodes[53] = &sqlgraph.Node{ + graph.Nodes[55] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgprice.Table, Columns: orgprice.Columns, @@ -2146,7 +2208,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgprice.FieldSubscriptionID: {Type: field.TypeString, Column: orgprice.FieldSubscriptionID}, }, } - graph.Nodes[54] = &sqlgraph.Node{ + graph.Nodes[56] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgproduct.Table, Columns: orgproduct.Columns, @@ -2174,7 +2236,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgproduct.FieldPriceID: {Type: field.TypeString, Column: orgproduct.FieldPriceID}, }, } - graph.Nodes[55] = &sqlgraph.Node{ + graph.Nodes[57] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgsubscription.Table, Columns: orgsubscription.Columns, @@ -2202,7 +2264,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgsubscription.FieldDaysUntilDue: {Type: field.TypeString, Column: orgsubscription.FieldDaysUntilDue}, }, } - graph.Nodes[56] = &sqlgraph.Node{ + graph.Nodes[58] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organization.Table, Columns: organization.Columns, @@ -2233,7 +2295,7 @@ var schemaGraph = func() *sqlgraph.Schema { organization.FieldSlugName: {Type: field.TypeString, Column: organization.FieldSlugName}, }, } - graph.Nodes[57] = &sqlgraph.Node{ + graph.Nodes[59] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationsetting.Table, Columns: organizationsetting.Columns, @@ -2284,7 +2346,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationsetting.FieldPendingDeletionAt: {Type: field.TypeTime, Column: organizationsetting.FieldPendingDeletionAt}, }, } - graph.Nodes[58] = &sqlgraph.Node{ + graph.Nodes[60] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: passwordresettoken.Table, Columns: passwordresettoken.Columns, @@ -2308,7 +2370,7 @@ var schemaGraph = func() *sqlgraph.Schema { passwordresettoken.FieldSecret: {Type: field.TypeBytes, Column: passwordresettoken.FieldSecret}, }, } - graph.Nodes[59] = &sqlgraph.Node{ + graph.Nodes[61] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: personalaccesstoken.Table, Columns: personalaccesstoken.Columns, @@ -2341,7 +2403,7 @@ var schemaGraph = func() *sqlgraph.Schema { personalaccesstoken.FieldRevokedAt: {Type: field.TypeTime, Column: personalaccesstoken.FieldRevokedAt}, }, } - graph.Nodes[60] = &sqlgraph.Node{ + graph.Nodes[62] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: platform.Table, Columns: platform.Columns, @@ -2412,7 +2474,7 @@ var schemaGraph = func() *sqlgraph.Schema { platform.FieldMetadata: {Type: field.TypeJSON, Column: platform.FieldMetadata}, }, } - graph.Nodes[61] = &sqlgraph.Node{ + graph.Nodes[63] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: procedure.Table, Columns: procedure.Columns, @@ -2467,7 +2529,7 @@ var schemaGraph = func() *sqlgraph.Schema { procedure.FieldWorkflowEligibleMarker: {Type: field.TypeBool, Column: procedure.FieldWorkflowEligibleMarker}, }, } - graph.Nodes[62] = &sqlgraph.Node{ + graph.Nodes[64] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: program.Table, Columns: program.Columns, @@ -2510,7 +2572,7 @@ var schemaGraph = func() *sqlgraph.Schema { program.FieldProgramOwnerID: {Type: field.TypeString, Column: program.FieldProgramOwnerID}, }, } - graph.Nodes[63] = &sqlgraph.Node{ + graph.Nodes[65] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: programmembership.Table, Columns: programmembership.Columns, @@ -2531,7 +2593,7 @@ var schemaGraph = func() *sqlgraph.Schema { programmembership.FieldUserID: {Type: field.TypeString, Column: programmembership.FieldUserID}, }, } - graph.Nodes[64] = &sqlgraph.Node{ + graph.Nodes[66] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: remediation.Table, Columns: remediation.Columns, @@ -2582,7 +2644,7 @@ var schemaGraph = func() *sqlgraph.Schema { remediation.FieldMetadata: {Type: field.TypeJSON, Column: remediation.FieldMetadata}, }, } - graph.Nodes[65] = &sqlgraph.Node{ + graph.Nodes[67] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: review.Table, Columns: review.Columns, @@ -2630,7 +2692,7 @@ var schemaGraph = func() *sqlgraph.Schema { review.FieldRawPayload: {Type: field.TypeJSON, Column: review.FieldRawPayload}, }, } - graph.Nodes[66] = &sqlgraph.Node{ + graph.Nodes[68] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: risk.Table, Columns: risk.Columns, @@ -2687,7 +2749,7 @@ var schemaGraph = func() *sqlgraph.Schema { risk.FieldRiskDecision: {Type: field.TypeEnum, Column: risk.FieldRiskDecision}, }, } - graph.Nodes[67] = &sqlgraph.Node{ + graph.Nodes[69] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: sladefinition.Table, Columns: sladefinition.Columns, @@ -2712,7 +2774,7 @@ var schemaGraph = func() *sqlgraph.Schema { sladefinition.FieldSecurityLevel: {Type: field.TypeEnum, Column: sladefinition.FieldSecurityLevel}, }, } - graph.Nodes[68] = &sqlgraph.Node{ + graph.Nodes[70] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: scan.Table, Columns: scan.Columns, @@ -2759,7 +2821,7 @@ var schemaGraph = func() *sqlgraph.Schema { scan.FieldStatus: {Type: field.TypeEnum, Column: scan.FieldStatus}, }, } - graph.Nodes[69] = &sqlgraph.Node{ + graph.Nodes[71] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: standard.Table, Columns: standard.Columns, @@ -2799,7 +2861,7 @@ var schemaGraph = func() *sqlgraph.Schema { standard.FieldLogoFileID: {Type: field.TypeString, Column: standard.FieldLogoFileID}, }, } - graph.Nodes[70] = &sqlgraph.Node{ + graph.Nodes[72] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subcontrol.Table, Columns: subcontrol.Columns, @@ -2860,7 +2922,7 @@ var schemaGraph = func() *sqlgraph.Schema { subcontrol.FieldControlID: {Type: field.TypeString, Column: subcontrol.FieldControlID}, }, } - graph.Nodes[71] = &sqlgraph.Node{ + graph.Nodes[73] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subprocessor.Table, Columns: subprocessor.Columns, @@ -2889,7 +2951,7 @@ var schemaGraph = func() *sqlgraph.Schema { subprocessor.FieldLogoFileID: {Type: field.TypeString, Column: subprocessor.FieldLogoFileID}, }, } - graph.Nodes[72] = &sqlgraph.Node{ + graph.Nodes[74] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subscriber.Table, Columns: subscriber.Columns, @@ -2924,7 +2986,7 @@ var schemaGraph = func() *sqlgraph.Schema { subscriber.FieldUserID: {Type: field.TypeString, Column: subscriber.FieldUserID}, }, } - graph.Nodes[73] = &sqlgraph.Node{ + graph.Nodes[75] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: systemdetail.Table, Columns: systemdetail.Columns, @@ -2955,7 +3017,7 @@ var schemaGraph = func() *sqlgraph.Schema { systemdetail.FieldOscalMetadataJSON: {Type: field.TypeJSON, Column: systemdetail.FieldOscalMetadataJSON}, }, } - graph.Nodes[74] = &sqlgraph.Node{ + graph.Nodes[76] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: tfasetting.Table, Columns: tfasetting.Columns, @@ -2982,7 +3044,7 @@ var schemaGraph = func() *sqlgraph.Schema { tfasetting.FieldTotpAllowed: {Type: field.TypeBool, Column: tfasetting.FieldTotpAllowed}, }, } - graph.Nodes[75] = &sqlgraph.Node{ + graph.Nodes[77] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: tagdefinition.Table, Columns: tagdefinition.Columns, @@ -3011,7 +3073,7 @@ var schemaGraph = func() *sqlgraph.Schema { tagdefinition.FieldColor: {Type: field.TypeString, Column: tagdefinition.FieldColor}, }, } - graph.Nodes[76] = &sqlgraph.Node{ + graph.Nodes[78] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: task.Table, Columns: task.Columns, @@ -3060,7 +3122,7 @@ var schemaGraph = func() *sqlgraph.Schema { task.FieldParentTaskID: {Type: field.TypeString, Column: task.FieldParentTaskID}, }, } - graph.Nodes[77] = &sqlgraph.Node{ + graph.Nodes[79] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: template.Table, Columns: template.Columns, @@ -3097,7 +3159,7 @@ var schemaGraph = func() *sqlgraph.Schema { template.FieldTransformConfiguration: {Type: field.TypeJSON, Column: template.FieldTransformConfiguration}, }, } - graph.Nodes[78] = &sqlgraph.Node{ + graph.Nodes[80] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenter.Table, Columns: trustcenter.Columns, @@ -3127,7 +3189,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenter.FieldSubprocessorURL: {Type: field.TypeString, Column: trustcenter.FieldSubprocessorURL}, }, } - graph.Nodes[79] = &sqlgraph.Node{ + graph.Nodes[81] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentercompliance.Table, Columns: trustcentercompliance.Columns, @@ -3150,7 +3212,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentercompliance.FieldTrustCenterID: {Type: field.TypeString, Column: trustcentercompliance.FieldTrustCenterID}, }, } - graph.Nodes[80] = &sqlgraph.Node{ + graph.Nodes[82] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterdoc.Table, Columns: trustcenterdoc.Columns, @@ -3181,7 +3243,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterdoc.FieldStandardID: {Type: field.TypeString, Column: trustcenterdoc.FieldStandardID}, }, } - graph.Nodes[81] = &sqlgraph.Node{ + graph.Nodes[83] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterentity.Table, Columns: trustcenterentity.Columns, @@ -3206,7 +3268,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterentity.FieldEntityTypeID: {Type: field.TypeString, Column: trustcenterentity.FieldEntityTypeID}, }, } - graph.Nodes[82] = &sqlgraph.Node{ + graph.Nodes[84] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterfaq.Table, Columns: trustcenterfaq.Columns, @@ -3232,7 +3294,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterfaq.FieldDisplayOrder: {Type: field.TypeInt, Column: trustcenterfaq.FieldDisplayOrder}, }, } - graph.Nodes[83] = &sqlgraph.Node{ + graph.Nodes[85] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterndarequest.Table, Columns: trustcenterndarequest.Columns, @@ -3266,7 +3328,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterndarequest.FieldFileID: {Type: field.TypeString, Column: trustcenterndarequest.FieldFileID}, }, } - graph.Nodes[84] = &sqlgraph.Node{ + graph.Nodes[86] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentersetting.Table, Columns: trustcentersetting.Columns, @@ -3314,7 +3376,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentersetting.FieldStatusPageURL: {Type: field.TypeString, Column: trustcentersetting.FieldStatusPageURL}, }, } - graph.Nodes[85] = &sqlgraph.Node{ + graph.Nodes[87] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentersubprocessor.Table, Columns: trustcentersubprocessor.Columns, @@ -3339,7 +3401,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentersubprocessor.FieldCountries: {Type: field.TypeJSON, Column: trustcentersubprocessor.FieldCountries}, }, } - graph.Nodes[86] = &sqlgraph.Node{ + graph.Nodes[88] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterwatermarkconfig.Table, Columns: trustcenterwatermarkconfig.Columns, @@ -3369,7 +3431,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterwatermarkconfig.FieldFont: {Type: field.TypeEnum, Column: trustcenterwatermarkconfig.FieldFont}, }, } - graph.Nodes[87] = &sqlgraph.Node{ + graph.Nodes[89] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: user.Table, Columns: user.Columns, @@ -3408,7 +3470,7 @@ var schemaGraph = func() *sqlgraph.Schema { user.FieldScimLocale: {Type: field.TypeString, Column: user.FieldScimLocale}, }, } - graph.Nodes[88] = &sqlgraph.Node{ + graph.Nodes[90] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: usersetting.Table, Columns: usersetting.Columns, @@ -3441,7 +3503,7 @@ var schemaGraph = func() *sqlgraph.Schema { usersetting.FieldPhoneNumber: {Type: field.TypeString, Column: usersetting.FieldPhoneNumber}, }, } - graph.Nodes[89] = &sqlgraph.Node{ + graph.Nodes[91] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vendorriskscore.Table, Columns: vendorriskscore.Columns, @@ -3476,7 +3538,7 @@ var schemaGraph = func() *sqlgraph.Schema { vendorriskscore.FieldAssessmentResponseID: {Type: field.TypeString, Column: vendorriskscore.FieldAssessmentResponseID}, }, } - graph.Nodes[90] = &sqlgraph.Node{ + graph.Nodes[92] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vendorscoringconfig.Table, Columns: vendorscoringconfig.Columns, @@ -3501,7 +3563,7 @@ var schemaGraph = func() *sqlgraph.Schema { vendorscoringconfig.FieldRiskThresholds: {Type: field.TypeJSON, Column: vendorscoringconfig.FieldRiskThresholds}, }, } - graph.Nodes[91] = &sqlgraph.Node{ + graph.Nodes[93] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vulnerability.Table, Columns: vulnerability.Columns, @@ -3582,7 +3644,7 @@ var schemaGraph = func() *sqlgraph.Schema { vulnerability.FieldRawPayload: {Type: field.TypeJSON, Column: vulnerability.FieldRawPayload}, }, } - graph.Nodes[92] = &sqlgraph.Node{ + graph.Nodes[94] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: webauthn.Table, Columns: webauthn.Columns, @@ -3611,7 +3673,7 @@ var schemaGraph = func() *sqlgraph.Schema { webauthn.FieldUserVerified: {Type: field.TypeBool, Column: webauthn.FieldUserVerified}, }, } - graph.Nodes[93] = &sqlgraph.Node{ + graph.Nodes[95] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowassignment.Table, Columns: workflowassignment.Columns, @@ -3650,7 +3712,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowassignment.FieldDueAt: {Type: field.TypeTime, Column: workflowassignment.FieldDueAt}, }, } - graph.Nodes[94] = &sqlgraph.Node{ + graph.Nodes[96] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowassignmenttarget.Table, Columns: workflowassignmenttarget.Columns, @@ -3678,7 +3740,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowassignmenttarget.FieldResolverKey: {Type: field.TypeString, Column: workflowassignmenttarget.FieldResolverKey}, }, } - graph.Nodes[95] = &sqlgraph.Node{ + graph.Nodes[97] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowdefinition.Table, Columns: workflowdefinition.Columns, @@ -3721,7 +3783,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowdefinition.FieldTrackedFields: {Type: field.TypeJSON, Column: workflowdefinition.FieldTrackedFields}, }, } - graph.Nodes[96] = &sqlgraph.Node{ + graph.Nodes[98] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowevent.Table, Columns: workflowevent.Columns, @@ -3747,7 +3809,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowevent.FieldPayload: {Type: field.TypeJSON, Column: workflowevent.FieldPayload}, }, } - graph.Nodes[97] = &sqlgraph.Node{ + graph.Nodes[99] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowinstance.Table, Columns: workflowinstance.Columns, @@ -3795,7 +3857,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowinstance.FieldVulnerabilityID: {Type: field.TypeString, Column: workflowinstance.FieldVulnerabilityID}, }, } - graph.Nodes[98] = &sqlgraph.Node{ + graph.Nodes[100] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowobjectref.Table, Columns: workflowobjectref.Columns, @@ -3836,7 +3898,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowobjectref.FieldRemediationID: {Type: field.TypeString, Column: workflowobjectref.FieldRemediationID}, }, } - graph.Nodes[99] = &sqlgraph.Node{ + graph.Nodes[101] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowproposal.Table, Columns: workflowproposal.Columns, @@ -4694,6 +4756,162 @@ var schemaGraph = func() *sqlgraph.Schema { "Asset", "Asset", ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audience.OwnerTable, + Columns: []string{audience.OwnerColumn}, + Bidi: false, + }, + "Audience", + "Organization", + ) + graph.MustAddE( + "blocked_groups", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.BlockedGroupsTable, + Columns: audience.BlockedGroupsPrimaryKey, + Bidi: false, + }, + "Audience", + "Group", + ) + graph.MustAddE( + "editors", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.EditorsTable, + Columns: audience.EditorsPrimaryKey, + Bidi: false, + }, + "Audience", + "Group", + ) + graph.MustAddE( + "viewers", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: audience.ViewersTable, + Columns: audience.ViewersPrimaryKey, + Bidi: false, + }, + "Audience", + "Group", + ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: audience.AudienceMembersTable, + Columns: []string{audience.AudienceMembersColumn}, + Bidi: false, + }, + "Audience", + "AudienceMember", + ) + graph.MustAddE( + "campaigns", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: audience.CampaignsTable, + Columns: audience.CampaignsPrimaryKey, + Bidi: false, + }, + "Audience", + "Campaign", + ) + graph.MustAddE( + "owner", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.OwnerTable, + Columns: []string{audiencemember.OwnerColumn}, + Bidi: false, + }, + "AudienceMember", + "Organization", + ) + graph.MustAddE( + "audience", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.AudienceTable, + Columns: []string{audiencemember.AudienceColumn}, + Bidi: false, + }, + "AudienceMember", + "Audience", + ) + graph.MustAddE( + "contact", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.ContactTable, + Columns: []string{audiencemember.ContactColumn}, + Bidi: false, + }, + "AudienceMember", + "Contact", + ) + graph.MustAddE( + "user", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.UserTable, + Columns: []string{audiencemember.UserColumn}, + Bidi: false, + }, + "AudienceMember", + "User", + ) + graph.MustAddE( + "group", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.GroupTable, + Columns: []string{audiencemember.GroupColumn}, + Bidi: false, + }, + "AudienceMember", + "Group", + ) + graph.MustAddE( + "identity_holder", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.IdentityHolderTable, + Columns: []string{audiencemember.IdentityHolderColumn}, + Bidi: false, + }, + "AudienceMember", + "IdentityHolder", + ) + graph.MustAddE( + "subscriber", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2O, + Inverse: true, + Table: audiencemember.SubscriberTable, + Columns: []string{audiencemember.SubscriberColumn}, + Bidi: false, + }, + "AudienceMember", + "Subscriber", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -4910,6 +5128,18 @@ var schemaGraph = func() *sqlgraph.Schema { "Campaign", "IdentityHolder", ) + graph.MustAddE( + "audiences", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: false, + Table: campaign.AudiencesTable, + Columns: campaign.AudiencesPrimaryKey, + Bidi: false, + }, + "Campaign", + "Audience", + ) graph.MustAddE( "controls", &sqlgraph.EdgeSpec{ @@ -5138,6 +5368,18 @@ var schemaGraph = func() *sqlgraph.Schema { "Contact", "CampaignTarget", ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: contact.AudienceMembersTable, + Columns: []string{contact.AudienceMembersColumn}, + Bidi: false, + }, + "Contact", + "AudienceMember", + ) graph.MustAddE( "files", &sqlgraph.EdgeSpec{ @@ -8654,6 +8896,42 @@ var schemaGraph = func() *sqlgraph.Schema { "Group", "Campaign", ) + graph.MustAddE( + "audience_editors", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + }, + "Group", + "Audience", + ) + graph.MustAddE( + "audience_blocked_groups", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + }, + "Group", + "Audience", + ) + graph.MustAddE( + "audience_viewers", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + }, + "Group", + "Audience", + ) graph.MustAddE( "procedure_editors", &sqlgraph.EdgeSpec{ @@ -8978,6 +9256,18 @@ var schemaGraph = func() *sqlgraph.Schema { "Group", "CampaignTarget", ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + }, + "Group", + "AudienceMember", + ) graph.MustAddE( "invites", &sqlgraph.EdgeSpec{ @@ -9338,6 +9628,18 @@ var schemaGraph = func() *sqlgraph.Schema { "IdentityHolder", "Campaign", ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + }, + "IdentityHolder", + "AudienceMember", + ) graph.MustAddE( "tasks", &sqlgraph.EdgeSpec{ @@ -10982,6 +11284,30 @@ var schemaGraph = func() *sqlgraph.Schema { "Organization", "Group", ) + graph.MustAddE( + "audience_creators", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + }, + "Organization", + "Group", + ) + graph.MustAddE( + "audience_member_creators", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + }, + "Organization", + "Group", + ) graph.MustAddE( "campaign_creators", &sqlgraph.EdgeSpec{ @@ -12506,6 +12832,30 @@ var schemaGraph = func() *sqlgraph.Schema { "Organization", "Export", ) + graph.MustAddE( + "audiences", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + }, + "Organization", + "Audience", + ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + }, + "Organization", + "AudienceMember", + ) graph.MustAddE( "trust_center_watermark_configs", &sqlgraph.EdgeSpec{ @@ -15722,6 +16072,18 @@ var schemaGraph = func() *sqlgraph.Schema { "Subscriber", "User", ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + }, + "Subscriber", + "AudienceMember", + ) graph.MustAddE( "owner", &sqlgraph.EdgeSpec{ @@ -17162,6 +17524,18 @@ var schemaGraph = func() *sqlgraph.Schema { "User", "CampaignTarget", ) + graph.MustAddE( + "audience_members", + &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + }, + "User", + "AudienceMember", + ) graph.MustAddE( "subcontrols", &sqlgraph.EdgeSpec{ @@ -20617,6 +20991,438 @@ func (f *AssetFilter) WhereHasConnectedFromWith(preds ...predicate.Asset) { }))) } +// addPredicate implements the predicateAdder interface. +func (_q *AudienceQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AudienceQuery builder. +func (_q *AudienceQuery) Filter() *AudienceFilter { + return &AudienceFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AudienceMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AudienceMutation builder. +func (m *AudienceMutation) Filter() *AudienceFilter { + return &AudienceFilter{config: m.config, predicateAdder: m} +} + +// AudienceFilter provides a generic filtering capability at runtime for AudienceQuery. +type AudienceFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AudienceFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + 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 *AudienceFilter) WhereID(p entql.StringP) { + f.Where(p.Field(audience.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AudienceFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(audience.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AudienceFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(audience.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AudienceFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(audience.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AudienceFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(audience.FieldUpdatedBy)) +} + +// WhereUpdatedByImpersonator applies the entql string predicate on the updated_by_impersonator field. +func (f *AudienceFilter) WhereUpdatedByImpersonator(p entql.StringP) { + f.Where(p.Field(audience.FieldUpdatedByImpersonator)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AudienceFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(audience.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AudienceFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(audience.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *AudienceFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(audience.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AudienceFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(audience.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AudienceFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(audience.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *AudienceFilter) WhereName(p entql.StringP) { + f.Where(p.Field(audience.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *AudienceFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(audience.FieldDescription)) +} + +// WhereAudienceType applies the entql string predicate on the audience_type field. +func (f *AudienceFilter) WhereAudienceType(p entql.StringP) { + f.Where(p.Field(audience.FieldAudienceType)) +} + +// WhereFilters applies the entql json.RawMessage predicate on the filters field. +func (f *AudienceFilter) WhereFilters(p entql.BytesP) { + f.Where(p.Field(audience.FieldFilters)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *AudienceFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(audience.FieldMetadata)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceFilter) WhereHasViewersWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("viewers", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *AudienceFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *AudienceFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", 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 *AudienceFilter) 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 *AudienceFilter) 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 *AudienceMemberQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AudienceMemberQuery builder. +func (_q *AudienceMemberQuery) Filter() *AudienceMemberFilter { + return &AudienceMemberFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AudienceMemberMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AudienceMemberMutation builder. +func (m *AudienceMemberMutation) Filter() *AudienceMemberFilter { + return &AudienceMemberFilter{config: m.config, predicateAdder: m} +} + +// AudienceMemberFilter provides a generic filtering capability at runtime for AudienceMemberQuery. +type AudienceMemberFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AudienceMemberFilter) 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) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *AudienceMemberFilter) WhereID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldID)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AudienceMemberFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(audiencemember.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AudienceMemberFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(audiencemember.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AudienceMemberFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AudienceMemberFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldUpdatedBy)) +} + +// WhereUpdatedByImpersonator applies the entql string predicate on the updated_by_impersonator field. +func (f *AudienceMemberFilter) WhereUpdatedByImpersonator(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldUpdatedByImpersonator)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AudienceMemberFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(audiencemember.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AudienceMemberFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *AudienceMemberFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AudienceMemberFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(audiencemember.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AudienceMemberFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldOwnerID)) +} + +// WhereAudienceID applies the entql string predicate on the audience_id field. +func (f *AudienceMemberFilter) WhereAudienceID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldAudienceID)) +} + +// WhereContactID applies the entql string predicate on the contact_id field. +func (f *AudienceMemberFilter) WhereContactID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldContactID)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *AudienceMemberFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldUserID)) +} + +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *AudienceMemberFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldGroupID)) +} + +// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. +func (f *AudienceMemberFilter) WhereIdentityHolderID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldIdentityHolderID)) +} + +// WhereSubscriberID applies the entql string predicate on the subscriber_id field. +func (f *AudienceMemberFilter) WhereSubscriberID(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldSubscriberID)) +} + +// WhereEmail applies the entql string predicate on the email field. +func (f *AudienceMemberFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldEmail)) +} + +// WhereFullName applies the entql string predicate on the full_name field. +func (f *AudienceMemberFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(audiencemember.FieldFullName)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *AudienceMemberFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(audiencemember.FieldMetadata)) +} + +// WhereHasOwner applies a predicate to check if query has an edge owner. +func (f *AudienceMemberFilter) 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 *AudienceMemberFilter) WhereHasOwnerWith(preds ...predicate.Organization) { + f.Where(entql.HasEdgeWith("owner", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudience applies a predicate to check if query has an edge audience. +func (f *AudienceMemberFilter) WhereHasAudience() { + f.Where(entql.HasEdge("audience")) +} + +// WhereHasAudienceWith applies a predicate to check if query has an edge audience with a given conditions (other predicates). +func (f *AudienceMemberFilter) WhereHasAudienceWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audience", 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 *AudienceMemberFilter) WhereHasContact() { + f.Where(entql.HasEdge("contact")) +} + +// WhereHasContactWith applies a predicate to check if query has an edge contact with a given conditions (other predicates). +func (f *AudienceMemberFilter) WhereHasContactWith(preds ...predicate.Contact) { + f.Where(entql.HasEdgeWith("contact", 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 *AudienceMemberFilter) 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 *AudienceMemberFilter) WhereHasUserWith(preds ...predicate.User) { + f.Where(entql.HasEdgeWith("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 *AudienceMemberFilter) WhereHasGroup() { + f.Where(entql.HasEdge("group")) +} + +// WhereHasGroupWith applies a predicate to check if query has an edge group with a given conditions (other predicates). +func (f *AudienceMemberFilter) WhereHasGroupWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("group", 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 *AudienceMemberFilter) 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 *AudienceMemberFilter) WhereHasIdentityHolderWith(preds ...predicate.IdentityHolder) { + f.Where(entql.HasEdgeWith("identity_holder", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasSubscriber applies a predicate to check if query has an edge subscriber. +func (f *AudienceMemberFilter) WhereHasSubscriber() { + f.Where(entql.HasEdge("subscriber")) +} + +// WhereHasSubscriberWith applies a predicate to check if query has an edge subscriber with a given conditions (other predicates). +func (f *AudienceMemberFilter) WhereHasSubscriberWith(preds ...predicate.Subscriber) { + f.Where(entql.HasEdgeWith("subscriber", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // addPredicate implements the predicateAdder interface. func (_q *CampaignQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) @@ -20646,7 +21452,7 @@ type CampaignFilter struct { // Where applies the entql predicate on the query filter. func (f *CampaignFilter) 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[7].Type, p, s); err != nil { s.AddError(err) } }) @@ -21119,6 +21925,20 @@ func (f *CampaignFilter) WhereHasIdentityHoldersWith(preds ...predicate.Identity }))) } +// WhereHasAudiences applies a predicate to check if query has an edge audiences. +func (f *CampaignFilter) WhereHasAudiences() { + f.Where(entql.HasEdge("audiences")) +} + +// WhereHasAudiencesWith applies a predicate to check if query has an edge audiences with a given conditions (other predicates). +func (f *CampaignFilter) WhereHasAudiencesWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audiences", 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")) @@ -21176,7 +21996,7 @@ type CampaignTargetFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { s.AddError(err) } }) @@ -21414,7 +22234,7 @@ type CheckResultFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[9].Type, p, s); err != nil { s.AddError(err) } }) @@ -21613,7 +22433,7 @@ type ContactFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[10].Type, p, s); err != nil { s.AddError(err) } }) @@ -21775,6 +22595,20 @@ func (f *ContactFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignT }))) } +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *ContactFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *ContactFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", 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")) @@ -21832,7 +22666,7 @@ type ControlFilter struct { // Where applies the entql predicate on the query filter. func (f *ControlFilter) 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[11].Type, p, s); err != nil { s.AddError(err) } }) @@ -22674,7 +23508,7 @@ type ControlImplementationFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { s.AddError(err) } }) @@ -22902,7 +23736,7 @@ type ControlObjectiveFilter struct { // Where applies the entql predicate on the query filter. func (f *ControlObjectiveFilter) 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[13].Type, p, s); err != nil { s.AddError(err) } }) @@ -23234,7 +24068,7 @@ type CustomDomainFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { s.AddError(err) } }) @@ -23401,7 +24235,7 @@ type CustomTypeEnumFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[15].Type, p, s); err != nil { s.AddError(err) } }) @@ -23680,7 +24514,7 @@ type DNSVerificationFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { s.AddError(err) } }) @@ -23838,7 +24672,7 @@ type DirectoryAccountFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[17].Type, p, s); err != nil { s.AddError(err) } }) @@ -24286,7 +25120,7 @@ type DirectoryGroupFilter struct { // Where applies the entql predicate on the query filter. func (f *DirectoryGroupFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { s.AddError(err) } }) @@ -24627,7 +25461,7 @@ type DirectoryMembershipFilter struct { // Where applies the entql predicate on the query filter. func (f *DirectoryMembershipFilter) 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[19].Type, p, s); err != nil { s.AddError(err) } }) @@ -24942,7 +25776,7 @@ type DirectorySyncRunFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[20].Type, p, s); err != nil { s.AddError(err) } }) @@ -25209,7 +26043,7 @@ type DiscussionFilter struct { // Where applies the entql predicate on the query filter. func (f *DiscussionFilter) 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[21].Type, p, s); err != nil { s.AddError(err) } }) @@ -25397,7 +26231,7 @@ type DocumentDataFilter struct { // Where applies the entql predicate on the query filter. func (f *DocumentDataFilter) 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[22].Type, p, s); err != nil { s.AddError(err) } }) @@ -25596,7 +26430,7 @@ type EmailTemplateFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[23].Type, p, s); err != nil { s.AddError(err) } }) @@ -25950,7 +26784,7 @@ type EmailVerificationTokenFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[24].Type, p, s); err != nil { s.AddError(err) } }) @@ -26059,7 +26893,7 @@ type EntityFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { s.AddError(err) } }) @@ -26975,7 +27809,7 @@ type EntityTypeFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[26].Type, p, s); err != nil { s.AddError(err) } }) @@ -27108,7 +27942,7 @@ type EventFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[27].Type, p, s); err != nil { s.AddError(err) } }) @@ -27361,7 +28195,7 @@ type EvidenceFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { s.AddError(err) } }) @@ -27760,7 +28594,7 @@ type ExportFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[29].Type, p, s); err != nil { s.AddError(err) } }) @@ -27927,7 +28761,7 @@ type FileFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[30].Type, p, s); err != nil { s.AddError(err) } }) @@ -28441,7 +29275,7 @@ type FileDownloadTokenFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[31].Type, p, s); err != nil { s.AddError(err) } }) @@ -28560,7 +29394,7 @@ type FindingFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[32].Type, p, s); err != nil { s.AddError(err) } }) @@ -29335,7 +30169,7 @@ type FindingControlFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[33].Type, p, s); err != nil { s.AddError(err) } }) @@ -29506,7 +30340,7 @@ type GroupFilter struct { // Where applies the entql predicate on the query filter. func (f *GroupFilter) 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[34].Type, p, s); err != nil { s.AddError(err) } }) @@ -29987,6 +30821,48 @@ func (f *GroupFilter) WhereHasCampaignViewersWith(preds ...predicate.Campaign) { }))) } +// WhereHasAudienceEditors applies a predicate to check if query has an edge audience_editors. +func (f *GroupFilter) WhereHasAudienceEditors() { + f.Where(entql.HasEdge("audience_editors")) +} + +// WhereHasAudienceEditorsWith applies a predicate to check if query has an edge audience_editors with a given conditions (other predicates). +func (f *GroupFilter) WhereHasAudienceEditorsWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audience_editors", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudienceBlockedGroups applies a predicate to check if query has an edge audience_blocked_groups. +func (f *GroupFilter) WhereHasAudienceBlockedGroups() { + f.Where(entql.HasEdge("audience_blocked_groups")) +} + +// WhereHasAudienceBlockedGroupsWith applies a predicate to check if query has an edge audience_blocked_groups with a given conditions (other predicates). +func (f *GroupFilter) WhereHasAudienceBlockedGroupsWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audience_blocked_groups", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudienceViewers applies a predicate to check if query has an edge audience_viewers. +func (f *GroupFilter) WhereHasAudienceViewers() { + f.Where(entql.HasEdge("audience_viewers")) +} + +// WhereHasAudienceViewersWith applies a predicate to check if query has an edge audience_viewers with a given conditions (other predicates). +func (f *GroupFilter) WhereHasAudienceViewersWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audience_viewers", 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")) @@ -30365,6 +31241,20 @@ func (f *GroupFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTar }))) } +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *GroupFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *GroupFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", 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")) @@ -30422,7 +31312,7 @@ type GroupMembershipFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[35].Type, p, s); err != nil { s.AddError(err) } }) @@ -30558,7 +31448,7 @@ type GroupSettingFilter struct { // Where applies the entql predicate on the query filter. func (f *GroupSettingFilter) 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[36].Type, p, s); err != nil { s.AddError(err) } }) @@ -30672,7 +31562,7 @@ type HushFilter struct { // Where applies the entql predicate on the query filter. func (f *HushFilter) 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[37].Type, p, s); err != nil { s.AddError(err) } }) @@ -30868,7 +31758,7 @@ type IdentityHolderFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[38].Type, p, s); err != nil { s.AddError(err) } }) @@ -31340,6 +32230,20 @@ func (f *IdentityHolderFilter) WhereHasCampaignsWith(preds ...predicate.Campaign }))) } +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *IdentityHolderFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *IdentityHolderFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", 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 *IdentityHolderFilter) WhereHasTasks() { f.Where(entql.HasEdge("tasks")) @@ -31467,7 +32371,7 @@ type ImpersonationEventFilter struct { // Where applies the entql predicate on the query filter. func (f *ImpersonationEventFilter) 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[39].Type, p, s); err != nil { s.AddError(err) } }) @@ -31634,7 +32538,7 @@ type IntegrationFilter struct { // Where applies the entql predicate on the query filter. func (f *IntegrationFilter) 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[40].Type, p, s); err != nil { s.AddError(err) } }) @@ -32208,7 +33112,7 @@ type IntegrationRunFilter struct { // 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 { + if err := schemaGraph.EvalP(schemaGraph.Nodes[41].Type, p, s); err != nil { s.AddError(err) } }) @@ -32457,7 +33361,7 @@ type IntegrationWebhookFilter struct { // Where applies the entql predicate on the query filter. func (f *IntegrationWebhookFilter) 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[42].Type, p, s); err != nil { s.AddError(err) } }) @@ -32635,7 +33539,7 @@ type InternalPolicyFilter struct { // Where applies the entql predicate on the query filter. func (f *InternalPolicyFilter) 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[43].Type, p, s); err != nil { s.AddError(err) } }) @@ -33254,7 +34158,7 @@ type InviteFilter struct { // Where applies the entql predicate on the query filter. func (f *InviteFilter) 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[44].Type, p, s); err != nil { s.AddError(err) } }) @@ -33426,7 +34330,7 @@ type MappableDomainFilter struct { // 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[43].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[45].Type, p, s); err != nil { s.AddError(err) } }) @@ -33530,7 +34434,7 @@ type MappedControlFilter struct { // Where applies the entql predicate on the query filter. 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[46].Type, p, s); err != nil { s.AddError(err) } }) @@ -33748,7 +34652,7 @@ type NarrativeFilter struct { // Where applies the entql predicate on the query filter. 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[47].Type, p, s); err != nil { s.AddError(err) } }) @@ -33980,7 +34884,7 @@ type NoteFilter struct { // Where applies the entql predicate on the query filter. func (f *NoteFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[46].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { s.AddError(err) } }) @@ -34292,7 +35196,7 @@ type NotificationFilter struct { // Where applies the entql predicate on the query filter. func (f *NotificationFilter) 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[49].Type, p, s); err != nil { s.AddError(err) } }) @@ -34445,7 +35349,7 @@ type NotificationPreferenceFilter struct { // Where applies the entql predicate on the query filter. func (f *NotificationPreferenceFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[50].Type, p, s); err != nil { s.AddError(err) } }) @@ -34672,7 +35576,7 @@ type NotificationTemplateFilter struct { // Where applies the entql predicate on the query filter. func (f *NotificationTemplateFilter) 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[51].Type, p, s); err != nil { s.AddError(err) } }) @@ -34952,7 +35856,7 @@ type OnboardingFilter struct { // Where applies the entql predicate on the query filter. func (f *OnboardingFilter) 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[52].Type, p, s); err != nil { s.AddError(err) } }) @@ -35051,7 +35955,7 @@ type OrgMembershipFilter struct { // 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[51].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[53].Type, p, s); err != nil { s.AddError(err) } }) @@ -35213,7 +36117,7 @@ type OrgModuleFilter struct { // Where applies the entql predicate on the query filter. func (f *OrgModuleFilter) 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[54].Type, p, s); err != nil { s.AddError(err) } }) @@ -35399,7 +36303,7 @@ type OrgPriceFilter struct { // 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[53].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[55].Type, p, s); err != nil { s.AddError(err) } }) @@ -35570,7 +36474,7 @@ type OrgProductFilter struct { // 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[54].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[56].Type, p, s); err != nil { s.AddError(err) } }) @@ -35741,7 +36645,7 @@ type OrgSubscriptionFilter struct { // 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[55].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[57].Type, p, s); err != nil { s.AddError(err) } }) @@ -35926,7 +36830,7 @@ type OrganizationFilter struct { // 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[56].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { s.AddError(err) } }) @@ -36083,6 +36987,34 @@ func (f *OrganizationFilter) WhereHasAssetCreatorsWith(preds ...predicate.Group) }))) } +// WhereHasAudienceCreators applies a predicate to check if query has an edge audience_creators. +func (f *OrganizationFilter) WhereHasAudienceCreators() { + f.Where(entql.HasEdge("audience_creators")) +} + +// WhereHasAudienceCreatorsWith applies a predicate to check if query has an edge audience_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAudienceCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("audience_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudienceMemberCreators applies a predicate to check if query has an edge audience_member_creators. +func (f *OrganizationFilter) WhereHasAudienceMemberCreators() { + f.Where(entql.HasEdge("audience_member_creators")) +} + +// WhereHasAudienceMemberCreatorsWith applies a predicate to check if query has an edge audience_member_creators with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAudienceMemberCreatorsWith(preds ...predicate.Group) { + f.Where(entql.HasEdgeWith("audience_member_creators", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // WhereHasCampaignCreators applies a predicate to check if query has an edge campaign_creators. func (f *OrganizationFilter) WhereHasCampaignCreators() { f.Where(entql.HasEdge("campaign_creators")) @@ -37861,6 +38793,34 @@ func (f *OrganizationFilter) WhereHasExportsWith(preds ...predicate.Export) { }))) } +// WhereHasAudiences applies a predicate to check if query has an edge audiences. +func (f *OrganizationFilter) WhereHasAudiences() { + f.Where(entql.HasEdge("audiences")) +} + +// WhereHasAudiencesWith applies a predicate to check if query has an edge audiences with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAudiencesWith(preds ...predicate.Audience) { + f.Where(entql.HasEdgeWith("audiences", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *OrganizationFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *OrganizationFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // WhereHasTrustCenterWatermarkConfigs applies a predicate to check if query has an edge trust_center_watermark_configs. func (f *OrganizationFilter) WhereHasTrustCenterWatermarkConfigs() { f.Where(entql.HasEdge("trust_center_watermark_configs")) @@ -38268,7 +39228,7 @@ type OrganizationSettingFilter struct { // Where applies the entql predicate on the query filter. func (f *OrganizationSettingFilter) 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[59].Type, p, s); err != nil { s.AddError(err) } }) @@ -38526,7 +39486,7 @@ type PasswordResetTokenFilter struct { // Where applies the entql predicate on the query filter. func (f *PasswordResetTokenFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { s.AddError(err) } }) @@ -38635,7 +39595,7 @@ type PersonalAccessTokenFilter struct { // Where applies the entql predicate on the query filter. func (f *PersonalAccessTokenFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[59].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { s.AddError(err) } }) @@ -38817,7 +39777,7 @@ type PlatformFilter struct { // Where applies the entql predicate on the query filter. func (f *PlatformFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[62].Type, p, s); err != nil { s.AddError(err) } }) @@ -39805,7 +40765,7 @@ type ProcedureFilter struct { // Where applies the entql predicate on the query filter. func (f *ProcedureFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[63].Type, p, s); err != nil { s.AddError(err) } }) @@ -40321,7 +41281,7 @@ type ProgramFilter struct { // Where applies the entql predicate on the query filter. func (f *ProgramFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[62].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[64].Type, p, s); err != nil { s.AddError(err) } }) @@ -40861,7 +41821,7 @@ type ProgramMembershipFilter struct { // Where applies the entql predicate on the query filter. func (f *ProgramMembershipFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[63].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[65].Type, p, s); err != nil { s.AddError(err) } }) @@ -40983,7 +41943,7 @@ type RemediationFilter struct { // Where applies the entql predicate on the query filter. func (f *RemediationFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[64].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[66].Type, p, s); err != nil { s.AddError(err) } }) @@ -41507,7 +42467,7 @@ type ReviewFilter struct { // Where applies the entql predicate on the query filter. func (f *ReviewFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[65].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[67].Type, p, s); err != nil { s.AddError(err) } }) @@ -42016,7 +42976,7 @@ type RiskFilter struct { // Where applies the entql predicate on the query filter. func (f *RiskFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[66].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[68].Type, p, s); err != nil { s.AddError(err) } }) @@ -42668,7 +43628,7 @@ type SLADefinitionFilter struct { // Where applies the entql predicate on the query filter. func (f *SLADefinitionFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[67].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[69].Type, p, s); err != nil { s.AddError(err) } }) @@ -42810,7 +43770,7 @@ type ScanFilter struct { // Where applies the entql predicate on the query filter. func (f *ScanFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[68].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[70].Type, p, s); err != nil { s.AddError(err) } }) @@ -43356,7 +44316,7 @@ type StandardFilter struct { // Where applies the entql predicate on the query filter. func (f *StandardFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[69].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[71].Type, p, s); err != nil { s.AddError(err) } }) @@ -43615,7 +44575,7 @@ type SubcontrolFilter struct { // Where applies the entql predicate on the query filter. func (f *SubcontrolFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[70].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[72].Type, p, s); err != nil { s.AddError(err) } }) @@ -44287,7 +45247,7 @@ type SubprocessorFilter struct { // Where applies the entql predicate on the query filter. func (f *SubprocessorFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[71].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[73].Type, p, s); err != nil { s.AddError(err) } }) @@ -44463,7 +45423,7 @@ type SubscriberFilter struct { // Where applies the entql predicate on the query filter. func (f *SubscriberFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[72].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[74].Type, p, s); err != nil { s.AddError(err) } }) @@ -44668,6 +45628,20 @@ func (f *SubscriberFilter) WhereHasUserWith(preds ...predicate.User) { }))) } +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *SubscriberFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *SubscriberFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", sqlgraph.WrapFunc(func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }))) +} + // addPredicate implements the predicateAdder interface. func (_q *SystemDetailQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) @@ -44697,7 +45671,7 @@ type SystemDetailFilter struct { // Where applies the entql predicate on the query filter. func (f *SystemDetailFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[73].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[75].Type, p, s); err != nil { s.AddError(err) } }) @@ -44897,7 +45871,7 @@ type TFASettingFilter struct { // Where applies the entql predicate on the query filter. func (f *TFASettingFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[74].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[76].Type, p, s); err != nil { s.AddError(err) } }) @@ -45021,7 +45995,7 @@ type TagDefinitionFilter struct { // Where applies the entql predicate on the query filter. func (f *TagDefinitionFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[75].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[77].Type, p, s); err != nil { s.AddError(err) } }) @@ -45155,7 +46129,7 @@ type TaskFilter struct { // Where applies the entql predicate on the query filter. func (f *TaskFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[76].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[78].Type, p, s); err != nil { s.AddError(err) } }) @@ -45739,7 +46713,7 @@ type TemplateFilter struct { // Where applies the entql predicate on the query filter. func (f *TemplateFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[77].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[79].Type, p, s); err != nil { s.AddError(err) } }) @@ -46025,7 +46999,7 @@ type TrustCenterFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[78].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[80].Type, p, s); err != nil { s.AddError(err) } }) @@ -46416,7 +47390,7 @@ type TrustCenterComplianceFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterComplianceFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[79].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[81].Type, p, s); err != nil { s.AddError(err) } }) @@ -46562,7 +47536,7 @@ type TrustCenterDocFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterDocFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[80].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[82].Type, p, s); err != nil { s.AddError(err) } }) @@ -46790,7 +47764,7 @@ type TrustCenterEntityFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterEntityFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[81].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[83].Type, p, s); err != nil { s.AddError(err) } }) @@ -46960,7 +47934,7 @@ type TrustCenterFAQFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterFAQFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[82].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[84].Type, p, s); err != nil { s.AddError(err) } }) @@ -47135,7 +48109,7 @@ type TrustCenterNDARequestFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterNDARequestFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[83].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[85].Type, p, s); err != nil { s.AddError(err) } }) @@ -47378,7 +48352,7 @@ type TrustCenterSettingFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterSettingFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[84].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[86].Type, p, s); err != nil { s.AddError(err) } }) @@ -47677,7 +48651,7 @@ type TrustCenterSubprocessorFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterSubprocessorFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[85].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[87].Type, p, s); err != nil { s.AddError(err) } }) @@ -47847,7 +48821,7 @@ type TrustCenterWatermarkConfigFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterWatermarkConfigFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[86].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[88].Type, p, s); err != nil { s.AddError(err) } }) @@ -48042,7 +49016,7 @@ type UserFilter struct { // Where applies the entql predicate on the query filter. func (f *UserFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[87].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[89].Type, p, s); err != nil { s.AddError(err) } }) @@ -48393,6 +49367,20 @@ func (f *UserFilter) WhereHasCampaignTargetsWith(preds ...predicate.CampaignTarg }))) } +// WhereHasAudienceMembers applies a predicate to check if query has an edge audience_members. +func (f *UserFilter) WhereHasAudienceMembers() { + f.Where(entql.HasEdge("audience_members")) +} + +// WhereHasAudienceMembersWith applies a predicate to check if query has an edge audience_members with a given conditions (other predicates). +func (f *UserFilter) WhereHasAudienceMembersWith(preds ...predicate.AudienceMember) { + f.Where(entql.HasEdgeWith("audience_members", 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 *UserFilter) WhereHasSubcontrols() { f.Where(entql.HasEdge("subcontrols")) @@ -48590,7 +49578,7 @@ type UserSettingFilter struct { // Where applies the entql predicate on the query filter. func (f *UserSettingFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[88].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[90].Type, p, s); err != nil { s.AddError(err) } }) @@ -48758,7 +49746,7 @@ type VendorRiskScoreFilter struct { // Where applies the entql predicate on the query filter. func (f *VendorRiskScoreFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[89].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[91].Type, p, s); err != nil { s.AddError(err) } }) @@ -48964,7 +49952,7 @@ type VendorScoringConfigFilter struct { // Where applies the entql predicate on the query filter. func (f *VendorScoringConfigFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[90].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[92].Type, p, s); err != nil { s.AddError(err) } }) @@ -49092,7 +50080,7 @@ type VulnerabilityFilter struct { // Where applies the entql predicate on the query filter. func (f *VulnerabilityFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[91].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[93].Type, p, s); err != nil { s.AddError(err) } }) @@ -49850,7 +50838,7 @@ type WebauthnFilter struct { // Where applies the entql predicate on the query filter. func (f *WebauthnFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[92].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[94].Type, p, s); err != nil { s.AddError(err) } }) @@ -49984,7 +50972,7 @@ type WorkflowAssignmentFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowAssignmentFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[93].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[95].Type, p, s); err != nil { s.AddError(err) } }) @@ -50224,7 +51212,7 @@ type WorkflowAssignmentTargetFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowAssignmentTargetFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[94].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[96].Type, p, s); err != nil { s.AddError(err) } }) @@ -50395,7 +51383,7 @@ type WorkflowDefinitionFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowDefinitionFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[95].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[97].Type, p, s); err != nil { s.AddError(err) } }) @@ -50711,7 +51699,7 @@ type WorkflowEventFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowEventFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[96].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[98].Type, p, s); err != nil { s.AddError(err) } }) @@ -50844,7 +51832,7 @@ type WorkflowInstanceFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowInstanceFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[97].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[99].Type, p, s); err != nil { s.AddError(err) } }) @@ -51409,7 +52397,7 @@ type WorkflowObjectRefFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowObjectRefFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[98].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[100].Type, p, s); err != nil { s.AddError(err) } }) @@ -51911,7 +52899,7 @@ type WorkflowProposalFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowProposalFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[99].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[101].Type, p, s); err != nil { s.AddError(err) } }) diff --git a/internal/ent/generated/export/export.go b/internal/ent/generated/export/export.go index b29a39f7bd..848bce997e 100644 --- a/internal/ent/generated/export/export.go +++ b/internal/ent/generated/export/export.go @@ -141,7 +141,7 @@ var ( // ExportTypeValidator is a validator for the "export_type" field enum values. It is called by the builders before save. func ExportTypeValidator(et enums.ExportType) error { switch et.String() { - case "ASSESSMENT", "ASSET", "CAMPAIGN", "CHECK_RESULT", "CONTACT", "CONTROL", "DIRECTORY_MEMBERSHIP", "ENTITY", "EVIDENCE", "FINDING", "IDENTITY_HOLDER", "INTERNAL_POLICY", "PROCEDURE", "REMEDIATION", "REVIEW", "RISK", "SUBPROCESSOR", "SUBSCRIBER", "SYSTEM_DETAIL", "TASK", "TRUST_CENTER_FAQ", "TRUST_CENTER_SUBPROCESSOR", "VENDOR_RISK_SCORE", "VENDOR_SCORING_CONFIG", "VULNERABILITY": + case "ASSESSMENT", "ASSET", "AUDIENCE", "AUDIENCE_MEMBER", "CAMPAIGN", "CHECK_RESULT", "CONTACT", "CONTROL", "DIRECTORY_MEMBERSHIP", "ENTITY", "EVIDENCE", "FINDING", "IDENTITY_HOLDER", "INTERNAL_POLICY", "PROCEDURE", "REMEDIATION", "REVIEW", "RISK", "SUBPROCESSOR", "SUBSCRIBER", "SYSTEM_DETAIL", "TASK", "TRUST_CENTER_FAQ", "TRUST_CENTER_SUBPROCESSOR", "VENDOR_RISK_SCORE", "VENDOR_SCORING_CONFIG", "VULNERABILITY": return nil default: return fmt.Errorf("export: invalid enum value for export_type field: %q", et) diff --git a/internal/ent/generated/gql_collection.go b/internal/ent/generated/gql_collection.go index a129995b87..79f3977d0a 100644 --- a/internal/ent/generated/gql_collection.go +++ b/internal/ent/generated/gql_collection.go @@ -15,6 +15,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -5606,6 +5608,917 @@ func newAssetPaginateArgs(rv map[string]any) *assetPaginateArgs { return args } +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (_q *AudienceQuery) CollectFields(ctx context.Context, satisfies ...string) (*AudienceQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return _q, nil + } + if err := _q.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return _q, nil +} + +func (_q *AudienceQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { + path = append([]string(nil), path...) + var ( + unknownSeen bool + fieldSeen = make(map[string]struct{}, len(audience.Columns)) + selectedFields = []string{audience.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "owner": + 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.withOwner = query + if _, ok := fieldSeen[audience.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audience.FieldOwnerID) + fieldSeen[audience.FieldOwnerID] = struct{}{} + } + + case "blockedGroups": + 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 []*Audience) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"audience_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(audience.BlockedGroupsTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.BlockedGroupsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.BlockedGroupsPrimaryKey[0]), ids...)) + s.Select(joinT.C(audience.BlockedGroupsPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(audience.BlockedGroupsPrimaryKey[0])) + }) + if err := query.Select().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[1] == nil { + nodes[i].Edges.totalCount[1] = make(map[string]int) + } + nodes[i].Edges.totalCount[1][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Audience) error { + for i := range nodes { + n := len(nodes[i].Edges.BlockedGroups) + if nodes[i].Edges.totalCount[1] == nil { + nodes[i].Edges.totalCount[1] = make(map[string]int) + } + nodes[i].Edges.totalCount[1][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(audience.BlockedGroupsPrimaryKey[0], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedBlockedGroups(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "editors": + 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 []*Audience) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"audience_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(audience.EditorsTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.EditorsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.EditorsPrimaryKey[0]), ids...)) + s.Select(joinT.C(audience.EditorsPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(audience.EditorsPrimaryKey[0])) + }) + if err := query.Select().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[2] == nil { + nodes[i].Edges.totalCount[2] = make(map[string]int) + } + nodes[i].Edges.totalCount[2][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Audience) error { + for i := range nodes { + n := len(nodes[i].Edges.Editors) + if nodes[i].Edges.totalCount[2] == nil { + nodes[i].Edges.totalCount[2] = make(map[string]int) + } + nodes[i].Edges.totalCount[2][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(audience.EditorsPrimaryKey[0], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedEditors(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "viewers": + 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 []*Audience) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"audience_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(audience.ViewersTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(audience.ViewersPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(audience.ViewersPrimaryKey[0]), ids...)) + s.Select(joinT.C(audience.ViewersPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(audience.ViewersPrimaryKey[0])) + }) + if err := query.Select().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[3] == nil { + nodes[i].Edges.totalCount[3] = make(map[string]int) + } + nodes[i].Edges.totalCount[3][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Audience) error { + for i := range nodes { + n := len(nodes[i].Edges.Viewers) + if nodes[i].Edges.totalCount[3] == nil { + nodes[i].Edges.totalCount[3] = make(map[string]int) + } + nodes[i].Edges.totalCount[3][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(audience.ViewersPrimaryKey[0], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedViewers(alias, func(wq *GroupQuery) { + *wq = *query + }) + + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*Audience) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"audience_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(audience.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(audience.AudienceMembersColumn).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[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) + } + nodes[i].Edges.totalCount[4][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Audience) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) + } + nodes[i].Edges.totalCount[4][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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(audience.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) + + case "campaigns": + var ( + alias = field.Alias + path = append(path, alias) + query = (&CampaignClient{config: _q.config}).Query() + ) + args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), 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 := newCampaignPager(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 []*Audience) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"audience_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(audience.CampaignsTable) + s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(audience.CampaignsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(audience.CampaignsPrimaryKey[1]), ids...)) + s.Select(joinT.C(audience.CampaignsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(audience.CampaignsPrimaryKey[1])) + }) + if err := query.Select().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[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) + } + nodes[i].Edges.totalCount[5][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Audience) error { + for i := range nodes { + n := len(nodes[i].Edges.Campaigns) + if nodes[i].Edges.totalCount[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) + } + nodes[i].Edges.totalCount[5][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, campaignImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(audience.CampaignsPrimaryKey[1], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedCampaigns(alias, func(wq *CampaignQuery) { + *wq = *query + }) + case "createdAt": + if _, ok := fieldSeen[audience.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, audience.FieldCreatedAt) + fieldSeen[audience.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[audience.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, audience.FieldUpdatedAt) + fieldSeen[audience.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[audience.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, audience.FieldCreatedBy) + fieldSeen[audience.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[audience.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, audience.FieldUpdatedBy) + fieldSeen[audience.FieldUpdatedBy] = struct{}{} + } + case "updatedByImpersonator": + if _, ok := fieldSeen[audience.FieldUpdatedByImpersonator]; !ok { + selectedFields = append(selectedFields, audience.FieldUpdatedByImpersonator) + fieldSeen[audience.FieldUpdatedByImpersonator] = struct{}{} + } + case "displayID": + if _, ok := fieldSeen[audience.FieldDisplayID]; !ok { + selectedFields = append(selectedFields, audience.FieldDisplayID) + fieldSeen[audience.FieldDisplayID] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[audience.FieldTags]; !ok { + selectedFields = append(selectedFields, audience.FieldTags) + fieldSeen[audience.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[audience.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audience.FieldOwnerID) + fieldSeen[audience.FieldOwnerID] = struct{}{} + } + case "name": + if _, ok := fieldSeen[audience.FieldName]; !ok { + selectedFields = append(selectedFields, audience.FieldName) + fieldSeen[audience.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[audience.FieldDescription]; !ok { + selectedFields = append(selectedFields, audience.FieldDescription) + fieldSeen[audience.FieldDescription] = struct{}{} + } + case "audienceType": + if _, ok := fieldSeen[audience.FieldAudienceType]; !ok { + selectedFields = append(selectedFields, audience.FieldAudienceType) + fieldSeen[audience.FieldAudienceType] = struct{}{} + } + case "filters": + if _, ok := fieldSeen[audience.FieldFilters]; !ok { + selectedFields = append(selectedFields, audience.FieldFilters) + fieldSeen[audience.FieldFilters] = struct{}{} + } + case "metadata": + if _, ok := fieldSeen[audience.FieldMetadata]; !ok { + selectedFields = append(selectedFields, audience.FieldMetadata) + fieldSeen[audience.FieldMetadata] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + _q.Select(selectedFields...) + } + return nil +} + +type audiencePaginateArgs struct { + first, last *int + after, before *Cursor + opts []AudiencePaginateOption +} + +func newAudiencePaginateArgs(rv map[string]any) *audiencePaginateArgs { + args := &audiencePaginateArgs{} + if rv == nil { + return args + } + if v := rv[firstField]; v != nil { + args.first = v.(*int) + } + if v := rv[lastField]; v != nil { + args.last = v.(*int) + } + if v := rv[afterField]; v != nil { + args.after = v.(*Cursor) + } + if v := rv[beforeField]; v != nil { + args.before = v.(*Cursor) + } + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case []*AudienceOrder: + args.opts = append(args.opts, WithAudienceOrder(v)) + case []any: + var orders []*AudienceOrder + for i := range v { + mv, ok := v[i].(map[string]any) + if !ok { + continue + } + var ( + err1, err2 error + order = &AudienceOrder{Field: &AudienceOrderField{}, Direction: entgql.OrderDirectionAsc} + ) + if d, ok := mv[directionField]; ok { + err1 = order.Direction.UnmarshalGQL(d) + } + if f, ok := mv[fieldField]; ok { + err2 = order.Field.UnmarshalGQL(f) + } + if err1 == nil && err2 == nil { + orders = append(orders, order) + } + } + args.opts = append(args.opts, WithAudienceOrder(orders)) + } + } + if v, ok := rv[whereField].(*AudienceWhereInput); ok { + args.opts = append(args.opts, WithAudienceFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (_q *AudienceMemberQuery) CollectFields(ctx context.Context, satisfies ...string) (*AudienceMemberQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return _q, nil + } + if err := _q.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return _q, nil +} + +func (_q *AudienceMemberQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { + path = append([]string(nil), path...) + var ( + unknownSeen bool + fieldSeen = make(map[string]struct{}, len(audiencemember.Columns)) + selectedFields = []string{audiencemember.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + + case "owner": + 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.withOwner = query + if _, ok := fieldSeen[audiencemember.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldOwnerID) + fieldSeen[audiencemember.FieldOwnerID] = struct{}{} + } + + case "audience": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { + return err + } + _q.withAudience = query + if _, ok := fieldSeen[audiencemember.FieldAudienceID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldAudienceID) + fieldSeen[audiencemember.FieldAudienceID] = struct{}{} + } + + case "contact": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ContactClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, contactImplementors)...); err != nil { + return err + } + _q.withContact = query + if _, ok := fieldSeen[audiencemember.FieldContactID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldContactID) + fieldSeen[audiencemember.FieldContactID] = struct{}{} + } + + case "user": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + return err + } + _q.withUser = query + if _, ok := fieldSeen[audiencemember.FieldUserID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldUserID) + fieldSeen[audiencemember.FieldUserID] = struct{}{} + } + + case "group": + var ( + alias = field.Alias + path = append(path, alias) + query = (&GroupClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { + return err + } + _q.withGroup = query + if _, ok := fieldSeen[audiencemember.FieldGroupID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldGroupID) + fieldSeen[audiencemember.FieldGroupID] = struct{}{} + } + + case "identityHolder": + var ( + alias = field.Alias + path = append(path, alias) + query = (&IdentityHolderClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, identityholderImplementors)...); err != nil { + return err + } + _q.withIdentityHolder = query + if _, ok := fieldSeen[audiencemember.FieldIdentityHolderID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldIdentityHolderID) + fieldSeen[audiencemember.FieldIdentityHolderID] = struct{}{} + } + + case "subscriber": + var ( + alias = field.Alias + path = append(path, alias) + query = (&SubscriberClient{config: _q.config}).Query() + ) + if err := query.collectField(ctx, oneNode, opCtx, field, path, mayAddCondition(satisfies, subscriberImplementors)...); err != nil { + return err + } + _q.withSubscriber = query + if _, ok := fieldSeen[audiencemember.FieldSubscriberID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldSubscriberID) + fieldSeen[audiencemember.FieldSubscriberID] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[audiencemember.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldCreatedAt) + fieldSeen[audiencemember.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[audiencemember.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldUpdatedAt) + fieldSeen[audiencemember.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[audiencemember.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldCreatedBy) + fieldSeen[audiencemember.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[audiencemember.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldUpdatedBy) + fieldSeen[audiencemember.FieldUpdatedBy] = struct{}{} + } + case "updatedByImpersonator": + if _, ok := fieldSeen[audiencemember.FieldUpdatedByImpersonator]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldUpdatedByImpersonator) + fieldSeen[audiencemember.FieldUpdatedByImpersonator] = struct{}{} + } + case "displayID": + if _, ok := fieldSeen[audiencemember.FieldDisplayID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldDisplayID) + fieldSeen[audiencemember.FieldDisplayID] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[audiencemember.FieldTags]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldTags) + fieldSeen[audiencemember.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[audiencemember.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldOwnerID) + fieldSeen[audiencemember.FieldOwnerID] = struct{}{} + } + case "audienceID": + if _, ok := fieldSeen[audiencemember.FieldAudienceID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldAudienceID) + fieldSeen[audiencemember.FieldAudienceID] = struct{}{} + } + case "contactID": + if _, ok := fieldSeen[audiencemember.FieldContactID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldContactID) + fieldSeen[audiencemember.FieldContactID] = struct{}{} + } + case "userID": + if _, ok := fieldSeen[audiencemember.FieldUserID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldUserID) + fieldSeen[audiencemember.FieldUserID] = struct{}{} + } + case "groupID": + if _, ok := fieldSeen[audiencemember.FieldGroupID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldGroupID) + fieldSeen[audiencemember.FieldGroupID] = struct{}{} + } + case "identityHolderID": + if _, ok := fieldSeen[audiencemember.FieldIdentityHolderID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldIdentityHolderID) + fieldSeen[audiencemember.FieldIdentityHolderID] = struct{}{} + } + case "subscriberID": + if _, ok := fieldSeen[audiencemember.FieldSubscriberID]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldSubscriberID) + fieldSeen[audiencemember.FieldSubscriberID] = struct{}{} + } + case "email": + if _, ok := fieldSeen[audiencemember.FieldEmail]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldEmail) + fieldSeen[audiencemember.FieldEmail] = struct{}{} + } + case "fullName": + if _, ok := fieldSeen[audiencemember.FieldFullName]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldFullName) + fieldSeen[audiencemember.FieldFullName] = struct{}{} + } + case "metadata": + if _, ok := fieldSeen[audiencemember.FieldMetadata]; !ok { + selectedFields = append(selectedFields, audiencemember.FieldMetadata) + fieldSeen[audiencemember.FieldMetadata] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + _q.Select(selectedFields...) + } + return nil +} + +type audiencememberPaginateArgs struct { + first, last *int + after, before *Cursor + opts []AudienceMemberPaginateOption +} + +func newAudienceMemberPaginateArgs(rv map[string]any) *audiencememberPaginateArgs { + args := &audiencememberPaginateArgs{} + if rv == nil { + return args + } + if v := rv[firstField]; v != nil { + args.first = v.(*int) + } + if v := rv[lastField]; v != nil { + args.last = v.(*int) + } + if v := rv[afterField]; v != nil { + args.after = v.(*Cursor) + } + if v := rv[beforeField]; v != nil { + args.before = v.(*Cursor) + } + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case []*AudienceMemberOrder: + args.opts = append(args.opts, WithAudienceMemberOrder(v)) + case []any: + var orders []*AudienceMemberOrder + for i := range v { + mv, ok := v[i].(map[string]any) + if !ok { + continue + } + var ( + err1, err2 error + order = &AudienceMemberOrder{Field: &AudienceMemberOrderField{}, Direction: entgql.OrderDirectionAsc} + ) + if d, ok := mv[directionField]; ok { + err1 = order.Direction.UnmarshalGQL(d) + } + if f, ok := mv[fieldField]; ok { + err2 = order.Field.UnmarshalGQL(f) + } + if err1 == nil && err2 == nil { + orders = append(orders, order) + } + } + args.opts = append(args.opts, WithAudienceMemberOrder(orders)) + } + } + if v, ok := rv[whereField].(*AudienceMemberWhereInput); ok { + args.opts = append(args.opts, WithAudienceMemberFilter(v.Filter)) + } + return args +} + // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. func (_q *CampaignQuery) CollectFields(ctx context.Context, satisfies ...string) (*CampaignQuery, error) { fc := graphql.GetFieldContext(ctx) @@ -6252,11 +7165,104 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(campaign.ContactsTable) - s.Join(joinT).On(s.C(contact.FieldID), joinT.C(campaign.ContactsPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(campaign.ContactsPrimaryKey[0]), ids...)) - s.Select(joinT.C(campaign.ContactsPrimaryKey[0]), sql.Count("*")) - s.GroupBy(joinT.C(campaign.ContactsPrimaryKey[0])) + joinT := sql.Table(campaign.ContactsTable) + s.Join(joinT).On(s.C(contact.FieldID), joinT.C(campaign.ContactsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.ContactsPrimaryKey[0]), ids...)) + s.Select(joinT.C(campaign.ContactsPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(campaign.ContactsPrimaryKey[0])) + }) + if err := query.Select().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[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) + } + nodes[i].Edges.totalCount[14][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { + for i := range nodes { + n := len(nodes[i].Edges.Contacts) + if nodes[i].Edges.totalCount[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) + } + nodes[i].Edges.totalCount[14][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, contactImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(campaign.ContactsPrimaryKey[0], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedContacts(alias, func(wq *ContactQuery) { + *wq = *query + }) + + case "users": + var ( + alias = field.Alias + path = append(path, alias) + query = (&UserClient{config: _q.config}).Query() + ) + args := newUserPaginateArgs(fieldArgs(ctx, new(UserWhereInput), 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 := newUserPager(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 []*Campaign) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"campaign_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(campaign.UsersTable) + s.Join(joinT).On(s.C(user.FieldID), joinT.C(campaign.UsersPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.UsersPrimaryKey[0]), ids...)) + s.Select(joinT.C(campaign.UsersPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(campaign.UsersPrimaryKey[0])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -6267,21 +7273,21 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { - n := len(nodes[i].Edges.Contacts) - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + n := len(nodes[i].Edges.Users) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) @@ -6295,7 +7301,7 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, contactImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { return err } } @@ -6303,27 +7309,27 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(campaign.ContactsPrimaryKey[0], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(campaign.UsersPrimaryKey[0], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedContacts(alias, func(wq *ContactQuery) { + _q.WithNamedUsers(alias, func(wq *UserQuery) { *wq = *query }) - case "users": + case "groups": var ( alias = field.Alias path = append(path, alias) - query = (&UserClient{config: _q.config}).Query() + query = (&GroupClient{config: _q.config}).Query() ) - args := newUserPaginateArgs(fieldArgs(ctx, new(UserWhereInput), 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 := newUserPager(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) } @@ -6345,11 +7351,11 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(campaign.UsersTable) - s.Join(joinT).On(s.C(user.FieldID), joinT.C(campaign.UsersPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(campaign.UsersPrimaryKey[0]), ids...)) - s.Select(joinT.C(campaign.UsersPrimaryKey[0]), sql.Count("*")) - s.GroupBy(joinT.C(campaign.UsersPrimaryKey[0])) + joinT := sql.Table(campaign.GroupsTable) + s.Join(joinT).On(s.C(group.FieldID), joinT.C(campaign.GroupsPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.GroupsPrimaryKey[0]), ids...)) + s.Select(joinT.C(campaign.GroupsPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(campaign.GroupsPrimaryKey[0])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -6360,21 +7366,21 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { - n := len(nodes[i].Edges.Users) - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + n := len(nodes[i].Edges.Groups) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) @@ -6388,7 +7394,7 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, userImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, groupImplementors)...); err != nil { return err } } @@ -6396,27 +7402,27 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(campaign.UsersPrimaryKey[0], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(campaign.GroupsPrimaryKey[0], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedUsers(alias, func(wq *UserQuery) { + _q.WithNamedGroups(alias, func(wq *GroupQuery) { *wq = *query }) - case "groups": + case "identityHolders": var ( alias = field.Alias path = append(path, alias) - query = (&GroupClient{config: _q.config}).Query() + query = (&IdentityHolderClient{config: _q.config}).Query() ) - args := newGroupPaginateArgs(fieldArgs(ctx, new(GroupWhereInput), path...)) + args := newIdentityHolderPaginateArgs(fieldArgs(ctx, new(IdentityHolderWhereInput), 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) + pager, err := newIdentityHolderPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -6438,11 +7444,11 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(campaign.GroupsTable) - s.Join(joinT).On(s.C(group.FieldID), joinT.C(campaign.GroupsPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(campaign.GroupsPrimaryKey[0]), ids...)) - s.Select(joinT.C(campaign.GroupsPrimaryKey[0]), sql.Count("*")) - s.GroupBy(joinT.C(campaign.GroupsPrimaryKey[0])) + joinT := sql.Table(campaign.IdentityHoldersTable) + s.Join(joinT).On(s.C(identityholder.FieldID), joinT.C(campaign.IdentityHoldersPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.IdentityHoldersPrimaryKey[0]), ids...)) + s.Select(joinT.C(campaign.IdentityHoldersPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(campaign.IdentityHoldersPrimaryKey[0])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -6453,21 +7459,21 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { - n := len(nodes[i].Edges.Groups) - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + n := len(nodes[i].Edges.IdentityHolders) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) @@ -6481,7 +7487,7 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } 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 { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, identityholderImplementors)...); err != nil { return err } } @@ -6489,27 +7495,27 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(campaign.GroupsPrimaryKey[0], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(campaign.IdentityHoldersPrimaryKey[0], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedGroups(alias, func(wq *GroupQuery) { + _q.WithNamedIdentityHolders(alias, func(wq *IdentityHolderQuery) { *wq = *query }) - case "identityHolders": + case "audiences": var ( alias = field.Alias path = append(path, alias) - query = (&IdentityHolderClient{config: _q.config}).Query() + query = (&AudienceClient{config: _q.config}).Query() ) - args := newIdentityHolderPaginateArgs(fieldArgs(ctx, new(IdentityHolderWhereInput), path...)) + args := newAudiencePaginateArgs(fieldArgs(ctx, new(AudienceWhereInput), 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 := newIdentityHolderPager(args.opts, args.last != nil) + pager, err := newAudiencePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -6531,11 +7537,11 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(campaign.IdentityHoldersTable) - s.Join(joinT).On(s.C(identityholder.FieldID), joinT.C(campaign.IdentityHoldersPrimaryKey[1])) - s.Where(sql.InValues(joinT.C(campaign.IdentityHoldersPrimaryKey[0]), ids...)) - s.Select(joinT.C(campaign.IdentityHoldersPrimaryKey[0]), sql.Count("*")) - s.GroupBy(joinT.C(campaign.IdentityHoldersPrimaryKey[0])) + joinT := sql.Table(campaign.AudiencesTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(campaign.AudiencesPrimaryKey[1])) + s.Where(sql.InValues(joinT.C(campaign.AudiencesPrimaryKey[0]), ids...)) + s.Select(joinT.C(campaign.AudiencesPrimaryKey[0]), sql.Count("*")) + s.GroupBy(joinT.C(campaign.AudiencesPrimaryKey[0])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -6546,21 +7552,21 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { - n := len(nodes[i].Edges.IdentityHolders) - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + n := len(nodes[i].Edges.Audiences) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) @@ -6574,7 +7580,7 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, identityholderImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { return err } } @@ -6582,13 +7588,13 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(campaign.IdentityHoldersPrimaryKey[0], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(campaign.AudiencesPrimaryKey[0], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedIdentityHolders(alias, func(wq *IdentityHolderQuery) { + _q.WithNamedAudiences(alias, func(wq *AudienceQuery) { *wq = *query }) @@ -6639,10 +7645,10 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) @@ -6650,10 +7656,10 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { n := len(nodes[i].Edges.Controls) - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) @@ -6728,10 +7734,10 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -6739,10 +7745,10 @@ func (_q *CampaignQuery) collectField(ctx context.Context, oneNode bool, opCtx * _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Campaign) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowObjectRefs) - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -8336,6 +9342,95 @@ func (_q *ContactQuery) collectField(ctx context.Context, oneNode bool, opCtx *g *wq = *query }) + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*Contact) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"contact_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(contact.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(contact.AudienceMembersColumn).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[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) + } + nodes[i].Edges.totalCount[4][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Contact) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) + } + nodes[i].Edges.totalCount[4][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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(contact.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) + case "files": var ( alias = field.Alias @@ -8383,10 +9478,10 @@ func (_q *ContactQuery) collectField(ctx context.Context, oneNode bool, opCtx *g } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[4] == nil { - nodes[i].Edges.totalCount[4] = make(map[string]int) + if nodes[i].Edges.totalCount[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) } - nodes[i].Edges.totalCount[4][alias] = n + nodes[i].Edges.totalCount[5][alias] = n } return nil }) @@ -8394,10 +9489,10 @@ func (_q *ContactQuery) collectField(ctx context.Context, oneNode bool, opCtx *g _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Contact) error { for i := range nodes { n := len(nodes[i].Edges.Files) - if nodes[i].Edges.totalCount[4] == nil { - nodes[i].Edges.totalCount[4] = make(map[string]int) + if nodes[i].Edges.totalCount[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) } - nodes[i].Edges.totalCount[4][alias] = n + nodes[i].Edges.totalCount[5][alias] = n } return nil }) @@ -8472,10 +9567,10 @@ func (_q *ContactQuery) collectField(ctx context.Context, oneNode bool, opCtx *g } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[5] == nil { - nodes[i].Edges.totalCount[5] = make(map[string]int) + if nodes[i].Edges.totalCount[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) } - nodes[i].Edges.totalCount[5][alias] = n + nodes[i].Edges.totalCount[6][alias] = n } return nil }) @@ -8483,10 +9578,10 @@ func (_q *ContactQuery) collectField(ctx context.Context, oneNode bool, opCtx *g _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Contact) error { for i := range nodes { n := len(nodes[i].Edges.Subscribers) - if nodes[i].Edges.totalCount[5] == nil { - nodes[i].Edges.totalCount[5] = make(map[string]int) + if nodes[i].Edges.totalCount[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) } - nodes[i].Edges.totalCount[5][alias] = n + nodes[i].Edges.totalCount[6][alias] = n } return nil }) @@ -29499,11 +30594,290 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ProgramEditorsTable) - s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ProgramEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ProgramEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ProgramEditorsPrimaryKey[1])) + joinT := sql.Table(group.ProgramEditorsTable) + s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ProgramEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ProgramEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ProgramEditorsPrimaryKey[1])) + }) + if err := query.Select().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[1] == nil { + nodes[i].Edges.totalCount[1] = make(map[string]int) + } + nodes[i].Edges.totalCount[1][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { + for i := range nodes { + n := len(nodes[i].Edges.ProgramEditors) + if nodes[i].Edges.totalCount[1] == nil { + nodes[i].Edges.totalCount[1] = make(map[string]int) + } + nodes[i].Edges.totalCount[1][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, programImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(group.ProgramEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedProgramEditors(alias, func(wq *ProgramQuery) { + *wq = *query + }) + + case "programBlockedGroups": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ProgramClient{config: _q.config}).Query() + ) + args := newProgramPaginateArgs(fieldArgs(ctx, new(ProgramWhereInput), 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 := newProgramPager(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 []*Group) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"group_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(group.ProgramBlockedGroupsTable) + s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1])) + }) + if err := query.Select().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[2] == nil { + nodes[i].Edges.totalCount[2] = make(map[string]int) + } + nodes[i].Edges.totalCount[2][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { + for i := range nodes { + n := len(nodes[i].Edges.ProgramBlockedGroups) + if nodes[i].Edges.totalCount[2] == nil { + nodes[i].Edges.totalCount[2] = make(map[string]int) + } + nodes[i].Edges.totalCount[2][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, programImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(group.ProgramBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedProgramBlockedGroups(alias, func(wq *ProgramQuery) { + *wq = *query + }) + + case "programViewers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&ProgramClient{config: _q.config}).Query() + ) + args := newProgramPaginateArgs(fieldArgs(ctx, new(ProgramWhereInput), 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 := newProgramPager(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 []*Group) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"group_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(group.ProgramViewersTable) + s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ProgramViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ProgramViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ProgramViewersPrimaryKey[1])) + }) + if err := query.Select().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[3] == nil { + nodes[i].Edges.totalCount[3] = make(map[string]int) + } + nodes[i].Edges.totalCount[3][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { + for i := range nodes { + n := len(nodes[i].Edges.ProgramViewers) + if nodes[i].Edges.totalCount[3] == nil { + nodes[i].Edges.totalCount[3] = make(map[string]int) + } + nodes[i].Edges.totalCount[3][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, programImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(group.ProgramViewersPrimaryKey[1], limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedProgramViewers(alias, func(wq *ProgramQuery) { + *wq = *query + }) + + case "riskEditors": + var ( + alias = field.Alias + path = append(path, alias) + query = (&RiskClient{config: _q.config}).Query() + ) + args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), 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 := newRiskPager(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 []*Group) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"group_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + joinT := sql.Table(group.RiskEditorsTable) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.RiskEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.RiskEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.RiskEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29514,21 +30888,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[1] == nil { - nodes[i].Edges.totalCount[1] = make(map[string]int) + if nodes[i].Edges.totalCount[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) } - nodes[i].Edges.totalCount[1][alias] = n + nodes[i].Edges.totalCount[4][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ProgramEditors) - if nodes[i].Edges.totalCount[1] == nil { - nodes[i].Edges.totalCount[1] = make(map[string]int) + n := len(nodes[i].Edges.RiskEditors) + if nodes[i].Edges.totalCount[4] == nil { + nodes[i].Edges.totalCount[4] = make(map[string]int) } - nodes[i].Edges.totalCount[1][alias] = n + nodes[i].Edges.totalCount[4][alias] = n } return nil }) @@ -29542,7 +30916,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, programImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { return err } } @@ -29550,27 +30924,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ProgramEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.RiskEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramEditors(alias, func(wq *ProgramQuery) { + _q.WithNamedRiskEditors(alias, func(wq *RiskQuery) { *wq = *query }) - case "programBlockedGroups": + case "riskBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&ProgramClient{config: _q.config}).Query() + query = (&RiskClient{config: _q.config}).Query() ) - args := newProgramPaginateArgs(fieldArgs(ctx, new(ProgramWhereInput), path...)) + args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), 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 := newProgramPager(args.opts, args.last != nil) + pager, err := newRiskPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -29592,11 +30966,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ProgramBlockedGroupsTable) - s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ProgramBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.RiskBlockedGroupsTable) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.RiskBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.RiskBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.RiskBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29607,21 +30981,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[2] == nil { - nodes[i].Edges.totalCount[2] = make(map[string]int) + if nodes[i].Edges.totalCount[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) } - nodes[i].Edges.totalCount[2][alias] = n + nodes[i].Edges.totalCount[5][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ProgramBlockedGroups) - if nodes[i].Edges.totalCount[2] == nil { - nodes[i].Edges.totalCount[2] = make(map[string]int) + n := len(nodes[i].Edges.RiskBlockedGroups) + if nodes[i].Edges.totalCount[5] == nil { + nodes[i].Edges.totalCount[5] = make(map[string]int) } - nodes[i].Edges.totalCount[2][alias] = n + nodes[i].Edges.totalCount[5][alias] = n } return nil }) @@ -29635,7 +31009,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, programImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { return err } } @@ -29643,27 +31017,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ProgramBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.RiskBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramBlockedGroups(alias, func(wq *ProgramQuery) { + _q.WithNamedRiskBlockedGroups(alias, func(wq *RiskQuery) { *wq = *query }) - case "programViewers": + case "riskViewers": var ( alias = field.Alias path = append(path, alias) - query = (&ProgramClient{config: _q.config}).Query() + query = (&RiskClient{config: _q.config}).Query() ) - args := newProgramPaginateArgs(fieldArgs(ctx, new(ProgramWhereInput), path...)) + args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), 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 := newProgramPager(args.opts, args.last != nil) + pager, err := newRiskPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -29685,11 +31059,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ProgramViewersTable) - s.Join(joinT).On(s.C(program.FieldID), joinT.C(group.ProgramViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ProgramViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ProgramViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ProgramViewersPrimaryKey[1])) + joinT := sql.Table(group.RiskViewersTable) + s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.RiskViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.RiskViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.RiskViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29700,21 +31074,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[3] == nil { - nodes[i].Edges.totalCount[3] = make(map[string]int) + if nodes[i].Edges.totalCount[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) } - nodes[i].Edges.totalCount[3][alias] = n + nodes[i].Edges.totalCount[6][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ProgramViewers) - if nodes[i].Edges.totalCount[3] == nil { - nodes[i].Edges.totalCount[3] = make(map[string]int) + n := len(nodes[i].Edges.RiskViewers) + if nodes[i].Edges.totalCount[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) } - nodes[i].Edges.totalCount[3][alias] = n + nodes[i].Edges.totalCount[6][alias] = n } return nil }) @@ -29728,7 +31102,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, programImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { return err } } @@ -29736,27 +31110,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ProgramViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.RiskViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramViewers(alias, func(wq *ProgramQuery) { + _q.WithNamedRiskViewers(alias, func(wq *RiskQuery) { *wq = *query }) - case "riskEditors": + case "controlObjectiveEditors": var ( alias = field.Alias path = append(path, alias) - query = (&RiskClient{config: _q.config}).Query() + query = (&ControlObjectiveClient{config: _q.config}).Query() ) - args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), path...)) + args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), 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 := newRiskPager(args.opts, args.last != nil) + pager, err := newControlObjectivePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -29778,11 +31152,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.RiskEditorsTable) - s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.RiskEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.RiskEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.RiskEditorsPrimaryKey[1])) + joinT := sql.Table(group.ControlObjectiveEditorsTable) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29793,21 +31167,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[4] == nil { - nodes[i].Edges.totalCount[4] = make(map[string]int) + if nodes[i].Edges.totalCount[7] == nil { + nodes[i].Edges.totalCount[7] = make(map[string]int) } - nodes[i].Edges.totalCount[4][alias] = n + nodes[i].Edges.totalCount[7][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.RiskEditors) - if nodes[i].Edges.totalCount[4] == nil { - nodes[i].Edges.totalCount[4] = make(map[string]int) + n := len(nodes[i].Edges.ControlObjectiveEditors) + if nodes[i].Edges.totalCount[7] == nil { + nodes[i].Edges.totalCount[7] = make(map[string]int) } - nodes[i].Edges.totalCount[4][alias] = n + nodes[i].Edges.totalCount[7][alias] = n } return nil }) @@ -29821,7 +31195,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { return err } } @@ -29829,27 +31203,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.RiskEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlObjectiveEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskEditors(alias, func(wq *RiskQuery) { + _q.WithNamedControlObjectiveEditors(alias, func(wq *ControlObjectiveQuery) { *wq = *query }) - case "riskBlockedGroups": + case "controlObjectiveBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&RiskClient{config: _q.config}).Query() + query = (&ControlObjectiveClient{config: _q.config}).Query() ) - args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), path...)) + args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), 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 := newRiskPager(args.opts, args.last != nil) + pager, err := newControlObjectivePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -29871,11 +31245,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.RiskBlockedGroupsTable) - s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.RiskBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.RiskBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.RiskBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.ControlObjectiveBlockedGroupsTable) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29886,21 +31260,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[5] == nil { - nodes[i].Edges.totalCount[5] = make(map[string]int) + if nodes[i].Edges.totalCount[8] == nil { + nodes[i].Edges.totalCount[8] = make(map[string]int) } - nodes[i].Edges.totalCount[5][alias] = n + nodes[i].Edges.totalCount[8][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.RiskBlockedGroups) - if nodes[i].Edges.totalCount[5] == nil { - nodes[i].Edges.totalCount[5] = make(map[string]int) + n := len(nodes[i].Edges.ControlObjectiveBlockedGroups) + if nodes[i].Edges.totalCount[8] == nil { + nodes[i].Edges.totalCount[8] = make(map[string]int) } - nodes[i].Edges.totalCount[5][alias] = n + nodes[i].Edges.totalCount[8][alias] = n } return nil }) @@ -29914,7 +31288,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { return err } } @@ -29922,27 +31296,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.RiskBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlObjectiveBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskBlockedGroups(alias, func(wq *RiskQuery) { + _q.WithNamedControlObjectiveBlockedGroups(alias, func(wq *ControlObjectiveQuery) { *wq = *query }) - case "riskViewers": + case "controlObjectiveViewers": var ( alias = field.Alias path = append(path, alias) - query = (&RiskClient{config: _q.config}).Query() + query = (&ControlObjectiveClient{config: _q.config}).Query() ) - args := newRiskPaginateArgs(fieldArgs(ctx, new(RiskWhereInput), path...)) + args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), 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 := newRiskPager(args.opts, args.last != nil) + pager, err := newControlObjectivePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -29964,11 +31338,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.RiskViewersTable) - s.Join(joinT).On(s.C(risk.FieldID), joinT.C(group.RiskViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.RiskViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.RiskViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.RiskViewersPrimaryKey[1])) + joinT := sql.Table(group.ControlObjectiveViewersTable) + s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlObjectiveViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlObjectiveViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlObjectiveViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -29979,21 +31353,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[6] == nil { - nodes[i].Edges.totalCount[6] = make(map[string]int) + if nodes[i].Edges.totalCount[9] == nil { + nodes[i].Edges.totalCount[9] = make(map[string]int) } - nodes[i].Edges.totalCount[6][alias] = n + nodes[i].Edges.totalCount[9][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.RiskViewers) - if nodes[i].Edges.totalCount[6] == nil { - nodes[i].Edges.totalCount[6] = make(map[string]int) + n := len(nodes[i].Edges.ControlObjectiveViewers) + if nodes[i].Edges.totalCount[9] == nil { + nodes[i].Edges.totalCount[9] = make(map[string]int) } - nodes[i].Edges.totalCount[6][alias] = n + nodes[i].Edges.totalCount[9][alias] = n } return nil }) @@ -30007,7 +31381,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, riskImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { return err } } @@ -30015,27 +31389,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.RiskViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlObjectiveViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskViewers(alias, func(wq *RiskQuery) { + _q.WithNamedControlObjectiveViewers(alias, func(wq *ControlObjectiveQuery) { *wq = *query }) - case "controlObjectiveEditors": + case "narrativeEditors": var ( alias = field.Alias path = append(path, alias) - query = (&ControlObjectiveClient{config: _q.config}).Query() + query = (&NarrativeClient{config: _q.config}).Query() ) - args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), path...)) + args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), 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 := newControlObjectivePager(args.opts, args.last != nil) + pager, err := newNarrativePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30057,11 +31431,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlObjectiveEditorsTable) - s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlObjectiveEditorsPrimaryKey[1])) + joinT := sql.Table(group.NarrativeEditorsTable) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.NarrativeEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.NarrativeEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.NarrativeEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30072,21 +31446,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[7] == nil { - nodes[i].Edges.totalCount[7] = make(map[string]int) + if nodes[i].Edges.totalCount[10] == nil { + nodes[i].Edges.totalCount[10] = make(map[string]int) } - nodes[i].Edges.totalCount[7][alias] = n + nodes[i].Edges.totalCount[10][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlObjectiveEditors) - if nodes[i].Edges.totalCount[7] == nil { - nodes[i].Edges.totalCount[7] = make(map[string]int) + n := len(nodes[i].Edges.NarrativeEditors) + if nodes[i].Edges.totalCount[10] == nil { + nodes[i].Edges.totalCount[10] = make(map[string]int) } - nodes[i].Edges.totalCount[7][alias] = n + nodes[i].Edges.totalCount[10][alias] = n } return nil }) @@ -30100,7 +31474,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { return err } } @@ -30108,27 +31482,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlObjectiveEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.NarrativeEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlObjectiveEditors(alias, func(wq *ControlObjectiveQuery) { + _q.WithNamedNarrativeEditors(alias, func(wq *NarrativeQuery) { *wq = *query }) - case "controlObjectiveBlockedGroups": + case "narrativeBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&ControlObjectiveClient{config: _q.config}).Query() + query = (&NarrativeClient{config: _q.config}).Query() ) - args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), path...)) + args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), 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 := newControlObjectivePager(args.opts, args.last != nil) + pager, err := newNarrativePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30150,11 +31524,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlObjectiveBlockedGroupsTable) - s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlObjectiveBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.NarrativeBlockedGroupsTable) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30165,21 +31539,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[8] == nil { - nodes[i].Edges.totalCount[8] = make(map[string]int) + if nodes[i].Edges.totalCount[11] == nil { + nodes[i].Edges.totalCount[11] = make(map[string]int) } - nodes[i].Edges.totalCount[8][alias] = n + nodes[i].Edges.totalCount[11][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlObjectiveBlockedGroups) - if nodes[i].Edges.totalCount[8] == nil { - nodes[i].Edges.totalCount[8] = make(map[string]int) + n := len(nodes[i].Edges.NarrativeBlockedGroups) + if nodes[i].Edges.totalCount[11] == nil { + nodes[i].Edges.totalCount[11] = make(map[string]int) } - nodes[i].Edges.totalCount[8][alias] = n + nodes[i].Edges.totalCount[11][alias] = n } return nil }) @@ -30193,7 +31567,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { return err } } @@ -30201,27 +31575,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlObjectiveBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.NarrativeBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlObjectiveBlockedGroups(alias, func(wq *ControlObjectiveQuery) { + _q.WithNamedNarrativeBlockedGroups(alias, func(wq *NarrativeQuery) { *wq = *query }) - case "controlObjectiveViewers": + case "narrativeViewers": var ( alias = field.Alias path = append(path, alias) - query = (&ControlObjectiveClient{config: _q.config}).Query() + query = (&NarrativeClient{config: _q.config}).Query() ) - args := newControlObjectivePaginateArgs(fieldArgs(ctx, new(ControlObjectiveWhereInput), path...)) + args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), 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 := newControlObjectivePager(args.opts, args.last != nil) + pager, err := newNarrativePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30243,11 +31617,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlObjectiveViewersTable) - s.Join(joinT).On(s.C(controlobjective.FieldID), joinT.C(group.ControlObjectiveViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlObjectiveViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlObjectiveViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlObjectiveViewersPrimaryKey[1])) + joinT := sql.Table(group.NarrativeViewersTable) + s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.NarrativeViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.NarrativeViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.NarrativeViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30258,21 +31632,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[9] == nil { - nodes[i].Edges.totalCount[9] = make(map[string]int) + if nodes[i].Edges.totalCount[12] == nil { + nodes[i].Edges.totalCount[12] = make(map[string]int) } - nodes[i].Edges.totalCount[9][alias] = n + nodes[i].Edges.totalCount[12][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlObjectiveViewers) - if nodes[i].Edges.totalCount[9] == nil { - nodes[i].Edges.totalCount[9] = make(map[string]int) + n := len(nodes[i].Edges.NarrativeViewers) + if nodes[i].Edges.totalCount[12] == nil { + nodes[i].Edges.totalCount[12] = make(map[string]int) } - nodes[i].Edges.totalCount[9][alias] = n + nodes[i].Edges.totalCount[12][alias] = n } return nil }) @@ -30286,7 +31660,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlobjectiveImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { return err } } @@ -30294,27 +31668,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlObjectiveViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.NarrativeViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlObjectiveViewers(alias, func(wq *ControlObjectiveQuery) { + _q.WithNamedNarrativeViewers(alias, func(wq *NarrativeQuery) { *wq = *query }) - case "narrativeEditors": + case "controlImplementationEditors": var ( alias = field.Alias path = append(path, alias) - query = (&NarrativeClient{config: _q.config}).Query() + query = (&ControlImplementationClient{config: _q.config}).Query() ) - args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), path...)) + args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), 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 := newNarrativePager(args.opts, args.last != nil) + pager, err := newControlImplementationPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30336,11 +31710,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.NarrativeEditorsTable) - s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.NarrativeEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.NarrativeEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.NarrativeEditorsPrimaryKey[1])) + joinT := sql.Table(group.ControlImplementationEditorsTable) + s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlImplementationEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlImplementationEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlImplementationEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30351,21 +31725,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[10] == nil { - nodes[i].Edges.totalCount[10] = make(map[string]int) + if nodes[i].Edges.totalCount[13] == nil { + nodes[i].Edges.totalCount[13] = make(map[string]int) } - nodes[i].Edges.totalCount[10][alias] = n + nodes[i].Edges.totalCount[13][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.NarrativeEditors) - if nodes[i].Edges.totalCount[10] == nil { - nodes[i].Edges.totalCount[10] = make(map[string]int) + n := len(nodes[i].Edges.ControlImplementationEditors) + if nodes[i].Edges.totalCount[13] == nil { + nodes[i].Edges.totalCount[13] = make(map[string]int) } - nodes[i].Edges.totalCount[10][alias] = n + nodes[i].Edges.totalCount[13][alias] = n } return nil }) @@ -30379,7 +31753,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { return err } } @@ -30387,27 +31761,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.NarrativeEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlImplementationEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNarrativeEditors(alias, func(wq *NarrativeQuery) { + _q.WithNamedControlImplementationEditors(alias, func(wq *ControlImplementationQuery) { *wq = *query }) - case "narrativeBlockedGroups": + case "controlImplementationBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&NarrativeClient{config: _q.config}).Query() + query = (&ControlImplementationClient{config: _q.config}).Query() ) - args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), path...)) + args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), 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 := newNarrativePager(args.opts, args.last != nil) + pager, err := newControlImplementationPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30429,11 +31803,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.NarrativeBlockedGroupsTable) - s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.NarrativeBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.ControlImplementationBlockedGroupsTable) + s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30444,21 +31818,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[11] == nil { - nodes[i].Edges.totalCount[11] = make(map[string]int) + if nodes[i].Edges.totalCount[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) } - nodes[i].Edges.totalCount[11][alias] = n + nodes[i].Edges.totalCount[14][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.NarrativeBlockedGroups) - if nodes[i].Edges.totalCount[11] == nil { - nodes[i].Edges.totalCount[11] = make(map[string]int) + n := len(nodes[i].Edges.ControlImplementationBlockedGroups) + if nodes[i].Edges.totalCount[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) } - nodes[i].Edges.totalCount[11][alias] = n + nodes[i].Edges.totalCount[14][alias] = n } return nil }) @@ -30472,7 +31846,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { return err } } @@ -30480,27 +31854,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.NarrativeBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlImplementationBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNarrativeBlockedGroups(alias, func(wq *NarrativeQuery) { + _q.WithNamedControlImplementationBlockedGroups(alias, func(wq *ControlImplementationQuery) { *wq = *query }) - case "narrativeViewers": + case "controlImplementationViewers": var ( alias = field.Alias path = append(path, alias) - query = (&NarrativeClient{config: _q.config}).Query() + query = (&ControlImplementationClient{config: _q.config}).Query() ) - args := newNarrativePaginateArgs(fieldArgs(ctx, new(NarrativeWhereInput), path...)) + args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), 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 := newNarrativePager(args.opts, args.last != nil) + pager, err := newControlImplementationPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30522,11 +31896,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.NarrativeViewersTable) - s.Join(joinT).On(s.C(narrative.FieldID), joinT.C(group.NarrativeViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.NarrativeViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.NarrativeViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.NarrativeViewersPrimaryKey[1])) + joinT := sql.Table(group.ControlImplementationViewersTable) + s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ControlImplementationViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ControlImplementationViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ControlImplementationViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30537,21 +31911,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[12] == nil { - nodes[i].Edges.totalCount[12] = make(map[string]int) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[12][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.NarrativeViewers) - if nodes[i].Edges.totalCount[12] == nil { - nodes[i].Edges.totalCount[12] = make(map[string]int) + n := len(nodes[i].Edges.ControlImplementationViewers) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[12][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) @@ -30565,7 +31939,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, narrativeImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { return err } } @@ -30573,27 +31947,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.NarrativeViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ControlImplementationViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNarrativeViewers(alias, func(wq *NarrativeQuery) { + _q.WithNamedControlImplementationViewers(alias, func(wq *ControlImplementationQuery) { *wq = *query }) - case "controlImplementationEditors": + case "actionPlanEditors": var ( alias = field.Alias path = append(path, alias) - query = (&ControlImplementationClient{config: _q.config}).Query() + query = (&ActionPlanClient{config: _q.config}).Query() ) - args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), path...)) + args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), 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 := newControlImplementationPager(args.opts, args.last != nil) + pager, err := newActionPlanPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30615,11 +31989,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlImplementationEditorsTable) - s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlImplementationEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlImplementationEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlImplementationEditorsPrimaryKey[1])) + joinT := sql.Table(group.ActionPlanEditorsTable) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ActionPlanEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ActionPlanEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ActionPlanEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30630,21 +32004,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[13] == nil { - nodes[i].Edges.totalCount[13] = make(map[string]int) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[13][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlImplementationEditors) - if nodes[i].Edges.totalCount[13] == nil { - nodes[i].Edges.totalCount[13] = make(map[string]int) + n := len(nodes[i].Edges.ActionPlanEditors) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[13][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) @@ -30658,7 +32032,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { return err } } @@ -30666,27 +32040,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlImplementationEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ActionPlanEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlImplementationEditors(alias, func(wq *ControlImplementationQuery) { + _q.WithNamedActionPlanEditors(alias, func(wq *ActionPlanQuery) { *wq = *query }) - case "controlImplementationBlockedGroups": + case "actionPlanBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&ControlImplementationClient{config: _q.config}).Query() + query = (&ActionPlanClient{config: _q.config}).Query() ) - args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), path...)) + args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), 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 := newControlImplementationPager(args.opts, args.last != nil) + pager, err := newActionPlanPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30708,11 +32082,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlImplementationBlockedGroupsTable) - s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlImplementationBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.ActionPlanBlockedGroupsTable) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30723,21 +32097,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlImplementationBlockedGroups) - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + n := len(nodes[i].Edges.ActionPlanBlockedGroups) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) @@ -30751,7 +32125,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { return err } } @@ -30759,27 +32133,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlImplementationBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ActionPlanBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlImplementationBlockedGroups(alias, func(wq *ControlImplementationQuery) { + _q.WithNamedActionPlanBlockedGroups(alias, func(wq *ActionPlanQuery) { *wq = *query }) - case "controlImplementationViewers": + case "actionPlanViewers": var ( alias = field.Alias path = append(path, alias) - query = (&ControlImplementationClient{config: _q.config}).Query() + query = (&ActionPlanClient{config: _q.config}).Query() ) - args := newControlImplementationPaginateArgs(fieldArgs(ctx, new(ControlImplementationWhereInput), path...)) + args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), 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 := newControlImplementationPager(args.opts, args.last != nil) + pager, err := newActionPlanPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30801,11 +32175,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ControlImplementationViewersTable) - s.Join(joinT).On(s.C(controlimplementation.FieldID), joinT.C(group.ControlImplementationViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ControlImplementationViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ControlImplementationViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ControlImplementationViewersPrimaryKey[1])) + joinT := sql.Table(group.ActionPlanViewersTable) + s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.ActionPlanViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.ActionPlanViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.ActionPlanViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30816,21 +32190,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ControlImplementationViewers) - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + n := len(nodes[i].Edges.ActionPlanViewers) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) @@ -30844,7 +32218,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, controlimplementationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { return err } } @@ -30852,27 +32226,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ControlImplementationViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.ActionPlanViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlImplementationViewers(alias, func(wq *ControlImplementationQuery) { + _q.WithNamedActionPlanViewers(alias, func(wq *ActionPlanQuery) { *wq = *query }) - case "actionPlanEditors": + case "platformEditors": var ( alias = field.Alias path = append(path, alias) - query = (&ActionPlanClient{config: _q.config}).Query() + query = (&PlatformClient{config: _q.config}).Query() ) - args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), path...)) + args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), 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 := newActionPlanPager(args.opts, args.last != nil) + pager, err := newPlatformPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30894,11 +32268,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ActionPlanEditorsTable) - s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ActionPlanEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ActionPlanEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ActionPlanEditorsPrimaryKey[1])) + joinT := sql.Table(group.PlatformEditorsTable) + s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.PlatformEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.PlatformEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.PlatformEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -30909,21 +32283,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ActionPlanEditors) - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + n := len(nodes[i].Edges.PlatformEditors) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) @@ -30937,7 +32311,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { return err } } @@ -30945,27 +32319,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ActionPlanEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.PlatformEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedActionPlanEditors(alias, func(wq *ActionPlanQuery) { + _q.WithNamedPlatformEditors(alias, func(wq *PlatformQuery) { *wq = *query }) - case "actionPlanBlockedGroups": + case "platformBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&ActionPlanClient{config: _q.config}).Query() + query = (&PlatformClient{config: _q.config}).Query() ) - args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), path...)) + args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), 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 := newActionPlanPager(args.opts, args.last != nil) + pager, err := newPlatformPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -30987,11 +32361,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ActionPlanBlockedGroupsTable) - s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ActionPlanBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.PlatformBlockedGroupsTable) + s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31002,21 +32376,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ActionPlanBlockedGroups) - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + n := len(nodes[i].Edges.PlatformBlockedGroups) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -31030,7 +32404,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { return err } } @@ -31038,27 +32412,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ActionPlanBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.PlatformBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedActionPlanBlockedGroups(alias, func(wq *ActionPlanQuery) { + _q.WithNamedPlatformBlockedGroups(alias, func(wq *PlatformQuery) { *wq = *query }) - case "actionPlanViewers": + case "platformViewers": var ( alias = field.Alias path = append(path, alias) - query = (&ActionPlanClient{config: _q.config}).Query() + query = (&PlatformClient{config: _q.config}).Query() ) - args := newActionPlanPaginateArgs(fieldArgs(ctx, new(ActionPlanWhereInput), path...)) + args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), 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 := newActionPlanPager(args.opts, args.last != nil) + pager, err := newPlatformPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31080,11 +32454,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.ActionPlanViewersTable) - s.Join(joinT).On(s.C(actionplan.FieldID), joinT.C(group.ActionPlanViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.ActionPlanViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.ActionPlanViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.ActionPlanViewersPrimaryKey[1])) + joinT := sql.Table(group.PlatformViewersTable) + s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.PlatformViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.PlatformViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.PlatformViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31095,21 +32469,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.ActionPlanViewers) - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + n := len(nodes[i].Edges.PlatformViewers) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) @@ -31123,7 +32497,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, actionplanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { return err } } @@ -31131,27 +32505,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.ActionPlanViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.PlatformViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedActionPlanViewers(alias, func(wq *ActionPlanQuery) { + _q.WithNamedPlatformViewers(alias, func(wq *PlatformQuery) { *wq = *query }) - case "platformEditors": + case "campaignEditors": var ( alias = field.Alias path = append(path, alias) - query = (&PlatformClient{config: _q.config}).Query() + query = (&CampaignClient{config: _q.config}).Query() ) - args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), path...)) + args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), 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 := newPlatformPager(args.opts, args.last != nil) + pager, err := newCampaignPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31173,11 +32547,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.PlatformEditorsTable) - s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.PlatformEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.PlatformEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.PlatformEditorsPrimaryKey[1])) + joinT := sql.Table(group.CampaignEditorsTable) + s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.CampaignEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.CampaignEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.CampaignEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31188,21 +32562,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.PlatformEditors) - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + n := len(nodes[i].Edges.CampaignEditors) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) @@ -31216,7 +32590,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { return err } } @@ -31224,27 +32598,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.PlatformEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.CampaignEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedPlatformEditors(alias, func(wq *PlatformQuery) { + _q.WithNamedCampaignEditors(alias, func(wq *CampaignQuery) { *wq = *query }) - case "platformBlockedGroups": + case "campaignBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&PlatformClient{config: _q.config}).Query() + query = (&CampaignClient{config: _q.config}).Query() ) - args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), path...)) + args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), 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 := newPlatformPager(args.opts, args.last != nil) + pager, err := newCampaignPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31266,11 +32640,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.PlatformBlockedGroupsTable) - s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.PlatformBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.CampaignBlockedGroupsTable) + s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31281,21 +32655,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[23][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.PlatformBlockedGroups) - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + n := len(nodes[i].Edges.CampaignBlockedGroups) + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[23][alias] = n } return nil }) @@ -31309,7 +32683,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { return err } } @@ -31317,27 +32691,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.PlatformBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.CampaignBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedPlatformBlockedGroups(alias, func(wq *PlatformQuery) { + _q.WithNamedCampaignBlockedGroups(alias, func(wq *CampaignQuery) { *wq = *query }) - case "platformViewers": + case "campaignViewers": var ( alias = field.Alias path = append(path, alias) - query = (&PlatformClient{config: _q.config}).Query() + query = (&CampaignClient{config: _q.config}).Query() ) - args := newPlatformPaginateArgs(fieldArgs(ctx, new(PlatformWhereInput), path...)) + args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), 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 := newPlatformPager(args.opts, args.last != nil) + pager, err := newCampaignPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31359,11 +32733,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.PlatformViewersTable) - s.Join(joinT).On(s.C(platform.FieldID), joinT.C(group.PlatformViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.PlatformViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.PlatformViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.PlatformViewersPrimaryKey[1])) + joinT := sql.Table(group.CampaignViewersTable) + s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.CampaignViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.CampaignViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.CampaignViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31374,21 +32748,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + if nodes[i].Edges.totalCount[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[24][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.PlatformViewers) - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + n := len(nodes[i].Edges.CampaignViewers) + if nodes[i].Edges.totalCount[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[24][alias] = n } return nil }) @@ -31402,7 +32776,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, platformImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { return err } } @@ -31410,27 +32784,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.PlatformViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.CampaignViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedPlatformViewers(alias, func(wq *PlatformQuery) { + _q.WithNamedCampaignViewers(alias, func(wq *CampaignQuery) { *wq = *query }) - case "campaignEditors": + case "audienceEditors": var ( alias = field.Alias path = append(path, alias) - query = (&CampaignClient{config: _q.config}).Query() + query = (&AudienceClient{config: _q.config}).Query() ) - args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), path...)) + args := newAudiencePaginateArgs(fieldArgs(ctx, new(AudienceWhereInput), 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 := newCampaignPager(args.opts, args.last != nil) + pager, err := newAudiencePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31452,11 +32826,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.CampaignEditorsTable) - s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignEditorsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.CampaignEditorsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.CampaignEditorsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.CampaignEditorsPrimaryKey[1])) + joinT := sql.Table(group.AudienceEditorsTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceEditorsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.AudienceEditorsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.AudienceEditorsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31467,21 +32841,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[22] == nil { - nodes[i].Edges.totalCount[22] = make(map[string]int) + if nodes[i].Edges.totalCount[25] == nil { + nodes[i].Edges.totalCount[25] = make(map[string]int) } - nodes[i].Edges.totalCount[22][alias] = n + nodes[i].Edges.totalCount[25][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.CampaignEditors) - if nodes[i].Edges.totalCount[22] == nil { - nodes[i].Edges.totalCount[22] = make(map[string]int) + n := len(nodes[i].Edges.AudienceEditors) + if nodes[i].Edges.totalCount[25] == nil { + nodes[i].Edges.totalCount[25] = make(map[string]int) } - nodes[i].Edges.totalCount[22][alias] = n + nodes[i].Edges.totalCount[25][alias] = n } return nil }) @@ -31495,7 +32869,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { return err } } @@ -31503,27 +32877,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.CampaignEditorsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.AudienceEditorsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignEditors(alias, func(wq *CampaignQuery) { + _q.WithNamedAudienceEditors(alias, func(wq *AudienceQuery) { *wq = *query }) - case "campaignBlockedGroups": + case "audienceBlockedGroups": var ( alias = field.Alias path = append(path, alias) - query = (&CampaignClient{config: _q.config}).Query() + query = (&AudienceClient{config: _q.config}).Query() ) - args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), path...)) + args := newAudiencePaginateArgs(fieldArgs(ctx, new(AudienceWhereInput), 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 := newCampaignPager(args.opts, args.last != nil) + pager, err := newAudiencePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31545,11 +32919,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.CampaignBlockedGroupsTable) - s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignBlockedGroupsPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.CampaignBlockedGroupsPrimaryKey[1])) + joinT := sql.Table(group.AudienceBlockedGroupsTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceBlockedGroupsPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.AudienceBlockedGroupsPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.AudienceBlockedGroupsPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31560,21 +32934,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[26][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.CampaignBlockedGroups) - if nodes[i].Edges.totalCount[23] == nil { - nodes[i].Edges.totalCount[23] = make(map[string]int) + n := len(nodes[i].Edges.AudienceBlockedGroups) + if nodes[i].Edges.totalCount[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[26][alias] = n } return nil }) @@ -31588,7 +32962,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { return err } } @@ -31596,27 +32970,27 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.CampaignBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.AudienceBlockedGroupsPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignBlockedGroups(alias, func(wq *CampaignQuery) { + _q.WithNamedAudienceBlockedGroups(alias, func(wq *AudienceQuery) { *wq = *query }) - case "campaignViewers": + case "audienceViewers": var ( alias = field.Alias path = append(path, alias) - query = (&CampaignClient{config: _q.config}).Query() + query = (&AudienceClient{config: _q.config}).Query() ) - args := newCampaignPaginateArgs(fieldArgs(ctx, new(CampaignWhereInput), path...)) + args := newAudiencePaginateArgs(fieldArgs(ctx, new(AudienceWhereInput), 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 := newCampaignPager(args.opts, args.last != nil) + pager, err := newAudiencePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -31638,11 +33012,11 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - joinT := sql.Table(group.CampaignViewersTable) - s.Join(joinT).On(s.C(campaign.FieldID), joinT.C(group.CampaignViewersPrimaryKey[0])) - s.Where(sql.InValues(joinT.C(group.CampaignViewersPrimaryKey[1]), ids...)) - s.Select(joinT.C(group.CampaignViewersPrimaryKey[1]), sql.Count("*")) - s.GroupBy(joinT.C(group.CampaignViewersPrimaryKey[1])) + joinT := sql.Table(group.AudienceViewersTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceViewersPrimaryKey[1]), ids...)) + s.Select(joinT.C(group.AudienceViewersPrimaryKey[1]), sql.Count("*")) + s.GroupBy(joinT.C(group.AudienceViewersPrimaryKey[1])) }) if err := query.Select().Scan(ctx, &v); err != nil { return err @@ -31653,21 +33027,21 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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) + if nodes[i].Edges.totalCount[27] == nil { + nodes[i].Edges.totalCount[27] = make(map[string]int) } - nodes[i].Edges.totalCount[24][alias] = n + nodes[i].Edges.totalCount[27][alias] = n } return nil }) } else { _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { - n := len(nodes[i].Edges.CampaignViewers) - if nodes[i].Edges.totalCount[24] == nil { - nodes[i].Edges.totalCount[24] = make(map[string]int) + n := len(nodes[i].Edges.AudienceViewers) + if nodes[i].Edges.totalCount[27] == nil { + nodes[i].Edges.totalCount[27] = make(map[string]int) } - nodes[i].Edges.totalCount[24][alias] = n + nodes[i].Edges.totalCount[27][alias] = n } return nil }) @@ -31681,7 +33055,7 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } path = append(path, edgesField, nodeField) if field := collectedField(ctx, path...); field != nil { - if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, campaignImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { return err } } @@ -31689,13 +33063,13 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(group.CampaignViewersPrimaryKey[1], limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(group.AudienceViewersPrimaryKey[1], limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignViewers(alias, func(wq *CampaignQuery) { + _q.WithNamedAudienceViewers(alias, func(wq *AudienceQuery) { *wq = *query }) @@ -31746,10 +33120,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[28] == nil { + nodes[i].Edges.totalCount[28] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[28][alias] = n } return nil }) @@ -31757,10 +33131,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ProcedureEditors) - if nodes[i].Edges.totalCount[25] == nil { - nodes[i].Edges.totalCount[25] = make(map[string]int) + if nodes[i].Edges.totalCount[28] == nil { + nodes[i].Edges.totalCount[28] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[28][alias] = n } return nil }) @@ -31839,10 +33213,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[29] == nil { + nodes[i].Edges.totalCount[29] = make(map[string]int) } - nodes[i].Edges.totalCount[26][alias] = n + nodes[i].Edges.totalCount[29][alias] = n } return nil }) @@ -31850,10 +33224,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ProcedureBlockedGroups) - if nodes[i].Edges.totalCount[26] == nil { - nodes[i].Edges.totalCount[26] = make(map[string]int) + if nodes[i].Edges.totalCount[29] == nil { + nodes[i].Edges.totalCount[29] = make(map[string]int) } - nodes[i].Edges.totalCount[26][alias] = n + nodes[i].Edges.totalCount[29][alias] = n } return nil }) @@ -31932,10 +33306,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[30] == nil { + nodes[i].Edges.totalCount[30] = make(map[string]int) } - nodes[i].Edges.totalCount[27][alias] = n + nodes[i].Edges.totalCount[30][alias] = n } return nil }) @@ -31943,10 +33317,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.InternalPolicyEditors) - if nodes[i].Edges.totalCount[27] == nil { - nodes[i].Edges.totalCount[27] = make(map[string]int) + if nodes[i].Edges.totalCount[30] == nil { + nodes[i].Edges.totalCount[30] = make(map[string]int) } - nodes[i].Edges.totalCount[27][alias] = n + nodes[i].Edges.totalCount[30][alias] = n } return nil }) @@ -32025,10 +33399,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[31] == nil { + nodes[i].Edges.totalCount[31] = make(map[string]int) } - nodes[i].Edges.totalCount[28][alias] = n + nodes[i].Edges.totalCount[31][alias] = n } return nil }) @@ -32036,10 +33410,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.InternalPolicyBlockedGroups) - if nodes[i].Edges.totalCount[28] == nil { - nodes[i].Edges.totalCount[28] = make(map[string]int) + if nodes[i].Edges.totalCount[31] == nil { + nodes[i].Edges.totalCount[31] = make(map[string]int) } - nodes[i].Edges.totalCount[28][alias] = n + nodes[i].Edges.totalCount[31][alias] = n } return nil }) @@ -32118,10 +33492,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[32] == nil { + nodes[i].Edges.totalCount[32] = make(map[string]int) } - nodes[i].Edges.totalCount[29][alias] = n + nodes[i].Edges.totalCount[32][alias] = n } return nil }) @@ -32129,10 +33503,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ControlEditors) - if nodes[i].Edges.totalCount[29] == nil { - nodes[i].Edges.totalCount[29] = make(map[string]int) + if nodes[i].Edges.totalCount[32] == nil { + nodes[i].Edges.totalCount[32] = make(map[string]int) } - nodes[i].Edges.totalCount[29][alias] = n + nodes[i].Edges.totalCount[32][alias] = n } return nil }) @@ -32211,10 +33585,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[33] == nil { + nodes[i].Edges.totalCount[33] = make(map[string]int) } - nodes[i].Edges.totalCount[30][alias] = n + nodes[i].Edges.totalCount[33][alias] = n } return nil }) @@ -32222,10 +33596,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ControlBlockedGroups) - if nodes[i].Edges.totalCount[30] == nil { - nodes[i].Edges.totalCount[30] = make(map[string]int) + if nodes[i].Edges.totalCount[33] == nil { + nodes[i].Edges.totalCount[33] = make(map[string]int) } - nodes[i].Edges.totalCount[30][alias] = n + nodes[i].Edges.totalCount[33][alias] = n } return nil }) @@ -32304,10 +33678,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[34] == nil { + nodes[i].Edges.totalCount[34] = make(map[string]int) } - nodes[i].Edges.totalCount[31][alias] = n + nodes[i].Edges.totalCount[34][alias] = n } return nil }) @@ -32315,10 +33689,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.MappedControlEditors) - if nodes[i].Edges.totalCount[31] == nil { - nodes[i].Edges.totalCount[31] = make(map[string]int) + if nodes[i].Edges.totalCount[34] == nil { + nodes[i].Edges.totalCount[34] = make(map[string]int) } - nodes[i].Edges.totalCount[31][alias] = n + nodes[i].Edges.totalCount[34][alias] = n } return nil }) @@ -32397,10 +33771,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[35] == nil { + nodes[i].Edges.totalCount[35] = make(map[string]int) } - nodes[i].Edges.totalCount[32][alias] = n + nodes[i].Edges.totalCount[35][alias] = n } return nil }) @@ -32408,10 +33782,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.MappedControlBlockedGroups) - if nodes[i].Edges.totalCount[32] == nil { - nodes[i].Edges.totalCount[32] = make(map[string]int) + if nodes[i].Edges.totalCount[35] == nil { + nodes[i].Edges.totalCount[35] = make(map[string]int) } - nodes[i].Edges.totalCount[32][alias] = n + nodes[i].Edges.totalCount[35][alias] = n } return nil }) @@ -32490,10 +33864,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[36] == nil { + nodes[i].Edges.totalCount[36] = make(map[string]int) } - nodes[i].Edges.totalCount[33][alias] = n + nodes[i].Edges.totalCount[36][alias] = n } return nil }) @@ -32501,10 +33875,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ScanEditors) - if nodes[i].Edges.totalCount[33] == nil { - nodes[i].Edges.totalCount[33] = make(map[string]int) + if nodes[i].Edges.totalCount[36] == nil { + nodes[i].Edges.totalCount[36] = make(map[string]int) } - nodes[i].Edges.totalCount[33][alias] = n + nodes[i].Edges.totalCount[36][alias] = n } return nil }) @@ -32583,10 +33957,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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) + if nodes[i].Edges.totalCount[37] == nil { + nodes[i].Edges.totalCount[37] = make(map[string]int) } - nodes[i].Edges.totalCount[34][alias] = n + nodes[i].Edges.totalCount[37][alias] = n } return nil }) @@ -32594,10 +33968,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ScanBlockedGroups) - if nodes[i].Edges.totalCount[34] == nil { - nodes[i].Edges.totalCount[34] = make(map[string]int) + if nodes[i].Edges.totalCount[37] == nil { + nodes[i].Edges.totalCount[37] = make(map[string]int) } - nodes[i].Edges.totalCount[34][alias] = n + nodes[i].Edges.totalCount[37][alias] = n } return nil }) @@ -32676,10 +34050,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[38] == nil { + nodes[i].Edges.totalCount[38] = make(map[string]int) } - nodes[i].Edges.totalCount[35][alias] = n + nodes[i].Edges.totalCount[38][alias] = n } return nil }) @@ -32687,10 +34061,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.EntityEditors) - if nodes[i].Edges.totalCount[35] == nil { - nodes[i].Edges.totalCount[35] = make(map[string]int) + if nodes[i].Edges.totalCount[38] == nil { + nodes[i].Edges.totalCount[38] = make(map[string]int) } - nodes[i].Edges.totalCount[35][alias] = n + nodes[i].Edges.totalCount[38][alias] = n } return nil }) @@ -32769,10 +34143,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[39] == nil { + nodes[i].Edges.totalCount[39] = make(map[string]int) } - nodes[i].Edges.totalCount[36][alias] = n + nodes[i].Edges.totalCount[39][alias] = n } return nil }) @@ -32780,10 +34154,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.EntityBlockedGroups) - if nodes[i].Edges.totalCount[36] == nil { - nodes[i].Edges.totalCount[36] = make(map[string]int) + if nodes[i].Edges.totalCount[39] == nil { + nodes[i].Edges.totalCount[39] = make(map[string]int) } - nodes[i].Edges.totalCount[36][alias] = n + nodes[i].Edges.totalCount[39][alias] = n } return nil }) @@ -32862,10 +34236,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[40] == nil { + nodes[i].Edges.totalCount[40] = make(map[string]int) } - nodes[i].Edges.totalCount[37][alias] = n + nodes[i].Edges.totalCount[40][alias] = n } return nil }) @@ -32873,10 +34247,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.FindingEditors) - if nodes[i].Edges.totalCount[37] == nil { - nodes[i].Edges.totalCount[37] = make(map[string]int) + if nodes[i].Edges.totalCount[40] == nil { + nodes[i].Edges.totalCount[40] = make(map[string]int) } - nodes[i].Edges.totalCount[37][alias] = n + nodes[i].Edges.totalCount[40][alias] = n } return nil }) @@ -32955,10 +34329,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[41] == nil { + nodes[i].Edges.totalCount[41] = make(map[string]int) } - nodes[i].Edges.totalCount[38][alias] = n + nodes[i].Edges.totalCount[41][alias] = n } return nil }) @@ -32966,10 +34340,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.FindingBlockedGroups) - if nodes[i].Edges.totalCount[38] == nil { - nodes[i].Edges.totalCount[38] = make(map[string]int) + if nodes[i].Edges.totalCount[41] == nil { + nodes[i].Edges.totalCount[41] = make(map[string]int) } - nodes[i].Edges.totalCount[38][alias] = n + nodes[i].Edges.totalCount[41][alias] = n } return nil }) @@ -33048,10 +34422,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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) + if nodes[i].Edges.totalCount[42] == nil { + nodes[i].Edges.totalCount[42] = make(map[string]int) } - nodes[i].Edges.totalCount[39][alias] = n + nodes[i].Edges.totalCount[42][alias] = n } return nil }) @@ -33059,10 +34433,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ReviewEditors) - if nodes[i].Edges.totalCount[39] == nil { - nodes[i].Edges.totalCount[39] = make(map[string]int) + if nodes[i].Edges.totalCount[42] == nil { + nodes[i].Edges.totalCount[42] = make(map[string]int) } - nodes[i].Edges.totalCount[39][alias] = n + nodes[i].Edges.totalCount[42][alias] = n } return nil }) @@ -33141,10 +34515,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[43] == nil { + nodes[i].Edges.totalCount[43] = make(map[string]int) } - nodes[i].Edges.totalCount[40][alias] = n + nodes[i].Edges.totalCount[43][alias] = n } return nil }) @@ -33152,10 +34526,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.ReviewBlockedGroups) - if nodes[i].Edges.totalCount[40] == nil { - nodes[i].Edges.totalCount[40] = make(map[string]int) + if nodes[i].Edges.totalCount[43] == nil { + nodes[i].Edges.totalCount[43] = make(map[string]int) } - nodes[i].Edges.totalCount[40][alias] = n + nodes[i].Edges.totalCount[43][alias] = n } return nil }) @@ -33234,10 +34608,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[44] == nil { + nodes[i].Edges.totalCount[44] = make(map[string]int) } - nodes[i].Edges.totalCount[41][alias] = n + nodes[i].Edges.totalCount[44][alias] = n } return nil }) @@ -33245,10 +34619,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.RemediationEditors) - if nodes[i].Edges.totalCount[41] == nil { - nodes[i].Edges.totalCount[41] = make(map[string]int) + if nodes[i].Edges.totalCount[44] == nil { + nodes[i].Edges.totalCount[44] = make(map[string]int) } - nodes[i].Edges.totalCount[41][alias] = n + nodes[i].Edges.totalCount[44][alias] = n } return nil }) @@ -33327,10 +34701,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[45] == nil { + nodes[i].Edges.totalCount[45] = make(map[string]int) } - nodes[i].Edges.totalCount[42][alias] = n + nodes[i].Edges.totalCount[45][alias] = n } return nil }) @@ -33338,10 +34712,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.RemediationBlockedGroups) - if nodes[i].Edges.totalCount[42] == nil { - nodes[i].Edges.totalCount[42] = make(map[string]int) + if nodes[i].Edges.totalCount[45] == nil { + nodes[i].Edges.totalCount[45] = make(map[string]int) } - nodes[i].Edges.totalCount[42][alias] = n + nodes[i].Edges.totalCount[45][alias] = n } return nil }) @@ -33431,10 +34805,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[47] == nil { + nodes[i].Edges.totalCount[47] = make(map[string]int) } - nodes[i].Edges.totalCount[44][alias] = n + nodes[i].Edges.totalCount[47][alias] = n } return nil }) @@ -33442,10 +34816,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Users) - if nodes[i].Edges.totalCount[44] == nil { - nodes[i].Edges.totalCount[44] = make(map[string]int) + if nodes[i].Edges.totalCount[47] == nil { + nodes[i].Edges.totalCount[47] = make(map[string]int) } - nodes[i].Edges.totalCount[44][alias] = n + nodes[i].Edges.totalCount[47][alias] = n } return nil }) @@ -33524,10 +34898,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[48] == nil { + nodes[i].Edges.totalCount[48] = make(map[string]int) } - nodes[i].Edges.totalCount[45][alias] = n + nodes[i].Edges.totalCount[48][alias] = n } return nil }) @@ -33535,10 +34909,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Events) - if nodes[i].Edges.totalCount[45] == nil { - nodes[i].Edges.totalCount[45] = make(map[string]int) + if nodes[i].Edges.totalCount[48] == nil { + nodes[i].Edges.totalCount[48] = make(map[string]int) } - nodes[i].Edges.totalCount[45][alias] = n + nodes[i].Edges.totalCount[48][alias] = n } return nil }) @@ -33613,10 +34987,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[49] == nil { + nodes[i].Edges.totalCount[49] = make(map[string]int) } - nodes[i].Edges.totalCount[46][alias] = n + nodes[i].Edges.totalCount[49][alias] = n } return nil }) @@ -33624,10 +34998,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Integrations) - if nodes[i].Edges.totalCount[46] == nil { - nodes[i].Edges.totalCount[46] = make(map[string]int) + if nodes[i].Edges.totalCount[49] == nil { + nodes[i].Edges.totalCount[49] = make(map[string]int) } - nodes[i].Edges.totalCount[46][alias] = n + nodes[i].Edges.totalCount[49][alias] = n } return nil }) @@ -33721,10 +35095,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[51] == nil { + nodes[i].Edges.totalCount[51] = make(map[string]int) } - nodes[i].Edges.totalCount[48][alias] = n + nodes[i].Edges.totalCount[51][alias] = n } return nil }) @@ -33732,10 +35106,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Files) - if nodes[i].Edges.totalCount[48] == nil { - nodes[i].Edges.totalCount[48] = make(map[string]int) + if nodes[i].Edges.totalCount[51] == nil { + nodes[i].Edges.totalCount[51] = make(map[string]int) } - nodes[i].Edges.totalCount[48][alias] = n + nodes[i].Edges.totalCount[51][alias] = n } return nil }) @@ -33814,10 +35188,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[52] == nil { + nodes[i].Edges.totalCount[52] = make(map[string]int) } - nodes[i].Edges.totalCount[49][alias] = n + nodes[i].Edges.totalCount[52][alias] = n } return nil }) @@ -33825,10 +35199,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Tasks) - if nodes[i].Edges.totalCount[49] == nil { - nodes[i].Edges.totalCount[49] = make(map[string]int) + if nodes[i].Edges.totalCount[52] == nil { + nodes[i].Edges.totalCount[52] = make(map[string]int) } - nodes[i].Edges.totalCount[49][alias] = n + nodes[i].Edges.totalCount[52][alias] = n } return nil }) @@ -33907,10 +35281,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[53] == nil { + nodes[i].Edges.totalCount[53] = make(map[string]int) } - nodes[i].Edges.totalCount[50][alias] = n + nodes[i].Edges.totalCount[53][alias] = n } return nil }) @@ -33918,10 +35292,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Campaigns) - if nodes[i].Edges.totalCount[50] == nil { - nodes[i].Edges.totalCount[50] = make(map[string]int) + if nodes[i].Edges.totalCount[53] == nil { + nodes[i].Edges.totalCount[53] = make(map[string]int) } - nodes[i].Edges.totalCount[50][alias] = n + nodes[i].Edges.totalCount[53][alias] = n } return nil }) @@ -33996,10 +35370,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[54] == nil { + nodes[i].Edges.totalCount[54] = make(map[string]int) } - nodes[i].Edges.totalCount[51][alias] = n + nodes[i].Edges.totalCount[54][alias] = n } return nil }) @@ -34007,10 +35381,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.CampaignTargets) - if nodes[i].Edges.totalCount[51] == nil { - nodes[i].Edges.totalCount[51] = make(map[string]int) + if nodes[i].Edges.totalCount[54] == nil { + nodes[i].Edges.totalCount[54] = make(map[string]int) } - nodes[i].Edges.totalCount[51][alias] = n + nodes[i].Edges.totalCount[54][alias] = n } return nil }) @@ -34042,6 +35416,95 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra *wq = *query }) + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*Group) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"group_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(group.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(group.AudienceMembersColumn).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 []*Group) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + 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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(group.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) + case "members": var ( alias = field.Alias @@ -34085,10 +35548,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra } 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[56] == nil { + nodes[i].Edges.totalCount[56] = make(map[string]int) } - nodes[i].Edges.totalCount[52][alias] = n + nodes[i].Edges.totalCount[56][alias] = n } return nil }) @@ -34096,10 +35559,10 @@ func (_q *GroupQuery) collectField(ctx context.Context, oneNode bool, opCtx *gra _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Group) error { for i := range nodes { n := len(nodes[i].Edges.Members) - if nodes[i].Edges.totalCount[52] == nil { - nodes[i].Edges.totalCount[52] = make(map[string]int) + if nodes[i].Edges.totalCount[56] == nil { + nodes[i].Edges.totalCount[56] = make(map[string]int) } - nodes[i].Edges.totalCount[52][alias] = n + nodes[i].Edges.totalCount[56][alias] = n } return nil }) @@ -36487,6 +37950,95 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o *wq = *query }) + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*IdentityHolder) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"identity_holder_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(identityholder.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(identityholder.AudienceMembersColumn).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[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) + } + nodes[i].Edges.totalCount[19][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) + } + nodes[i].Edges.totalCount[19][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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(identityholder.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) + case "tasks": var ( alias = field.Alias @@ -36534,10 +38086,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -36545,10 +38097,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.Tasks) - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -36627,10 +38179,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) @@ -36638,10 +38190,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.Files) - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) @@ -36720,10 +38272,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) @@ -36731,10 +38283,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.Findings) - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) @@ -36809,10 +38361,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[22] == nil { - nodes[i].Edges.totalCount[22] = make(map[string]int) + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) } - nodes[i].Edges.totalCount[22][alias] = n + nodes[i].Edges.totalCount[23][alias] = n } return nil }) @@ -36820,10 +38372,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.WorkflowObjectRefs) - if nodes[i].Edges.totalCount[22] == nil { - nodes[i].Edges.totalCount[22] = make(map[string]int) + if nodes[i].Edges.totalCount[23] == nil { + nodes[i].Edges.totalCount[23] = make(map[string]int) } - nodes[i].Edges.totalCount[22][alias] = n + nodes[i].Edges.totalCount[23][alias] = n } return nil }) @@ -36898,10 +38450,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } 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[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[24][alias] = n } return nil }) @@ -36909,10 +38461,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.AccessPlatforms) - if nodes[i].Edges.totalCount[23] == nil { - nodes[i].Edges.totalCount[23] = make(map[string]int) + if nodes[i].Edges.totalCount[24] == nil { + nodes[i].Edges.totalCount[24] = make(map[string]int) } - nodes[i].Edges.totalCount[23][alias] = n + nodes[i].Edges.totalCount[24][alias] = n } return nil }) @@ -37006,10 +38558,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o } 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[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[26][alias] = n } return nil }) @@ -37017,10 +38569,10 @@ func (_q *IdentityHolderQuery) collectField(ctx context.Context, oneNode bool, o _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*IdentityHolder) error { for i := range nodes { n := len(nodes[i].Edges.InternalPolicies) - if nodes[i].Edges.totalCount[25] == nil { - nodes[i].Edges.totalCount[25] = make(map[string]int) + if nodes[i].Edges.totalCount[26] == nil { + nodes[i].Edges.totalCount[26] = make(map[string]int) } - nodes[i].Edges.totalCount[25][alias] = n + nodes[i].Edges.totalCount[26][alias] = n } return nil }) @@ -46087,7 +47639,7 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC *wq = *query }) - case "campaignCreators": + case "audienceCreators": var ( alias = field.Alias path = append(path, alias) @@ -46115,13 +47667,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_campaign_creators"` + NodeID string `sql:"organization_audience_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CampaignCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AudienceCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CampaignCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AudienceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46140,7 +47692,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.CampaignCreators) + n := len(nodes[i].Edges.AudienceCreators) if nodes[i].Edges.totalCount[4] == nil { nodes[i].Edges.totalCount[4] = make(map[string]int) } @@ -46166,17 +47718,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CampaignCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AudienceCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignCreators(alias, func(wq *GroupQuery) { + _q.WithNamedAudienceCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "campaignTargetCreators": + case "audienceMemberCreators": var ( alias = field.Alias path = append(path, alias) @@ -46204,13 +47756,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_campaign_target_creators"` + NodeID string `sql:"organization_audience_member_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CampaignTargetCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AudienceMemberCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CampaignTargetCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AudienceMemberCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46229,7 +47781,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.CampaignTargetCreators) + n := len(nodes[i].Edges.AudienceMemberCreators) if nodes[i].Edges.totalCount[5] == nil { nodes[i].Edges.totalCount[5] = make(map[string]int) } @@ -46255,17 +47807,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CampaignTargetCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AudienceMemberCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignTargetCreators(alias, func(wq *GroupQuery) { + _q.WithNamedAudienceMemberCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "checkResultCreators": + case "campaignCreators": var ( alias = field.Alias path = append(path, alias) @@ -46293,13 +47845,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_check_result_creators"` + NodeID string `sql:"organization_campaign_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CheckResultCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CampaignCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CheckResultCreatorsColumn).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)) @@ -46318,7 +47870,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.CheckResultCreators) + n := len(nodes[i].Edges.CampaignCreators) if nodes[i].Edges.totalCount[6] == nil { nodes[i].Edges.totalCount[6] = make(map[string]int) } @@ -46344,17 +47896,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CheckResultCreatorsColumn, 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.WithNamedCheckResultCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCampaignCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "contactCreators": + case "campaignTargetCreators": var ( alias = field.Alias path = append(path, alias) @@ -46382,13 +47934,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_contact_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.ContactCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CampaignTargetCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ContactCreatorsColumn).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)) @@ -46407,7 +47959,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.ContactCreators) + n := len(nodes[i].Edges.CampaignTargetCreators) if nodes[i].Edges.totalCount[7] == nil { nodes[i].Edges.totalCount[7] = make(map[string]int) } @@ -46433,17 +47985,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ContactCreatorsColumn, 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.WithNamedContactCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCampaignTargetCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "controlCreators": + case "checkResultCreators": var ( alias = field.Alias path = append(path, alias) @@ -46471,13 +48023,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_check_result_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.CheckResultCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlCreatorsColumn).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)) @@ -46496,7 +48048,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.CheckResultCreators) if nodes[i].Edges.totalCount[8] == nil { nodes[i].Edges.totalCount[8] = make(map[string]int) } @@ -46522,17 +48074,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.CheckResultCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCheckResultCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "controlImplementationCreators": + case "contactCreators": var ( alias = field.Alias path = append(path, alias) @@ -46560,13 +48112,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_contact_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.ContactCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlImplementationCreatorsColumn).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)) @@ -46585,7 +48137,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.ContactCreators) if nodes[i].Edges.totalCount[9] == nil { nodes[i].Edges.totalCount[9] = make(map[string]int) } @@ -46611,17 +48163,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.ContactCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlImplementationCreators(alias, func(wq *GroupQuery) { + _q.WithNamedContactCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "controlObjectiveCreators": + case "controlCreators": var ( alias = field.Alias path = append(path, alias) @@ -46649,13 +48201,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_control_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.ControlCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ControlObjectiveCreatorsColumn).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)) @@ -46674,7 +48226,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.ControlCreators) if nodes[i].Edges.totalCount[10] == nil { nodes[i].Edges.totalCount[10] = make(map[string]int) } @@ -46700,17 +48252,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.ControlCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedControlObjectiveCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "customDomainCreators": + case "controlImplementationCreators": var ( alias = field.Alias path = append(path, alias) @@ -46738,13 +48290,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_custom_domain_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.CustomDomainCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ControlImplementationCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CustomDomainCreatorsColumn).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)) @@ -46763,7 +48315,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.CustomDomainCreators) + n := len(nodes[i].Edges.ControlImplementationCreators) if nodes[i].Edges.totalCount[11] == nil { nodes[i].Edges.totalCount[11] = make(map[string]int) } @@ -46789,17 +48341,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CustomDomainCreatorsColumn, 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.WithNamedCustomDomainCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlImplementationCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "customTypeEnumCreators": + case "controlObjectiveCreators": var ( alias = field.Alias path = append(path, alias) @@ -46827,13 +48379,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_custom_type_enum_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.CustomTypeEnumCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ControlObjectiveCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CustomTypeEnumCreatorsColumn).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)) @@ -46852,7 +48404,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.CustomTypeEnumCreators) + n := len(nodes[i].Edges.ControlObjectiveCreators) if nodes[i].Edges.totalCount[12] == nil { nodes[i].Edges.totalCount[12] = make(map[string]int) } @@ -46878,17 +48430,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CustomTypeEnumCreatorsColumn, 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.WithNamedCustomTypeEnumCreators(alias, func(wq *GroupQuery) { + _q.WithNamedControlObjectiveCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "directoryAccountCreators": + case "customDomainCreators": var ( alias = field.Alias path = append(path, alias) @@ -46916,13 +48468,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_directory_account_creators"` + NodeID string `sql:"organization_custom_domain_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectoryAccountCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CustomDomainCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DirectoryAccountCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CustomDomainCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -46941,7 +48493,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.DirectoryAccountCreators) + n := len(nodes[i].Edges.CustomDomainCreators) if nodes[i].Edges.totalCount[13] == nil { nodes[i].Edges.totalCount[13] = make(map[string]int) } @@ -46967,17 +48519,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DirectoryAccountCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CustomDomainCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDirectoryAccountCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCustomDomainCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "directoryGroupCreators": + case "customTypeEnumCreators": var ( alias = field.Alias path = append(path, alias) @@ -47005,13 +48557,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_directory_group_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.DirectoryGroupCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CustomTypeEnumCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DirectoryGroupCreatorsColumn).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)) @@ -47030,7 +48582,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.DirectoryGroupCreators) + n := len(nodes[i].Edges.CustomTypeEnumCreators) if nodes[i].Edges.totalCount[14] == nil { nodes[i].Edges.totalCount[14] = make(map[string]int) } @@ -47056,17 +48608,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DirectoryGroupCreatorsColumn, 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.WithNamedDirectoryGroupCreators(alias, func(wq *GroupQuery) { + _q.WithNamedCustomTypeEnumCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "directoryMembershipCreators": + case "directoryAccountCreators": var ( alias = field.Alias path = append(path, alias) @@ -47094,13 +48646,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_directory_membership_creators"` + NodeID string `sql:"organization_directory_account_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectoryMembershipCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DirectoryAccountCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DirectoryMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DirectoryAccountCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -47119,7 +48671,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.DirectoryMembershipCreators) + n := len(nodes[i].Edges.DirectoryAccountCreators) if nodes[i].Edges.totalCount[15] == nil { nodes[i].Edges.totalCount[15] = make(map[string]int) } @@ -47145,17 +48697,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DirectoryMembershipCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DirectoryAccountCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDirectoryMembershipCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDirectoryAccountCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "directorySyncRunCreators": + case "directoryGroupCreators": var ( alias = field.Alias path = append(path, alias) @@ -47183,13 +48735,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_directory_sync_run_creators"` + NodeID string `sql:"organization_directory_group_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DirectorySyncRunCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DirectoryGroupCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DirectorySyncRunCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DirectoryGroupCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -47208,7 +48760,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.DirectorySyncRunCreators) + n := len(nodes[i].Edges.DirectoryGroupCreators) if nodes[i].Edges.totalCount[16] == nil { nodes[i].Edges.totalCount[16] = make(map[string]int) } @@ -47234,17 +48786,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DirectorySyncRunCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DirectoryGroupCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDirectorySyncRunCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDirectoryGroupCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "discussionCreators": + case "directoryMembershipCreators": var ( alias = field.Alias path = append(path, alias) @@ -47272,13 +48824,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_discussion_creators"` + NodeID string `sql:"organization_directory_membership_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DiscussionCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DirectoryMembershipCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DiscussionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DirectoryMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -47297,7 +48849,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.DiscussionCreators) + n := len(nodes[i].Edges.DirectoryMembershipCreators) if nodes[i].Edges.totalCount[17] == nil { nodes[i].Edges.totalCount[17] = make(map[string]int) } @@ -47323,17 +48875,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DiscussionCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DirectoryMembershipCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDiscussionCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDirectoryMembershipCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "documentDataCreators": + case "directorySyncRunCreators": var ( alias = field.Alias path = append(path, alias) @@ -47361,13 +48913,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_document_data_creators"` + NodeID string `sql:"organization_directory_sync_run_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DocumentDataCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DirectorySyncRunCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.DocumentDataCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DirectorySyncRunCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -47386,7 +48938,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.DocumentDataCreators) + n := len(nodes[i].Edges.DirectorySyncRunCreators) if nodes[i].Edges.totalCount[18] == nil { nodes[i].Edges.totalCount[18] = make(map[string]int) } @@ -47412,17 +48964,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DocumentDataCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DirectorySyncRunCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDocumentDataCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDirectorySyncRunCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "emailTemplateCreators": + case "discussionCreators": var ( alias = field.Alias path = append(path, alias) @@ -47450,13 +49002,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_email_template_creators"` + NodeID string `sql:"organization_discussion_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EmailTemplateCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DiscussionCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.EmailTemplateCreatorsColumn).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)) @@ -47475,7 +49027,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.EmailTemplateCreators) + n := len(nodes[i].Edges.DiscussionCreators) if nodes[i].Edges.totalCount[19] == nil { nodes[i].Edges.totalCount[19] = make(map[string]int) } @@ -47501,17 +49053,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.EmailTemplateCreatorsColumn, 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.WithNamedEmailTemplateCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDiscussionCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "entityCreators": + case "documentDataCreators": var ( alias = field.Alias path = append(path, alias) @@ -47539,13 +49091,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_entity_creators"` + NodeID string `sql:"organization_document_data_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.EntityCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.DocumentDataCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.EntityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DocumentDataCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -47564,7 +49116,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.EntityCreators) + n := len(nodes[i].Edges.DocumentDataCreators) if nodes[i].Edges.totalCount[20] == nil { nodes[i].Edges.totalCount[20] = make(map[string]int) } @@ -47590,17 +49142,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.EntityCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DocumentDataCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedEntityCreators(alias, func(wq *GroupQuery) { + _q.WithNamedDocumentDataCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "entityTypeCreators": + case "emailTemplateCreators": var ( alias = field.Alias path = append(path, alias) @@ -47628,13 +49180,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_entity_type_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.EntityTypeCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EmailTemplateCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.EntityTypeCreatorsColumn).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)) @@ -47653,7 +49205,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.EntityTypeCreators) + n := len(nodes[i].Edges.EmailTemplateCreators) if nodes[i].Edges.totalCount[21] == nil { nodes[i].Edges.totalCount[21] = make(map[string]int) } @@ -47679,17 +49231,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.EntityTypeCreatorsColumn, 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.WithNamedEntityTypeCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEmailTemplateCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "evidenceCreators": + case "entityCreators": var ( alias = field.Alias path = append(path, alias) @@ -47717,13 +49269,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_entity_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.EntityCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.EvidenceCreatorsColumn).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)) @@ -47742,7 +49294,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.EntityCreators) if nodes[i].Edges.totalCount[22] == nil { nodes[i].Edges.totalCount[22] = make(map[string]int) } @@ -47768,17 +49320,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.EntityCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedEvidenceCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEntityCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "fileCreators": + case "entityTypeCreators": var ( alias = field.Alias path = append(path, alias) @@ -47806,13 +49358,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_file_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.FileCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.EntityTypeCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.FileCreatorsColumn).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)) @@ -47831,7 +49383,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.FileCreators) + n := len(nodes[i].Edges.EntityTypeCreators) if nodes[i].Edges.totalCount[23] == nil { nodes[i].Edges.totalCount[23] = make(map[string]int) } @@ -47857,17 +49409,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.FileCreatorsColumn, 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.WithNamedFileCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEntityTypeCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "findingCreators": + case "evidenceCreators": var ( alias = field.Alias path = append(path, alias) @@ -47895,13 +49447,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_evidence_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.EvidenceCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.FindingCreatorsColumn).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)) @@ -47920,7 +49472,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.EvidenceCreators) if nodes[i].Edges.totalCount[24] == nil { nodes[i].Edges.totalCount[24] = make(map[string]int) } @@ -47946,17 +49498,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.EvidenceCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedFindingCreators(alias, func(wq *GroupQuery) { + _q.WithNamedEvidenceCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "findingControlCreators": + case "fileCreators": var ( alias = field.Alias path = append(path, alias) @@ -47984,13 +49536,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_finding_control_creators"` + NodeID string `sql:"organization_file_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.FindingControlCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.FileCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.FindingControlCreatorsColumn).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)) @@ -48009,7 +49561,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.FindingControlCreators) + n := len(nodes[i].Edges.FileCreators) if nodes[i].Edges.totalCount[25] == nil { nodes[i].Edges.totalCount[25] = make(map[string]int) } @@ -48035,17 +49587,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.FindingControlCreatorsColumn, 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.WithNamedFindingControlCreators(alias, func(wq *GroupQuery) { + _q.WithNamedFileCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "groupCreators": + case "findingCreators": var ( alias = field.Alias path = append(path, alias) @@ -48073,13 +49625,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_finding_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.FindingCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.GroupCreatorsColumn).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)) @@ -48098,7 +49650,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.FindingCreators) if nodes[i].Edges.totalCount[26] == nil { nodes[i].Edges.totalCount[26] = make(map[string]int) } @@ -48124,17 +49676,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.FindingCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedGroupCreators(alias, func(wq *GroupQuery) { + _q.WithNamedFindingCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "groupMembershipCreators": + case "findingControlCreators": var ( alias = field.Alias path = append(path, alias) @@ -48162,13 +49714,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_group_membership_creators"` + NodeID string `sql:"organization_finding_control_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupMembershipCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.FindingControlCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.GroupMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.FindingControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48187,7 +49739,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.GroupMembershipCreators) + n := len(nodes[i].Edges.FindingControlCreators) if nodes[i].Edges.totalCount[27] == nil { nodes[i].Edges.totalCount[27] = make(map[string]int) } @@ -48213,17 +49765,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.GroupMembershipCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.FindingControlCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedGroupMembershipCreators(alias, func(wq *GroupQuery) { + _q.WithNamedFindingControlCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "groupSettingCreators": + case "groupCreators": var ( alias = field.Alias path = append(path, alias) @@ -48251,13 +49803,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_group_setting_creators"` + NodeID string `sql:"organization_group_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupSettingCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.GroupCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.GroupSettingCreatorsColumn).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)) @@ -48276,7 +49828,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.GroupSettingCreators) + n := len(nodes[i].Edges.GroupCreators) if nodes[i].Edges.totalCount[28] == nil { nodes[i].Edges.totalCount[28] = make(map[string]int) } @@ -48302,17 +49854,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.GroupSettingCreatorsColumn, 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.WithNamedGroupSettingCreators(alias, func(wq *GroupQuery) { + _q.WithNamedGroupCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "hushCreators": + case "groupMembershipCreators": var ( alias = field.Alias path = append(path, alias) @@ -48340,13 +49892,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_hush_creators"` + NodeID string `sql:"organization_group_membership_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.HushCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.GroupMembershipCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.HushCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.GroupMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48365,7 +49917,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.HushCreators) + n := len(nodes[i].Edges.GroupMembershipCreators) if nodes[i].Edges.totalCount[29] == nil { nodes[i].Edges.totalCount[29] = make(map[string]int) } @@ -48391,17 +49943,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.HushCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.GroupMembershipCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedHushCreators(alias, func(wq *GroupQuery) { + _q.WithNamedGroupMembershipCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "identityHolderCreators": + case "groupSettingCreators": var ( alias = field.Alias path = append(path, alias) @@ -48429,13 +49981,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_group_setting_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.GroupSettingCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.IdentityHolderCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.GroupSettingCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48454,7 +50006,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.GroupSettingCreators) if nodes[i].Edges.totalCount[30] == nil { nodes[i].Edges.totalCount[30] = make(map[string]int) } @@ -48480,17 +50032,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.GroupSettingCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedIdentityHolderCreators(alias, func(wq *GroupQuery) { + _q.WithNamedGroupSettingCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "internalPolicyCreators": + case "hushCreators": var ( alias = field.Alias path = append(path, alias) @@ -48518,13 +50070,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_hush_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.HushCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.InternalPolicyCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.HushCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48543,7 +50095,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.HushCreators) if nodes[i].Edges.totalCount[31] == nil { nodes[i].Edges.totalCount[31] = make(map[string]int) } @@ -48569,17 +50121,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.HushCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedInternalPolicyCreators(alias, func(wq *GroupQuery) { + _q.WithNamedHushCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "inviteCreators": + case "identityHolderCreators": var ( alias = field.Alias path = append(path, alias) @@ -48607,13 +50159,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_invite_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.InviteCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.IdentityHolderCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.InviteCreatorsColumn).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)) @@ -48632,7 +50184,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.InviteCreators) + n := len(nodes[i].Edges.IdentityHolderCreators) if nodes[i].Edges.totalCount[32] == nil { nodes[i].Edges.totalCount[32] = make(map[string]int) } @@ -48658,17 +50210,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.InviteCreatorsColumn, 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.WithNamedInviteCreators(alias, func(wq *GroupQuery) { + _q.WithNamedIdentityHolderCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "mappedControlCreators": + case "internalPolicyCreators": var ( alias = field.Alias path = append(path, alias) @@ -48696,13 +50248,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_internal_policy_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.InternalPolicyCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.MappedControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.InternalPolicyCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48721,7 +50273,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.InternalPolicyCreators) if nodes[i].Edges.totalCount[33] == nil { nodes[i].Edges.totalCount[33] = make(map[string]int) } @@ -48747,17 +50299,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.InternalPolicyCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedMappedControlCreators(alias, func(wq *GroupQuery) { + _q.WithNamedInternalPolicyCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "narrativeCreators": + case "inviteCreators": var ( alias = field.Alias path = append(path, alias) @@ -48785,13 +50337,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_invite_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.InviteCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.NarrativeCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.InviteCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48810,7 +50362,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.InviteCreators) if nodes[i].Edges.totalCount[34] == nil { nodes[i].Edges.totalCount[34] = make(map[string]int) } @@ -48836,17 +50388,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.InviteCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNarrativeCreators(alias, func(wq *GroupQuery) { + _q.WithNamedInviteCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "noteCreators": + case "mappedControlCreators": var ( alias = field.Alias path = append(path, alias) @@ -48874,13 +50426,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_note_creators"` + NodeID string `sql:"organization_mapped_control_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NoteCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.MappedControlCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.NoteCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.MappedControlCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48899,7 +50451,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.NoteCreators) + n := len(nodes[i].Edges.MappedControlCreators) if nodes[i].Edges.totalCount[35] == nil { nodes[i].Edges.totalCount[35] = make(map[string]int) } @@ -48925,17 +50477,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.NoteCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.MappedControlCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNoteCreators(alias, func(wq *GroupQuery) { + _q.WithNamedMappedControlCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "notificationTemplateCreators": + case "narrativeCreators": var ( alias = field.Alias path = append(path, alias) @@ -48963,13 +50515,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_notification_template_creators"` + NodeID string `sql:"organization_narrative_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.NotificationTemplateCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.NarrativeCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.NotificationTemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.NarrativeCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -48988,7 +50540,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.NotificationTemplateCreators) + n := len(nodes[i].Edges.NarrativeCreators) if nodes[i].Edges.totalCount[36] == nil { nodes[i].Edges.totalCount[36] = make(map[string]int) } @@ -49014,17 +50566,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.NotificationTemplateCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.NarrativeCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedNotificationTemplateCreators(alias, func(wq *GroupQuery) { + _q.WithNamedNarrativeCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "orgMembershipCreators": + case "noteCreators": var ( alias = field.Alias path = append(path, alias) @@ -49052,13 +50604,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_org_membership_creators"` + NodeID string `sql:"organization_note_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.OrgMembershipCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.NoteCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.OrgMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.NoteCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49077,7 +50629,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.OrgMembershipCreators) + n := len(nodes[i].Edges.NoteCreators) if nodes[i].Edges.totalCount[37] == nil { nodes[i].Edges.totalCount[37] = make(map[string]int) } @@ -49103,17 +50655,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.OrgMembershipCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.NoteCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedOrgMembershipCreators(alias, func(wq *GroupQuery) { + _q.WithNamedNoteCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "platformCreators": + case "notificationTemplateCreators": var ( alias = field.Alias path = append(path, alias) @@ -49141,13 +50693,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_platform_creators"` + NodeID string `sql:"organization_notification_template_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.PlatformCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.NotificationTemplateCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.PlatformCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.NotificationTemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49166,7 +50718,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.PlatformCreators) + n := len(nodes[i].Edges.NotificationTemplateCreators) if nodes[i].Edges.totalCount[38] == nil { nodes[i].Edges.totalCount[38] = make(map[string]int) } @@ -49192,17 +50744,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.PlatformCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.NotificationTemplateCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedPlatformCreators(alias, func(wq *GroupQuery) { + _q.WithNamedNotificationTemplateCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "procedureCreators": + case "orgMembershipCreators": var ( alias = field.Alias path = append(path, alias) @@ -49230,13 +50782,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_org_membership_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.OrgMembershipCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ProcedureCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.OrgMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49255,7 +50807,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.OrgMembershipCreators) if nodes[i].Edges.totalCount[39] == nil { nodes[i].Edges.totalCount[39] = make(map[string]int) } @@ -49281,17 +50833,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.OrgMembershipCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProcedureCreators(alias, func(wq *GroupQuery) { + _q.WithNamedOrgMembershipCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "programCreators": + case "platformCreators": var ( alias = field.Alias path = append(path, alias) @@ -49319,13 +50871,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_platform_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.PlatformCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ProgramCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.PlatformCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49344,7 +50896,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.PlatformCreators) if nodes[i].Edges.totalCount[40] == nil { nodes[i].Edges.totalCount[40] = make(map[string]int) } @@ -49370,17 +50922,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.PlatformCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramCreators(alias, func(wq *GroupQuery) { + _q.WithNamedPlatformCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "programMembershipCreators": + case "procedureCreators": var ( alias = field.Alias path = append(path, alias) @@ -49408,13 +50960,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_program_membership_creators"` + NodeID string `sql:"organization_procedure_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ProgramMembershipCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ProcedureCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ProgramMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ProcedureCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49433,7 +50985,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.ProgramMembershipCreators) + n := len(nodes[i].Edges.ProcedureCreators) if nodes[i].Edges.totalCount[41] == nil { nodes[i].Edges.totalCount[41] = make(map[string]int) } @@ -49459,17 +51011,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ProgramMembershipCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ProcedureCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedProgramMembershipCreators(alias, func(wq *GroupQuery) { + _q.WithNamedProcedureCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "remediationCreators": + case "programCreators": var ( alias = field.Alias path = append(path, alias) @@ -49497,13 +51049,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_remediation_creators"` + NodeID string `sql:"organization_program_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RemediationCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ProgramCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.RemediationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ProgramCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49522,7 +51074,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.RemediationCreators) + n := len(nodes[i].Edges.ProgramCreators) if nodes[i].Edges.totalCount[42] == nil { nodes[i].Edges.totalCount[42] = make(map[string]int) } @@ -49548,17 +51100,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.RemediationCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ProgramCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRemediationCreators(alias, func(wq *GroupQuery) { + _q.WithNamedProgramCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "reviewCreators": + case "programMembershipCreators": var ( alias = field.Alias path = append(path, alias) @@ -49586,13 +51138,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_review_creators"` + NodeID string `sql:"organization_program_membership_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ReviewCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ProgramMembershipCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ReviewCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ProgramMembershipCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49611,7 +51163,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.ReviewCreators) + n := len(nodes[i].Edges.ProgramMembershipCreators) if nodes[i].Edges.totalCount[43] == nil { nodes[i].Edges.totalCount[43] = make(map[string]int) } @@ -49637,17 +51189,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ReviewCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ProgramMembershipCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedReviewCreators(alias, func(wq *GroupQuery) { + _q.WithNamedProgramMembershipCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "riskCreators": + case "remediationCreators": var ( alias = field.Alias path = append(path, alias) @@ -49675,13 +51227,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_remediation_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.RemediationCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.RiskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.RemediationCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49700,7 +51252,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.RemediationCreators) if nodes[i].Edges.totalCount[44] == nil { nodes[i].Edges.totalCount[44] = make(map[string]int) } @@ -49726,17 +51278,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.RemediationCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskCreators(alias, func(wq *GroupQuery) { + _q.WithNamedRemediationCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "scanCreators": + case "reviewCreators": var ( alias = field.Alias path = append(path, alias) @@ -49764,13 +51316,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_scan_creators"` + NodeID string `sql:"organization_review_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScanCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ReviewCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ScanCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ReviewCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49789,7 +51341,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.ScanCreators) + n := len(nodes[i].Edges.ReviewCreators) if nodes[i].Edges.totalCount[45] == nil { nodes[i].Edges.totalCount[45] = make(map[string]int) } @@ -49815,17 +51367,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ScanCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ReviewCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedScanCreators(alias, func(wq *GroupQuery) { + _q.WithNamedReviewCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "slaDefinitionCreators": + case "riskCreators": var ( alias = field.Alias path = append(path, alias) @@ -49853,13 +51405,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_sla_definition_creators"` + NodeID string `sql:"organization_risk_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SLADefinitionCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.RiskCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SLADefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.RiskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49878,7 +51430,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.SLADefinitionCreators) + n := len(nodes[i].Edges.RiskCreators) if nodes[i].Edges.totalCount[46] == nil { nodes[i].Edges.totalCount[46] = make(map[string]int) } @@ -49904,17 +51456,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SLADefinitionCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.RiskCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSLADefinitionCreators(alias, func(wq *GroupQuery) { + _q.WithNamedRiskCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "standardCreators": + case "scanCreators": var ( alias = field.Alias path = append(path, alias) @@ -49942,13 +51494,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_scan_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.ScanCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.StandardCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ScanCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -49967,7 +51519,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.ScanCreators) if nodes[i].Edges.totalCount[47] == nil { nodes[i].Edges.totalCount[47] = make(map[string]int) } @@ -49993,17 +51545,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.ScanCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedStandardCreators(alias, func(wq *GroupQuery) { + _q.WithNamedScanCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "subcontrolCreators": + case "slaDefinitionCreators": var ( alias = field.Alias path = append(path, alias) @@ -50031,13 +51583,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_subcontrol_creators"` + NodeID string `sql:"organization_sla_definition_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubcontrolCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SLADefinitionCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SubcontrolCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SLADefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50056,7 +51608,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.SubcontrolCreators) + n := len(nodes[i].Edges.SLADefinitionCreators) if nodes[i].Edges.totalCount[48] == nil { nodes[i].Edges.totalCount[48] = make(map[string]int) } @@ -50082,17 +51634,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SubcontrolCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SLADefinitionCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSubcontrolCreators(alias, func(wq *GroupQuery) { + _q.WithNamedSLADefinitionCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "subprocessorCreators": + case "standardCreators": var ( alias = field.Alias path = append(path, alias) @@ -50120,13 +51672,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_standard_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.StandardCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.StandardCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50145,7 +51697,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.StandardCreators) if nodes[i].Edges.totalCount[49] == nil { nodes[i].Edges.totalCount[49] = make(map[string]int) } @@ -50171,17 +51723,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.StandardCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSubprocessorCreators(alias, func(wq *GroupQuery) { + _q.WithNamedStandardCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "subscriberCreators": + case "subcontrolCreators": var ( alias = field.Alias path = append(path, alias) @@ -50209,13 +51761,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_subscriber_creators"` + NodeID string `sql:"organization_subcontrol_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubscriberCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SubcontrolCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SubscriberCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SubcontrolCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50234,7 +51786,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.SubscriberCreators) + n := len(nodes[i].Edges.SubcontrolCreators) if nodes[i].Edges.totalCount[50] == nil { nodes[i].Edges.totalCount[50] = make(map[string]int) } @@ -50260,17 +51812,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SubscriberCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SubcontrolCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSubscriberCreators(alias, func(wq *GroupQuery) { + _q.WithNamedSubcontrolCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "systemDetailCreators": + case "subprocessorCreators": var ( alias = field.Alias path = append(path, alias) @@ -50298,13 +51850,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_system_detail_creators"` + NodeID string `sql:"organization_subprocessor_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SystemDetailCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SubprocessorCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.SystemDetailCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50323,7 +51875,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.SystemDetailCreators) + n := len(nodes[i].Edges.SubprocessorCreators) if nodes[i].Edges.totalCount[51] == nil { nodes[i].Edges.totalCount[51] = make(map[string]int) } @@ -50349,17 +51901,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SystemDetailCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SubprocessorCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSystemDetailCreators(alias, func(wq *GroupQuery) { + _q.WithNamedSubprocessorCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "tagDefinitionCreators": + case "subscriberCreators": var ( alias = field.Alias path = append(path, alias) @@ -50387,13 +51939,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_tag_definition_creators"` + NodeID string `sql:"organization_subscriber_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TagDefinitionCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SubscriberCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TagDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SubscriberCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50412,7 +51964,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.TagDefinitionCreators) + n := len(nodes[i].Edges.SubscriberCreators) if nodes[i].Edges.totalCount[52] == nil { nodes[i].Edges.totalCount[52] = make(map[string]int) } @@ -50438,17 +51990,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TagDefinitionCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SubscriberCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTagDefinitionCreators(alias, func(wq *GroupQuery) { + _q.WithNamedSubscriberCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "taskCreators": + case "systemDetailCreators": var ( alias = field.Alias path = append(path, alias) @@ -50476,13 +52028,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_task_creators"` + NodeID string `sql:"organization_system_detail_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TaskCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SystemDetailCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TaskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SystemDetailCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50501,7 +52053,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.TaskCreators) + n := len(nodes[i].Edges.SystemDetailCreators) if nodes[i].Edges.totalCount[53] == nil { nodes[i].Edges.totalCount[53] = make(map[string]int) } @@ -50527,17 +52079,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TaskCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SystemDetailCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTaskCreators(alias, func(wq *GroupQuery) { + _q.WithNamedSystemDetailCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "templateCreators": + case "tagDefinitionCreators": var ( alias = field.Alias path = append(path, alias) @@ -50565,13 +52117,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_tag_definition_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.TagDefinitionCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TagDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50590,7 +52142,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.TagDefinitionCreators) if nodes[i].Edges.totalCount[54] == nil { nodes[i].Edges.totalCount[54] = make(map[string]int) } @@ -50616,17 +52168,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.TagDefinitionCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTemplateCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTagDefinitionCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterCreators": + case "taskCreators": var ( alias = field.Alias path = append(path, alias) @@ -50654,13 +52206,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_creators"` + NodeID string `sql:"organization_task_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TaskCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TaskCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50679,7 +52231,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.TrustCenterCreators) + n := len(nodes[i].Edges.TaskCreators) if nodes[i].Edges.totalCount[55] == nil { nodes[i].Edges.totalCount[55] = make(map[string]int) } @@ -50705,17 +52257,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TaskCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTaskCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterComplianceCreators": + case "templateCreators": var ( alias = field.Alias path = append(path, alias) @@ -50743,13 +52295,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_compliance_creators"` + NodeID string `sql:"organization_template_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterComplianceCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TemplateCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterComplianceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TemplateCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50768,7 +52320,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.TrustCenterComplianceCreators) + n := len(nodes[i].Edges.TemplateCreators) if nodes[i].Edges.totalCount[56] == nil { nodes[i].Edges.totalCount[56] = make(map[string]int) } @@ -50794,17 +52346,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterComplianceCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TemplateCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterComplianceCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTemplateCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterDocCreators": + case "trustCenterCreators": var ( alias = field.Alias path = append(path, alias) @@ -50832,13 +52384,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_trust_center_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.TrustCenterCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterDocCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50857,7 +52409,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.TrustCenterCreators) if nodes[i].Edges.totalCount[57] == nil { nodes[i].Edges.totalCount[57] = make(map[string]int) } @@ -50883,17 +52435,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.TrustCenterCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterDocCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterEntityCreators": + case "trustCenterComplianceCreators": var ( alias = field.Alias path = append(path, alias) @@ -50921,13 +52473,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_entity_creators"` + 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.TrustCenterEntityCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterComplianceCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterEntityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterComplianceCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -50946,7 +52498,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.TrustCenterEntityCreators) + n := len(nodes[i].Edges.TrustCenterComplianceCreators) if nodes[i].Edges.totalCount[58] == nil { nodes[i].Edges.totalCount[58] = make(map[string]int) } @@ -50972,17 +52524,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterEntityCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterComplianceCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterEntityCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterComplianceCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterFaqCreators": + case "trustCenterDocCreators": var ( alias = field.Alias path = append(path, alias) @@ -51010,13 +52562,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_faq_creators"` + 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.TrustCenterFaqCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterDocCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterFaqCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterDocCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51035,7 +52587,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.TrustCenterFaqCreators) + n := len(nodes[i].Edges.TrustCenterDocCreators) if nodes[i].Edges.totalCount[59] == nil { nodes[i].Edges.totalCount[59] = make(map[string]int) } @@ -51061,17 +52613,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterFaqCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterDocCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterFaqCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterDocCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterNdaRequestCreators": + case "trustCenterEntityCreators": var ( alias = field.Alias path = append(path, alias) @@ -51099,13 +52651,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_nda_request_creators"` + 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.TrustCenterNdaRequestCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterEntityCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterNdaRequestCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterEntityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51124,7 +52676,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.TrustCenterNdaRequestCreators) + n := len(nodes[i].Edges.TrustCenterEntityCreators) if nodes[i].Edges.totalCount[60] == nil { nodes[i].Edges.totalCount[60] = make(map[string]int) } @@ -51150,17 +52702,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterNdaRequestCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterEntityCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterNdaRequestCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterEntityCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterSubprocessorCreators": + case "trustCenterFaqCreators": var ( alias = field.Alias path = append(path, alias) @@ -51188,13 +52740,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_trust_center_faq_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.TrustCenterFaqCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterSubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterFaqCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51213,7 +52765,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.TrustCenterFaqCreators) if nodes[i].Edges.totalCount[61] == nil { nodes[i].Edges.totalCount[61] = make(map[string]int) } @@ -51239,17 +52791,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.TrustCenterFaqCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterSubprocessorCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterFaqCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterWatermarkConfigCreators": + case "trustCenterNdaRequestCreators": var ( alias = field.Alias path = append(path, alias) @@ -51277,13 +52829,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_watermark_config_creators"` + 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.TrustCenterWatermarkConfigCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterNdaRequestCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterWatermarkConfigCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterNdaRequestCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51302,7 +52854,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.TrustCenterWatermarkConfigCreators) + n := len(nodes[i].Edges.TrustCenterNdaRequestCreators) if nodes[i].Edges.totalCount[62] == nil { nodes[i].Edges.totalCount[62] = make(map[string]int) } @@ -51328,17 +52880,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterWatermarkConfigCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterNdaRequestCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterWatermarkConfigCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterNdaRequestCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "vendorRiskScoreCreators": + case "trustCenterSubprocessorCreators": var ( alias = field.Alias path = append(path, alias) @@ -51366,13 +52918,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_vendor_risk_score_creators"` + 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.VendorRiskScoreCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterSubprocessorCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.VendorRiskScoreCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterSubprocessorCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51391,7 +52943,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.VendorRiskScoreCreators) + n := len(nodes[i].Edges.TrustCenterSubprocessorCreators) if nodes[i].Edges.totalCount[63] == nil { nodes[i].Edges.totalCount[63] = make(map[string]int) } @@ -51417,17 +52969,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.VendorRiskScoreCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterSubprocessorCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedVendorRiskScoreCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterSubprocessorCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "vendorScoringConfigCreators": + case "trustCenterWatermarkConfigCreators": var ( alias = field.Alias path = append(path, alias) @@ -51455,13 +53007,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_vendor_scoring_config_creators"` + 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.VendorScoringConfigCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCenterWatermarkConfigCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.VendorScoringConfigCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCenterWatermarkConfigCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51480,7 +53032,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.VendorScoringConfigCreators) + n := len(nodes[i].Edges.TrustCenterWatermarkConfigCreators) if nodes[i].Edges.totalCount[64] == nil { nodes[i].Edges.totalCount[64] = make(map[string]int) } @@ -51506,17 +53058,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.VendorScoringConfigCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCenterWatermarkConfigCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedVendorScoringConfigCreators(alias, func(wq *GroupQuery) { + _q.WithNamedTrustCenterWatermarkConfigCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "vulnerabilityCreators": + case "vendorRiskScoreCreators": var ( alias = field.Alias path = append(path, alias) @@ -51544,13 +53096,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_vendor_risk_score_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.VendorRiskScoreCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.VulnerabilityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.VendorRiskScoreCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51569,7 +53121,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.VendorRiskScoreCreators) if nodes[i].Edges.totalCount[65] == nil { nodes[i].Edges.totalCount[65] = make(map[string]int) } @@ -51595,17 +53147,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.VendorRiskScoreCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedVulnerabilityCreators(alias, func(wq *GroupQuery) { + _q.WithNamedVendorRiskScoreCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "workflowDefinitionCreators": + case "vendorScoringConfigCreators": var ( alias = field.Alias path = append(path, alias) @@ -51633,13 +53185,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_workflow_definition_creators"` + NodeID string `sql:"organization_vendor_scoring_config_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowDefinitionCreatorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.VendorScoringConfigCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.WorkflowDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.VendorScoringConfigCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51658,7 +53210,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.WorkflowDefinitionCreators) + n := len(nodes[i].Edges.VendorScoringConfigCreators) if nodes[i].Edges.totalCount[66] == nil { nodes[i].Edges.totalCount[66] = make(map[string]int) } @@ -51684,17 +53236,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.WorkflowDefinitionCreatorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.VendorScoringConfigCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedWorkflowDefinitionCreators(alias, func(wq *GroupQuery) { + _q.WithNamedVendorScoringConfigCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "campaignsManager": + case "vulnerabilityCreators": var ( alias = field.Alias path = append(path, alias) @@ -51722,13 +53274,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_campaigns_manager"` + NodeID string `sql:"organization_vulnerability_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CampaignsManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.VulnerabilityCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.CampaignsManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.VulnerabilityCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51747,7 +53299,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.CampaignsManager) + n := len(nodes[i].Edges.VulnerabilityCreators) if nodes[i].Edges.totalCount[67] == nil { nodes[i].Edges.totalCount[67] = make(map[string]int) } @@ -51773,17 +53325,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CampaignsManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.VulnerabilityCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCampaignsManager(alias, func(wq *GroupQuery) { + _q.WithNamedVulnerabilityCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "complianceManager": + case "workflowDefinitionCreators": var ( alias = field.Alias path = append(path, alias) @@ -51811,13 +53363,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_compliance_manager"` + NodeID string `sql:"organization_workflow_definition_creators"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ComplianceManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.WorkflowDefinitionCreatorsColumn), ids...)) }) - if err := query.GroupBy(organization.ComplianceManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.WorkflowDefinitionCreatorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51836,7 +53388,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.ComplianceManager) + n := len(nodes[i].Edges.WorkflowDefinitionCreators) if nodes[i].Edges.totalCount[68] == nil { nodes[i].Edges.totalCount[68] = make(map[string]int) } @@ -51862,17 +53414,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ComplianceManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.WorkflowDefinitionCreatorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedComplianceManager(alias, func(wq *GroupQuery) { + _q.WithNamedWorkflowDefinitionCreators(alias, func(wq *GroupQuery) { *wq = *query }) - case "groupManager": + case "campaignsManager": var ( alias = field.Alias path = append(path, alias) @@ -51900,13 +53452,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_group_manager"` + NodeID string `sql:"organization_campaigns_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.GroupManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.CampaignsManagerColumn), ids...)) }) - if err := query.GroupBy(organization.GroupManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.CampaignsManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -51925,7 +53477,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.GroupManager) + n := len(nodes[i].Edges.CampaignsManager) if nodes[i].Edges.totalCount[69] == nil { nodes[i].Edges.totalCount[69] = make(map[string]int) } @@ -51951,17 +53503,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.GroupManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.CampaignsManagerColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedGroupManager(alias, func(wq *GroupQuery) { + _q.WithNamedCampaignsManager(alias, func(wq *GroupQuery) { *wq = *query }) - case "policiesManager": + case "complianceManager": var ( alias = field.Alias path = append(path, alias) @@ -51989,13 +53541,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_policies_manager"` + NodeID string `sql:"organization_compliance_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.PoliciesManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ComplianceManagerColumn), ids...)) }) - if err := query.GroupBy(organization.PoliciesManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ComplianceManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -52014,7 +53566,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.PoliciesManager) + n := len(nodes[i].Edges.ComplianceManager) if nodes[i].Edges.totalCount[70] == nil { nodes[i].Edges.totalCount[70] = make(map[string]int) } @@ -52040,17 +53592,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.PoliciesManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ComplianceManagerColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedPoliciesManager(alias, func(wq *GroupQuery) { + _q.WithNamedComplianceManager(alias, func(wq *GroupQuery) { *wq = *query }) - case "registryManager": + case "groupManager": var ( alias = field.Alias path = append(path, alias) @@ -52078,13 +53630,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_registry_manager"` + NodeID string `sql:"organization_group_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RegistryManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.GroupManagerColumn), ids...)) }) - if err := query.GroupBy(organization.RegistryManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.GroupManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -52103,7 +53655,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.RegistryManager) + n := len(nodes[i].Edges.GroupManager) if nodes[i].Edges.totalCount[71] == nil { nodes[i].Edges.totalCount[71] = make(map[string]int) } @@ -52129,17 +53681,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.RegistryManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.GroupManagerColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRegistryManager(alias, func(wq *GroupQuery) { + _q.WithNamedGroupManager(alias, func(wq *GroupQuery) { *wq = *query }) - case "riskManager": + case "policiesManager": var ( alias = field.Alias path = append(path, alias) @@ -52167,13 +53719,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_risk_manager"` + NodeID string `sql:"organization_policies_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.RiskManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.PoliciesManagerColumn), ids...)) }) - if err := query.GroupBy(organization.RiskManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.PoliciesManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -52192,7 +53744,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.RiskManager) + n := len(nodes[i].Edges.PoliciesManager) if nodes[i].Edges.totalCount[72] == nil { nodes[i].Edges.totalCount[72] = make(map[string]int) } @@ -52218,17 +53770,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.RiskManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.PoliciesManagerColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedRiskManager(alias, func(wq *GroupQuery) { + _q.WithNamedPoliciesManager(alias, func(wq *GroupQuery) { *wq = *query }) - case "trustCenterManager": + case "registryManager": var ( alias = field.Alias path = append(path, alias) @@ -52256,13 +53808,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_manager"` + NodeID string `sql:"organization_registry_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCenterManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.RegistryManagerColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCenterManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.RegistryManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -52281,7 +53833,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.TrustCenterManager) + n := len(nodes[i].Edges.RegistryManager) if nodes[i].Edges.totalCount[73] == nil { nodes[i].Edges.totalCount[73] = make(map[string]int) } @@ -52307,17 +53859,17 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCenterManagerColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.RegistryManagerColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenterManager(alias, func(wq *GroupQuery) { + _q.WithNamedRegistryManager(alias, func(wq *GroupQuery) { *wq = *query }) - case "workflowsManager": + case "riskManager": var ( alias = field.Alias path = append(path, alias) @@ -52345,13 +53897,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC ids[i] = nodes[i].ID } var v []struct { - NodeID string `sql:"organization_workflows_manager"` + NodeID string `sql:"organization_risk_manager"` Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.WorkflowsManagerColumn), ids...)) + s.Where(sql.InValues(s.C(organization.RiskManagerColumn), ids...)) }) - if err := query.GroupBy(organization.WorkflowsManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.RiskManagerColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -52370,7 +53922,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.WorkflowsManager) + n := len(nodes[i].Edges.RiskManager) if nodes[i].Edges.totalCount[74] == nil { nodes[i].Edges.totalCount[74] = make(map[string]int) } @@ -52392,6 +53944,184 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC 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[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.TrustCenterManager) + 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.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[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.WorkflowsManager) + 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)) @@ -52464,10 +54194,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[78] == nil { + nodes[i].Edges.totalCount[78] = make(map[string]int) } - nodes[i].Edges.totalCount[76][alias] = n + nodes[i].Edges.totalCount[78][alias] = n } return nil }) @@ -52475,10 +54205,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.Children) - if nodes[i].Edges.totalCount[76] == nil { - nodes[i].Edges.totalCount[76] = make(map[string]int) + if nodes[i].Edges.totalCount[78] == nil { + nodes[i].Edges.totalCount[78] = make(map[string]int) } - nodes[i].Edges.totalCount[76][alias] = n + nodes[i].Edges.totalCount[78][alias] = n } return nil }) @@ -52568,10 +54298,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[80] == nil { + nodes[i].Edges.totalCount[80] = make(map[string]int) } - nodes[i].Edges.totalCount[78][alias] = n + nodes[i].Edges.totalCount[80][alias] = n } return nil }) @@ -52579,10 +54309,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[78] == nil { - nodes[i].Edges.totalCount[78] = make(map[string]int) + if nodes[i].Edges.totalCount[80] == nil { + nodes[i].Edges.totalCount[80] = make(map[string]int) } - nodes[i].Edges.totalCount[78][alias] = n + nodes[i].Edges.totalCount[80][alias] = n } return nil }) @@ -52657,10 +54387,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[81] == nil { + nodes[i].Edges.totalCount[81] = make(map[string]int) } - nodes[i].Edges.totalCount[79][alias] = n + nodes[i].Edges.totalCount[81][alias] = n } return nil }) @@ -52668,10 +54398,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[79] == nil { - nodes[i].Edges.totalCount[79] = make(map[string]int) + if nodes[i].Edges.totalCount[81] == nil { + nodes[i].Edges.totalCount[81] = make(map[string]int) } - nodes[i].Edges.totalCount[79][alias] = n + nodes[i].Edges.totalCount[81][alias] = n } return nil }) @@ -52746,10 +54476,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[82] == nil { + nodes[i].Edges.totalCount[82] = make(map[string]int) } - nodes[i].Edges.totalCount[80][alias] = n + nodes[i].Edges.totalCount[82][alias] = n } return nil }) @@ -52757,10 +54487,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[80] == nil { - nodes[i].Edges.totalCount[80] = make(map[string]int) + if nodes[i].Edges.totalCount[82] == nil { + nodes[i].Edges.totalCount[82] = make(map[string]int) } - nodes[i].Edges.totalCount[80][alias] = n + nodes[i].Edges.totalCount[82][alias] = n } return nil }) @@ -52835,10 +54565,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[83] == nil { + nodes[i].Edges.totalCount[83] = make(map[string]int) } - nodes[i].Edges.totalCount[81][alias] = n + nodes[i].Edges.totalCount[83][alias] = n } return nil }) @@ -52846,10 +54576,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[81] == nil { - nodes[i].Edges.totalCount[81] = make(map[string]int) + if nodes[i].Edges.totalCount[83] == nil { + nodes[i].Edges.totalCount[83] = make(map[string]int) } - nodes[i].Edges.totalCount[81][alias] = n + nodes[i].Edges.totalCount[83][alias] = n } return nil }) @@ -52924,10 +54654,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[84] == nil { + nodes[i].Edges.totalCount[84] = make(map[string]int) } - nodes[i].Edges.totalCount[82][alias] = n + nodes[i].Edges.totalCount[84][alias] = n } return nil }) @@ -52935,10 +54665,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[82] == nil { - nodes[i].Edges.totalCount[82] = make(map[string]int) + if nodes[i].Edges.totalCount[84] == nil { + nodes[i].Edges.totalCount[84] = make(map[string]int) } - nodes[i].Edges.totalCount[82][alias] = n + nodes[i].Edges.totalCount[84][alias] = n } return nil }) @@ -53017,10 +54747,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[85] == nil { + nodes[i].Edges.totalCount[85] = make(map[string]int) } - nodes[i].Edges.totalCount[83][alias] = n + nodes[i].Edges.totalCount[85][alias] = n } return nil }) @@ -53028,10 +54758,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[83] == nil { - nodes[i].Edges.totalCount[83] = make(map[string]int) + if nodes[i].Edges.totalCount[85] == nil { + nodes[i].Edges.totalCount[85] = make(map[string]int) } - nodes[i].Edges.totalCount[83][alias] = n + nodes[i].Edges.totalCount[85][alias] = n } return nil }) @@ -53110,10 +54840,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[86] == nil { + nodes[i].Edges.totalCount[86] = make(map[string]int) } - nodes[i].Edges.totalCount[84][alias] = n + nodes[i].Edges.totalCount[86][alias] = n } return nil }) @@ -53121,10 +54851,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[84] == nil { - nodes[i].Edges.totalCount[84] = make(map[string]int) + if nodes[i].Edges.totalCount[86] == nil { + nodes[i].Edges.totalCount[86] = make(map[string]int) } - nodes[i].Edges.totalCount[84][alias] = n + nodes[i].Edges.totalCount[86][alias] = n } return nil }) @@ -53203,10 +54933,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[87] == nil { + nodes[i].Edges.totalCount[87] = make(map[string]int) } - nodes[i].Edges.totalCount[85][alias] = n + nodes[i].Edges.totalCount[87][alias] = n } return nil }) @@ -53214,10 +54944,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[85] == nil { - nodes[i].Edges.totalCount[85] = make(map[string]int) + if nodes[i].Edges.totalCount[87] == nil { + nodes[i].Edges.totalCount[87] = make(map[string]int) } - nodes[i].Edges.totalCount[85][alias] = n + nodes[i].Edges.totalCount[87][alias] = n } return nil }) @@ -53292,10 +55022,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[88] == nil { + nodes[i].Edges.totalCount[88] = make(map[string]int) } - nodes[i].Edges.totalCount[86][alias] = n + nodes[i].Edges.totalCount[88][alias] = n } return nil }) @@ -53303,10 +55033,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[86] == nil { - nodes[i].Edges.totalCount[86] = make(map[string]int) + if nodes[i].Edges.totalCount[88] == nil { + nodes[i].Edges.totalCount[88] = make(map[string]int) } - nodes[i].Edges.totalCount[86][alias] = n + nodes[i].Edges.totalCount[88][alias] = n } return nil }) @@ -53396,10 +55126,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[90] == nil { + nodes[i].Edges.totalCount[90] = make(map[string]int) } - nodes[i].Edges.totalCount[88][alias] = n + nodes[i].Edges.totalCount[90][alias] = n } return nil }) @@ -53407,10 +55137,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[88] == nil { - nodes[i].Edges.totalCount[88] = make(map[string]int) + if nodes[i].Edges.totalCount[90] == nil { + nodes[i].Edges.totalCount[90] = make(map[string]int) } - nodes[i].Edges.totalCount[88][alias] = n + nodes[i].Edges.totalCount[90][alias] = n } return nil }) @@ -53485,10 +55215,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[91] == nil { + nodes[i].Edges.totalCount[91] = make(map[string]int) } - nodes[i].Edges.totalCount[89][alias] = n + nodes[i].Edges.totalCount[91][alias] = n } return nil }) @@ -53496,10 +55226,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[89] == nil { - nodes[i].Edges.totalCount[89] = make(map[string]int) + if nodes[i].Edges.totalCount[91] == nil { + nodes[i].Edges.totalCount[91] = make(map[string]int) } - nodes[i].Edges.totalCount[89][alias] = n + nodes[i].Edges.totalCount[91][alias] = n } return nil }) @@ -53574,10 +55304,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[92] == nil { + nodes[i].Edges.totalCount[92] = make(map[string]int) } - nodes[i].Edges.totalCount[90][alias] = n + nodes[i].Edges.totalCount[92][alias] = n } return nil }) @@ -53585,10 +55315,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[90] == nil { - nodes[i].Edges.totalCount[90] = make(map[string]int) + if nodes[i].Edges.totalCount[92] == nil { + nodes[i].Edges.totalCount[92] = make(map[string]int) } - nodes[i].Edges.totalCount[90][alias] = n + nodes[i].Edges.totalCount[92][alias] = n } return nil }) @@ -53663,10 +55393,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[93] == nil { + nodes[i].Edges.totalCount[93] = make(map[string]int) } - nodes[i].Edges.totalCount[91][alias] = n + nodes[i].Edges.totalCount[93][alias] = n } return nil }) @@ -53674,10 +55404,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[91] == nil { - nodes[i].Edges.totalCount[91] = make(map[string]int) + if nodes[i].Edges.totalCount[93] == nil { + nodes[i].Edges.totalCount[93] = make(map[string]int) } - nodes[i].Edges.totalCount[91][alias] = n + nodes[i].Edges.totalCount[93][alias] = n } return nil }) @@ -53765,10 +55495,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[95] == nil { + nodes[i].Edges.totalCount[95] = make(map[string]int) } - nodes[i].Edges.totalCount[93][alias] = n + nodes[i].Edges.totalCount[95][alias] = n } return nil }) @@ -53776,10 +55506,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[93] == nil { - nodes[i].Edges.totalCount[93] = make(map[string]int) + if nodes[i].Edges.totalCount[95] == nil { + nodes[i].Edges.totalCount[95] = make(map[string]int) } - nodes[i].Edges.totalCount[93][alias] = n + nodes[i].Edges.totalCount[95][alias] = n } return nil }) @@ -53854,10 +55584,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[96] == nil { + nodes[i].Edges.totalCount[96] = make(map[string]int) } - nodes[i].Edges.totalCount[94][alias] = n + nodes[i].Edges.totalCount[96][alias] = n } return nil }) @@ -53865,10 +55595,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[94] == nil { - nodes[i].Edges.totalCount[94] = make(map[string]int) + if nodes[i].Edges.totalCount[96] == nil { + nodes[i].Edges.totalCount[96] = make(map[string]int) } - nodes[i].Edges.totalCount[94][alias] = n + nodes[i].Edges.totalCount[96][alias] = n } return nil }) @@ -53943,10 +55673,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[97] == nil { + nodes[i].Edges.totalCount[97] = make(map[string]int) } - nodes[i].Edges.totalCount[95][alias] = n + nodes[i].Edges.totalCount[97][alias] = n } return nil }) @@ -53954,10 +55684,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[95] == nil { - nodes[i].Edges.totalCount[95] = make(map[string]int) + if nodes[i].Edges.totalCount[97] == nil { + nodes[i].Edges.totalCount[97] = make(map[string]int) } - nodes[i].Edges.totalCount[95][alias] = n + nodes[i].Edges.totalCount[97][alias] = n } return nil }) @@ -54032,10 +55762,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[98] == nil { + nodes[i].Edges.totalCount[98] = make(map[string]int) } - nodes[i].Edges.totalCount[96][alias] = n + nodes[i].Edges.totalCount[98][alias] = n } return nil }) @@ -54043,10 +55773,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[96] == nil { - nodes[i].Edges.totalCount[96] = make(map[string]int) + if nodes[i].Edges.totalCount[98] == nil { + nodes[i].Edges.totalCount[98] = make(map[string]int) } - nodes[i].Edges.totalCount[96][alias] = n + nodes[i].Edges.totalCount[98][alias] = n } return nil }) @@ -54121,10 +55851,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[99] == nil { + nodes[i].Edges.totalCount[99] = make(map[string]int) } - nodes[i].Edges.totalCount[97][alias] = n + nodes[i].Edges.totalCount[99][alias] = n } return nil }) @@ -54132,10 +55862,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[97] == nil { - nodes[i].Edges.totalCount[97] = make(map[string]int) + if nodes[i].Edges.totalCount[99] == nil { + nodes[i].Edges.totalCount[99] = make(map[string]int) } - nodes[i].Edges.totalCount[97][alias] = n + nodes[i].Edges.totalCount[99][alias] = n } return nil }) @@ -54210,10 +55940,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[100] == nil { + nodes[i].Edges.totalCount[100] = make(map[string]int) } - nodes[i].Edges.totalCount[98][alias] = n + nodes[i].Edges.totalCount[100][alias] = n } return nil }) @@ -54221,10 +55951,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[98] == nil { - nodes[i].Edges.totalCount[98] = make(map[string]int) + if nodes[i].Edges.totalCount[100] == nil { + nodes[i].Edges.totalCount[100] = make(map[string]int) } - nodes[i].Edges.totalCount[98][alias] = n + nodes[i].Edges.totalCount[100][alias] = n } return nil }) @@ -54299,10 +56029,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[101] == nil { + nodes[i].Edges.totalCount[101] = make(map[string]int) } - nodes[i].Edges.totalCount[99][alias] = n + nodes[i].Edges.totalCount[101][alias] = n } return nil }) @@ -54310,10 +56040,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[99] == nil { - nodes[i].Edges.totalCount[99] = make(map[string]int) + if nodes[i].Edges.totalCount[101] == nil { + nodes[i].Edges.totalCount[101] = make(map[string]int) } - nodes[i].Edges.totalCount[99][alias] = n + nodes[i].Edges.totalCount[101][alias] = n } return nil }) @@ -54388,10 +56118,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[102] == nil { + nodes[i].Edges.totalCount[102] = make(map[string]int) } - nodes[i].Edges.totalCount[100][alias] = n + nodes[i].Edges.totalCount[102][alias] = n } return nil }) @@ -54399,10 +56129,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[100] == nil { - nodes[i].Edges.totalCount[100] = make(map[string]int) + if nodes[i].Edges.totalCount[102] == nil { + nodes[i].Edges.totalCount[102] = make(map[string]int) } - nodes[i].Edges.totalCount[100][alias] = n + nodes[i].Edges.totalCount[102][alias] = n } return nil }) @@ -54477,10 +56207,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[103] == nil { + nodes[i].Edges.totalCount[103] = make(map[string]int) } - nodes[i].Edges.totalCount[101][alias] = n + nodes[i].Edges.totalCount[103][alias] = n } return nil }) @@ -54488,10 +56218,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[101] == nil { - nodes[i].Edges.totalCount[101] = make(map[string]int) + if nodes[i].Edges.totalCount[103] == nil { + nodes[i].Edges.totalCount[103] = make(map[string]int) } - nodes[i].Edges.totalCount[101][alias] = n + nodes[i].Edges.totalCount[103][alias] = n } return nil }) @@ -54566,10 +56296,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[104] == nil { + nodes[i].Edges.totalCount[104] = make(map[string]int) } - nodes[i].Edges.totalCount[102][alias] = n + nodes[i].Edges.totalCount[104][alias] = n } return nil }) @@ -54577,10 +56307,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[102] == nil { - nodes[i].Edges.totalCount[102] = make(map[string]int) + if nodes[i].Edges.totalCount[104] == nil { + nodes[i].Edges.totalCount[104] = make(map[string]int) } - nodes[i].Edges.totalCount[102][alias] = n + nodes[i].Edges.totalCount[104][alias] = n } return nil }) @@ -54655,10 +56385,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[103] == nil { - nodes[i].Edges.totalCount[103] = make(map[string]int) + if nodes[i].Edges.totalCount[105] == nil { + nodes[i].Edges.totalCount[105] = make(map[string]int) } - nodes[i].Edges.totalCount[103][alias] = n + nodes[i].Edges.totalCount[105][alias] = n } return nil }) @@ -54666,10 +56396,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[103] == nil { - nodes[i].Edges.totalCount[103] = make(map[string]int) + if nodes[i].Edges.totalCount[105] == nil { + nodes[i].Edges.totalCount[105] = make(map[string]int) } - nodes[i].Edges.totalCount[103][alias] = n + nodes[i].Edges.totalCount[105][alias] = n } return nil }) @@ -54744,10 +56474,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[104] == nil { - nodes[i].Edges.totalCount[104] = make(map[string]int) + if nodes[i].Edges.totalCount[106] == nil { + nodes[i].Edges.totalCount[106] = make(map[string]int) } - nodes[i].Edges.totalCount[104][alias] = n + nodes[i].Edges.totalCount[106][alias] = n } return nil }) @@ -54755,10 +56485,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[104] == nil { - nodes[i].Edges.totalCount[104] = make(map[string]int) + if nodes[i].Edges.totalCount[106] == nil { + nodes[i].Edges.totalCount[106] = make(map[string]int) } - nodes[i].Edges.totalCount[104][alias] = n + nodes[i].Edges.totalCount[106][alias] = n } return nil }) @@ -54833,10 +56563,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[105] == nil { - nodes[i].Edges.totalCount[105] = make(map[string]int) + if nodes[i].Edges.totalCount[107] == nil { + nodes[i].Edges.totalCount[107] = make(map[string]int) } - nodes[i].Edges.totalCount[105][alias] = n + nodes[i].Edges.totalCount[107][alias] = n } return nil }) @@ -54844,10 +56574,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[105] == nil { - nodes[i].Edges.totalCount[105] = make(map[string]int) + if nodes[i].Edges.totalCount[107] == nil { + nodes[i].Edges.totalCount[107] = make(map[string]int) } - nodes[i].Edges.totalCount[105][alias] = n + nodes[i].Edges.totalCount[107][alias] = n } return nil }) @@ -54922,10 +56652,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[106] == nil { - nodes[i].Edges.totalCount[106] = make(map[string]int) + if nodes[i].Edges.totalCount[108] == nil { + nodes[i].Edges.totalCount[108] = make(map[string]int) } - nodes[i].Edges.totalCount[106][alias] = n + nodes[i].Edges.totalCount[108][alias] = n } return nil }) @@ -54933,10 +56663,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[106] == nil { - nodes[i].Edges.totalCount[106] = make(map[string]int) + if nodes[i].Edges.totalCount[108] == nil { + nodes[i].Edges.totalCount[108] = make(map[string]int) } - nodes[i].Edges.totalCount[106][alias] = n + nodes[i].Edges.totalCount[108][alias] = n } return nil }) @@ -55011,10 +56741,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[107] == nil { - nodes[i].Edges.totalCount[107] = make(map[string]int) + if nodes[i].Edges.totalCount[109] == nil { + nodes[i].Edges.totalCount[109] = make(map[string]int) } - nodes[i].Edges.totalCount[107][alias] = n + nodes[i].Edges.totalCount[109][alias] = n } return nil }) @@ -55022,10 +56752,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[107] == nil { - nodes[i].Edges.totalCount[107] = make(map[string]int) + if nodes[i].Edges.totalCount[109] == nil { + nodes[i].Edges.totalCount[109] = make(map[string]int) } - nodes[i].Edges.totalCount[107][alias] = n + nodes[i].Edges.totalCount[109][alias] = n } return nil }) @@ -55100,10 +56830,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[108] == nil { - nodes[i].Edges.totalCount[108] = make(map[string]int) + if nodes[i].Edges.totalCount[110] == nil { + nodes[i].Edges.totalCount[110] = make(map[string]int) } - nodes[i].Edges.totalCount[108][alias] = n + nodes[i].Edges.totalCount[110][alias] = n } return nil }) @@ -55111,10 +56841,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[108] == nil { - nodes[i].Edges.totalCount[108] = make(map[string]int) + if nodes[i].Edges.totalCount[110] == nil { + nodes[i].Edges.totalCount[110] = make(map[string]int) } - nodes[i].Edges.totalCount[108][alias] = n + nodes[i].Edges.totalCount[110][alias] = n } return nil }) @@ -55189,10 +56919,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[109] == nil { - nodes[i].Edges.totalCount[109] = make(map[string]int) + if nodes[i].Edges.totalCount[111] == nil { + nodes[i].Edges.totalCount[111] = make(map[string]int) } - nodes[i].Edges.totalCount[109][alias] = n + nodes[i].Edges.totalCount[111][alias] = n } return nil }) @@ -55200,10 +56930,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[109] == nil { - nodes[i].Edges.totalCount[109] = make(map[string]int) + if nodes[i].Edges.totalCount[111] == nil { + nodes[i].Edges.totalCount[111] = make(map[string]int) } - nodes[i].Edges.totalCount[109][alias] = n + nodes[i].Edges.totalCount[111][alias] = n } return nil }) @@ -55278,10 +57008,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[110] == nil { - nodes[i].Edges.totalCount[110] = make(map[string]int) + if nodes[i].Edges.totalCount[112] == nil { + nodes[i].Edges.totalCount[112] = make(map[string]int) } - nodes[i].Edges.totalCount[110][alias] = n + nodes[i].Edges.totalCount[112][alias] = n } return nil }) @@ -55289,10 +57019,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[110] == nil { - nodes[i].Edges.totalCount[110] = make(map[string]int) + if nodes[i].Edges.totalCount[112] == nil { + nodes[i].Edges.totalCount[112] = make(map[string]int) } - nodes[i].Edges.totalCount[110][alias] = n + nodes[i].Edges.totalCount[112][alias] = n } return nil }) @@ -55367,10 +57097,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[111] == nil { - nodes[i].Edges.totalCount[111] = make(map[string]int) + if nodes[i].Edges.totalCount[113] == nil { + nodes[i].Edges.totalCount[113] = make(map[string]int) } - nodes[i].Edges.totalCount[111][alias] = n + nodes[i].Edges.totalCount[113][alias] = n } return nil }) @@ -55378,10 +57108,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[111] == nil { - nodes[i].Edges.totalCount[111] = make(map[string]int) + if nodes[i].Edges.totalCount[113] == nil { + nodes[i].Edges.totalCount[113] = make(map[string]int) } - nodes[i].Edges.totalCount[111][alias] = n + nodes[i].Edges.totalCount[113][alias] = n } return nil }) @@ -55456,10 +57186,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[112] == nil { - nodes[i].Edges.totalCount[112] = make(map[string]int) + if nodes[i].Edges.totalCount[114] == nil { + nodes[i].Edges.totalCount[114] = make(map[string]int) } - nodes[i].Edges.totalCount[112][alias] = n + nodes[i].Edges.totalCount[114][alias] = n } return nil }) @@ -55467,10 +57197,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[112] == nil { - nodes[i].Edges.totalCount[112] = make(map[string]int) + if nodes[i].Edges.totalCount[114] == nil { + nodes[i].Edges.totalCount[114] = make(map[string]int) } - nodes[i].Edges.totalCount[112][alias] = n + nodes[i].Edges.totalCount[114][alias] = n } return nil }) @@ -55545,10 +57275,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[113] == nil { - nodes[i].Edges.totalCount[113] = make(map[string]int) + if nodes[i].Edges.totalCount[115] == nil { + nodes[i].Edges.totalCount[115] = make(map[string]int) } - nodes[i].Edges.totalCount[113][alias] = n + nodes[i].Edges.totalCount[115][alias] = n } return nil }) @@ -55556,10 +57286,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[113] == nil { - nodes[i].Edges.totalCount[113] = make(map[string]int) + if nodes[i].Edges.totalCount[115] == nil { + nodes[i].Edges.totalCount[115] = make(map[string]int) } - nodes[i].Edges.totalCount[113][alias] = n + nodes[i].Edges.totalCount[115][alias] = n } return nil }) @@ -55634,10 +57364,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[114] == nil { - nodes[i].Edges.totalCount[114] = make(map[string]int) + if nodes[i].Edges.totalCount[116] == nil { + nodes[i].Edges.totalCount[116] = make(map[string]int) } - nodes[i].Edges.totalCount[114][alias] = n + nodes[i].Edges.totalCount[116][alias] = n } return nil }) @@ -55645,10 +57375,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[114] == nil { - nodes[i].Edges.totalCount[114] = make(map[string]int) + if nodes[i].Edges.totalCount[116] == nil { + nodes[i].Edges.totalCount[116] = make(map[string]int) } - nodes[i].Edges.totalCount[114][alias] = n + nodes[i].Edges.totalCount[116][alias] = n } return nil }) @@ -55723,10 +57453,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[115] == nil { - nodes[i].Edges.totalCount[115] = make(map[string]int) + if nodes[i].Edges.totalCount[117] == nil { + nodes[i].Edges.totalCount[117] = make(map[string]int) } - nodes[i].Edges.totalCount[115][alias] = n + nodes[i].Edges.totalCount[117][alias] = n } return nil }) @@ -55734,10 +57464,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[115] == nil { - nodes[i].Edges.totalCount[115] = make(map[string]int) + if nodes[i].Edges.totalCount[117] == nil { + nodes[i].Edges.totalCount[117] = make(map[string]int) } - nodes[i].Edges.totalCount[115][alias] = n + nodes[i].Edges.totalCount[117][alias] = n } return nil }) @@ -55812,10 +57542,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[116] == nil { - nodes[i].Edges.totalCount[116] = make(map[string]int) + if nodes[i].Edges.totalCount[118] == nil { + nodes[i].Edges.totalCount[118] = make(map[string]int) } - nodes[i].Edges.totalCount[116][alias] = n + nodes[i].Edges.totalCount[118][alias] = n } return nil }) @@ -55823,10 +57553,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[116] == nil { - nodes[i].Edges.totalCount[116] = make(map[string]int) + if nodes[i].Edges.totalCount[118] == nil { + nodes[i].Edges.totalCount[118] = make(map[string]int) } - nodes[i].Edges.totalCount[116][alias] = n + nodes[i].Edges.totalCount[118][alias] = n } return nil }) @@ -55890,9 +57620,187 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ActionPlansColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ActionPlansColumn), ids...)) + }) + if err := query.GroupBy(organization.ActionPlansColumn).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[119] == nil { + nodes[i].Edges.totalCount[119] = make(map[string]int) + } + nodes[i].Edges.totalCount[119][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.ActionPlans) + if nodes[i].Edges.totalCount[119] == nil { + nodes[i].Edges.totalCount[119] = make(map[string]int) + } + nodes[i].Edges.totalCount[119][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, actionplanImplementors)...); 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.ActionPlansColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedActionPlans(alias, func(wq *ActionPlanQuery) { + *wq = *query + }) + + case "customDomains": + var ( + alias = field.Alias + path = append(path, alias) + query = (&CustomDomainClient{config: _q.config}).Query() + ) + args := newCustomDomainPaginateArgs(fieldArgs(ctx, new(CustomDomainWhereInput), 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 := newCustomDomainPager(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:"owner_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.CustomDomainsColumn), ids...)) + }) + if err := query.GroupBy(organization.CustomDomainsColumn).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[120] == nil { + nodes[i].Edges.totalCount[120] = make(map[string]int) + } + nodes[i].Edges.totalCount[120][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.CustomDomains) + if nodes[i].Edges.totalCount[120] == nil { + nodes[i].Edges.totalCount[120] = make(map[string]int) + } + nodes[i].Edges.totalCount[120][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, customdomainImplementors)...); 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.CustomDomainsColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedCustomDomains(alias, func(wq *CustomDomainQuery) { + *wq = *query + }) + + case "dnsVerifications": + var ( + alias = field.Alias + path = append(path, alias) + query = (&DNSVerificationClient{config: _q.config}).Query() + ) + args := newDNSVerificationPaginateArgs(fieldArgs(ctx, new(DNSVerificationWhereInput), 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 := newDNSVerificationPager(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:"owner_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.DNSVerificationsColumn), ids...)) }) - if err := query.GroupBy(organization.ActionPlansColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.DNSVerificationsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -55901,21 +57809,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[117] == nil { - nodes[i].Edges.totalCount[117] = make(map[string]int) + if nodes[i].Edges.totalCount[121] == nil { + nodes[i].Edges.totalCount[121] = make(map[string]int) } - nodes[i].Edges.totalCount[117][alias] = n + nodes[i].Edges.totalCount[121][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.ActionPlans) - if nodes[i].Edges.totalCount[117] == nil { - nodes[i].Edges.totalCount[117] = make(map[string]int) + n := len(nodes[i].Edges.DNSVerifications) + if nodes[i].Edges.totalCount[121] == nil { + nodes[i].Edges.totalCount[121] = make(map[string]int) } - nodes[i].Edges.totalCount[117][alias] = n + nodes[i].Edges.totalCount[121][alias] = n } return nil }) @@ -55929,7 +57837,7 @@ 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, actionplanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, dnsverificationImplementors)...); err != nil { return err } } @@ -55937,27 +57845,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ActionPlansColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.DNSVerificationsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedActionPlans(alias, func(wq *ActionPlanQuery) { + _q.WithNamedDNSVerifications(alias, func(wq *DNSVerificationQuery) { *wq = *query }) - case "customDomains": + case "trustCenters": var ( alias = field.Alias path = append(path, alias) - query = (&CustomDomainClient{config: _q.config}).Query() + query = (&TrustCenterClient{config: _q.config}).Query() ) - args := newCustomDomainPaginateArgs(fieldArgs(ctx, new(CustomDomainWhereInput), path...)) + args := newTrustCenterPaginateArgs(fieldArgs(ctx, new(TrustCenterWhereInput), 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 := newCustomDomainPager(args.opts, args.last != nil) + pager, err := newTrustCenterPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -55979,9 +57887,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.CustomDomainsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.TrustCentersColumn), ids...)) }) - if err := query.GroupBy(organization.CustomDomainsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.TrustCentersColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -55990,21 +57898,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[118] == nil { - nodes[i].Edges.totalCount[118] = make(map[string]int) + if nodes[i].Edges.totalCount[122] == nil { + nodes[i].Edges.totalCount[122] = make(map[string]int) } - nodes[i].Edges.totalCount[118][alias] = n + nodes[i].Edges.totalCount[122][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.CustomDomains) - if nodes[i].Edges.totalCount[118] == nil { - nodes[i].Edges.totalCount[118] = make(map[string]int) + n := len(nodes[i].Edges.TrustCenters) + if nodes[i].Edges.totalCount[122] == nil { + nodes[i].Edges.totalCount[122] = make(map[string]int) } - nodes[i].Edges.totalCount[118][alias] = n + nodes[i].Edges.totalCount[122][alias] = n } return nil }) @@ -56018,7 +57926,7 @@ 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, customdomainImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, trustcenterImplementors)...); err != nil { return err } } @@ -56026,27 +57934,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.CustomDomainsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.TrustCentersColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedCustomDomains(alias, func(wq *CustomDomainQuery) { + _q.WithNamedTrustCenters(alias, func(wq *TrustCenterQuery) { *wq = *query }) - case "dnsVerifications": + case "assets": var ( alias = field.Alias path = append(path, alias) - query = (&DNSVerificationClient{config: _q.config}).Query() + query = (&AssetClient{config: _q.config}).Query() ) - args := newDNSVerificationPaginateArgs(fieldArgs(ctx, new(DNSVerificationWhereInput), path...)) + args := newAssetPaginateArgs(fieldArgs(ctx, new(AssetWhereInput), 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 := newDNSVerificationPager(args.opts, args.last != nil) + pager, err := newAssetPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56068,9 +57976,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.DNSVerificationsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AssetsColumn), ids...)) }) - if err := query.GroupBy(organization.DNSVerificationsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AssetsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56079,21 +57987,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[119] == nil { - nodes[i].Edges.totalCount[119] = make(map[string]int) + if nodes[i].Edges.totalCount[123] == nil { + nodes[i].Edges.totalCount[123] = make(map[string]int) } - nodes[i].Edges.totalCount[119][alias] = n + nodes[i].Edges.totalCount[123][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.DNSVerifications) - if nodes[i].Edges.totalCount[119] == nil { - nodes[i].Edges.totalCount[119] = make(map[string]int) + n := len(nodes[i].Edges.Assets) + if nodes[i].Edges.totalCount[123] == nil { + nodes[i].Edges.totalCount[123] = make(map[string]int) } - nodes[i].Edges.totalCount[119][alias] = n + nodes[i].Edges.totalCount[123][alias] = n } return nil }) @@ -56107,7 +58015,7 @@ 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, dnsverificationImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, assetImplementors)...); err != nil { return err } } @@ -56115,27 +58023,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.DNSVerificationsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AssetsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedDNSVerifications(alias, func(wq *DNSVerificationQuery) { + _q.WithNamedAssets(alias, func(wq *AssetQuery) { *wq = *query }) - case "trustCenters": + case "scans": var ( alias = field.Alias path = append(path, alias) - query = (&TrustCenterClient{config: _q.config}).Query() + query = (&ScanClient{config: _q.config}).Query() ) - args := newTrustCenterPaginateArgs(fieldArgs(ctx, new(TrustCenterWhereInput), path...)) + args := newScanPaginateArgs(fieldArgs(ctx, new(ScanWhereInput), 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 := newTrustCenterPager(args.opts, args.last != nil) + pager, err := newScanPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56157,9 +58065,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.TrustCentersColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ScansColumn), ids...)) }) - if err := query.GroupBy(organization.TrustCentersColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ScansColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56168,21 +58076,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[120] == nil { - nodes[i].Edges.totalCount[120] = make(map[string]int) + if nodes[i].Edges.totalCount[124] == nil { + nodes[i].Edges.totalCount[124] = make(map[string]int) } - nodes[i].Edges.totalCount[120][alias] = n + nodes[i].Edges.totalCount[124][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.TrustCenters) - if nodes[i].Edges.totalCount[120] == nil { - nodes[i].Edges.totalCount[120] = make(map[string]int) + n := len(nodes[i].Edges.Scans) + if nodes[i].Edges.totalCount[124] == nil { + nodes[i].Edges.totalCount[124] = make(map[string]int) } - nodes[i].Edges.totalCount[120][alias] = n + nodes[i].Edges.totalCount[124][alias] = n } return nil }) @@ -56196,7 +58104,7 @@ 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, trustcenterImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, scanImplementors)...); err != nil { return err } } @@ -56204,27 +58112,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.TrustCentersColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ScansColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedTrustCenters(alias, func(wq *TrustCenterQuery) { + _q.WithNamedScans(alias, func(wq *ScanQuery) { *wq = *query }) - case "assets": + case "slaDefinitions": var ( alias = field.Alias path = append(path, alias) - query = (&AssetClient{config: _q.config}).Query() + query = (&SLADefinitionClient{config: _q.config}).Query() ) - args := newAssetPaginateArgs(fieldArgs(ctx, new(AssetWhereInput), path...)) + args := newSLADefinitionPaginateArgs(fieldArgs(ctx, new(SLADefinitionWhereInput), 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 := newAssetPager(args.opts, args.last != nil) + pager, err := newSLADefinitionPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56246,9 +58154,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.AssetsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SLADefinitionsColumn), ids...)) }) - if err := query.GroupBy(organization.AssetsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SLADefinitionsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56257,21 +58165,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[121] == nil { - nodes[i].Edges.totalCount[121] = make(map[string]int) + if nodes[i].Edges.totalCount[125] == nil { + nodes[i].Edges.totalCount[125] = make(map[string]int) } - nodes[i].Edges.totalCount[121][alias] = n + nodes[i].Edges.totalCount[125][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.Assets) - if nodes[i].Edges.totalCount[121] == nil { - nodes[i].Edges.totalCount[121] = make(map[string]int) + n := len(nodes[i].Edges.SLADefinitions) + if nodes[i].Edges.totalCount[125] == nil { + nodes[i].Edges.totalCount[125] = make(map[string]int) } - nodes[i].Edges.totalCount[121][alias] = n + nodes[i].Edges.totalCount[125][alias] = n } return nil }) @@ -56285,7 +58193,7 @@ 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, assetImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, sladefinitionImplementors)...); err != nil { return err } } @@ -56293,27 +58201,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.AssetsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SLADefinitionsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedAssets(alias, func(wq *AssetQuery) { + _q.WithNamedSLADefinitions(alias, func(wq *SLADefinitionQuery) { *wq = *query }) - case "scans": + case "subprocessors": var ( alias = field.Alias path = append(path, alias) - query = (&ScanClient{config: _q.config}).Query() + query = (&SubprocessorClient{config: _q.config}).Query() ) - args := newScanPaginateArgs(fieldArgs(ctx, new(ScanWhereInput), path...)) + args := newSubprocessorPaginateArgs(fieldArgs(ctx, new(SubprocessorWhereInput), 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 := newScanPager(args.opts, args.last != nil) + pager, err := newSubprocessorPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56335,9 +58243,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ScansColumn), ids...)) + s.Where(sql.InValues(s.C(organization.SubprocessorsColumn), ids...)) }) - if err := query.GroupBy(organization.ScansColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.SubprocessorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56346,21 +58254,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[122] == nil { - nodes[i].Edges.totalCount[122] = make(map[string]int) + if nodes[i].Edges.totalCount[126] == nil { + nodes[i].Edges.totalCount[126] = make(map[string]int) } - nodes[i].Edges.totalCount[122][alias] = n + nodes[i].Edges.totalCount[126][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.Scans) - if nodes[i].Edges.totalCount[122] == nil { - nodes[i].Edges.totalCount[122] = make(map[string]int) + n := len(nodes[i].Edges.Subprocessors) + if nodes[i].Edges.totalCount[126] == nil { + nodes[i].Edges.totalCount[126] = make(map[string]int) } - nodes[i].Edges.totalCount[122][alias] = n + nodes[i].Edges.totalCount[126][alias] = n } return nil }) @@ -56374,7 +58282,7 @@ 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, scanImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, subprocessorImplementors)...); err != nil { return err } } @@ -56382,27 +58290,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ScansColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.SubprocessorsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedScans(alias, func(wq *ScanQuery) { + _q.WithNamedSubprocessors(alias, func(wq *SubprocessorQuery) { *wq = *query }) - case "slaDefinitions": + case "exports": var ( alias = field.Alias path = append(path, alias) - query = (&SLADefinitionClient{config: _q.config}).Query() + query = (&ExportClient{config: _q.config}).Query() ) - args := newSLADefinitionPaginateArgs(fieldArgs(ctx, new(SLADefinitionWhereInput), path...)) + args := newExportPaginateArgs(fieldArgs(ctx, new(ExportWhereInput), 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 := newSLADefinitionPager(args.opts, args.last != nil) + pager, err := newExportPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56424,9 +58332,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SLADefinitionsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.ExportsColumn), ids...)) }) - if err := query.GroupBy(organization.SLADefinitionsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.ExportsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56435,21 +58343,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[123] == nil { - nodes[i].Edges.totalCount[123] = make(map[string]int) + if nodes[i].Edges.totalCount[127] == nil { + nodes[i].Edges.totalCount[127] = make(map[string]int) } - nodes[i].Edges.totalCount[123][alias] = n + nodes[i].Edges.totalCount[127][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.SLADefinitions) - if nodes[i].Edges.totalCount[123] == nil { - nodes[i].Edges.totalCount[123] = make(map[string]int) + n := len(nodes[i].Edges.Exports) + if nodes[i].Edges.totalCount[127] == nil { + nodes[i].Edges.totalCount[127] = make(map[string]int) } - nodes[i].Edges.totalCount[123][alias] = n + nodes[i].Edges.totalCount[127][alias] = n } return nil }) @@ -56463,7 +58371,7 @@ 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, sladefinitionImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, exportImplementors)...); err != nil { return err } } @@ -56471,27 +58379,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SLADefinitionsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.ExportsColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSLADefinitions(alias, func(wq *SLADefinitionQuery) { + _q.WithNamedExports(alias, func(wq *ExportQuery) { *wq = *query }) - case "subprocessors": + case "audiences": var ( alias = field.Alias path = append(path, alias) - query = (&SubprocessorClient{config: _q.config}).Query() + query = (&AudienceClient{config: _q.config}).Query() ) - args := newSubprocessorPaginateArgs(fieldArgs(ctx, new(SubprocessorWhereInput), path...)) + args := newAudiencePaginateArgs(fieldArgs(ctx, new(AudienceWhereInput), 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 := newSubprocessorPager(args.opts, args.last != nil) + pager, err := newAudiencePager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56513,9 +58421,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.SubprocessorsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AudiencesColumn), ids...)) }) - if err := query.GroupBy(organization.SubprocessorsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AudiencesColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56524,21 +58432,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[124] == nil { - nodes[i].Edges.totalCount[124] = make(map[string]int) + if nodes[i].Edges.totalCount[128] == nil { + nodes[i].Edges.totalCount[128] = make(map[string]int) } - nodes[i].Edges.totalCount[124][alias] = n + nodes[i].Edges.totalCount[128][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.Subprocessors) - if nodes[i].Edges.totalCount[124] == nil { - nodes[i].Edges.totalCount[124] = make(map[string]int) + n := len(nodes[i].Edges.Audiences) + if nodes[i].Edges.totalCount[128] == nil { + nodes[i].Edges.totalCount[128] = make(map[string]int) } - nodes[i].Edges.totalCount[124][alias] = n + nodes[i].Edges.totalCount[128][alias] = n } return nil }) @@ -56552,7 +58460,7 @@ 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, subprocessorImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audienceImplementors)...); err != nil { return err } } @@ -56560,27 +58468,27 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.SubprocessorsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AudiencesColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedSubprocessors(alias, func(wq *SubprocessorQuery) { + _q.WithNamedAudiences(alias, func(wq *AudienceQuery) { *wq = *query }) - case "exports": + case "audienceMembers": var ( alias = field.Alias path = append(path, alias) - query = (&ExportClient{config: _q.config}).Query() + query = (&AudienceMemberClient{config: _q.config}).Query() ) - args := newExportPaginateArgs(fieldArgs(ctx, new(ExportWhereInput), path...)) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newExportPager(args.opts, args.last != nil) + pager, err := newAudienceMemberPager(args.opts, args.last != nil) if err != nil { return fmt.Errorf("create new pager in path %q: %w", path, err) } @@ -56602,9 +58510,9 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC Count int `sql:"count"` } query.Where(func(s *sql.Selector) { - s.Where(sql.InValues(s.C(organization.ExportsColumn), ids...)) + s.Where(sql.InValues(s.C(organization.AudienceMembersColumn), ids...)) }) - if err := query.GroupBy(organization.ExportsColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { + if err := query.GroupBy(organization.AudienceMembersColumn).Aggregate(Count()).Scan(ctx, &v); err != nil { return err } m := make(map[string]int, len(v)) @@ -56613,21 +58521,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[125] == nil { - nodes[i].Edges.totalCount[125] = make(map[string]int) + if nodes[i].Edges.totalCount[129] == nil { + nodes[i].Edges.totalCount[129] = make(map[string]int) } - nodes[i].Edges.totalCount[125][alias] = n + nodes[i].Edges.totalCount[129][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.Exports) - if nodes[i].Edges.totalCount[125] == nil { - nodes[i].Edges.totalCount[125] = make(map[string]int) + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[129] == nil { + nodes[i].Edges.totalCount[129] = make(map[string]int) } - nodes[i].Edges.totalCount[125][alias] = n + nodes[i].Edges.totalCount[129][alias] = n } return nil }) @@ -56641,7 +58549,7 @@ 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, exportImplementors)...); err != nil { + if err := query.collectField(ctx, false, opCtx, *field, path, mayAddCondition(satisfies, audiencememberImplementors)...); err != nil { return err } } @@ -56649,13 +58557,13 @@ func (_q *OrganizationQuery) collectField(ctx context.Context, oneNode bool, opC if oneNode { pager.applyOrder(query.Limit(limit)) } else { - modify := entgql.LimitPerRow(organization.ExportsColumn, limit, pager.orderExpr(query)) + modify := entgql.LimitPerRow(organization.AudienceMembersColumn, limit, pager.orderExpr(query)) query.modifiers = append(query.modifiers, modify) } } else { query = pager.applyOrder(query) } - _q.WithNamedExports(alias, func(wq *ExportQuery) { + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { *wq = *query }) @@ -56702,10 +58610,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[126] == nil { - nodes[i].Edges.totalCount[126] = make(map[string]int) + if nodes[i].Edges.totalCount[130] == nil { + nodes[i].Edges.totalCount[130] = make(map[string]int) } - nodes[i].Edges.totalCount[126][alias] = n + nodes[i].Edges.totalCount[130][alias] = n } return nil }) @@ -56713,10 +58621,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[126] == nil { - nodes[i].Edges.totalCount[126] = make(map[string]int) + if nodes[i].Edges.totalCount[130] == nil { + nodes[i].Edges.totalCount[130] = make(map[string]int) } - nodes[i].Edges.totalCount[126][alias] = n + nodes[i].Edges.totalCount[130][alias] = n } return nil }) @@ -56791,10 +58699,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[127] == nil { - nodes[i].Edges.totalCount[127] = make(map[string]int) + if nodes[i].Edges.totalCount[131] == nil { + nodes[i].Edges.totalCount[131] = make(map[string]int) } - nodes[i].Edges.totalCount[127][alias] = n + nodes[i].Edges.totalCount[131][alias] = n } return nil }) @@ -56802,10 +58710,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[127] == nil { - nodes[i].Edges.totalCount[127] = make(map[string]int) + if nodes[i].Edges.totalCount[131] == nil { + nodes[i].Edges.totalCount[131] = make(map[string]int) } - nodes[i].Edges.totalCount[127][alias] = n + nodes[i].Edges.totalCount[131][alias] = n } return nil }) @@ -56880,10 +58788,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[128] == nil { - nodes[i].Edges.totalCount[128] = make(map[string]int) + if nodes[i].Edges.totalCount[132] == nil { + nodes[i].Edges.totalCount[132] = make(map[string]int) } - nodes[i].Edges.totalCount[128][alias] = n + nodes[i].Edges.totalCount[132][alias] = n } return nil }) @@ -56891,10 +58799,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[128] == nil { - nodes[i].Edges.totalCount[128] = make(map[string]int) + if nodes[i].Edges.totalCount[132] == nil { + nodes[i].Edges.totalCount[132] = make(map[string]int) } - nodes[i].Edges.totalCount[128][alias] = n + nodes[i].Edges.totalCount[132][alias] = n } return nil }) @@ -56969,10 +58877,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[129] == nil { - nodes[i].Edges.totalCount[129] = make(map[string]int) + if nodes[i].Edges.totalCount[133] == nil { + nodes[i].Edges.totalCount[133] = make(map[string]int) } - nodes[i].Edges.totalCount[129][alias] = n + nodes[i].Edges.totalCount[133][alias] = n } return nil }) @@ -56980,10 +58888,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[129] == nil { - nodes[i].Edges.totalCount[129] = make(map[string]int) + if nodes[i].Edges.totalCount[133] == nil { + nodes[i].Edges.totalCount[133] = make(map[string]int) } - nodes[i].Edges.totalCount[129][alias] = n + nodes[i].Edges.totalCount[133][alias] = n } return nil }) @@ -57058,10 +58966,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[130] == nil { - nodes[i].Edges.totalCount[130] = make(map[string]int) + if nodes[i].Edges.totalCount[134] == nil { + nodes[i].Edges.totalCount[134] = make(map[string]int) } - nodes[i].Edges.totalCount[130][alias] = n + nodes[i].Edges.totalCount[134][alias] = n } return nil }) @@ -57069,10 +58977,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[130] == nil { - nodes[i].Edges.totalCount[130] = make(map[string]int) + if nodes[i].Edges.totalCount[134] == nil { + nodes[i].Edges.totalCount[134] = make(map[string]int) } - nodes[i].Edges.totalCount[130][alias] = n + nodes[i].Edges.totalCount[134][alias] = n } return nil }) @@ -57147,10 +59055,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[131] == nil { - nodes[i].Edges.totalCount[131] = make(map[string]int) + if nodes[i].Edges.totalCount[135] == nil { + nodes[i].Edges.totalCount[135] = make(map[string]int) } - nodes[i].Edges.totalCount[131][alias] = n + nodes[i].Edges.totalCount[135][alias] = n } return nil }) @@ -57158,10 +59066,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[131] == nil { - nodes[i].Edges.totalCount[131] = make(map[string]int) + if nodes[i].Edges.totalCount[135] == nil { + nodes[i].Edges.totalCount[135] = make(map[string]int) } - nodes[i].Edges.totalCount[131][alias] = n + nodes[i].Edges.totalCount[135][alias] = n } return nil }) @@ -57236,10 +59144,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[132] == nil { - nodes[i].Edges.totalCount[132] = make(map[string]int) + if nodes[i].Edges.totalCount[136] == nil { + nodes[i].Edges.totalCount[136] = make(map[string]int) } - nodes[i].Edges.totalCount[132][alias] = n + nodes[i].Edges.totalCount[136][alias] = n } return nil }) @@ -57247,10 +59155,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[132] == nil { - nodes[i].Edges.totalCount[132] = make(map[string]int) + if nodes[i].Edges.totalCount[136] == nil { + nodes[i].Edges.totalCount[136] = make(map[string]int) } - nodes[i].Edges.totalCount[132][alias] = n + nodes[i].Edges.totalCount[136][alias] = n } return nil }) @@ -57325,10 +59233,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[133] == nil { - nodes[i].Edges.totalCount[133] = make(map[string]int) + if nodes[i].Edges.totalCount[137] == nil { + nodes[i].Edges.totalCount[137] = make(map[string]int) } - nodes[i].Edges.totalCount[133][alias] = n + nodes[i].Edges.totalCount[137][alias] = n } return nil }) @@ -57336,10 +59244,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.FindingControls) - if nodes[i].Edges.totalCount[133] == nil { - nodes[i].Edges.totalCount[133] = make(map[string]int) + if nodes[i].Edges.totalCount[137] == nil { + nodes[i].Edges.totalCount[137] = make(map[string]int) } - nodes[i].Edges.totalCount[133][alias] = n + nodes[i].Edges.totalCount[137][alias] = n } return nil }) @@ -57414,10 +59322,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[134] == nil { - nodes[i].Edges.totalCount[134] = make(map[string]int) + if nodes[i].Edges.totalCount[138] == nil { + nodes[i].Edges.totalCount[138] = make(map[string]int) } - nodes[i].Edges.totalCount[134][alias] = n + nodes[i].Edges.totalCount[138][alias] = n } return nil }) @@ -57425,10 +59333,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[134] == nil { - nodes[i].Edges.totalCount[134] = make(map[string]int) + if nodes[i].Edges.totalCount[138] == nil { + nodes[i].Edges.totalCount[138] = make(map[string]int) } - nodes[i].Edges.totalCount[134][alias] = n + nodes[i].Edges.totalCount[138][alias] = n } return nil }) @@ -57503,10 +59411,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[135] == nil { - nodes[i].Edges.totalCount[135] = make(map[string]int) + if nodes[i].Edges.totalCount[139] == nil { + nodes[i].Edges.totalCount[139] = make(map[string]int) } - nodes[i].Edges.totalCount[135][alias] = n + nodes[i].Edges.totalCount[139][alias] = n } return nil }) @@ -57514,10 +59422,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[135] == nil { - nodes[i].Edges.totalCount[135] = make(map[string]int) + if nodes[i].Edges.totalCount[139] == nil { + nodes[i].Edges.totalCount[139] = make(map[string]int) } - nodes[i].Edges.totalCount[135][alias] = n + nodes[i].Edges.totalCount[139][alias] = n } return nil }) @@ -57592,10 +59500,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[136] == nil { - nodes[i].Edges.totalCount[136] = make(map[string]int) + if nodes[i].Edges.totalCount[140] == nil { + nodes[i].Edges.totalCount[140] = make(map[string]int) } - nodes[i].Edges.totalCount[136][alias] = n + nodes[i].Edges.totalCount[140][alias] = n } return nil }) @@ -57603,10 +59511,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[136] == nil { - nodes[i].Edges.totalCount[136] = make(map[string]int) + if nodes[i].Edges.totalCount[140] == nil { + nodes[i].Edges.totalCount[140] = make(map[string]int) } - nodes[i].Edges.totalCount[136][alias] = n + nodes[i].Edges.totalCount[140][alias] = n } return nil }) @@ -57681,10 +59589,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[137] == nil { - nodes[i].Edges.totalCount[137] = make(map[string]int) + if nodes[i].Edges.totalCount[141] == nil { + nodes[i].Edges.totalCount[141] = make(map[string]int) } - nodes[i].Edges.totalCount[137][alias] = n + nodes[i].Edges.totalCount[141][alias] = n } return nil }) @@ -57692,10 +59600,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[137] == nil { - nodes[i].Edges.totalCount[137] = make(map[string]int) + if nodes[i].Edges.totalCount[141] == nil { + nodes[i].Edges.totalCount[141] = make(map[string]int) } - nodes[i].Edges.totalCount[137][alias] = n + nodes[i].Edges.totalCount[141][alias] = n } return nil }) @@ -57770,10 +59678,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[138] == nil { - nodes[i].Edges.totalCount[138] = make(map[string]int) + if nodes[i].Edges.totalCount[142] == nil { + nodes[i].Edges.totalCount[142] = make(map[string]int) } - nodes[i].Edges.totalCount[138][alias] = n + nodes[i].Edges.totalCount[142][alias] = n } return nil }) @@ -57781,10 +59689,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[138] == nil { - nodes[i].Edges.totalCount[138] = make(map[string]int) + if nodes[i].Edges.totalCount[142] == nil { + nodes[i].Edges.totalCount[142] = make(map[string]int) } - nodes[i].Edges.totalCount[138][alias] = n + nodes[i].Edges.totalCount[142][alias] = n } return nil }) @@ -57859,10 +59767,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[139] == nil { - nodes[i].Edges.totalCount[139] = make(map[string]int) + if nodes[i].Edges.totalCount[143] == nil { + nodes[i].Edges.totalCount[143] = make(map[string]int) } - nodes[i].Edges.totalCount[139][alias] = n + nodes[i].Edges.totalCount[143][alias] = n } return nil }) @@ -57870,10 +59778,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[139] == nil { - nodes[i].Edges.totalCount[139] = make(map[string]int) + if nodes[i].Edges.totalCount[143] == nil { + nodes[i].Edges.totalCount[143] = make(map[string]int) } - nodes[i].Edges.totalCount[139][alias] = n + nodes[i].Edges.totalCount[143][alias] = n } return nil }) @@ -57948,10 +59856,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[140] == nil { - nodes[i].Edges.totalCount[140] = make(map[string]int) + if nodes[i].Edges.totalCount[144] == nil { + nodes[i].Edges.totalCount[144] = make(map[string]int) } - nodes[i].Edges.totalCount[140][alias] = n + nodes[i].Edges.totalCount[144][alias] = n } return nil }) @@ -57959,10 +59867,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[140] == nil { - nodes[i].Edges.totalCount[140] = make(map[string]int) + if nodes[i].Edges.totalCount[144] == nil { + nodes[i].Edges.totalCount[144] = make(map[string]int) } - nodes[i].Edges.totalCount[140][alias] = n + nodes[i].Edges.totalCount[144][alias] = n } return nil }) @@ -58037,10 +59945,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[141] == nil { - nodes[i].Edges.totalCount[141] = make(map[string]int) + if nodes[i].Edges.totalCount[145] == nil { + nodes[i].Edges.totalCount[145] = make(map[string]int) } - nodes[i].Edges.totalCount[141][alias] = n + nodes[i].Edges.totalCount[145][alias] = n } return nil }) @@ -58048,10 +59956,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[141] == nil { - nodes[i].Edges.totalCount[141] = make(map[string]int) + if nodes[i].Edges.totalCount[145] == nil { + nodes[i].Edges.totalCount[145] = make(map[string]int) } - nodes[i].Edges.totalCount[141][alias] = n + nodes[i].Edges.totalCount[145][alias] = n } return nil }) @@ -58126,10 +60034,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[142] == nil { - nodes[i].Edges.totalCount[142] = make(map[string]int) + if nodes[i].Edges.totalCount[146] == nil { + nodes[i].Edges.totalCount[146] = make(map[string]int) } - nodes[i].Edges.totalCount[142][alias] = n + nodes[i].Edges.totalCount[146][alias] = n } return nil }) @@ -58137,10 +60045,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[142] == nil { - nodes[i].Edges.totalCount[142] = make(map[string]int) + if nodes[i].Edges.totalCount[146] == nil { + nodes[i].Edges.totalCount[146] = make(map[string]int) } - nodes[i].Edges.totalCount[142][alias] = n + nodes[i].Edges.totalCount[146][alias] = n } return nil }) @@ -58215,10 +60123,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[143] == nil { - nodes[i].Edges.totalCount[143] = make(map[string]int) + if nodes[i].Edges.totalCount[147] == nil { + nodes[i].Edges.totalCount[147] = make(map[string]int) } - nodes[i].Edges.totalCount[143][alias] = n + nodes[i].Edges.totalCount[147][alias] = n } return nil }) @@ -58226,10 +60134,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[143] == nil { - nodes[i].Edges.totalCount[143] = make(map[string]int) + if nodes[i].Edges.totalCount[147] == nil { + nodes[i].Edges.totalCount[147] = make(map[string]int) } - nodes[i].Edges.totalCount[143][alias] = n + nodes[i].Edges.totalCount[147][alias] = n } return nil }) @@ -58304,10 +60212,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[144] == nil { - nodes[i].Edges.totalCount[144] = make(map[string]int) + if nodes[i].Edges.totalCount[148] == nil { + nodes[i].Edges.totalCount[148] = make(map[string]int) } - nodes[i].Edges.totalCount[144][alias] = n + nodes[i].Edges.totalCount[148][alias] = n } return nil }) @@ -58315,10 +60223,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[144] == nil { - nodes[i].Edges.totalCount[144] = make(map[string]int) + if nodes[i].Edges.totalCount[148] == nil { + nodes[i].Edges.totalCount[148] = make(map[string]int) } - nodes[i].Edges.totalCount[144][alias] = n + nodes[i].Edges.totalCount[148][alias] = n } return nil }) @@ -58393,10 +60301,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[145] == nil { - nodes[i].Edges.totalCount[145] = make(map[string]int) + if nodes[i].Edges.totalCount[149] == nil { + nodes[i].Edges.totalCount[149] = make(map[string]int) } - nodes[i].Edges.totalCount[145][alias] = n + nodes[i].Edges.totalCount[149][alias] = n } return nil }) @@ -58404,10 +60312,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[145] == nil { - nodes[i].Edges.totalCount[145] = make(map[string]int) + if nodes[i].Edges.totalCount[149] == nil { + nodes[i].Edges.totalCount[149] = make(map[string]int) } - nodes[i].Edges.totalCount[145][alias] = n + nodes[i].Edges.totalCount[149][alias] = n } return nil }) @@ -58482,10 +60390,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[146] == nil { - nodes[i].Edges.totalCount[146] = make(map[string]int) + if nodes[i].Edges.totalCount[150] == nil { + nodes[i].Edges.totalCount[150] = make(map[string]int) } - nodes[i].Edges.totalCount[146][alias] = n + nodes[i].Edges.totalCount[150][alias] = n } return nil }) @@ -58493,10 +60401,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[146] == nil { - nodes[i].Edges.totalCount[146] = make(map[string]int) + if nodes[i].Edges.totalCount[150] == nil { + nodes[i].Edges.totalCount[150] = make(map[string]int) } - nodes[i].Edges.totalCount[146][alias] = n + nodes[i].Edges.totalCount[150][alias] = n } return nil }) @@ -58571,10 +60479,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[147] == nil { - nodes[i].Edges.totalCount[147] = make(map[string]int) + if nodes[i].Edges.totalCount[151] == nil { + nodes[i].Edges.totalCount[151] = make(map[string]int) } - nodes[i].Edges.totalCount[147][alias] = n + nodes[i].Edges.totalCount[151][alias] = n } return nil }) @@ -58582,10 +60490,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[147] == nil { - nodes[i].Edges.totalCount[147] = make(map[string]int) + if nodes[i].Edges.totalCount[151] == nil { + nodes[i].Edges.totalCount[151] = make(map[string]int) } - nodes[i].Edges.totalCount[147][alias] = n + nodes[i].Edges.totalCount[151][alias] = n } return nil }) @@ -58660,10 +60568,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[148] == nil { - nodes[i].Edges.totalCount[148] = make(map[string]int) + if nodes[i].Edges.totalCount[152] == nil { + nodes[i].Edges.totalCount[152] = make(map[string]int) } - nodes[i].Edges.totalCount[148][alias] = n + nodes[i].Edges.totalCount[152][alias] = n } return nil }) @@ -58671,10 +60579,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[148] == nil { - nodes[i].Edges.totalCount[148] = make(map[string]int) + if nodes[i].Edges.totalCount[152] == nil { + nodes[i].Edges.totalCount[152] = make(map[string]int) } - nodes[i].Edges.totalCount[148][alias] = n + nodes[i].Edges.totalCount[152][alias] = n } return nil }) @@ -58749,10 +60657,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[149] == nil { - nodes[i].Edges.totalCount[149] = make(map[string]int) + if nodes[i].Edges.totalCount[153] == nil { + nodes[i].Edges.totalCount[153] = make(map[string]int) } - nodes[i].Edges.totalCount[149][alias] = n + nodes[i].Edges.totalCount[153][alias] = n } return nil }) @@ -58760,10 +60668,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[149] == nil { - nodes[i].Edges.totalCount[149] = make(map[string]int) + if nodes[i].Edges.totalCount[153] == nil { + nodes[i].Edges.totalCount[153] = make(map[string]int) } - nodes[i].Edges.totalCount[149][alias] = n + nodes[i].Edges.totalCount[153][alias] = n } return nil }) @@ -78669,6 +80577,95 @@ func (_q *SubscriberQuery) collectField(ctx context.Context, oneNode bool, opCtx selectedFields = append(selectedFields, subscriber.FieldUserID) fieldSeen[subscriber.FieldUserID] = struct{}{} } + + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*Subscriber) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"subscriber_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(subscriber.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(subscriber.AudienceMembersColumn).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[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) + } + nodes[i].Edges.totalCount[6][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*Subscriber) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[6] == nil { + nodes[i].Edges.totalCount[6] = make(map[string]int) + } + nodes[i].Edges.totalCount[6][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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(subscriber.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) case "createdAt": if _, ok := fieldSeen[subscriber.FieldCreatedAt]; !ok { selectedFields = append(selectedFields, subscriber.FieldCreatedAt) @@ -88052,6 +90049,95 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap *wq = *query }) + case "audienceMembers": + var ( + alias = field.Alias + path = append(path, alias) + query = (&AudienceMemberClient{config: _q.config}).Query() + ) + args := newAudienceMemberPaginateArgs(fieldArgs(ctx, new(AudienceMemberWhereInput), 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 := newAudienceMemberPager(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 []*User) error { + ids := make([]driver.Value, len(nodes)) + for i := range nodes { + ids[i] = nodes[i].ID + } + var v []struct { + NodeID string `sql:"user_id"` + Count int `sql:"count"` + } + query.Where(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(user.AudienceMembersColumn), ids...)) + }) + if err := query.GroupBy(user.AudienceMembersColumn).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[12] == nil { + nodes[i].Edges.totalCount[12] = make(map[string]int) + } + nodes[i].Edges.totalCount[12][alias] = n + } + return nil + }) + } else { + _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { + for i := range nodes { + n := len(nodes[i].Edges.AudienceMembers) + if nodes[i].Edges.totalCount[12] == nil { + nodes[i].Edges.totalCount[12] = make(map[string]int) + } + nodes[i].Edges.totalCount[12][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, audiencememberImplementors)...); err != nil { + return err + } + } + if limit := paginateLimit(args.first, args.last); limit > 0 { + if oneNode { + pager.applyOrder(query.Limit(limit)) + } else { + modify := entgql.LimitPerRow(user.AudienceMembersColumn, limit, pager.orderExpr(query)) + query.modifiers = append(query.modifiers, modify) + } + } else { + query = pager.applyOrder(query) + } + _q.WithNamedAudienceMembers(alias, func(wq *AudienceMemberQuery) { + *wq = *query + }) + case "subcontrols": var ( alias = field.Alias @@ -88095,10 +90181,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[12] == nil { - nodes[i].Edges.totalCount[12] = make(map[string]int) + if nodes[i].Edges.totalCount[13] == nil { + nodes[i].Edges.totalCount[13] = make(map[string]int) } - nodes[i].Edges.totalCount[12][alias] = n + nodes[i].Edges.totalCount[13][alias] = n } return nil }) @@ -88106,10 +90192,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.Subcontrols) - if nodes[i].Edges.totalCount[12] == nil { - nodes[i].Edges.totalCount[12] = make(map[string]int) + if nodes[i].Edges.totalCount[13] == nil { + nodes[i].Edges.totalCount[13] = make(map[string]int) } - nodes[i].Edges.totalCount[12][alias] = n + nodes[i].Edges.totalCount[13][alias] = n } return nil }) @@ -88184,10 +90270,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[13] == nil { - nodes[i].Edges.totalCount[13] = make(map[string]int) + if nodes[i].Edges.totalCount[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) } - nodes[i].Edges.totalCount[13][alias] = n + nodes[i].Edges.totalCount[14][alias] = n } return nil }) @@ -88195,10 +90281,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.AssignerTasks) - if nodes[i].Edges.totalCount[13] == nil { - nodes[i].Edges.totalCount[13] = make(map[string]int) + if nodes[i].Edges.totalCount[14] == nil { + nodes[i].Edges.totalCount[14] = make(map[string]int) } - nodes[i].Edges.totalCount[13][alias] = n + nodes[i].Edges.totalCount[14][alias] = n } return nil }) @@ -88273,10 +90359,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) @@ -88284,10 +90370,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.AssigneeTasks) - if nodes[i].Edges.totalCount[14] == nil { - nodes[i].Edges.totalCount[14] = make(map[string]int) + if nodes[i].Edges.totalCount[15] == nil { + nodes[i].Edges.totalCount[15] = make(map[string]int) } - nodes[i].Edges.totalCount[14][alias] = n + nodes[i].Edges.totalCount[15][alias] = n } return nil }) @@ -88366,10 +90452,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) @@ -88377,10 +90463,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.Programs) - if nodes[i].Edges.totalCount[15] == nil { - nodes[i].Edges.totalCount[15] = make(map[string]int) + if nodes[i].Edges.totalCount[16] == nil { + nodes[i].Edges.totalCount[16] = make(map[string]int) } - nodes[i].Edges.totalCount[15][alias] = n + nodes[i].Edges.totalCount[16][alias] = n } return nil }) @@ -88455,10 +90541,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) @@ -88466,10 +90552,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.ProgramsOwned) - if nodes[i].Edges.totalCount[16] == nil { - nodes[i].Edges.totalCount[16] = make(map[string]int) + if nodes[i].Edges.totalCount[17] == nil { + nodes[i].Edges.totalCount[17] = make(map[string]int) } - nodes[i].Edges.totalCount[16][alias] = n + nodes[i].Edges.totalCount[17][alias] = n } return nil }) @@ -88544,10 +90630,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) @@ -88555,10 +90641,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.PlatformsOwned) - if nodes[i].Edges.totalCount[17] == nil { - nodes[i].Edges.totalCount[17] = make(map[string]int) + if nodes[i].Edges.totalCount[18] == nil { + nodes[i].Edges.totalCount[18] = make(map[string]int) } - nodes[i].Edges.totalCount[17][alias] = n + nodes[i].Edges.totalCount[18][alias] = n } return nil }) @@ -88633,10 +90719,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) @@ -88644,10 +90730,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.IdentityHolderProfiles) - if nodes[i].Edges.totalCount[18] == nil { - nodes[i].Edges.totalCount[18] = make(map[string]int) + if nodes[i].Edges.totalCount[19] == nil { + nodes[i].Edges.totalCount[19] = make(map[string]int) } - nodes[i].Edges.totalCount[18][alias] = n + nodes[i].Edges.totalCount[19][alias] = n } return nil }) @@ -88722,10 +90808,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -88733,10 +90819,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.GroupMemberships) - if nodes[i].Edges.totalCount[19] == nil { - nodes[i].Edges.totalCount[19] = make(map[string]int) + if nodes[i].Edges.totalCount[20] == nil { + nodes[i].Edges.totalCount[20] = make(map[string]int) } - nodes[i].Edges.totalCount[19][alias] = n + nodes[i].Edges.totalCount[20][alias] = n } return nil }) @@ -88811,10 +90897,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) @@ -88822,10 +90908,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.OrgMemberships) - if nodes[i].Edges.totalCount[20] == nil { - nodes[i].Edges.totalCount[20] = make(map[string]int) + if nodes[i].Edges.totalCount[21] == nil { + nodes[i].Edges.totalCount[21] = make(map[string]int) } - nodes[i].Edges.totalCount[20][alias] = n + nodes[i].Edges.totalCount[21][alias] = n } return nil }) @@ -88900,10 +90986,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap } for i := range nodes { n := m[nodes[i].ID] - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) @@ -88911,10 +90997,10 @@ func (_q *UserQuery) collectField(ctx context.Context, oneNode bool, opCtx *grap _q.loadTotal = append(_q.loadTotal, func(_ context.Context, nodes []*User) error { for i := range nodes { n := len(nodes[i].Edges.ProgramMemberships) - if nodes[i].Edges.totalCount[21] == nil { - nodes[i].Edges.totalCount[21] = make(map[string]int) + if nodes[i].Edges.totalCount[22] == nil { + nodes[i].Edges.totalCount[22] = make(map[string]int) } - nodes[i].Edges.totalCount[21][alias] = n + nodes[i].Edges.totalCount[22][alias] = n } return nil }) diff --git a/internal/ent/generated/gql_edge.go b/internal/ent/generated/gql_edge.go index c25276ec31..e5d34c8fe5 100644 --- a/internal/ent/generated/gql_edge.go +++ b/internal/ent/generated/gql_edge.go @@ -1106,6 +1106,175 @@ func (_m *Asset) ConnectedFrom( return _m.QueryConnectedFrom().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Audience) Owner(ctx context.Context) (*Organization, error) { + result, err := _m.Edges.OwnerOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryOwner().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *Audience) BlockedGroups( + 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.NamedBlockedGroups(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.QueryBlockedGroups().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Audience) Editors( + 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.NamedEditors(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.QueryEditors().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Audience) Viewers( + 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.NamedViewers(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.QueryViewers().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Audience) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Audience) Campaigns( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*CampaignOrder, where *CampaignWhereInput, +) (*CampaignConnection, error) { + opts := []CampaignPaginateOption{ + WithCampaignOrder(orderBy), + WithCampaignFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] + if nodes, err := _m.NamedCampaigns(alias); err == nil || hasTotalCount { + pager, err := newCampaignPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &CampaignConnection{Edges: []*CampaignEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryCampaigns().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *AudienceMember) Owner(ctx context.Context) (*Organization, error) { + result, err := _m.Edges.OwnerOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryOwner().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *AudienceMember) Audience(ctx context.Context) (*Audience, error) { + result, err := _m.Edges.AudienceOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryAudience().Only(ctx) + } + return result, err +} + +func (_m *AudienceMember) Contact(ctx context.Context) (*Contact, error) { + result, err := _m.Edges.ContactOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryContact().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *AudienceMember) User(ctx context.Context) (*User, error) { + result, err := _m.Edges.UserOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryUser().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *AudienceMember) Group(ctx context.Context) (*Group, error) { + result, err := _m.Edges.GroupOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryGroup().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *AudienceMember) IdentityHolder(ctx context.Context) (*IdentityHolder, error) { + result, err := _m.Edges.IdentityHolderOrErr() + if IsNotLoaded(err) { + result, err = _m.QueryIdentityHolder().Only(ctx) + } + return result, MaskNotFound(err) +} + +func (_m *AudienceMember) Subscriber(ctx context.Context) (*Subscriber, error) { + result, err := _m.Edges.SubscriberOrErr() + if IsNotLoaded(err) { + result, err = _m.QuerySubscriber().Only(ctx) + } + return result, MaskNotFound(err) +} + func (_m *Campaign) Owner(ctx context.Context) (*Organization, error) { result, err := _m.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -1367,6 +1536,27 @@ func (_m *Campaign) IdentityHolders( return _m.QueryIdentityHolders().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Campaign) Audiences( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceOrder, where *AudienceWhereInput, +) (*AudienceConnection, error) { + opts := []AudiencePaginateOption{ + WithAudienceOrder(orderBy), + WithAudienceFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] + if nodes, err := _m.NamedAudiences(alias); err == nil || hasTotalCount { + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudiences().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Campaign) Controls( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*ControlOrder, where *ControlWhereInput, ) (*ControlConnection, error) { @@ -1375,7 +1565,7 @@ func (_m *Campaign) Controls( WithControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] if nodes, err := _m.NamedControls(alias); err == nil || hasTotalCount { pager, err := newControlPager(opts, last != nil) if err != nil { @@ -1396,7 +1586,7 @@ func (_m *Campaign) WorkflowObjectRefs( WithWorkflowObjectRefFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] if nodes, err := _m.NamedWorkflowObjectRefs(alias); err == nil || hasTotalCount { pager, err := newWorkflowObjectRefPager(opts, last != nil) if err != nil { @@ -1662,6 +1852,27 @@ func (_m *Contact) CampaignTargets( return _m.QueryCampaignTargets().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Contact) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Contact) Files( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*FileOrder, where *FileWhereInput, ) (*FileConnection, error) { @@ -1670,7 +1881,7 @@ func (_m *Contact) Files( WithFileFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] if nodes, err := _m.NamedFiles(alias); err == nil || hasTotalCount { pager, err := newFilePager(opts, last != nil) if err != nil { @@ -1691,7 +1902,7 @@ func (_m *Contact) Subscribers( WithSubscriberFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[6][alias] if nodes, err := _m.NamedSubscribers(alias); err == nil || hasTotalCount { pager, err := newSubscriberPager(opts, last != nil) if err != nil { @@ -6444,6 +6655,69 @@ func (_m *Group) CampaignViewers( return _m.QueryCampaignViewers().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Group) AudienceEditors( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceOrder, where *AudienceWhereInput, +) (*AudienceConnection, error) { + opts := []AudiencePaginateOption{ + WithAudienceOrder(orderBy), + WithAudienceFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + if nodes, err := _m.NamedAudienceEditors(alias); err == nil || hasTotalCount { + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceEditors().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Group) AudienceBlockedGroups( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceOrder, where *AudienceWhereInput, +) (*AudienceConnection, error) { + opts := []AudiencePaginateOption{ + WithAudienceOrder(orderBy), + WithAudienceFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] + if nodes, err := _m.NamedAudienceBlockedGroups(alias); err == nil || hasTotalCount { + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceBlockedGroups().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Group) AudienceViewers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceOrder, where *AudienceWhereInput, +) (*AudienceConnection, error) { + opts := []AudiencePaginateOption{ + WithAudienceOrder(orderBy), + WithAudienceFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] + if nodes, err := _m.NamedAudienceViewers(alias); err == nil || hasTotalCount { + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceViewers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Group) ProcedureEditors( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*ProcedureOrder, where *ProcedureWhereInput, ) (*ProcedureConnection, error) { @@ -6452,7 +6726,7 @@ func (_m *Group) ProcedureEditors( WithProcedureFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] if nodes, err := _m.NamedProcedureEditors(alias); err == nil || hasTotalCount { pager, err := newProcedurePager(opts, last != nil) if err != nil { @@ -6473,7 +6747,7 @@ func (_m *Group) ProcedureBlockedGroups( WithProcedureFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] if nodes, err := _m.NamedProcedureBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newProcedurePager(opts, last != nil) if err != nil { @@ -6494,7 +6768,7 @@ func (_m *Group) InternalPolicyEditors( WithInternalPolicyFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] if nodes, err := _m.NamedInternalPolicyEditors(alias); err == nil || hasTotalCount { pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { @@ -6515,7 +6789,7 @@ func (_m *Group) InternalPolicyBlockedGroups( WithInternalPolicyFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] if nodes, err := _m.NamedInternalPolicyBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { @@ -6536,7 +6810,7 @@ func (_m *Group) ControlEditors( WithControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] if nodes, err := _m.NamedControlEditors(alias); err == nil || hasTotalCount { pager, err := newControlPager(opts, last != nil) if err != nil { @@ -6557,7 +6831,7 @@ func (_m *Group) ControlBlockedGroups( WithControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] if nodes, err := _m.NamedControlBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newControlPager(opts, last != nil) if err != nil { @@ -6578,7 +6852,7 @@ func (_m *Group) MappedControlEditors( WithMappedControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[34][alias] if nodes, err := _m.NamedMappedControlEditors(alias); err == nil || hasTotalCount { pager, err := newMappedControlPager(opts, last != nil) if err != nil { @@ -6599,7 +6873,7 @@ func (_m *Group) MappedControlBlockedGroups( WithMappedControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] if nodes, err := _m.NamedMappedControlBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newMappedControlPager(opts, last != nil) if err != nil { @@ -6620,7 +6894,7 @@ func (_m *Group) ScanEditors( WithScanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] if nodes, err := _m.NamedScanEditors(alias); err == nil || hasTotalCount { pager, err := newScanPager(opts, last != nil) if err != nil { @@ -6641,7 +6915,7 @@ func (_m *Group) ScanBlockedGroups( WithScanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[34][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] if nodes, err := _m.NamedScanBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newScanPager(opts, last != nil) if err != nil { @@ -6662,7 +6936,7 @@ func (_m *Group) EntityEditors( WithEntityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] if nodes, err := _m.NamedEntityEditors(alias); err == nil || hasTotalCount { pager, err := newEntityPager(opts, last != nil) if err != nil { @@ -6683,7 +6957,7 @@ func (_m *Group) EntityBlockedGroups( WithEntityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[39][alias] if nodes, err := _m.NamedEntityBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newEntityPager(opts, last != nil) if err != nil { @@ -6704,7 +6978,7 @@ func (_m *Group) FindingEditors( WithFindingFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] if nodes, err := _m.NamedFindingEditors(alias); err == nil || hasTotalCount { pager, err := newFindingPager(opts, last != nil) if err != nil { @@ -6725,7 +6999,7 @@ func (_m *Group) FindingBlockedGroups( WithFindingFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] if nodes, err := _m.NamedFindingBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newFindingPager(opts, last != nil) if err != nil { @@ -6746,7 +7020,7 @@ func (_m *Group) ReviewEditors( WithReviewFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[39][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] if nodes, err := _m.NamedReviewEditors(alias); err == nil || hasTotalCount { pager, err := newReviewPager(opts, last != nil) if err != nil { @@ -6767,7 +7041,7 @@ func (_m *Group) ReviewBlockedGroups( WithReviewFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[43][alias] if nodes, err := _m.NamedReviewBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newReviewPager(opts, last != nil) if err != nil { @@ -6788,7 +7062,7 @@ func (_m *Group) RemediationEditors( WithRemediationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] if nodes, err := _m.NamedRemediationEditors(alias); err == nil || hasTotalCount { pager, err := newRemediationPager(opts, last != nil) if err != nil { @@ -6809,7 +7083,7 @@ func (_m *Group) RemediationBlockedGroups( WithRemediationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] if nodes, err := _m.NamedRemediationBlockedGroups(alias); err == nil || hasTotalCount { pager, err := newRemediationPager(opts, last != nil) if err != nil { @@ -6838,7 +7112,7 @@ func (_m *Group) Users( WithUserFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[47][alias] if nodes, err := _m.NamedUsers(alias); err == nil || hasTotalCount { pager, err := newUserPager(opts, last != nil) if err != nil { @@ -6859,7 +7133,7 @@ func (_m *Group) Events( WithEventFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] if nodes, err := _m.NamedEvents(alias); err == nil || hasTotalCount { pager, err := newEventPager(opts, last != nil) if err != nil { @@ -6880,7 +7154,7 @@ func (_m *Group) Integrations( WithIntegrationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[46][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] if nodes, err := _m.NamedIntegrations(alias); err == nil || hasTotalCount { pager, err := newIntegrationPager(opts, last != nil) if err != nil { @@ -6909,7 +7183,7 @@ func (_m *Group) Files( WithFileFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] if nodes, err := _m.NamedFiles(alias); err == nil || hasTotalCount { pager, err := newFilePager(opts, last != nil) if err != nil { @@ -6930,7 +7204,7 @@ func (_m *Group) Tasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] if nodes, err := _m.NamedTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -6951,7 +7225,7 @@ func (_m *Group) Campaigns( WithCampaignFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[50][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[53][alias] if nodes, err := _m.NamedCampaigns(alias); err == nil || hasTotalCount { pager, err := newCampaignPager(opts, last != nil) if err != nil { @@ -6972,7 +7246,7 @@ func (_m *Group) CampaignTargets( WithCampaignTargetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[54][alias] if nodes, err := _m.NamedCampaignTargets(alias); err == nil || hasTotalCount { pager, err := newCampaignTargetPager(opts, last != nil) if err != nil { @@ -6985,6 +7259,27 @@ func (_m *Group) CampaignTargets( return _m.QueryCampaignTargets().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Group) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[55][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Group) Members( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupMembershipOrder, where *GroupMembershipWhereInput, ) (*GroupMembershipConnection, error) { @@ -6993,7 +7288,7 @@ func (_m *Group) Members( WithGroupMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[56][alias] if nodes, err := _m.NamedMembers(alias); err == nil || hasTotalCount { pager, err := newGroupMembershipPager(opts, last != nil) if err != nil { @@ -7443,6 +7738,27 @@ func (_m *IdentityHolder) Campaigns( return _m.QueryCampaigns().Paginate(ctx, after, first, before, last, opts...) } +func (_m *IdentityHolder) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *IdentityHolder) Tasks( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*TaskOrder, where *TaskWhereInput, ) (*TaskConnection, error) { @@ -7451,7 +7767,7 @@ func (_m *IdentityHolder) Tasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] if nodes, err := _m.NamedTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -7472,7 +7788,7 @@ func (_m *IdentityHolder) Files( WithFileFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] if nodes, err := _m.NamedFiles(alias); err == nil || hasTotalCount { pager, err := newFilePager(opts, last != nil) if err != nil { @@ -7493,7 +7809,7 @@ func (_m *IdentityHolder) Findings( WithFindingFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] if nodes, err := _m.NamedFindings(alias); err == nil || hasTotalCount { pager, err := newFindingPager(opts, last != nil) if err != nil { @@ -7514,7 +7830,7 @@ func (_m *IdentityHolder) WorkflowObjectRefs( WithWorkflowObjectRefFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] if nodes, err := _m.NamedWorkflowObjectRefs(alias); err == nil || hasTotalCount { pager, err := newWorkflowObjectRefPager(opts, last != nil) if err != nil { @@ -7535,7 +7851,7 @@ func (_m *IdentityHolder) AccessPlatforms( WithPlatformFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[24][alias] if nodes, err := _m.NamedAccessPlatforms(alias); err == nil || hasTotalCount { pager, err := newPlatformPager(opts, last != nil) if err != nil { @@ -7564,7 +7880,7 @@ func (_m *IdentityHolder) InternalPolicies( WithInternalPolicyFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] if nodes, err := _m.NamedInternalPolicies(alias); err == nil || hasTotalCount { pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { @@ -9224,7 +9540,7 @@ func (_m *Organization) AssetCreators( return _m.QueryAssetCreators().Paginate(ctx, after, first, before, last, opts...) } -func (_m *Organization) CampaignCreators( +func (_m *Organization) AudienceCreators( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*GroupOrder, where *GroupWhereInput, ) (*GroupConnection, error) { opts := []GroupPaginateOption{ @@ -9233,6 +9549,48 @@ func (_m *Organization) CampaignCreators( } alias := graphql.GetFieldContext(ctx).Field.Alias totalCount, hasTotalCount := _m.Edges.totalCount[4][alias] + if nodes, err := _m.NamedAudienceCreators(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.QueryAudienceCreators().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) AudienceMemberCreators( + 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.NamedAudienceMemberCreators(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.QueryAudienceMemberCreators().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[6][alias] if nodes, err := _m.NamedCampaignCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9253,7 +9611,7 @@ func (_m *Organization) CampaignTargetCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[5][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[7][alias] if nodes, err := _m.NamedCampaignTargetCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9274,7 +9632,7 @@ func (_m *Organization) CheckResultCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[6][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[8][alias] if nodes, err := _m.NamedCheckResultCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9295,7 +9653,7 @@ func (_m *Organization) ContactCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[7][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[9][alias] if nodes, err := _m.NamedContactCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9316,7 +9674,7 @@ func (_m *Organization) ControlCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[8][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[10][alias] if nodes, err := _m.NamedControlCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9337,7 +9695,7 @@ func (_m *Organization) ControlImplementationCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[9][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[11][alias] if nodes, err := _m.NamedControlImplementationCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9358,7 +9716,7 @@ func (_m *Organization) ControlObjectiveCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[10][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] if nodes, err := _m.NamedControlObjectiveCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9379,7 +9737,7 @@ func (_m *Organization) CustomDomainCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[11][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] if nodes, err := _m.NamedCustomDomainCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9400,7 +9758,7 @@ func (_m *Organization) CustomTypeEnumCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] if nodes, err := _m.NamedCustomTypeEnumCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9421,7 +9779,7 @@ func (_m *Organization) DirectoryAccountCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] if nodes, err := _m.NamedDirectoryAccountCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9442,7 +9800,7 @@ func (_m *Organization) DirectoryGroupCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] if nodes, err := _m.NamedDirectoryGroupCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9463,7 +9821,7 @@ func (_m *Organization) DirectoryMembershipCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] if nodes, err := _m.NamedDirectoryMembershipCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9484,7 +9842,7 @@ func (_m *Organization) DirectorySyncRunCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] if nodes, err := _m.NamedDirectorySyncRunCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9505,7 +9863,7 @@ func (_m *Organization) DiscussionCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] if nodes, err := _m.NamedDiscussionCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9526,7 +9884,7 @@ func (_m *Organization) DocumentDataCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] if nodes, err := _m.NamedDocumentDataCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9547,7 +9905,7 @@ func (_m *Organization) EmailTemplateCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] if nodes, err := _m.NamedEmailTemplateCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9568,7 +9926,7 @@ func (_m *Organization) EntityCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] if nodes, err := _m.NamedEntityCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9589,7 +9947,7 @@ func (_m *Organization) EntityTypeCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] if nodes, err := _m.NamedEntityTypeCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9610,7 +9968,7 @@ func (_m *Organization) EvidenceCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[24][alias] if nodes, err := _m.NamedEvidenceCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9631,7 +9989,7 @@ func (_m *Organization) FileCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[23][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] if nodes, err := _m.NamedFileCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9652,7 +10010,7 @@ func (_m *Organization) FindingCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[24][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] if nodes, err := _m.NamedFindingCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9673,7 +10031,7 @@ func (_m *Organization) FindingControlCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[25][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] if nodes, err := _m.NamedFindingControlCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9694,7 +10052,7 @@ func (_m *Organization) GroupCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[26][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] if nodes, err := _m.NamedGroupCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9715,7 +10073,7 @@ func (_m *Organization) GroupMembershipCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[27][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] if nodes, err := _m.NamedGroupMembershipCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9736,7 +10094,7 @@ func (_m *Organization) GroupSettingCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[28][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] if nodes, err := _m.NamedGroupSettingCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9757,7 +10115,7 @@ func (_m *Organization) HushCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[29][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] if nodes, err := _m.NamedHushCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9778,7 +10136,7 @@ func (_m *Organization) IdentityHolderCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[30][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] if nodes, err := _m.NamedIdentityHolderCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9799,7 +10157,7 @@ func (_m *Organization) InternalPolicyCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[31][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] if nodes, err := _m.NamedInternalPolicyCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9820,7 +10178,7 @@ func (_m *Organization) InviteCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[32][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[34][alias] if nodes, err := _m.NamedInviteCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9841,7 +10199,7 @@ func (_m *Organization) MappedControlCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[33][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] if nodes, err := _m.NamedMappedControlCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9862,7 +10220,7 @@ func (_m *Organization) NarrativeCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[34][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] if nodes, err := _m.NamedNarrativeCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9883,7 +10241,7 @@ func (_m *Organization) NoteCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[35][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] if nodes, err := _m.NamedNoteCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9904,7 +10262,7 @@ func (_m *Organization) NotificationTemplateCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[36][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] if nodes, err := _m.NamedNotificationTemplateCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9925,7 +10283,7 @@ func (_m *Organization) OrgMembershipCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[37][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[39][alias] if nodes, err := _m.NamedOrgMembershipCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9946,7 +10304,7 @@ func (_m *Organization) PlatformCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[38][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] if nodes, err := _m.NamedPlatformCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9967,7 +10325,7 @@ func (_m *Organization) ProcedureCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[39][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] if nodes, err := _m.NamedProcedureCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -9988,7 +10346,7 @@ func (_m *Organization) ProgramCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[40][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] if nodes, err := _m.NamedProgramCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10009,7 +10367,7 @@ func (_m *Organization) ProgramMembershipCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[41][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[43][alias] if nodes, err := _m.NamedProgramMembershipCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10030,7 +10388,7 @@ func (_m *Organization) RemediationCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[42][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] if nodes, err := _m.NamedRemediationCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10051,7 +10409,7 @@ func (_m *Organization) ReviewCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[43][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] if nodes, err := _m.NamedReviewCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10072,7 +10430,7 @@ func (_m *Organization) RiskCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[44][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[46][alias] if nodes, err := _m.NamedRiskCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10093,7 +10451,7 @@ func (_m *Organization) ScanCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[45][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[47][alias] if nodes, err := _m.NamedScanCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10114,7 +10472,7 @@ func (_m *Organization) SLADefinitionCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[46][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] if nodes, err := _m.NamedSLADefinitionCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10135,7 +10493,7 @@ func (_m *Organization) StandardCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[47][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] if nodes, err := _m.NamedStandardCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10156,7 +10514,7 @@ func (_m *Organization) SubcontrolCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[48][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[50][alias] if nodes, err := _m.NamedSubcontrolCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10177,7 +10535,7 @@ func (_m *Organization) SubprocessorCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[49][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] if nodes, err := _m.NamedSubprocessorCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10198,7 +10556,7 @@ func (_m *Organization) SubscriberCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[50][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] if nodes, err := _m.NamedSubscriberCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10219,7 +10577,7 @@ func (_m *Organization) SystemDetailCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[51][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[53][alias] if nodes, err := _m.NamedSystemDetailCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10240,7 +10598,7 @@ func (_m *Organization) TagDefinitionCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[52][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[54][alias] if nodes, err := _m.NamedTagDefinitionCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10261,7 +10619,7 @@ func (_m *Organization) TaskCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[53][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[55][alias] if nodes, err := _m.NamedTaskCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10282,7 +10640,7 @@ func (_m *Organization) TemplateCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[54][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[56][alias] if nodes, err := _m.NamedTemplateCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10303,7 +10661,7 @@ func (_m *Organization) TrustCenterCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[55][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[57][alias] if nodes, err := _m.NamedTrustCenterCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10324,7 +10682,7 @@ func (_m *Organization) TrustCenterComplianceCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[56][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[58][alias] if nodes, err := _m.NamedTrustCenterComplianceCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10345,7 +10703,7 @@ func (_m *Organization) TrustCenterDocCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[57][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[59][alias] if nodes, err := _m.NamedTrustCenterDocCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10366,7 +10724,7 @@ func (_m *Organization) TrustCenterEntityCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[58][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[60][alias] if nodes, err := _m.NamedTrustCenterEntityCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10387,7 +10745,7 @@ func (_m *Organization) TrustCenterFaqCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[59][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[61][alias] if nodes, err := _m.NamedTrustCenterFaqCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10408,7 +10766,7 @@ func (_m *Organization) TrustCenterNdaRequestCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[60][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[62][alias] if nodes, err := _m.NamedTrustCenterNdaRequestCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10429,7 +10787,7 @@ func (_m *Organization) TrustCenterSubprocessorCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[61][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[63][alias] if nodes, err := _m.NamedTrustCenterSubprocessorCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10450,7 +10808,7 @@ func (_m *Organization) TrustCenterWatermarkConfigCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[62][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[64][alias] if nodes, err := _m.NamedTrustCenterWatermarkConfigCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10471,7 +10829,7 @@ func (_m *Organization) VendorRiskScoreCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[63][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[65][alias] if nodes, err := _m.NamedVendorRiskScoreCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10492,7 +10850,7 @@ func (_m *Organization) VendorScoringConfigCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[64][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[66][alias] if nodes, err := _m.NamedVendorScoringConfigCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10513,7 +10871,7 @@ func (_m *Organization) VulnerabilityCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[65][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[67][alias] if nodes, err := _m.NamedVulnerabilityCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10534,7 +10892,7 @@ func (_m *Organization) WorkflowDefinitionCreators( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[66][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[68][alias] if nodes, err := _m.NamedWorkflowDefinitionCreators(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10555,7 +10913,7 @@ func (_m *Organization) CampaignsManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[67][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[69][alias] if nodes, err := _m.NamedCampaignsManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10576,7 +10934,7 @@ func (_m *Organization) ComplianceManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[68][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[70][alias] if nodes, err := _m.NamedComplianceManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10597,7 +10955,7 @@ func (_m *Organization) GroupManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[69][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[71][alias] if nodes, err := _m.NamedGroupManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10618,7 +10976,7 @@ func (_m *Organization) PoliciesManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[70][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[72][alias] if nodes, err := _m.NamedPoliciesManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10639,7 +10997,7 @@ func (_m *Organization) RegistryManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[71][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[73][alias] if nodes, err := _m.NamedRegistryManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10660,7 +11018,7 @@ func (_m *Organization) RiskManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[72][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[74][alias] if nodes, err := _m.NamedRiskManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10681,7 +11039,7 @@ func (_m *Organization) TrustCenterManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[73][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[75][alias] if nodes, err := _m.NamedTrustCenterManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10702,7 +11060,7 @@ func (_m *Organization) WorkflowsManager( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[74][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[76][alias] if nodes, err := _m.NamedWorkflowsManager(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10731,7 +11089,7 @@ func (_m *Organization) Children( WithOrganizationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[76][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[78][alias] if nodes, err := _m.NamedChildren(alias); err == nil || hasTotalCount { pager, err := newOrganizationPager(opts, last != nil) if err != nil { @@ -10760,7 +11118,7 @@ func (_m *Organization) PersonalAccessTokens( WithPersonalAccessTokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[78][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[80][alias] if nodes, err := _m.NamedPersonalAccessTokens(alias); err == nil || hasTotalCount { pager, err := newPersonalAccessTokenPager(opts, last != nil) if err != nil { @@ -10781,7 +11139,7 @@ func (_m *Organization) APITokens( WithAPITokenFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[79][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[81][alias] if nodes, err := _m.NamedAPITokens(alias); err == nil || hasTotalCount { pager, err := newAPITokenPager(opts, last != nil) if err != nil { @@ -10802,7 +11160,7 @@ func (_m *Organization) EmailTemplates( WithEmailTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[80][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[82][alias] if nodes, err := _m.NamedEmailTemplates(alias); err == nil || hasTotalCount { pager, err := newEmailTemplatePager(opts, last != nil) if err != nil { @@ -10823,7 +11181,7 @@ func (_m *Organization) NotificationPreferences( WithNotificationPreferenceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[81][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[83][alias] if nodes, err := _m.NamedNotificationPreferences(alias); err == nil || hasTotalCount { pager, err := newNotificationPreferencePager(opts, last != nil) if err != nil { @@ -10844,7 +11202,7 @@ func (_m *Organization) NotificationTemplates( WithNotificationTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[82][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[84][alias] if nodes, err := _m.NamedNotificationTemplates(alias); err == nil || hasTotalCount { pager, err := newNotificationTemplatePager(opts, last != nil) if err != nil { @@ -10865,7 +11223,7 @@ func (_m *Organization) Users( WithUserFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[83][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[85][alias] if nodes, err := _m.NamedUsers(alias); err == nil || hasTotalCount { pager, err := newUserPager(opts, last != nil) if err != nil { @@ -10886,7 +11244,7 @@ func (_m *Organization) Files( WithFileFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[84][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[86][alias] if nodes, err := _m.NamedFiles(alias); err == nil || hasTotalCount { pager, err := newFilePager(opts, last != nil) if err != nil { @@ -10907,7 +11265,7 @@ func (_m *Organization) Events( WithEventFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[85][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[87][alias] if nodes, err := _m.NamedEvents(alias); err == nil || hasTotalCount { pager, err := newEventPager(opts, last != nil) if err != nil { @@ -10928,7 +11286,7 @@ func (_m *Organization) Secrets( WithHushFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[86][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[88][alias] if nodes, err := _m.NamedSecrets(alias); err == nil || hasTotalCount { pager, err := newHushPager(opts, last != nil) if err != nil { @@ -10957,7 +11315,7 @@ func (_m *Organization) Groups( WithGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[88][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[90][alias] if nodes, err := _m.NamedGroups(alias); err == nil || hasTotalCount { pager, err := newGroupPager(opts, last != nil) if err != nil { @@ -10978,7 +11336,7 @@ func (_m *Organization) Templates( WithTemplateFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[89][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[91][alias] if nodes, err := _m.NamedTemplates(alias); err == nil || hasTotalCount { pager, err := newTemplatePager(opts, last != nil) if err != nil { @@ -10999,7 +11357,7 @@ func (_m *Organization) Integrations( WithIntegrationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[90][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[92][alias] if nodes, err := _m.NamedIntegrations(alias); err == nil || hasTotalCount { pager, err := newIntegrationPager(opts, last != nil) if err != nil { @@ -11020,7 +11378,7 @@ func (_m *Organization) Documents( WithDocumentDataFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[91][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[93][alias] if nodes, err := _m.NamedDocuments(alias); err == nil || hasTotalCount { pager, err := newDocumentDataPager(opts, last != nil) if err != nil { @@ -11053,7 +11411,7 @@ func (_m *Organization) Invites( WithInviteFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[93][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[95][alias] if nodes, err := _m.NamedInvites(alias); err == nil || hasTotalCount { pager, err := newInvitePager(opts, last != nil) if err != nil { @@ -11074,7 +11432,7 @@ func (_m *Organization) Subscribers( WithSubscriberFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[94][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[96][alias] if nodes, err := _m.NamedSubscribers(alias); err == nil || hasTotalCount { pager, err := newSubscriberPager(opts, last != nil) if err != nil { @@ -11095,7 +11453,7 @@ func (_m *Organization) Entities( WithEntityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[95][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[97][alias] if nodes, err := _m.NamedEntities(alias); err == nil || hasTotalCount { pager, err := newEntityPager(opts, last != nil) if err != nil { @@ -11116,7 +11474,7 @@ func (_m *Organization) Platforms( WithPlatformFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[96][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[98][alias] if nodes, err := _m.NamedPlatforms(alias); err == nil || hasTotalCount { pager, err := newPlatformPager(opts, last != nil) if err != nil { @@ -11137,7 +11495,7 @@ func (_m *Organization) IdentityHolders( WithIdentityHolderFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[97][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[99][alias] if nodes, err := _m.NamedIdentityHolders(alias); err == nil || hasTotalCount { pager, err := newIdentityHolderPager(opts, last != nil) if err != nil { @@ -11158,7 +11516,7 @@ func (_m *Organization) Campaigns( WithCampaignFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[98][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[100][alias] if nodes, err := _m.NamedCampaigns(alias); err == nil || hasTotalCount { pager, err := newCampaignPager(opts, last != nil) if err != nil { @@ -11179,7 +11537,7 @@ func (_m *Organization) CampaignTargets( WithCampaignTargetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[99][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[101][alias] if nodes, err := _m.NamedCampaignTargets(alias); err == nil || hasTotalCount { pager, err := newCampaignTargetPager(opts, last != nil) if err != nil { @@ -11200,7 +11558,7 @@ func (_m *Organization) EntityTypes( WithEntityTypeFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[100][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[102][alias] if nodes, err := _m.NamedEntityTypes(alias); err == nil || hasTotalCount { pager, err := newEntityTypePager(opts, last != nil) if err != nil { @@ -11221,7 +11579,7 @@ func (_m *Organization) Contacts( WithContactFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[101][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[103][alias] if nodes, err := _m.NamedContacts(alias); err == nil || hasTotalCount { pager, err := newContactPager(opts, last != nil) if err != nil { @@ -11242,7 +11600,7 @@ func (_m *Organization) Notes( WithNoteFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[102][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[104][alias] if nodes, err := _m.NamedNotes(alias); err == nil || hasTotalCount { pager, err := newNotePager(opts, last != nil) if err != nil { @@ -11263,7 +11621,7 @@ func (_m *Organization) Tasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[103][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[105][alias] if nodes, err := _m.NamedTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -11284,7 +11642,7 @@ func (_m *Organization) Programs( WithProgramFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[104][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[106][alias] if nodes, err := _m.NamedPrograms(alias); err == nil || hasTotalCount { pager, err := newProgramPager(opts, last != nil) if err != nil { @@ -11305,7 +11663,7 @@ func (_m *Organization) SystemDetails( WithSystemDetailFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[105][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[107][alias] if nodes, err := _m.NamedSystemDetails(alias); err == nil || hasTotalCount { pager, err := newSystemDetailPager(opts, last != nil) if err != nil { @@ -11326,7 +11684,7 @@ func (_m *Organization) Procedures( WithProcedureFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[106][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[108][alias] if nodes, err := _m.NamedProcedures(alias); err == nil || hasTotalCount { pager, err := newProcedurePager(opts, last != nil) if err != nil { @@ -11347,7 +11705,7 @@ func (_m *Organization) InternalPolicies( WithInternalPolicyFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[107][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[109][alias] if nodes, err := _m.NamedInternalPolicies(alias); err == nil || hasTotalCount { pager, err := newInternalPolicyPager(opts, last != nil) if err != nil { @@ -11368,7 +11726,7 @@ func (_m *Organization) Risks( WithRiskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[108][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[110][alias] if nodes, err := _m.NamedRisks(alias); err == nil || hasTotalCount { pager, err := newRiskPager(opts, last != nil) if err != nil { @@ -11389,7 +11747,7 @@ func (_m *Organization) ControlObjectives( WithControlObjectiveFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[109][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[111][alias] if nodes, err := _m.NamedControlObjectives(alias); err == nil || hasTotalCount { pager, err := newControlObjectivePager(opts, last != nil) if err != nil { @@ -11410,7 +11768,7 @@ func (_m *Organization) Narratives( WithNarrativeFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[110][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[112][alias] if nodes, err := _m.NamedNarratives(alias); err == nil || hasTotalCount { pager, err := newNarrativePager(opts, last != nil) if err != nil { @@ -11431,7 +11789,7 @@ func (_m *Organization) Controls( WithControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[111][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[113][alias] if nodes, err := _m.NamedControls(alias); err == nil || hasTotalCount { pager, err := newControlPager(opts, last != nil) if err != nil { @@ -11452,7 +11810,7 @@ func (_m *Organization) Subcontrols( WithSubcontrolFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[112][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[114][alias] if nodes, err := _m.NamedSubcontrols(alias); err == nil || hasTotalCount { pager, err := newSubcontrolPager(opts, last != nil) if err != nil { @@ -11473,7 +11831,7 @@ func (_m *Organization) ControlImplementations( WithControlImplementationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[113][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[115][alias] if nodes, err := _m.NamedControlImplementations(alias); err == nil || hasTotalCount { pager, err := newControlImplementationPager(opts, last != nil) if err != nil { @@ -11494,7 +11852,7 @@ func (_m *Organization) MappedControls( WithMappedControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[114][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[116][alias] if nodes, err := _m.NamedMappedControls(alias); err == nil || hasTotalCount { pager, err := newMappedControlPager(opts, last != nil) if err != nil { @@ -11515,7 +11873,7 @@ func (_m *Organization) Evidence( WithEvidenceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[115][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[117][alias] if nodes, err := _m.NamedEvidence(alias); err == nil || hasTotalCount { pager, err := newEvidencePager(opts, last != nil) if err != nil { @@ -11536,7 +11894,7 @@ func (_m *Organization) Standards( WithStandardFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[116][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[118][alias] if nodes, err := _m.NamedStandards(alias); err == nil || hasTotalCount { pager, err := newStandardPager(opts, last != nil) if err != nil { @@ -11557,7 +11915,7 @@ func (_m *Organization) ActionPlans( WithActionPlanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[117][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[119][alias] if nodes, err := _m.NamedActionPlans(alias); err == nil || hasTotalCount { pager, err := newActionPlanPager(opts, last != nil) if err != nil { @@ -11578,7 +11936,7 @@ func (_m *Organization) CustomDomains( WithCustomDomainFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[118][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[120][alias] if nodes, err := _m.NamedCustomDomains(alias); err == nil || hasTotalCount { pager, err := newCustomDomainPager(opts, last != nil) if err != nil { @@ -11599,7 +11957,7 @@ func (_m *Organization) DNSVerifications( WithDNSVerificationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[119][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[121][alias] if nodes, err := _m.NamedDNSVerifications(alias); err == nil || hasTotalCount { pager, err := newDNSVerificationPager(opts, last != nil) if err != nil { @@ -11620,7 +11978,7 @@ func (_m *Organization) TrustCenters( WithTrustCenterFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[120][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[122][alias] if nodes, err := _m.NamedTrustCenters(alias); err == nil || hasTotalCount { pager, err := newTrustCenterPager(opts, last != nil) if err != nil { @@ -11641,7 +11999,7 @@ func (_m *Organization) Assets( WithAssetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[121][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[123][alias] if nodes, err := _m.NamedAssets(alias); err == nil || hasTotalCount { pager, err := newAssetPager(opts, last != nil) if err != nil { @@ -11662,7 +12020,7 @@ func (_m *Organization) Scans( WithScanFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[122][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[124][alias] if nodes, err := _m.NamedScans(alias); err == nil || hasTotalCount { pager, err := newScanPager(opts, last != nil) if err != nil { @@ -11683,7 +12041,7 @@ func (_m *Organization) SLADefinitions( WithSLADefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[123][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[125][alias] if nodes, err := _m.NamedSLADefinitions(alias); err == nil || hasTotalCount { pager, err := newSLADefinitionPager(opts, last != nil) if err != nil { @@ -11704,7 +12062,7 @@ func (_m *Organization) Subprocessors( WithSubprocessorFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[124][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[126][alias] if nodes, err := _m.NamedSubprocessors(alias); err == nil || hasTotalCount { pager, err := newSubprocessorPager(opts, last != nil) if err != nil { @@ -11725,7 +12083,7 @@ func (_m *Organization) Exports( WithExportFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[125][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[127][alias] if nodes, err := _m.NamedExports(alias); err == nil || hasTotalCount { pager, err := newExportPager(opts, last != nil) if err != nil { @@ -11738,6 +12096,48 @@ func (_m *Organization) Exports( return _m.QueryExports().Paginate(ctx, after, first, before, last, opts...) } +func (_m *Organization) Audiences( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceOrder, where *AudienceWhereInput, +) (*AudienceConnection, error) { + opts := []AudiencePaginateOption{ + WithAudienceOrder(orderBy), + WithAudienceFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[128][alias] + if nodes, err := _m.NamedAudiences(alias); err == nil || hasTotalCount { + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudiences().Paginate(ctx, after, first, before, last, opts...) +} + +func (_m *Organization) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[129][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *Organization) TrustCenterWatermarkConfigs( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*TrustCenterWatermarkConfigOrder, where *TrustCenterWatermarkConfigWhereInput, ) (*TrustCenterWatermarkConfigConnection, error) { @@ -11746,7 +12146,7 @@ func (_m *Organization) TrustCenterWatermarkConfigs( WithTrustCenterWatermarkConfigFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[126][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[130][alias] if nodes, err := _m.NamedTrustCenterWatermarkConfigs(alias); err == nil || hasTotalCount { pager, err := newTrustCenterWatermarkConfigPager(opts, last != nil) if err != nil { @@ -11767,7 +12167,7 @@ func (_m *Organization) Assessments( WithAssessmentFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[127][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[131][alias] if nodes, err := _m.NamedAssessments(alias); err == nil || hasTotalCount { pager, err := newAssessmentPager(opts, last != nil) if err != nil { @@ -11788,7 +12188,7 @@ func (_m *Organization) AssessmentResponses( WithAssessmentResponseFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[128][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[132][alias] if nodes, err := _m.NamedAssessmentResponses(alias); err == nil || hasTotalCount { pager, err := newAssessmentResponsePager(opts, last != nil) if err != nil { @@ -11809,7 +12209,7 @@ func (_m *Organization) CustomTypeEnums( WithCustomTypeEnumFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[129][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[133][alias] if nodes, err := _m.NamedCustomTypeEnums(alias); err == nil || hasTotalCount { pager, err := newCustomTypeEnumPager(opts, last != nil) if err != nil { @@ -11830,7 +12230,7 @@ func (_m *Organization) TagDefinitions( WithTagDefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[130][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[134][alias] if nodes, err := _m.NamedTagDefinitions(alias); err == nil || hasTotalCount { pager, err := newTagDefinitionPager(opts, last != nil) if err != nil { @@ -11851,7 +12251,7 @@ func (_m *Organization) Remediations( WithRemediationFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[131][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[135][alias] if nodes, err := _m.NamedRemediations(alias); err == nil || hasTotalCount { pager, err := newRemediationPager(opts, last != nil) if err != nil { @@ -11872,7 +12272,7 @@ func (_m *Organization) Findings( WithFindingFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[132][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[136][alias] if nodes, err := _m.NamedFindings(alias); err == nil || hasTotalCount { pager, err := newFindingPager(opts, last != nil) if err != nil { @@ -11893,7 +12293,7 @@ func (_m *Organization) FindingControls( WithFindingControlFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[133][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[137][alias] if nodes, err := _m.NamedFindingControls(alias); err == nil || hasTotalCount { pager, err := newFindingControlPager(opts, last != nil) if err != nil { @@ -11914,7 +12314,7 @@ func (_m *Organization) Reviews( WithReviewFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[134][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[138][alias] if nodes, err := _m.NamedReviews(alias); err == nil || hasTotalCount { pager, err := newReviewPager(opts, last != nil) if err != nil { @@ -11935,7 +12335,7 @@ func (_m *Organization) Vulnerabilities( WithVulnerabilityFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[135][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[139][alias] if nodes, err := _m.NamedVulnerabilities(alias); err == nil || hasTotalCount { pager, err := newVulnerabilityPager(opts, last != nil) if err != nil { @@ -11956,7 +12356,7 @@ func (_m *Organization) WorkflowDefinitions( WithWorkflowDefinitionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[136][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[140][alias] if nodes, err := _m.NamedWorkflowDefinitions(alias); err == nil || hasTotalCount { pager, err := newWorkflowDefinitionPager(opts, last != nil) if err != nil { @@ -11977,7 +12377,7 @@ func (_m *Organization) WorkflowInstances( WithWorkflowInstanceFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[137][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[141][alias] if nodes, err := _m.NamedWorkflowInstances(alias); err == nil || hasTotalCount { pager, err := newWorkflowInstancePager(opts, last != nil) if err != nil { @@ -11998,7 +12398,7 @@ func (_m *Organization) WorkflowEvents( WithWorkflowEventFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[138][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[142][alias] if nodes, err := _m.NamedWorkflowEvents(alias); err == nil || hasTotalCount { pager, err := newWorkflowEventPager(opts, last != nil) if err != nil { @@ -12019,7 +12419,7 @@ func (_m *Organization) WorkflowAssignments( WithWorkflowAssignmentFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[139][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[143][alias] if nodes, err := _m.NamedWorkflowAssignments(alias); err == nil || hasTotalCount { pager, err := newWorkflowAssignmentPager(opts, last != nil) if err != nil { @@ -12040,7 +12440,7 @@ func (_m *Organization) WorkflowAssignmentTargets( WithWorkflowAssignmentTargetFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[140][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[144][alias] if nodes, err := _m.NamedWorkflowAssignmentTargets(alias); err == nil || hasTotalCount { pager, err := newWorkflowAssignmentTargetPager(opts, last != nil) if err != nil { @@ -12061,7 +12461,7 @@ func (_m *Organization) WorkflowObjectRefs( WithWorkflowObjectRefFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[141][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[145][alias] if nodes, err := _m.NamedWorkflowObjectRefs(alias); err == nil || hasTotalCount { pager, err := newWorkflowObjectRefPager(opts, last != nil) if err != nil { @@ -12082,7 +12482,7 @@ func (_m *Organization) DirectoryAccounts( WithDirectoryAccountFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[142][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[146][alias] if nodes, err := _m.NamedDirectoryAccounts(alias); err == nil || hasTotalCount { pager, err := newDirectoryAccountPager(opts, last != nil) if err != nil { @@ -12103,7 +12503,7 @@ func (_m *Organization) DirectoryGroups( WithDirectoryGroupFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[143][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[147][alias] if nodes, err := _m.NamedDirectoryGroups(alias); err == nil || hasTotalCount { pager, err := newDirectoryGroupPager(opts, last != nil) if err != nil { @@ -12124,7 +12524,7 @@ func (_m *Organization) DirectoryMemberships( WithDirectoryMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[144][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[148][alias] if nodes, err := _m.NamedDirectoryMemberships(alias); err == nil || hasTotalCount { pager, err := newDirectoryMembershipPager(opts, last != nil) if err != nil { @@ -12145,7 +12545,7 @@ func (_m *Organization) DirectorySyncRuns( WithDirectorySyncRunFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[145][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[149][alias] if nodes, err := _m.NamedDirectorySyncRuns(alias); err == nil || hasTotalCount { pager, err := newDirectorySyncRunPager(opts, last != nil) if err != nil { @@ -12166,7 +12566,7 @@ func (_m *Organization) Discussions( WithDiscussionFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[146][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[150][alias] if nodes, err := _m.NamedDiscussions(alias); err == nil || hasTotalCount { pager, err := newDiscussionPager(opts, last != nil) if err != nil { @@ -12187,7 +12587,7 @@ func (_m *Organization) VendorScoringConfigs( WithVendorScoringConfigFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[147][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[151][alias] if nodes, err := _m.NamedVendorScoringConfigs(alias); err == nil || hasTotalCount { pager, err := newVendorScoringConfigPager(opts, last != nil) if err != nil { @@ -12208,7 +12608,7 @@ func (_m *Organization) VendorRiskScores( WithVendorRiskScoreFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[148][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[152][alias] if nodes, err := _m.NamedVendorRiskScores(alias); err == nil || hasTotalCount { pager, err := newVendorRiskScorePager(opts, last != nil) if err != nil { @@ -12229,7 +12629,7 @@ func (_m *Organization) Members( WithOrgMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[149][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[153][alias] if nodes, err := _m.NamedMembers(alias); err == nil || hasTotalCount { pager, err := newOrgMembershipPager(opts, last != nil) if err != nil { @@ -16296,6 +16696,27 @@ func (_m *Subscriber) User(ctx context.Context) (*User, error) { return result, MaskNotFound(err) } +func (_m *Subscriber) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[6][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *SystemDetail) Owner(ctx context.Context) (*Organization, error) { result, err := _m.Edges.OwnerOrErr() if IsNotLoaded(err) { @@ -18111,6 +18532,27 @@ func (_m *User) CampaignTargets( return _m.QueryCampaignTargets().Paginate(ctx, after, first, before, last, opts...) } +func (_m *User) AudienceMembers( + ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, +) (*AudienceMemberConnection, error) { + opts := []AudienceMemberPaginateOption{ + WithAudienceMemberOrder(orderBy), + WithAudienceMemberFilter(where.Filter), + } + alias := graphql.GetFieldContext(ctx).Field.Alias + totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] + if nodes, err := _m.NamedAudienceMembers(alias); err == nil || hasTotalCount { + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}, TotalCount: totalCount} + conn.build(nodes, pager, after, first, before, last) + return conn, nil + } + return _m.QueryAudienceMembers().Paginate(ctx, after, first, before, last, opts...) +} + func (_m *User) Subcontrols( ctx context.Context, after *Cursor, first *int, before *Cursor, last *int, orderBy []*SubcontrolOrder, where *SubcontrolWhereInput, ) (*SubcontrolConnection, error) { @@ -18119,7 +18561,7 @@ func (_m *User) Subcontrols( WithSubcontrolFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[12][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] if nodes, err := _m.NamedSubcontrols(alias); err == nil || hasTotalCount { pager, err := newSubcontrolPager(opts, last != nil) if err != nil { @@ -18140,7 +18582,7 @@ func (_m *User) AssignerTasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[13][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] if nodes, err := _m.NamedAssignerTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -18161,7 +18603,7 @@ func (_m *User) AssigneeTasks( WithTaskFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[14][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] if nodes, err := _m.NamedAssigneeTasks(alias); err == nil || hasTotalCount { pager, err := newTaskPager(opts, last != nil) if err != nil { @@ -18182,7 +18624,7 @@ func (_m *User) Programs( WithProgramFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[15][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] if nodes, err := _m.NamedPrograms(alias); err == nil || hasTotalCount { pager, err := newProgramPager(opts, last != nil) if err != nil { @@ -18203,7 +18645,7 @@ func (_m *User) ProgramsOwned( WithProgramFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[16][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] if nodes, err := _m.NamedProgramsOwned(alias); err == nil || hasTotalCount { pager, err := newProgramPager(opts, last != nil) if err != nil { @@ -18224,7 +18666,7 @@ func (_m *User) PlatformsOwned( WithPlatformFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[17][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] if nodes, err := _m.NamedPlatformsOwned(alias); err == nil || hasTotalCount { pager, err := newPlatformPager(opts, last != nil) if err != nil { @@ -18245,7 +18687,7 @@ func (_m *User) IdentityHolderProfiles( WithIdentityHolderFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[18][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] if nodes, err := _m.NamedIdentityHolderProfiles(alias); err == nil || hasTotalCount { pager, err := newIdentityHolderPager(opts, last != nil) if err != nil { @@ -18266,7 +18708,7 @@ func (_m *User) GroupMemberships( WithGroupMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[19][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] if nodes, err := _m.NamedGroupMemberships(alias); err == nil || hasTotalCount { pager, err := newGroupMembershipPager(opts, last != nil) if err != nil { @@ -18287,7 +18729,7 @@ func (_m *User) OrgMemberships( WithOrgMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[20][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] if nodes, err := _m.NamedOrgMemberships(alias); err == nil || hasTotalCount { pager, err := newOrgMembershipPager(opts, last != nil) if err != nil { @@ -18308,7 +18750,7 @@ func (_m *User) ProgramMemberships( WithProgramMembershipFilter(where.Filter), } alias := graphql.GetFieldContext(ctx).Field.Alias - totalCount, hasTotalCount := _m.Edges.totalCount[21][alias] + totalCount, hasTotalCount := _m.Edges.totalCount[22][alias] if nodes, err := _m.NamedProgramMemberships(alias); err == nil || hasTotalCount { pager, err := newProgramMembershipPager(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 69eaaa9e72..3ce837c17e 100644 --- a/internal/ent/generated/gql_mutation_input.go +++ b/internal/ent/generated/gql_mutation_input.go @@ -2079,6 +2079,352 @@ func (c *AssetUpdateOne) SetInput(i UpdateAssetInput) *AssetUpdateOne { return c } +// CreateAudienceInput represents a mutation input for creating audiences. +type CreateAudienceInput struct { + Tags []string `json:"tags,omitempty"` + Name string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AudienceType *enums.AudienceType `json:"audience_type,omitempty"` + Filters map[string]interface{} `json:"filters,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID *string `json:"owner_id,omitempty"` + BlockedGroupIDs []string `json:"blocked_group_ids,omitempty"` + EditorIDs []string `json:"editor_ids,omitempty"` + ViewerIDs []string `json:"viewer_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` + CampaignIDs []string `json:"campaign_ids,omitempty"` +} + +// Mutate applies the CreateAudienceInput on the AudienceMutation builder. +func (i *CreateAudienceInput) Mutate(m *AudienceMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) + } + m.SetName(i.Name) + if v := i.Description; v != nil { + m.SetDescription(*v) + } + if v := i.AudienceType; v != nil { + m.SetAudienceType(*v) + } + if v := i.Filters; v != nil { + m.SetFilters(v) + } + if v := i.Metadata; v != nil { + m.SetMetadata(v) + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + if v := i.BlockedGroupIDs; len(v) > 0 { + m.AddBlockedGroupIDs(v...) + } + if v := i.EditorIDs; len(v) > 0 { + m.AddEditorIDs(v...) + } + if v := i.ViewerIDs; len(v) > 0 { + m.AddViewerIDs(v...) + } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.CampaignIDs; len(v) > 0 { + m.AddCampaignIDs(v...) + } +} + +// SetInput applies the change-set in the CreateAudienceInput on the AudienceCreate builder. +func (c *AudienceCreate) SetInput(i CreateAudienceInput) *AudienceCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateAudienceInput represents a mutation input for updating audiences. +type UpdateAudienceInput struct { + ClearTags bool + Tags []string `json:"tags,omitempty"` + AppendTags []string + Name *string `json:"name,omitempty"` + ClearDescription bool + Description *string `json:"description,omitempty"` + AudienceType *enums.AudienceType `json:"audience_type,omitempty"` + ClearFilters bool + Filters map[string]interface{} `json:"filters,omitempty"` + ClearMetadata bool + Metadata map[string]interface{} `json:"metadata,omitempty"` + ClearOwner bool + OwnerID *string `json:"owner_id,omitempty"` + ClearBlockedGroups bool + AddBlockedGroupIDs []string `json:"add_blocked_group_ids,omitempty"` + RemoveBlockedGroupIDs []string `json:"remove_blocked_group_ids,omitempty"` + ClearEditors bool + AddEditorIDs []string `json:"add_editor_ids,omitempty"` + RemoveEditorIDs []string `json:"remove_editor_ids,omitempty"` + ClearViewers bool + AddViewerIDs []string `json:"add_viewer_ids,omitempty"` + RemoveViewerIDs []string `json:"remove_viewer_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` + ClearCampaigns bool + AddCampaignIDs []string `json:"add_campaign_ids,omitempty"` + RemoveCampaignIDs []string `json:"remove_campaign_ids,omitempty"` +} + +// Mutate applies the UpdateAudienceInput on the AudienceMutation builder. +func (i *UpdateAudienceInput) Mutate(m *AudienceMutation) { + if i.ClearTags { + m.ClearTags() + } + if v := i.Tags; v != nil { + m.SetTags(v) + } + if i.AppendTags != nil { + m.AppendTags(i.Tags) + } + if v := i.Name; v != nil { + m.SetName(*v) + } + if i.ClearDescription { + m.ClearDescription() + } + if v := i.Description; v != nil { + m.SetDescription(*v) + } + if v := i.AudienceType; v != nil { + m.SetAudienceType(*v) + } + if i.ClearFilters { + m.ClearFilters() + } + if v := i.Filters; v != nil { + m.SetFilters(v) + } + if i.ClearMetadata { + m.ClearMetadata() + } + if v := i.Metadata; v != nil { + m.SetMetadata(v) + } + if i.ClearOwner { + m.ClearOwner() + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + if i.ClearBlockedGroups { + m.ClearBlockedGroups() + } + if v := i.AddBlockedGroupIDs; len(v) > 0 { + m.AddBlockedGroupIDs(v...) + } + if v := i.RemoveBlockedGroupIDs; len(v) > 0 { + m.RemoveBlockedGroupIDs(v...) + } + if i.ClearEditors { + m.ClearEditors() + } + if v := i.AddEditorIDs; len(v) > 0 { + m.AddEditorIDs(v...) + } + if v := i.RemoveEditorIDs; len(v) > 0 { + m.RemoveEditorIDs(v...) + } + if i.ClearViewers { + m.ClearViewers() + } + if v := i.AddViewerIDs; len(v) > 0 { + m.AddViewerIDs(v...) + } + if v := i.RemoveViewerIDs; len(v) > 0 { + m.RemoveViewerIDs(v...) + } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } + if i.ClearCampaigns { + m.ClearCampaigns() + } + if v := i.AddCampaignIDs; len(v) > 0 { + m.AddCampaignIDs(v...) + } + if v := i.RemoveCampaignIDs; len(v) > 0 { + m.RemoveCampaignIDs(v...) + } +} + +// SetInput applies the change-set in the UpdateAudienceInput on the AudienceUpdate builder. +func (c *AudienceUpdate) SetInput(i UpdateAudienceInput) *AudienceUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateAudienceInput on the AudienceUpdateOne builder. +func (c *AudienceUpdateOne) SetInput(i UpdateAudienceInput) *AudienceUpdateOne { + i.Mutate(c.Mutation()) + return c +} + +// CreateAudienceMemberInput represents a mutation input for creating audiencemembers. +type CreateAudienceMemberInput struct { + Tags []string `json:"tags,omitempty"` + Email string `json:"email,omitempty"` + FullName *string `json:"full_name,omitempty"` + Metadata map[string]interface{} `json:"metadata,omitempty"` + OwnerID *string `json:"owner_id,omitempty"` + AudienceID string `json:"audience_id,omitempty"` + ContactID *string `json:"contact_id,omitempty"` + UserID *string `json:"user_id,omitempty"` + GroupID *string `json:"group_id,omitempty"` + IdentityHolderID *string `json:"identity_holder_id,omitempty"` + SubscriberID *string `json:"subscriber_id,omitempty"` +} + +// Mutate applies the CreateAudienceMemberInput on the AudienceMemberMutation builder. +func (i *CreateAudienceMemberInput) Mutate(m *AudienceMemberMutation) { + if v := i.Tags; v != nil { + m.SetTags(v) + } + m.SetEmail(i.Email) + if v := i.FullName; v != nil { + m.SetFullName(*v) + } + if v := i.Metadata; v != nil { + m.SetMetadata(v) + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + m.SetAudienceID(i.AudienceID) + if v := i.ContactID; v != nil { + m.SetContactID(*v) + } + if v := i.UserID; v != nil { + m.SetUserID(*v) + } + if v := i.GroupID; v != nil { + m.SetGroupID(*v) + } + if v := i.IdentityHolderID; v != nil { + m.SetIdentityHolderID(*v) + } + if v := i.SubscriberID; v != nil { + m.SetSubscriberID(*v) + } +} + +// SetInput applies the change-set in the CreateAudienceMemberInput on the AudienceMemberCreate builder. +func (c *AudienceMemberCreate) SetInput(i CreateAudienceMemberInput) *AudienceMemberCreate { + i.Mutate(c.Mutation()) + return c +} + +// UpdateAudienceMemberInput represents a mutation input for updating audiencemembers. +type UpdateAudienceMemberInput struct { + ClearTags bool + Tags []string `json:"tags,omitempty"` + AppendTags []string + Email *string `json:"email,omitempty"` + ClearFullName bool + FullName *string `json:"full_name,omitempty"` + ClearMetadata bool + Metadata map[string]interface{} `json:"metadata,omitempty"` + ClearOwner bool + OwnerID *string `json:"owner_id,omitempty"` + ClearContact bool + ContactID *string `json:"contact_id,omitempty"` + ClearUser bool + UserID *string `json:"user_id,omitempty"` + ClearGroup bool + GroupID *string `json:"group_id,omitempty"` + ClearIdentityHolder bool + IdentityHolderID *string `json:"identity_holder_id,omitempty"` + ClearSubscriber bool + SubscriberID *string `json:"subscriber_id,omitempty"` +} + +// Mutate applies the UpdateAudienceMemberInput on the AudienceMemberMutation builder. +func (i *UpdateAudienceMemberInput) Mutate(m *AudienceMemberMutation) { + if i.ClearTags { + m.ClearTags() + } + if v := i.Tags; v != nil { + m.SetTags(v) + } + if i.AppendTags != nil { + m.AppendTags(i.Tags) + } + if v := i.Email; v != nil { + m.SetEmail(*v) + } + if i.ClearFullName { + m.ClearFullName() + } + if v := i.FullName; v != nil { + m.SetFullName(*v) + } + if i.ClearMetadata { + m.ClearMetadata() + } + if v := i.Metadata; v != nil { + m.SetMetadata(v) + } + if i.ClearOwner { + m.ClearOwner() + } + if v := i.OwnerID; v != nil { + m.SetOwnerID(*v) + } + if i.ClearContact { + m.ClearContact() + } + if v := i.ContactID; v != nil { + m.SetContactID(*v) + } + if i.ClearUser { + m.ClearUser() + } + if v := i.UserID; v != nil { + m.SetUserID(*v) + } + if i.ClearGroup { + m.ClearGroup() + } + if v := i.GroupID; v != nil { + m.SetGroupID(*v) + } + if i.ClearIdentityHolder { + m.ClearIdentityHolder() + } + if v := i.IdentityHolderID; v != nil { + m.SetIdentityHolderID(*v) + } + if i.ClearSubscriber { + m.ClearSubscriber() + } + if v := i.SubscriberID; v != nil { + m.SetSubscriberID(*v) + } +} + +// SetInput applies the change-set in the UpdateAudienceMemberInput on the AudienceMemberUpdate builder. +func (c *AudienceMemberUpdate) SetInput(i UpdateAudienceMemberInput) *AudienceMemberUpdate { + i.Mutate(c.Mutation()) + return c +} + +// SetInput applies the change-set in the UpdateAudienceMemberInput on the AudienceMemberUpdateOne builder. +func (c *AudienceMemberUpdateOne) SetInput(i UpdateAudienceMemberInput) *AudienceMemberUpdateOne { + i.Mutate(c.Mutation()) + return c +} + // CreateCampaignInput represents a mutation input for creating campaigns. type CreateCampaignInput struct { Tags []string `json:"tags,omitempty"` @@ -2124,6 +2470,7 @@ type CreateCampaignInput struct { UserIDs []string `json:"user_ids,omitempty"` GroupIDs []string `json:"group_ids,omitempty"` IdentityHolderIDs []string `json:"identity_holder_ids,omitempty"` + AudienceIDs []string `json:"audience_ids,omitempty"` ControlIDs []string `json:"control_ids,omitempty"` WorkflowObjectRefIDs []string `json:"workflow_object_ref_ids,omitempty"` } @@ -2257,6 +2604,9 @@ func (i *CreateCampaignInput) Mutate(m *CampaignMutation) { if v := i.IdentityHolderIDs; len(v) > 0 { m.AddIdentityHolderIDs(v...) } + if v := i.AudienceIDs; len(v) > 0 { + m.AddAudienceIDs(v...) + } if v := i.ControlIDs; len(v) > 0 { m.AddControlIDs(v...) } @@ -2362,6 +2712,9 @@ type UpdateCampaignInput struct { ClearIdentityHolders bool AddIdentityHolderIDs []string `json:"add_identity_holder_ids,omitempty"` RemoveIdentityHolderIDs []string `json:"remove_identity_holder_ids,omitempty"` + ClearAudiences bool + AddAudienceIDs []string `json:"add_audience_ids,omitempty"` + RemoveAudienceIDs []string `json:"remove_audience_ids,omitempty"` ClearControls bool AddControlIDs []string `json:"add_control_ids,omitempty"` RemoveControlIDs []string `json:"remove_control_ids,omitempty"` @@ -2639,6 +2992,15 @@ func (i *UpdateCampaignInput) Mutate(m *CampaignMutation) { if v := i.RemoveIdentityHolderIDs; len(v) > 0 { m.RemoveIdentityHolderIDs(v...) } + if i.ClearAudiences { + m.ClearAudiences() + } + if v := i.AddAudienceIDs; len(v) > 0 { + m.AddAudienceIDs(v...) + } + if v := i.RemoveAudienceIDs; len(v) > 0 { + m.RemoveAudienceIDs(v...) + } if i.ClearControls { m.ClearControls() } @@ -3064,6 +3426,7 @@ type CreateContactInput struct { EntityIDs []string `json:"entity_ids,omitempty"` CampaignIDs []string `json:"campaign_ids,omitempty"` CampaignTargetIDs []string `json:"campaign_target_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` FileIDs []string `json:"file_ids,omitempty"` SubscriberIDs []string `json:"subscriber_ids,omitempty"` } @@ -3115,6 +3478,9 @@ func (i *CreateContactInput) Mutate(m *ContactMutation) { if v := i.CampaignTargetIDs; len(v) > 0 { m.AddCampaignTargetIDs(v...) } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } if v := i.FileIDs; len(v) > 0 { m.AddFileIDs(v...) } @@ -3164,6 +3530,9 @@ type UpdateContactInput struct { ClearCampaignTargets bool AddCampaignTargetIDs []string `json:"add_campaign_target_ids,omitempty"` RemoveCampaignTargetIDs []string `json:"remove_campaign_target_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` ClearFiles bool AddFileIDs []string `json:"add_file_ids,omitempty"` RemoveFileIDs []string `json:"remove_file_ids,omitempty"` @@ -3273,6 +3642,15 @@ func (i *UpdateContactInput) Mutate(m *ContactMutation) { if v := i.RemoveCampaignTargetIDs; len(v) > 0 { m.RemoveCampaignTargetIDs(v...) } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } if i.ClearFiles { m.ClearFiles() } @@ -11384,6 +11762,9 @@ type CreateGroupInput struct { CampaignEditorIDs []string `json:"campaign_editor_ids,omitempty"` CampaignBlockedGroupIDs []string `json:"campaign_blocked_group_ids,omitempty"` CampaignViewerIDs []string `json:"campaign_viewer_ids,omitempty"` + AudienceEditorIDs []string `json:"audience_editor_ids,omitempty"` + AudienceBlockedGroupIDs []string `json:"audience_blocked_group_ids,omitempty"` + AudienceViewerIDs []string `json:"audience_viewer_ids,omitempty"` ProcedureEditorIDs []string `json:"procedure_editor_ids,omitempty"` ProcedureBlockedGroupIDs []string `json:"procedure_blocked_group_ids,omitempty"` InternalPolicyEditorIDs []string `json:"internal_policy_editor_ids,omitempty"` @@ -11410,6 +11791,7 @@ type CreateGroupInput struct { TaskIDs []string `json:"task_ids,omitempty"` CampaignIDs []string `json:"campaign_ids,omitempty"` CampaignTargetIDs []string `json:"campaign_target_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` } // Mutate applies the CreateGroupInput on the GroupMutation builder. @@ -11523,6 +11905,15 @@ func (i *CreateGroupInput) Mutate(m *GroupMutation) { if v := i.CampaignViewerIDs; len(v) > 0 { m.AddCampaignViewerIDs(v...) } + if v := i.AudienceEditorIDs; len(v) > 0 { + m.AddAudienceEditorIDs(v...) + } + if v := i.AudienceBlockedGroupIDs; len(v) > 0 { + m.AddAudienceBlockedGroupIDs(v...) + } + if v := i.AudienceViewerIDs; len(v) > 0 { + m.AddAudienceViewerIDs(v...) + } if v := i.ProcedureEditorIDs; len(v) > 0 { m.AddProcedureEditorIDs(v...) } @@ -11601,6 +11992,9 @@ func (i *CreateGroupInput) Mutate(m *GroupMutation) { if v := i.CampaignTargetIDs; len(v) > 0 { m.AddCampaignTargetIDs(v...) } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } } // SetInput applies the change-set in the CreateGroupInput on the GroupCreate builder. @@ -11709,6 +12103,15 @@ type UpdateGroupInput struct { ClearCampaignViewers bool AddCampaignViewerIDs []string `json:"add_campaign_viewer_ids,omitempty"` RemoveCampaignViewerIDs []string `json:"remove_campaign_viewer_ids,omitempty"` + ClearAudienceEditors bool + AddAudienceEditorIDs []string `json:"add_audience_editor_ids,omitempty"` + RemoveAudienceEditorIDs []string `json:"remove_audience_editor_ids,omitempty"` + ClearAudienceBlockedGroups bool + AddAudienceBlockedGroupIDs []string `json:"add_audience_blocked_group_ids,omitempty"` + RemoveAudienceBlockedGroupIDs []string `json:"remove_audience_blocked_group_ids,omitempty"` + ClearAudienceViewers bool + AddAudienceViewerIDs []string `json:"add_audience_viewer_ids,omitempty"` + RemoveAudienceViewerIDs []string `json:"remove_audience_viewer_ids,omitempty"` ClearProcedureEditors bool AddProcedureEditorIDs []string `json:"add_procedure_editor_ids,omitempty"` RemoveProcedureEditorIDs []string `json:"remove_procedure_editor_ids,omitempty"` @@ -11785,6 +12188,9 @@ type UpdateGroupInput struct { ClearCampaignTargets bool AddCampaignTargetIDs []string `json:"add_campaign_target_ids,omitempty"` RemoveCampaignTargetIDs []string `json:"remove_campaign_target_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` } // Mutate applies the UpdateGroupInput on the GroupMutation builder. @@ -12083,6 +12489,33 @@ func (i *UpdateGroupInput) Mutate(m *GroupMutation) { if v := i.RemoveCampaignViewerIDs; len(v) > 0 { m.RemoveCampaignViewerIDs(v...) } + if i.ClearAudienceEditors { + m.ClearAudienceEditors() + } + if v := i.AddAudienceEditorIDs; len(v) > 0 { + m.AddAudienceEditorIDs(v...) + } + if v := i.RemoveAudienceEditorIDs; len(v) > 0 { + m.RemoveAudienceEditorIDs(v...) + } + if i.ClearAudienceBlockedGroups { + m.ClearAudienceBlockedGroups() + } + if v := i.AddAudienceBlockedGroupIDs; len(v) > 0 { + m.AddAudienceBlockedGroupIDs(v...) + } + if v := i.RemoveAudienceBlockedGroupIDs; len(v) > 0 { + m.RemoveAudienceBlockedGroupIDs(v...) + } + if i.ClearAudienceViewers { + m.ClearAudienceViewers() + } + if v := i.AddAudienceViewerIDs; len(v) > 0 { + m.AddAudienceViewerIDs(v...) + } + if v := i.RemoveAudienceViewerIDs; len(v) > 0 { + m.RemoveAudienceViewerIDs(v...) + } if i.ClearProcedureEditors { m.ClearProcedureEditors() } @@ -12311,6 +12744,15 @@ func (i *UpdateGroupInput) Mutate(m *GroupMutation) { if v := i.RemoveCampaignTargetIDs; len(v) > 0 { m.RemoveCampaignTargetIDs(v...) } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } } // SetInput applies the change-set in the UpdateGroupInput on the GroupUpdate builder. @@ -12722,6 +13164,7 @@ type CreateIdentityHolderInput struct { SubcontrolIDs []string `json:"subcontrol_ids,omitempty"` PlatformIDs []string `json:"platform_ids,omitempty"` CampaignIDs []string `json:"campaign_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` TaskIDs []string `json:"task_ids,omitempty"` FileIDs []string `json:"file_ids,omitempty"` FindingIDs []string `json:"finding_ids,omitempty"` @@ -12858,6 +13301,9 @@ func (i *CreateIdentityHolderInput) Mutate(m *IdentityHolderMutation) { if v := i.CampaignIDs; len(v) > 0 { m.AddCampaignIDs(v...) } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } if v := i.TaskIDs; len(v) > 0 { m.AddTaskIDs(v...) } @@ -12983,6 +13429,9 @@ type UpdateIdentityHolderInput struct { ClearCampaigns bool AddCampaignIDs []string `json:"add_campaign_ids,omitempty"` RemoveCampaignIDs []string `json:"remove_campaign_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` ClearTasks bool AddTaskIDs []string `json:"add_task_ids,omitempty"` RemoveTaskIDs []string `json:"remove_task_ids,omitempty"` @@ -13289,6 +13738,15 @@ func (i *UpdateIdentityHolderInput) Mutate(m *IdentityHolderMutation) { if v := i.RemoveCampaignIDs; len(v) > 0 { m.RemoveCampaignIDs(v...) } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } if i.ClearTasks { m.ClearTasks() } @@ -15878,6 +16336,8 @@ type CreateOrganizationInput struct { APITokenCreatorIDs []string `json:"api_token_creator_ids,omitempty"` AssessmentCreatorIDs []string `json:"assessment_creator_ids,omitempty"` AssetCreatorIDs []string `json:"asset_creator_ids,omitempty"` + AudienceCreatorIDs []string `json:"audience_creator_ids,omitempty"` + AudienceMemberCreatorIDs []string `json:"audience_member_creator_ids,omitempty"` CampaignCreatorIDs []string `json:"campaign_creator_ids,omitempty"` CampaignTargetCreatorIDs []string `json:"campaign_target_creator_ids,omitempty"` CheckResultCreatorIDs []string `json:"check_result_creator_ids,omitempty"` @@ -15998,6 +16458,8 @@ type CreateOrganizationInput struct { SLADefinitionIDs []string `json:"sla_definition_ids,omitempty"` SubprocessorIDs []string `json:"subprocessor_ids,omitempty"` ExportIDs []string `json:"export_ids,omitempty"` + AudienceIDs []string `json:"audience_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` TrustCenterWatermarkConfigIDs []string `json:"trust_center_watermark_config_ids,omitempty"` ImpersonationEventIDs []string `json:"impersonation_event_ids,omitempty"` AssessmentIDs []string `json:"assessment_ids,omitempty"` @@ -16055,6 +16517,12 @@ func (i *CreateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.AssetCreatorIDs; len(v) > 0 { m.AddAssetCreatorIDs(v...) } + if v := i.AudienceCreatorIDs; len(v) > 0 { + m.AddAudienceCreatorIDs(v...) + } + if v := i.AudienceMemberCreatorIDs; len(v) > 0 { + m.AddAudienceMemberCreatorIDs(v...) + } if v := i.CampaignCreatorIDs; len(v) > 0 { m.AddCampaignCreatorIDs(v...) } @@ -16415,6 +16883,12 @@ func (i *CreateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.ExportIDs; len(v) > 0 { m.AddExportIDs(v...) } + if v := i.AudienceIDs; len(v) > 0 { + m.AddAudienceIDs(v...) + } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } if v := i.TrustCenterWatermarkConfigIDs; len(v) > 0 { m.AddTrustCenterWatermarkConfigIDs(v...) } @@ -16513,6 +16987,12 @@ type UpdateOrganizationInput struct { ClearAssetCreators bool AddAssetCreatorIDs []string `json:"add_asset_creator_ids,omitempty"` RemoveAssetCreatorIDs []string `json:"remove_asset_creator_ids,omitempty"` + ClearAudienceCreators bool + AddAudienceCreatorIDs []string `json:"add_audience_creator_ids,omitempty"` + RemoveAudienceCreatorIDs []string `json:"remove_audience_creator_ids,omitempty"` + ClearAudienceMemberCreators bool + AddAudienceMemberCreatorIDs []string `json:"add_audience_member_creator_ids,omitempty"` + RemoveAudienceMemberCreatorIDs []string `json:"remove_audience_member_creator_ids,omitempty"` ClearCampaignCreators bool AddCampaignCreatorIDs []string `json:"add_campaign_creator_ids,omitempty"` RemoveCampaignCreatorIDs []string `json:"remove_campaign_creator_ids,omitempty"` @@ -16868,6 +17348,12 @@ type UpdateOrganizationInput struct { ClearExports bool AddExportIDs []string `json:"add_export_ids,omitempty"` RemoveExportIDs []string `json:"remove_export_ids,omitempty"` + ClearAudiences bool + AddAudienceIDs []string `json:"add_audience_ids,omitempty"` + RemoveAudienceIDs []string `json:"remove_audience_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` ClearTrustCenterWatermarkConfigs bool AddTrustCenterWatermarkConfigIDs []string `json:"add_trust_center_watermark_config_ids,omitempty"` RemoveTrustCenterWatermarkConfigIDs []string `json:"remove_trust_center_watermark_config_ids,omitempty"` @@ -17004,6 +17490,24 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveAssetCreatorIDs; len(v) > 0 { m.RemoveAssetCreatorIDs(v...) } + if i.ClearAudienceCreators { + m.ClearAudienceCreators() + } + if v := i.AddAudienceCreatorIDs; len(v) > 0 { + m.AddAudienceCreatorIDs(v...) + } + if v := i.RemoveAudienceCreatorIDs; len(v) > 0 { + m.RemoveAudienceCreatorIDs(v...) + } + if i.ClearAudienceMemberCreators { + m.ClearAudienceMemberCreators() + } + if v := i.AddAudienceMemberCreatorIDs; len(v) > 0 { + m.AddAudienceMemberCreatorIDs(v...) + } + if v := i.RemoveAudienceMemberCreatorIDs; len(v) > 0 { + m.RemoveAudienceMemberCreatorIDs(v...) + } if i.ClearCampaignCreators { m.ClearCampaignCreators() } @@ -18069,6 +18573,24 @@ func (i *UpdateOrganizationInput) Mutate(m *OrganizationMutation) { if v := i.RemoveExportIDs; len(v) > 0 { m.RemoveExportIDs(v...) } + if i.ClearAudiences { + m.ClearAudiences() + } + if v := i.AddAudienceIDs; len(v) > 0 { + m.AddAudienceIDs(v...) + } + if v := i.RemoveAudienceIDs; len(v) > 0 { + m.RemoveAudienceIDs(v...) + } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } if i.ClearTrustCenterWatermarkConfigs { m.ClearTrustCenterWatermarkConfigs() } @@ -25260,6 +25782,7 @@ type CreateSubscriberInput struct { CampaignTargetIDs []string `json:"campaign_target_ids,omitempty"` ContactID *string `json:"contact_id,omitempty"` UserID *string `json:"user_id,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` } // Mutate applies the CreateSubscriberInput on the SubscriberMutation builder. @@ -25289,6 +25812,9 @@ func (i *CreateSubscriberInput) Mutate(m *SubscriberMutation) { if v := i.UserID; v != nil { m.SetUserID(*v) } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } } // SetInput applies the change-set in the CreateSubscriberInput on the SubscriberCreate builder. @@ -25318,6 +25844,9 @@ type UpdateSubscriberInput struct { ContactID *string `json:"contact_id,omitempty"` ClearUser bool UserID *string `json:"user_id,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` } // Mutate applies the UpdateSubscriberInput on the SubscriberMutation builder. @@ -25379,6 +25908,15 @@ func (i *UpdateSubscriberInput) Mutate(m *SubscriberMutation) { if v := i.UserID; v != nil { m.SetUserID(*v) } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } } // SetInput applies the change-set in the UpdateSubscriberInput on the SubscriberUpdate builder. @@ -28509,6 +29047,7 @@ type CreateUserInput struct { ActionPlanIDs []string `json:"action_plan_ids,omitempty"` CampaignIDs []string `json:"campaign_ids,omitempty"` CampaignTargetIDs []string `json:"campaign_target_ids,omitempty"` + AudienceMemberIDs []string `json:"audience_member_ids,omitempty"` SubcontrolIDs []string `json:"subcontrol_ids,omitempty"` AssignerTaskIDs []string `json:"assigner_task_ids,omitempty"` AssigneeTaskIDs []string `json:"assignee_task_ids,omitempty"` @@ -28606,6 +29145,9 @@ func (i *CreateUserInput) Mutate(m *UserMutation) { if v := i.CampaignTargetIDs; len(v) > 0 { m.AddCampaignTargetIDs(v...) } + if v := i.AudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } if v := i.SubcontrolIDs; len(v) > 0 { m.AddSubcontrolIDs(v...) } @@ -28710,6 +29252,9 @@ type UpdateUserInput struct { ClearCampaignTargets bool AddCampaignTargetIDs []string `json:"add_campaign_target_ids,omitempty"` RemoveCampaignTargetIDs []string `json:"remove_campaign_target_ids,omitempty"` + ClearAudienceMembers bool + AddAudienceMemberIDs []string `json:"add_audience_member_ids,omitempty"` + RemoveAudienceMemberIDs []string `json:"remove_audience_member_ids,omitempty"` ClearSubcontrols bool AddSubcontrolIDs []string `json:"add_subcontrol_ids,omitempty"` RemoveSubcontrolIDs []string `json:"remove_subcontrol_ids,omitempty"` @@ -28942,6 +29487,15 @@ func (i *UpdateUserInput) Mutate(m *UserMutation) { if v := i.RemoveCampaignTargetIDs; len(v) > 0 { m.RemoveCampaignTargetIDs(v...) } + if i.ClearAudienceMembers { + m.ClearAudienceMembers() + } + if v := i.AddAudienceMemberIDs; len(v) > 0 { + m.AddAudienceMemberIDs(v...) + } + if v := i.RemoveAudienceMemberIDs; len(v) > 0 { + m.RemoveAudienceMemberIDs(v...) + } if i.ClearSubcontrols { m.ClearSubcontrols() } diff --git a/internal/ent/generated/gql_node.go b/internal/ent/generated/gql_node.go index a9a5262813..56a9ca7eab 100644 --- a/internal/ent/generated/gql_node.go +++ b/internal/ent/generated/gql_node.go @@ -14,6 +14,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -132,6 +134,16 @@ var assetImplementors = []string{"Asset", "Node"} // IsNode implements the Node interface check for GQLGen. func (*Asset) IsNode() {} +var audienceImplementors = []string{"Audience", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*Audience) IsNode() {} + +var audiencememberImplementors = []string{"AudienceMember", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*AudienceMember) IsNode() {} + var campaignImplementors = []string{"Campaign", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -665,6 +677,24 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case audience.Table: + query := c.Audience.Query(). + Where(audience.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, audienceImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case audiencemember.Table: + query := c.AudienceMember.Query(). + Where(audiencemember.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, audiencememberImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case campaign.Table: query := c.Campaign.Query(). Where(campaign.ID(id)) @@ -1592,6 +1622,38 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case audience.Table: + query := c.Audience.Query(). + Where(audience.IDIn(ids...)) + query, err := query.CollectFields(ctx, audienceImplementors...) + if err != nil { + return nil, err + } + nodes, err := query.All(ctx) + if err != nil { + return nil, err + } + for _, node := range nodes { + for _, noder := range idmap[node.ID] { + *noder = node + } + } + case audiencemember.Table: + query := c.AudienceMember.Query(). + Where(audiencemember.IDIn(ids...)) + query, err := query.CollectFields(ctx, audiencememberImplementors...) + if err != nil { + return nil, err + } + nodes, err := query.All(ctx) + if err != nil { + return nil, err + } + for _, node := range nodes { + for _, noder := range idmap[node.ID] { + *noder = node + } + } case campaign.Table: query := c.Campaign.Query(). Where(campaign.IDIn(ids...)) diff --git a/internal/ent/generated/gql_pagination.go b/internal/ent/generated/gql_pagination.go index 9101830309..dc0994289a 100644 --- a/internal/ent/generated/gql_pagination.go +++ b/internal/ent/generated/gql_pagination.go @@ -19,6 +19,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -2845,6 +2847,788 @@ func (_m *Asset) ToEdge(order *AssetOrder) *AssetEdge { } } +// AudienceEdge is the edge representation of Audience. +type AudienceEdge struct { + Node *Audience `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// AudienceConnection is the connection containing edges to Audience. +type AudienceConnection struct { + Edges []*AudienceEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *AudienceConnection) build(nodes []*Audience, pager *audiencePager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && len(nodes) >= *first+1 { + c.PageInfo.HasNextPage = true + nodes = nodes[:*first] + } else if last != nil && len(nodes) >= *last+1 { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:*last] + } + var nodeAt func(int) *Audience + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *Audience { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *Audience { + return nodes[i] + } + } + c.Edges = make([]*AudienceEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &AudienceEdge{ + Node: node, + Cursor: pager.toCursor(node), + } + } + if l := len(c.Edges); l > 0 { + c.PageInfo.StartCursor = &c.Edges[0].Cursor + c.PageInfo.EndCursor = &c.Edges[l-1].Cursor + } + if c.TotalCount == 0 { + c.TotalCount = len(nodes) + } +} + +// AudiencePaginateOption enables pagination customization. +type AudiencePaginateOption func(*audiencePager) error + +// WithAudienceOrder configures pagination ordering. +func WithAudienceOrder(order []*AudienceOrder) AudiencePaginateOption { + return func(pager *audiencePager) error { + for _, o := range order { + if err := o.Direction.Validate(); err != nil { + return err + } + } + pager.order = append(pager.order, order...) + return nil + } +} + +// WithAudienceFilter configures pagination filter. +func WithAudienceFilter(filter func(*AudienceQuery) (*AudienceQuery, error)) AudiencePaginateOption { + return func(pager *audiencePager) error { + if filter == nil { + return errors.New("AudienceQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type audiencePager struct { + reverse bool + order []*AudienceOrder + filter func(*AudienceQuery) (*AudienceQuery, error) +} + +func newAudiencePager(opts []AudiencePaginateOption, reverse bool) (*audiencePager, error) { + pager := &audiencePager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + for i, o := range pager.order { + if i > 0 && o.Field == pager.order[i-1].Field { + return nil, fmt.Errorf("duplicate order direction %q", o.Direction) + } + } + return pager, nil +} + +func (p *audiencePager) applyFilter(query *AudienceQuery) (*AudienceQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *audiencePager) toCursor(_m *Audience) Cursor { + cs_ := make([]any, 0, len(p.order)) + for _, o_ := range p.order { + cs_ = append(cs_, o_.Field.toCursor(_m).Value) + } + return Cursor{ID: _m.ID, Value: cs_} +} + +func (p *audiencePager) applyCursors(query *AudienceQuery, after, before *Cursor) (*AudienceQuery, error) { + idDirection := entgql.OrderDirectionAsc + if p.reverse { + idDirection = entgql.OrderDirectionDesc + } + fields, directions := make([]string, 0, len(p.order)), make([]OrderDirection, 0, len(p.order)) + for _, o := range p.order { + fields = append(fields, o.Field.column) + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + directions = append(directions, direction) + } + predicates, err := entgql.MultiCursorsPredicate(after, before, &entgql.MultiCursorsOptions{ + FieldID: DefaultAudienceOrder.Field.column, + DirectionID: idDirection, + Fields: fields, + Directions: directions, + }) + if err != nil { + return nil, err + } + for i, predicate := range predicates { + query = query.Where(func(s *sql.Selector) { + predicate(s) + if i < len(fields) { + s.Or().Where(sql.IsNull(fields[i])) + } + }) + } + return query, nil +} + +func (p *audiencePager) applyOrder(query *AudienceQuery) *AudienceQuery { + var defaultOrdered bool + for _, o := range p.order { + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(o.Field.toTerm(direction.OrderTermOption())) + if o.Field.column == DefaultAudienceOrder.Field.column { + defaultOrdered = true + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(o.Field.column) + } + } + if !defaultOrdered { + direction := entgql.OrderDirectionAsc + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(DefaultAudienceOrder.Field.toTerm(direction.OrderTermOption())) + } + return query +} + +func (p *audiencePager) orderExpr(query *AudienceQuery) sql.Querier { + if len(query.ctx.Fields) > 0 { + for _, o := range p.order { + query.ctx.AppendFieldOnce(o.Field.column) + } + } + return sql.ExprFunc(func(b *sql.Builder) { + for _, o := range p.order { + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + b.Ident(o.Field.column).Pad().WriteString(string(direction)) + b.Comma() + } + direction := entgql.OrderDirectionAsc + if p.reverse { + direction = direction.Reverse() + } + b.Ident(DefaultAudienceOrder.Field.column).Pad().WriteString(string(direction)) + }) +} + +// Paginate executes the query and returns a relay based cursor connection to Audience. +func (_m *AudienceQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...AudiencePaginateOption, +) (*AudienceConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newAudiencePager(opts, last != nil) + if err != nil { + return nil, err + } + if _m, err = pager.applyFilter(_m); err != nil { + return nil, err + } + conn := &AudienceConnection{Edges: []*AudienceEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := _m.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.CountIDs(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if _m, err = pager.applyCursors(_m, after, before); err != nil { + return nil, err + } + limit := paginateLimitSingle(first, last) + if limit != 0 { + _m.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := _m.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + _m = pager.applyOrder(_m) + nodes, err := _m.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // AudienceOrderFieldCreatedAt orders Audience by created_at. + AudienceOrderFieldCreatedAt = &AudienceOrderField{ + Value: func(_m *Audience) (ent.Value, error) { + return _m.CreatedAt, nil + }, + column: audience.FieldCreatedAt, + toTerm: audience.ByCreatedAt, + toCursor: func(_m *Audience) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.CreatedAt, + } + }, + } + // AudienceOrderFieldUpdatedAt orders Audience by updated_at. + AudienceOrderFieldUpdatedAt = &AudienceOrderField{ + Value: func(_m *Audience) (ent.Value, error) { + return _m.UpdatedAt, nil + }, + column: audience.FieldUpdatedAt, + toTerm: audience.ByUpdatedAt, + toCursor: func(_m *Audience) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.UpdatedAt, + } + }, + } + // AudienceOrderFieldName orders Audience by name. + AudienceOrderFieldName = &AudienceOrderField{ + Value: func(_m *Audience) (ent.Value, error) { + return _m.Name, nil + }, + column: audience.FieldName, + toTerm: audience.ByName, + toCursor: func(_m *Audience) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.Name, + } + }, + } + // AudienceOrderFieldAudienceType orders Audience by audience_type. + AudienceOrderFieldAudienceType = &AudienceOrderField{ + Value: func(_m *Audience) (ent.Value, error) { + return _m.AudienceType, nil + }, + column: audience.FieldAudienceType, + toTerm: audience.ByAudienceType, + toCursor: func(_m *Audience) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.AudienceType, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f AudienceOrderField) String() string { + var str string + switch f.column { + case AudienceOrderFieldCreatedAt.column: + str = "created_at" + case AudienceOrderFieldUpdatedAt.column: + str = "updated_at" + case AudienceOrderFieldName.column: + str = "name" + case AudienceOrderFieldAudienceType.column: + str = "AUDIENCE_TYPE" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f AudienceOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *AudienceOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("AudienceOrderField %T must be a string", v) + } + switch str { + case "created_at": + *f = *AudienceOrderFieldCreatedAt + case "updated_at": + *f = *AudienceOrderFieldUpdatedAt + case "name": + *f = *AudienceOrderFieldName + case "AUDIENCE_TYPE": + *f = *AudienceOrderFieldAudienceType + default: + return fmt.Errorf("%s is not a valid AudienceOrderField", str) + } + return nil +} + +// AudienceOrderField defines the ordering field of Audience. +type AudienceOrderField struct { + // Value extracts the ordering value from the given Audience. + Value func(*Audience) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) audience.OrderOption + toCursor func(*Audience) Cursor +} + +// AudienceOrder defines the ordering of Audience. +type AudienceOrder struct { + Direction OrderDirection `json:"direction"` + Field *AudienceOrderField `json:"field"` +} + +// DefaultAudienceOrder is the default ordering of Audience. +var DefaultAudienceOrder = &AudienceOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &AudienceOrderField{ + Value: func(_m *Audience) (ent.Value, error) { + return _m.ID, nil + }, + column: audience.FieldID, + toTerm: audience.ByID, + toCursor: func(_m *Audience) Cursor { + return Cursor{ID: _m.ID} + }, + }, +} + +// ToEdge converts Audience into AudienceEdge. +func (_m *Audience) ToEdge(order *AudienceOrder) *AudienceEdge { + if order == nil { + order = DefaultAudienceOrder + } + return &AudienceEdge{ + Node: _m, + Cursor: order.Field.toCursor(_m), + } +} + +// AudienceMemberEdge is the edge representation of AudienceMember. +type AudienceMemberEdge struct { + Node *AudienceMember `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// AudienceMemberConnection is the connection containing edges to AudienceMember. +type AudienceMemberConnection struct { + Edges []*AudienceMemberEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *AudienceMemberConnection) build(nodes []*AudienceMember, pager *audiencememberPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && len(nodes) >= *first+1 { + c.PageInfo.HasNextPage = true + nodes = nodes[:*first] + } else if last != nil && len(nodes) >= *last+1 { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:*last] + } + var nodeAt func(int) *AudienceMember + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *AudienceMember { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *AudienceMember { + return nodes[i] + } + } + c.Edges = make([]*AudienceMemberEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &AudienceMemberEdge{ + Node: node, + Cursor: pager.toCursor(node), + } + } + if l := len(c.Edges); l > 0 { + c.PageInfo.StartCursor = &c.Edges[0].Cursor + c.PageInfo.EndCursor = &c.Edges[l-1].Cursor + } + if c.TotalCount == 0 { + c.TotalCount = len(nodes) + } +} + +// AudienceMemberPaginateOption enables pagination customization. +type AudienceMemberPaginateOption func(*audiencememberPager) error + +// WithAudienceMemberOrder configures pagination ordering. +func WithAudienceMemberOrder(order []*AudienceMemberOrder) AudienceMemberPaginateOption { + return func(pager *audiencememberPager) error { + for _, o := range order { + if err := o.Direction.Validate(); err != nil { + return err + } + } + pager.order = append(pager.order, order...) + return nil + } +} + +// WithAudienceMemberFilter configures pagination filter. +func WithAudienceMemberFilter(filter func(*AudienceMemberQuery) (*AudienceMemberQuery, error)) AudienceMemberPaginateOption { + return func(pager *audiencememberPager) error { + if filter == nil { + return errors.New("AudienceMemberQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type audiencememberPager struct { + reverse bool + order []*AudienceMemberOrder + filter func(*AudienceMemberQuery) (*AudienceMemberQuery, error) +} + +func newAudienceMemberPager(opts []AudienceMemberPaginateOption, reverse bool) (*audiencememberPager, error) { + pager := &audiencememberPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + for i, o := range pager.order { + if i > 0 && o.Field == pager.order[i-1].Field { + return nil, fmt.Errorf("duplicate order direction %q", o.Direction) + } + } + return pager, nil +} + +func (p *audiencememberPager) applyFilter(query *AudienceMemberQuery) (*AudienceMemberQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *audiencememberPager) toCursor(_m *AudienceMember) Cursor { + cs_ := make([]any, 0, len(p.order)) + for _, o_ := range p.order { + cs_ = append(cs_, o_.Field.toCursor(_m).Value) + } + return Cursor{ID: _m.ID, Value: cs_} +} + +func (p *audiencememberPager) applyCursors(query *AudienceMemberQuery, after, before *Cursor) (*AudienceMemberQuery, error) { + idDirection := entgql.OrderDirectionAsc + if p.reverse { + idDirection = entgql.OrderDirectionDesc + } + fields, directions := make([]string, 0, len(p.order)), make([]OrderDirection, 0, len(p.order)) + for _, o := range p.order { + fields = append(fields, o.Field.column) + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + directions = append(directions, direction) + } + predicates, err := entgql.MultiCursorsPredicate(after, before, &entgql.MultiCursorsOptions{ + FieldID: DefaultAudienceMemberOrder.Field.column, + DirectionID: idDirection, + Fields: fields, + Directions: directions, + }) + if err != nil { + return nil, err + } + for i, predicate := range predicates { + query = query.Where(func(s *sql.Selector) { + predicate(s) + if i < len(fields) { + s.Or().Where(sql.IsNull(fields[i])) + } + }) + } + return query, nil +} + +func (p *audiencememberPager) applyOrder(query *AudienceMemberQuery) *AudienceMemberQuery { + var defaultOrdered bool + for _, o := range p.order { + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(o.Field.toTerm(direction.OrderTermOption())) + if o.Field.column == DefaultAudienceMemberOrder.Field.column { + defaultOrdered = true + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(o.Field.column) + } + } + if !defaultOrdered { + direction := entgql.OrderDirectionAsc + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(DefaultAudienceMemberOrder.Field.toTerm(direction.OrderTermOption())) + } + return query +} + +func (p *audiencememberPager) orderExpr(query *AudienceMemberQuery) sql.Querier { + if len(query.ctx.Fields) > 0 { + for _, o := range p.order { + query.ctx.AppendFieldOnce(o.Field.column) + } + } + return sql.ExprFunc(func(b *sql.Builder) { + for _, o := range p.order { + direction := o.Direction + if p.reverse { + direction = direction.Reverse() + } + b.Ident(o.Field.column).Pad().WriteString(string(direction)) + b.Comma() + } + direction := entgql.OrderDirectionAsc + if p.reverse { + direction = direction.Reverse() + } + b.Ident(DefaultAudienceMemberOrder.Field.column).Pad().WriteString(string(direction)) + }) +} + +// Paginate executes the query and returns a relay based cursor connection to AudienceMember. +func (_m *AudienceMemberQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...AudienceMemberPaginateOption, +) (*AudienceMemberConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newAudienceMemberPager(opts, last != nil) + if err != nil { + return nil, err + } + if _m, err = pager.applyFilter(_m); err != nil { + return nil, err + } + conn := &AudienceMemberConnection{Edges: []*AudienceMemberEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := _m.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.CountIDs(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if _m, err = pager.applyCursors(_m, after, before); err != nil { + return nil, err + } + limit := paginateLimitSingle(first, last) + if limit != 0 { + _m.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := _m.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + _m = pager.applyOrder(_m) + nodes, err := _m.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // AudienceMemberOrderFieldCreatedAt orders AudienceMember by created_at. + AudienceMemberOrderFieldCreatedAt = &AudienceMemberOrderField{ + Value: func(_m *AudienceMember) (ent.Value, error) { + return _m.CreatedAt, nil + }, + column: audiencemember.FieldCreatedAt, + toTerm: audiencemember.ByCreatedAt, + toCursor: func(_m *AudienceMember) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.CreatedAt, + } + }, + } + // AudienceMemberOrderFieldUpdatedAt orders AudienceMember by updated_at. + AudienceMemberOrderFieldUpdatedAt = &AudienceMemberOrderField{ + Value: func(_m *AudienceMember) (ent.Value, error) { + return _m.UpdatedAt, nil + }, + column: audiencemember.FieldUpdatedAt, + toTerm: audiencemember.ByUpdatedAt, + toCursor: func(_m *AudienceMember) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.UpdatedAt, + } + }, + } + // AudienceMemberOrderFieldEmail orders AudienceMember by email. + AudienceMemberOrderFieldEmail = &AudienceMemberOrderField{ + Value: func(_m *AudienceMember) (ent.Value, error) { + return _m.Email, nil + }, + column: audiencemember.FieldEmail, + toTerm: audiencemember.ByEmail, + toCursor: func(_m *AudienceMember) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.Email, + } + }, + } + // AudienceMemberOrderFieldFullName orders AudienceMember by full_name. + AudienceMemberOrderFieldFullName = &AudienceMemberOrderField{ + Value: func(_m *AudienceMember) (ent.Value, error) { + return _m.FullName, nil + }, + column: audiencemember.FieldFullName, + toTerm: audiencemember.ByFullName, + toCursor: func(_m *AudienceMember) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.FullName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f AudienceMemberOrderField) String() string { + var str string + switch f.column { + case AudienceMemberOrderFieldCreatedAt.column: + str = "created_at" + case AudienceMemberOrderFieldUpdatedAt.column: + str = "updated_at" + case AudienceMemberOrderFieldEmail.column: + str = "email" + case AudienceMemberOrderFieldFullName.column: + str = "full_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f AudienceMemberOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *AudienceMemberOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("AudienceMemberOrderField %T must be a string", v) + } + switch str { + case "created_at": + *f = *AudienceMemberOrderFieldCreatedAt + case "updated_at": + *f = *AudienceMemberOrderFieldUpdatedAt + case "email": + *f = *AudienceMemberOrderFieldEmail + case "full_name": + *f = *AudienceMemberOrderFieldFullName + default: + return fmt.Errorf("%s is not a valid AudienceMemberOrderField", str) + } + return nil +} + +// AudienceMemberOrderField defines the ordering field of AudienceMember. +type AudienceMemberOrderField struct { + // Value extracts the ordering value from the given AudienceMember. + Value func(*AudienceMember) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) audiencemember.OrderOption + toCursor func(*AudienceMember) Cursor +} + +// AudienceMemberOrder defines the ordering of AudienceMember. +type AudienceMemberOrder struct { + Direction OrderDirection `json:"direction"` + Field *AudienceMemberOrderField `json:"field"` +} + +// DefaultAudienceMemberOrder is the default ordering of AudienceMember. +var DefaultAudienceMemberOrder = &AudienceMemberOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &AudienceMemberOrderField{ + Value: func(_m *AudienceMember) (ent.Value, error) { + return _m.ID, nil + }, + column: audiencemember.FieldID, + toTerm: audiencemember.ByID, + toCursor: func(_m *AudienceMember) Cursor { + return Cursor{ID: _m.ID} + }, + }, +} + +// ToEdge converts AudienceMember into AudienceMemberEdge. +func (_m *AudienceMember) ToEdge(order *AudienceMemberOrder) *AudienceMemberEdge { + if order == nil { + order = DefaultAudienceMemberOrder + } + return &AudienceMemberEdge{ + Node: _m, + Cursor: order.Field.toCursor(_m), + } +} + // CampaignEdge is the edge representation of Campaign. type CampaignEdge struct { Node *Campaign `json:"node"` diff --git a/internal/ent/generated/gql_where_input.go b/internal/ent/generated/gql_where_input.go index 42d11ac3b8..e0423e171e 100644 --- a/internal/ent/generated/gql_where_input.go +++ b/internal/ent/generated/gql_where_input.go @@ -16,6 +16,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -7424,6 +7426,1575 @@ func (i *AssetWhereInput) P() (predicate.Asset, error) { } } +// AudienceWhereInput represents a where input for filtering Audience queries. +type AudienceWhereInput struct { + Predicates []predicate.Audience `json:"-"` + Not *AudienceWhereInput `json:"not,omitempty"` + Or []*AudienceWhereInput `json:"or,omitempty"` + And []*AudienceWhereInput `json:"and,omitempty"` + + // "id" field predicates. + ID *string `json:"id,omitempty"` + IDNEQ *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil bool `json:"createdAtNotNil,omitempty"` + + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil bool `json:"updatedAtNotNil,omitempty"` + + // "created_by" field predicates. + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNEQ *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + + // "updated_by" field predicates. + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + + // "updated_by_impersonator" field predicates. + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNEQ *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + + // "display_id" field predicates. + DisplayID *string `json:"displayID,omitempty"` + DisplayIDNEQ *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + + // "owner_id" field predicates. + OwnerID *string `json:"ownerID,omitempty"` + OwnerIDNEQ *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameContains *string `json:"nameContains,omitempty"` + NameHasPrefix *string `json:"nameHasPrefix,omitempty"` + NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameEqualFold *string `json:"nameEqualFold,omitempty"` + NameContainsFold *string `json:"nameContainsFold,omitempty"` + + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionIsNil bool `json:"descriptionIsNil,omitempty"` + DescriptionNotNil bool `json:"descriptionNotNil,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + + // "audience_type" field predicates. + AudienceType *enums.AudienceType `json:"audienceType,omitempty"` + AudienceTypeNEQ *enums.AudienceType `json:"audienceTypeNEQ,omitempty"` + AudienceTypeIn []enums.AudienceType `json:"audienceTypeIn,omitempty"` + AudienceTypeNotIn []enums.AudienceType `json:"audienceTypeNotIn,omitempty"` + + // "tags" JSON-string-array predicates. + TagsHas *string `json:"tagsHas,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "blocked_groups" edge predicates. + HasBlockedGroups *bool `json:"hasBlockedGroups,omitempty"` + HasBlockedGroupsWith []*GroupWhereInput `json:"hasBlockedGroupsWith,omitempty"` + + // "editors" edge predicates. + HasEditors *bool `json:"hasEditors,omitempty"` + HasEditorsWith []*GroupWhereInput `json:"hasEditorsWith,omitempty"` + + // "viewers" edge predicates. + HasViewers *bool `json:"hasViewers,omitempty"` + HasViewersWith []*GroupWhereInput `json:"hasViewersWith,omitempty"` + + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + + // "campaigns" edge predicates. + HasCampaigns *bool `json:"hasCampaigns,omitempty"` + HasCampaignsWith []*CampaignWhereInput `json:"hasCampaignsWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *AudienceWhereInput) AddPredicates(predicates ...predicate.Audience) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the AudienceWhereInput filter on the AudienceQuery builder. +func (i *AudienceWhereInput) Filter(q *AudienceQuery) (*AudienceQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyAudienceWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyAudienceWhereInput is returned in case the AudienceWhereInput is empty. +var ErrEmptyAudienceWhereInput = errors.New("generated: empty predicate AudienceWhereInput") + +// P returns a predicate for filtering audiences. +// An error is returned if the input is empty or invalid. +func (i *AudienceWhereInput) P() (predicate.Audience, error) { + var predicates []predicate.Audience + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, audience.Not(p)) + } + switch n := len(i.Or); { + case n == 1: + p, err := i.Or[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + predicates = append(predicates, p) + case n > 1: + or := make([]predicate.Audience, 0, n) + for _, w := range i.Or { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + or = append(or, p) + } + predicates = append(predicates, audience.Or(or...)) + } + switch n := len(i.And); { + case n == 1: + p, err := i.And[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + predicates = append(predicates, p) + case n > 1: + and := make([]predicate.Audience, 0, n) + for _, w := range i.And { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + and = append(and, p) + } + predicates = append(predicates, audience.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, audience.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, audience.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, audience.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, audience.IDNotIn(i.IDNotIn...)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, audience.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, audience.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, audience.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, audience.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, audience.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, audience.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, audience.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, audience.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, audience.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, audience.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, audience.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, audience.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, audience.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, audience.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, audience.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, audience.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, audience.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, audience.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, audience.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, audience.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, audience.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, audience.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, audience.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, audience.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, audience.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, audience.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, audience.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, audience.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, audience.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, audience.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, audience.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, audience.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, audience.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, audience.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, audience.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, audience.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, audience.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, audience.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.UpdatedByImpersonator != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorEQ(*i.UpdatedByImpersonator)) + } + if i.UpdatedByImpersonatorNEQ != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorNEQ(*i.UpdatedByImpersonatorNEQ)) + } + if len(i.UpdatedByImpersonatorIn) > 0 { + predicates = append(predicates, audience.UpdatedByImpersonatorIn(i.UpdatedByImpersonatorIn...)) + } + if len(i.UpdatedByImpersonatorNotIn) > 0 { + predicates = append(predicates, audience.UpdatedByImpersonatorNotIn(i.UpdatedByImpersonatorNotIn...)) + } + if i.UpdatedByImpersonatorContains != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorContains(*i.UpdatedByImpersonatorContains)) + } + if i.UpdatedByImpersonatorHasPrefix != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorHasPrefix(*i.UpdatedByImpersonatorHasPrefix)) + } + if i.UpdatedByImpersonatorHasSuffix != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorHasSuffix(*i.UpdatedByImpersonatorHasSuffix)) + } + if i.UpdatedByImpersonatorIsNil { + predicates = append(predicates, audience.UpdatedByImpersonatorIsNil()) + } + if i.UpdatedByImpersonatorNotNil { + predicates = append(predicates, audience.UpdatedByImpersonatorNotNil()) + } + if i.UpdatedByImpersonatorEqualFold != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorEqualFold(*i.UpdatedByImpersonatorEqualFold)) + } + if i.UpdatedByImpersonatorContainsFold != nil { + predicates = append(predicates, audience.UpdatedByImpersonatorContainsFold(*i.UpdatedByImpersonatorContainsFold)) + } + if i.DisplayID != nil { + predicates = append(predicates, audience.DisplayIDEQ(*i.DisplayID)) + } + if i.DisplayIDNEQ != nil { + predicates = append(predicates, audience.DisplayIDNEQ(*i.DisplayIDNEQ)) + } + if len(i.DisplayIDIn) > 0 { + predicates = append(predicates, audience.DisplayIDIn(i.DisplayIDIn...)) + } + if len(i.DisplayIDNotIn) > 0 { + predicates = append(predicates, audience.DisplayIDNotIn(i.DisplayIDNotIn...)) + } + if i.DisplayIDContains != nil { + predicates = append(predicates, audience.DisplayIDContains(*i.DisplayIDContains)) + } + if i.DisplayIDHasPrefix != nil { + predicates = append(predicates, audience.DisplayIDHasPrefix(*i.DisplayIDHasPrefix)) + } + if i.DisplayIDHasSuffix != nil { + predicates = append(predicates, audience.DisplayIDHasSuffix(*i.DisplayIDHasSuffix)) + } + if i.DisplayIDEqualFold != nil { + predicates = append(predicates, audience.DisplayIDEqualFold(*i.DisplayIDEqualFold)) + } + if i.DisplayIDContainsFold != nil { + predicates = append(predicates, audience.DisplayIDContainsFold(*i.DisplayIDContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, audience.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, audience.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, audience.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, audience.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, audience.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, audience.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, audience.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, audience.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, audience.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, audience.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, audience.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, audience.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, audience.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, audience.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, audience.NameNotIn(i.NameNotIn...)) + } + if i.NameContains != nil { + predicates = append(predicates, audience.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, audience.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, audience.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, audience.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, audience.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, audience.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, audience.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, audience.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, audience.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, audience.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, audience.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, audience.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, audience.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, audience.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, audience.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, audience.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.AudienceType != nil { + predicates = append(predicates, audience.AudienceTypeEQ(*i.AudienceType)) + } + if i.AudienceTypeNEQ != nil { + predicates = append(predicates, audience.AudienceTypeNEQ(*i.AudienceTypeNEQ)) + } + if len(i.AudienceTypeIn) > 0 { + predicates = append(predicates, audience.AudienceTypeIn(i.AudienceTypeIn...)) + } + if len(i.AudienceTypeNotIn) > 0 { + predicates = append(predicates, audience.AudienceTypeNotIn(i.AudienceTypeNotIn...)) + } + + if i.TagsHas != nil { + v := *i.TagsHas + predicates = append(predicates, func(s *sql.Selector) { + s.Where(sqljson.ValueContains(audience.FieldTags, v)) + }) + } + + if i.HasOwner != nil { + p := audience.HasOwner() + if !*i.HasOwner { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + with = append(with, organization.DeletedAtIsNil()) + for _, w := range i.HasOwnerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasOwnerWith(with...)) + } + if i.HasBlockedGroups != nil { + p := audience.HasBlockedGroups() + if !*i.HasBlockedGroups { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasBlockedGroupsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasBlockedGroupsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasBlockedGroupsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasBlockedGroupsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasBlockedGroupsWith(with...)) + } + if i.HasEditors != nil { + p := audience.HasEditors() + if !*i.HasEditors { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasEditorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasEditorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasEditorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasEditorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasEditorsWith(with...)) + } + if i.HasViewers != nil { + p := audience.HasViewers() + if !*i.HasViewers { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasViewersWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasViewersWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasViewersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasViewersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasViewersWith(with...)) + } + if i.HasAudienceMembers != nil { + p := audience.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasAudienceMembersWith(with...)) + } + if i.HasCampaigns != nil { + p := audience.HasCampaigns() + if !*i.HasCampaigns { + p = audience.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasCampaignsWith) > 0 { + with := make([]predicate.Campaign, 0, len(i.HasCampaignsWith)) + with = append(with, campaign.DeletedAtIsNil()) + for _, w := range i.HasCampaignsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasCampaignsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audience.HasCampaignsWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyAudienceWhereInput + case 1: + return predicates[0], nil + default: + return audience.And(predicates...), nil + } +} + +// AudienceMemberWhereInput represents a where input for filtering AudienceMember queries. +type AudienceMemberWhereInput struct { + Predicates []predicate.AudienceMember `json:"-"` + Not *AudienceMemberWhereInput `json:"not,omitempty"` + Or []*AudienceMemberWhereInput `json:"or,omitempty"` + And []*AudienceMemberWhereInput `json:"and,omitempty"` + + // "id" field predicates. + ID *string `json:"id,omitempty"` + IDNEQ *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil bool `json:"createdAtNotNil,omitempty"` + + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil bool `json:"updatedAtNotNil,omitempty"` + + // "created_by" field predicates. + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNEQ *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + + // "updated_by" field predicates. + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + + // "updated_by_impersonator" field predicates. + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNEQ *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + + // "display_id" field predicates. + DisplayID *string `json:"displayID,omitempty"` + DisplayIDNEQ *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + + // "owner_id" field predicates. + OwnerID *string `json:"ownerID,omitempty"` + OwnerIDNEQ *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + + // "audience_id" field predicates. + AudienceID *string `json:"audienceID,omitempty"` + AudienceIDNEQ *string `json:"audienceIDNEQ,omitempty"` + AudienceIDIn []string `json:"audienceIDIn,omitempty"` + AudienceIDNotIn []string `json:"audienceIDNotIn,omitempty"` + AudienceIDContains *string `json:"audienceIDContains,omitempty"` + AudienceIDHasPrefix *string `json:"audienceIDHasPrefix,omitempty"` + AudienceIDHasSuffix *string `json:"audienceIDHasSuffix,omitempty"` + AudienceIDEqualFold *string `json:"audienceIDEqualFold,omitempty"` + AudienceIDContainsFold *string `json:"audienceIDContainsFold,omitempty"` + + // "contact_id" field predicates. + ContactID *string `json:"contactID,omitempty"` + ContactIDNEQ *string `json:"contactIDNEQ,omitempty"` + ContactIDIn []string `json:"contactIDIn,omitempty"` + ContactIDNotIn []string `json:"contactIDNotIn,omitempty"` + ContactIDContains *string `json:"contactIDContains,omitempty"` + ContactIDHasPrefix *string `json:"contactIDHasPrefix,omitempty"` + ContactIDHasSuffix *string `json:"contactIDHasSuffix,omitempty"` + ContactIDIsNil bool `json:"contactIDIsNil,omitempty"` + ContactIDNotNil bool `json:"contactIDNotNil,omitempty"` + ContactIDEqualFold *string `json:"contactIDEqualFold,omitempty"` + ContactIDContainsFold *string `json:"contactIDContainsFold,omitempty"` + + // "user_id" field predicates. + UserID *string `json:"userID,omitempty"` + UserIDNEQ *string `json:"userIDNEQ,omitempty"` + UserIDIn []string `json:"userIDIn,omitempty"` + UserIDNotIn []string `json:"userIDNotIn,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDIsNil bool `json:"userIDIsNil,omitempty"` + UserIDNotNil bool `json:"userIDNotNil,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + + // "group_id" field predicates. + GroupID *string `json:"groupID,omitempty"` + GroupIDNEQ *string `json:"groupIDNEQ,omitempty"` + GroupIDIn []string `json:"groupIDIn,omitempty"` + GroupIDNotIn []string `json:"groupIDNotIn,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDIsNil bool `json:"groupIDIsNil,omitempty"` + GroupIDNotNil bool `json:"groupIDNotNil,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,omitempty"` + + // "identity_holder_id" field predicates. + IdentityHolderID *string `json:"identityHolderID,omitempty"` + IdentityHolderIDNEQ *string `json:"identityHolderIDNEQ,omitempty"` + IdentityHolderIDIn []string `json:"identityHolderIDIn,omitempty"` + IdentityHolderIDNotIn []string `json:"identityHolderIDNotIn,omitempty"` + IdentityHolderIDContains *string `json:"identityHolderIDContains,omitempty"` + IdentityHolderIDHasPrefix *string `json:"identityHolderIDHasPrefix,omitempty"` + IdentityHolderIDHasSuffix *string `json:"identityHolderIDHasSuffix,omitempty"` + IdentityHolderIDIsNil bool `json:"identityHolderIDIsNil,omitempty"` + IdentityHolderIDNotNil bool `json:"identityHolderIDNotNil,omitempty"` + IdentityHolderIDEqualFold *string `json:"identityHolderIDEqualFold,omitempty"` + IdentityHolderIDContainsFold *string `json:"identityHolderIDContainsFold,omitempty"` + + // "subscriber_id" field predicates. + SubscriberID *string `json:"subscriberID,omitempty"` + SubscriberIDNEQ *string `json:"subscriberIDNEQ,omitempty"` + SubscriberIDIn []string `json:"subscriberIDIn,omitempty"` + SubscriberIDNotIn []string `json:"subscriberIDNotIn,omitempty"` + SubscriberIDContains *string `json:"subscriberIDContains,omitempty"` + SubscriberIDHasPrefix *string `json:"subscriberIDHasPrefix,omitempty"` + SubscriberIDHasSuffix *string `json:"subscriberIDHasSuffix,omitempty"` + SubscriberIDIsNil bool `json:"subscriberIDIsNil,omitempty"` + SubscriberIDNotNil bool `json:"subscriberIDNotNil,omitempty"` + SubscriberIDEqualFold *string `json:"subscriberIDEqualFold,omitempty"` + SubscriberIDContainsFold *string `json:"subscriberIDContainsFold,omitempty"` + + // "email" field predicates. + Email *string `json:"email,omitempty"` + EmailNEQ *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + + // "full_name" field predicates. + FullName *string `json:"fullName,omitempty"` + FullNameNEQ *string `json:"fullNameNEQ,omitempty"` + FullNameIn []string `json:"fullNameIn,omitempty"` + FullNameNotIn []string `json:"fullNameNotIn,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameIsNil bool `json:"fullNameIsNil,omitempty"` + FullNameNotNil bool `json:"fullNameNotNil,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + + // "tags" JSON-string-array predicates. + TagsHas *string `json:"tagsHas,omitempty"` + + // "owner" edge predicates. + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + + // "audience" edge predicates. + HasAudience *bool `json:"hasAudience,omitempty"` + HasAudienceWith []*AudienceWhereInput `json:"hasAudienceWith,omitempty"` + + // "contact" edge predicates. + HasContact *bool `json:"hasContact,omitempty"` + HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` + + // "user" edge predicates. + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + + // "group" edge predicates. + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + + // "identity_holder" edge predicates. + HasIdentityHolder *bool `json:"hasIdentityHolder,omitempty"` + HasIdentityHolderWith []*IdentityHolderWhereInput `json:"hasIdentityHolderWith,omitempty"` + + // "subscriber" edge predicates. + HasSubscriber *bool `json:"hasSubscriber,omitempty"` + HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *AudienceMemberWhereInput) AddPredicates(predicates ...predicate.AudienceMember) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the AudienceMemberWhereInput filter on the AudienceMemberQuery builder. +func (i *AudienceMemberWhereInput) Filter(q *AudienceMemberQuery) (*AudienceMemberQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyAudienceMemberWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyAudienceMemberWhereInput is returned in case the AudienceMemberWhereInput is empty. +var ErrEmptyAudienceMemberWhereInput = errors.New("generated: empty predicate AudienceMemberWhereInput") + +// P returns a predicate for filtering audiencemembers. +// An error is returned if the input is empty or invalid. +func (i *AudienceMemberWhereInput) P() (predicate.AudienceMember, error) { + var predicates []predicate.AudienceMember + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, audiencemember.Not(p)) + } + switch n := len(i.Or); { + case n == 1: + p, err := i.Or[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + predicates = append(predicates, p) + case n > 1: + or := make([]predicate.AudienceMember, 0, n) + for _, w := range i.Or { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + or = append(or, p) + } + predicates = append(predicates, audiencemember.Or(or...)) + } + switch n := len(i.And); { + case n == 1: + p, err := i.And[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + predicates = append(predicates, p) + case n > 1: + and := make([]predicate.AudienceMember, 0, n) + for _, w := range i.And { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + and = append(and, p) + } + predicates = append(predicates, audiencemember.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, audiencemember.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, audiencemember.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, audiencemember.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, audiencemember.IDNotIn(i.IDNotIn...)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, audiencemember.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, audiencemember.IDContainsFold(*i.IDContainsFold)) + } + if i.CreatedAt != nil { + predicates = append(predicates, audiencemember.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, audiencemember.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, audiencemember.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, audiencemember.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, audiencemember.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, audiencemember.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, audiencemember.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, audiencemember.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, audiencemember.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, audiencemember.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, audiencemember.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, audiencemember.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, audiencemember.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, audiencemember.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, audiencemember.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, audiencemember.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, audiencemember.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, audiencemember.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, audiencemember.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, audiencemember.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, audiencemember.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, audiencemember.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, audiencemember.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, audiencemember.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, audiencemember.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, audiencemember.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, audiencemember.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, audiencemember.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, audiencemember.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, audiencemember.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, audiencemember.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, audiencemember.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, audiencemember.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, audiencemember.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, audiencemember.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, audiencemember.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.UpdatedByImpersonator != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorEQ(*i.UpdatedByImpersonator)) + } + if i.UpdatedByImpersonatorNEQ != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorNEQ(*i.UpdatedByImpersonatorNEQ)) + } + if len(i.UpdatedByImpersonatorIn) > 0 { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorIn(i.UpdatedByImpersonatorIn...)) + } + if len(i.UpdatedByImpersonatorNotIn) > 0 { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorNotIn(i.UpdatedByImpersonatorNotIn...)) + } + if i.UpdatedByImpersonatorContains != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorContains(*i.UpdatedByImpersonatorContains)) + } + if i.UpdatedByImpersonatorHasPrefix != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorHasPrefix(*i.UpdatedByImpersonatorHasPrefix)) + } + if i.UpdatedByImpersonatorHasSuffix != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorHasSuffix(*i.UpdatedByImpersonatorHasSuffix)) + } + if i.UpdatedByImpersonatorIsNil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorIsNil()) + } + if i.UpdatedByImpersonatorNotNil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorNotNil()) + } + if i.UpdatedByImpersonatorEqualFold != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorEqualFold(*i.UpdatedByImpersonatorEqualFold)) + } + if i.UpdatedByImpersonatorContainsFold != nil { + predicates = append(predicates, audiencemember.UpdatedByImpersonatorContainsFold(*i.UpdatedByImpersonatorContainsFold)) + } + if i.DisplayID != nil { + predicates = append(predicates, audiencemember.DisplayIDEQ(*i.DisplayID)) + } + if i.DisplayIDNEQ != nil { + predicates = append(predicates, audiencemember.DisplayIDNEQ(*i.DisplayIDNEQ)) + } + if len(i.DisplayIDIn) > 0 { + predicates = append(predicates, audiencemember.DisplayIDIn(i.DisplayIDIn...)) + } + if len(i.DisplayIDNotIn) > 0 { + predicates = append(predicates, audiencemember.DisplayIDNotIn(i.DisplayIDNotIn...)) + } + if i.DisplayIDContains != nil { + predicates = append(predicates, audiencemember.DisplayIDContains(*i.DisplayIDContains)) + } + if i.DisplayIDHasPrefix != nil { + predicates = append(predicates, audiencemember.DisplayIDHasPrefix(*i.DisplayIDHasPrefix)) + } + if i.DisplayIDHasSuffix != nil { + predicates = append(predicates, audiencemember.DisplayIDHasSuffix(*i.DisplayIDHasSuffix)) + } + if i.DisplayIDEqualFold != nil { + predicates = append(predicates, audiencemember.DisplayIDEqualFold(*i.DisplayIDEqualFold)) + } + if i.DisplayIDContainsFold != nil { + predicates = append(predicates, audiencemember.DisplayIDContainsFold(*i.DisplayIDContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, audiencemember.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, audiencemember.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, audiencemember.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, audiencemember.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, audiencemember.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, audiencemember.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, audiencemember.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, audiencemember.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, audiencemember.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, audiencemember.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, audiencemember.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.AudienceID != nil { + predicates = append(predicates, audiencemember.AudienceIDEQ(*i.AudienceID)) + } + if i.AudienceIDNEQ != nil { + predicates = append(predicates, audiencemember.AudienceIDNEQ(*i.AudienceIDNEQ)) + } + if len(i.AudienceIDIn) > 0 { + predicates = append(predicates, audiencemember.AudienceIDIn(i.AudienceIDIn...)) + } + if len(i.AudienceIDNotIn) > 0 { + predicates = append(predicates, audiencemember.AudienceIDNotIn(i.AudienceIDNotIn...)) + } + if i.AudienceIDContains != nil { + predicates = append(predicates, audiencemember.AudienceIDContains(*i.AudienceIDContains)) + } + if i.AudienceIDHasPrefix != nil { + predicates = append(predicates, audiencemember.AudienceIDHasPrefix(*i.AudienceIDHasPrefix)) + } + if i.AudienceIDHasSuffix != nil { + predicates = append(predicates, audiencemember.AudienceIDHasSuffix(*i.AudienceIDHasSuffix)) + } + if i.AudienceIDEqualFold != nil { + predicates = append(predicates, audiencemember.AudienceIDEqualFold(*i.AudienceIDEqualFold)) + } + if i.AudienceIDContainsFold != nil { + predicates = append(predicates, audiencemember.AudienceIDContainsFold(*i.AudienceIDContainsFold)) + } + if i.ContactID != nil { + predicates = append(predicates, audiencemember.ContactIDEQ(*i.ContactID)) + } + if i.ContactIDNEQ != nil { + predicates = append(predicates, audiencemember.ContactIDNEQ(*i.ContactIDNEQ)) + } + if len(i.ContactIDIn) > 0 { + predicates = append(predicates, audiencemember.ContactIDIn(i.ContactIDIn...)) + } + if len(i.ContactIDNotIn) > 0 { + predicates = append(predicates, audiencemember.ContactIDNotIn(i.ContactIDNotIn...)) + } + if i.ContactIDContains != nil { + predicates = append(predicates, audiencemember.ContactIDContains(*i.ContactIDContains)) + } + if i.ContactIDHasPrefix != nil { + predicates = append(predicates, audiencemember.ContactIDHasPrefix(*i.ContactIDHasPrefix)) + } + if i.ContactIDHasSuffix != nil { + predicates = append(predicates, audiencemember.ContactIDHasSuffix(*i.ContactIDHasSuffix)) + } + if i.ContactIDIsNil { + predicates = append(predicates, audiencemember.ContactIDIsNil()) + } + if i.ContactIDNotNil { + predicates = append(predicates, audiencemember.ContactIDNotNil()) + } + if i.ContactIDEqualFold != nil { + predicates = append(predicates, audiencemember.ContactIDEqualFold(*i.ContactIDEqualFold)) + } + if i.ContactIDContainsFold != nil { + predicates = append(predicates, audiencemember.ContactIDContainsFold(*i.ContactIDContainsFold)) + } + if i.UserID != nil { + predicates = append(predicates, audiencemember.UserIDEQ(*i.UserID)) + } + if i.UserIDNEQ != nil { + predicates = append(predicates, audiencemember.UserIDNEQ(*i.UserIDNEQ)) + } + if len(i.UserIDIn) > 0 { + predicates = append(predicates, audiencemember.UserIDIn(i.UserIDIn...)) + } + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, audiencemember.UserIDNotIn(i.UserIDNotIn...)) + } + if i.UserIDContains != nil { + predicates = append(predicates, audiencemember.UserIDContains(*i.UserIDContains)) + } + if i.UserIDHasPrefix != nil { + predicates = append(predicates, audiencemember.UserIDHasPrefix(*i.UserIDHasPrefix)) + } + if i.UserIDHasSuffix != nil { + predicates = append(predicates, audiencemember.UserIDHasSuffix(*i.UserIDHasSuffix)) + } + if i.UserIDIsNil { + predicates = append(predicates, audiencemember.UserIDIsNil()) + } + if i.UserIDNotNil { + predicates = append(predicates, audiencemember.UserIDNotNil()) + } + if i.UserIDEqualFold != nil { + predicates = append(predicates, audiencemember.UserIDEqualFold(*i.UserIDEqualFold)) + } + if i.UserIDContainsFold != nil { + predicates = append(predicates, audiencemember.UserIDContainsFold(*i.UserIDContainsFold)) + } + if i.GroupID != nil { + predicates = append(predicates, audiencemember.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, audiencemember.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, audiencemember.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, audiencemember.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, audiencemember.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, audiencemember.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, audiencemember.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDIsNil { + predicates = append(predicates, audiencemember.GroupIDIsNil()) + } + if i.GroupIDNotNil { + predicates = append(predicates, audiencemember.GroupIDNotNil()) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, audiencemember.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, audiencemember.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + if i.IdentityHolderID != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDEQ(*i.IdentityHolderID)) + } + if i.IdentityHolderIDNEQ != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDNEQ(*i.IdentityHolderIDNEQ)) + } + if len(i.IdentityHolderIDIn) > 0 { + predicates = append(predicates, audiencemember.IdentityHolderIDIn(i.IdentityHolderIDIn...)) + } + if len(i.IdentityHolderIDNotIn) > 0 { + predicates = append(predicates, audiencemember.IdentityHolderIDNotIn(i.IdentityHolderIDNotIn...)) + } + if i.IdentityHolderIDContains != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDContains(*i.IdentityHolderIDContains)) + } + if i.IdentityHolderIDHasPrefix != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDHasPrefix(*i.IdentityHolderIDHasPrefix)) + } + if i.IdentityHolderIDHasSuffix != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDHasSuffix(*i.IdentityHolderIDHasSuffix)) + } + if i.IdentityHolderIDIsNil { + predicates = append(predicates, audiencemember.IdentityHolderIDIsNil()) + } + if i.IdentityHolderIDNotNil { + predicates = append(predicates, audiencemember.IdentityHolderIDNotNil()) + } + if i.IdentityHolderIDEqualFold != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDEqualFold(*i.IdentityHolderIDEqualFold)) + } + if i.IdentityHolderIDContainsFold != nil { + predicates = append(predicates, audiencemember.IdentityHolderIDContainsFold(*i.IdentityHolderIDContainsFold)) + } + if i.SubscriberID != nil { + predicates = append(predicates, audiencemember.SubscriberIDEQ(*i.SubscriberID)) + } + if i.SubscriberIDNEQ != nil { + predicates = append(predicates, audiencemember.SubscriberIDNEQ(*i.SubscriberIDNEQ)) + } + if len(i.SubscriberIDIn) > 0 { + predicates = append(predicates, audiencemember.SubscriberIDIn(i.SubscriberIDIn...)) + } + if len(i.SubscriberIDNotIn) > 0 { + predicates = append(predicates, audiencemember.SubscriberIDNotIn(i.SubscriberIDNotIn...)) + } + if i.SubscriberIDContains != nil { + predicates = append(predicates, audiencemember.SubscriberIDContains(*i.SubscriberIDContains)) + } + if i.SubscriberIDHasPrefix != nil { + predicates = append(predicates, audiencemember.SubscriberIDHasPrefix(*i.SubscriberIDHasPrefix)) + } + if i.SubscriberIDHasSuffix != nil { + predicates = append(predicates, audiencemember.SubscriberIDHasSuffix(*i.SubscriberIDHasSuffix)) + } + if i.SubscriberIDIsNil { + predicates = append(predicates, audiencemember.SubscriberIDIsNil()) + } + if i.SubscriberIDNotNil { + predicates = append(predicates, audiencemember.SubscriberIDNotNil()) + } + if i.SubscriberIDEqualFold != nil { + predicates = append(predicates, audiencemember.SubscriberIDEqualFold(*i.SubscriberIDEqualFold)) + } + if i.SubscriberIDContainsFold != nil { + predicates = append(predicates, audiencemember.SubscriberIDContainsFold(*i.SubscriberIDContainsFold)) + } + if i.Email != nil { + predicates = append(predicates, audiencemember.EmailEQ(*i.Email)) + } + if i.EmailNEQ != nil { + predicates = append(predicates, audiencemember.EmailNEQ(*i.EmailNEQ)) + } + if len(i.EmailIn) > 0 { + predicates = append(predicates, audiencemember.EmailIn(i.EmailIn...)) + } + if len(i.EmailNotIn) > 0 { + predicates = append(predicates, audiencemember.EmailNotIn(i.EmailNotIn...)) + } + if i.EmailContains != nil { + predicates = append(predicates, audiencemember.EmailContains(*i.EmailContains)) + } + if i.EmailHasPrefix != nil { + predicates = append(predicates, audiencemember.EmailHasPrefix(*i.EmailHasPrefix)) + } + if i.EmailHasSuffix != nil { + predicates = append(predicates, audiencemember.EmailHasSuffix(*i.EmailHasSuffix)) + } + if i.EmailEqualFold != nil { + predicates = append(predicates, audiencemember.EmailEqualFold(*i.EmailEqualFold)) + } + if i.EmailContainsFold != nil { + predicates = append(predicates, audiencemember.EmailContainsFold(*i.EmailContainsFold)) + } + if i.FullName != nil { + predicates = append(predicates, audiencemember.FullNameEQ(*i.FullName)) + } + if i.FullNameNEQ != nil { + predicates = append(predicates, audiencemember.FullNameNEQ(*i.FullNameNEQ)) + } + if len(i.FullNameIn) > 0 { + predicates = append(predicates, audiencemember.FullNameIn(i.FullNameIn...)) + } + if len(i.FullNameNotIn) > 0 { + predicates = append(predicates, audiencemember.FullNameNotIn(i.FullNameNotIn...)) + } + if i.FullNameContains != nil { + predicates = append(predicates, audiencemember.FullNameContains(*i.FullNameContains)) + } + if i.FullNameHasPrefix != nil { + predicates = append(predicates, audiencemember.FullNameHasPrefix(*i.FullNameHasPrefix)) + } + if i.FullNameHasSuffix != nil { + predicates = append(predicates, audiencemember.FullNameHasSuffix(*i.FullNameHasSuffix)) + } + if i.FullNameIsNil { + predicates = append(predicates, audiencemember.FullNameIsNil()) + } + if i.FullNameNotNil { + predicates = append(predicates, audiencemember.FullNameNotNil()) + } + if i.FullNameEqualFold != nil { + predicates = append(predicates, audiencemember.FullNameEqualFold(*i.FullNameEqualFold)) + } + if i.FullNameContainsFold != nil { + predicates = append(predicates, audiencemember.FullNameContainsFold(*i.FullNameContainsFold)) + } + + if i.TagsHas != nil { + v := *i.TagsHas + predicates = append(predicates, func(s *sql.Selector) { + s.Where(sqljson.ValueContains(audiencemember.FieldTags, v)) + }) + } + + if i.HasOwner != nil { + p := audiencemember.HasOwner() + if !*i.HasOwner { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasOwnerWith) > 0 { + with := make([]predicate.Organization, 0, len(i.HasOwnerWith)) + with = append(with, organization.DeletedAtIsNil()) + for _, w := range i.HasOwnerWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasOwnerWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasOwnerWith(with...)) + } + if i.HasAudience != nil { + p := audiencemember.HasAudience() + if !*i.HasAudience { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudienceWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudienceWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasAudienceWith(with...)) + } + if i.HasContact != nil { + p := audiencemember.HasContact() + if !*i.HasContact { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasContactWith) > 0 { + with := make([]predicate.Contact, 0, len(i.HasContactWith)) + with = append(with, contact.DeletedAtIsNil()) + for _, w := range i.HasContactWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasContactWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasContactWith(with...)) + } + if i.HasUser != nil { + p := audiencemember.HasUser() + if !*i.HasUser { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasUserWith) > 0 { + with := make([]predicate.User, 0, len(i.HasUserWith)) + with = append(with, user.DeletedAtIsNil()) + for _, w := range i.HasUserWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasUserWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasUserWith(with...)) + } + if i.HasGroup != nil { + p := audiencemember.HasGroup() + if !*i.HasGroup { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasGroupWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasGroupWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasGroupWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasGroupWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasGroupWith(with...)) + } + if i.HasIdentityHolder != nil { + p := audiencemember.HasIdentityHolder() + if !*i.HasIdentityHolder { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasIdentityHolderWith) > 0 { + with := make([]predicate.IdentityHolder, 0, len(i.HasIdentityHolderWith)) + with = append(with, identityholder.DeletedAtIsNil()) + for _, w := range i.HasIdentityHolderWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasIdentityHolderWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasIdentityHolderWith(with...)) + } + if i.HasSubscriber != nil { + p := audiencemember.HasSubscriber() + if !*i.HasSubscriber { + p = audiencemember.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasSubscriberWith) > 0 { + with := make([]predicate.Subscriber, 0, len(i.HasSubscriberWith)) + with = append(with, subscriber.DeletedAtIsNil()) + for _, w := range i.HasSubscriberWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasSubscriberWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, audiencemember.HasSubscriberWith(with...)) + } + switch len(predicates) { + case 0: + return nil, ErrEmptyAudienceMemberWhereInput + case 1: + return predicates[0], nil + default: + return audiencemember.And(predicates...), nil + } +} + // CampaignWhereInput represents a where input for filtering Campaign queries. type CampaignWhereInput struct { Predicates []predicate.Campaign `json:"-"` @@ -7898,6 +9469,10 @@ type CampaignWhereInput struct { HasIdentityHolders *bool `json:"hasIdentityHolders,omitempty"` HasIdentityHoldersWith []*IdentityHolderWhereInput `json:"hasIdentityHoldersWith,omitempty"` + // "audiences" edge predicates. + HasAudiences *bool `json:"hasAudiences,omitempty"` + HasAudiencesWith []*AudienceWhereInput `json:"hasAudiencesWith,omitempty"` + // "controls" edge predicates. HasControls *bool `json:"hasControls,omitempty"` HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` @@ -9276,6 +10851,25 @@ func (i *CampaignWhereInput) P() (predicate.Campaign, error) { } predicates = append(predicates, campaign.HasIdentityHoldersWith(with...)) } + if i.HasAudiences != nil { + p := campaign.HasAudiences() + if !*i.HasAudiences { + p = campaign.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudiencesWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudiencesWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudiencesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudiencesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, campaign.HasAudiencesWith(with...)) + } if i.HasControls != nil { p := campaign.HasControls() if !*i.HasControls { @@ -11208,6 +12802,10 @@ type ContactWhereInput struct { HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // "files" edge predicates. HasFiles *bool `json:"hasFiles,omitempty"` HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` @@ -11861,6 +13459,25 @@ func (i *ContactWhereInput) P() (predicate.Contact, error) { } predicates = append(predicates, contact.HasCampaignTargetsWith(with...)) } + if i.HasAudienceMembers != nil { + p := contact.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = contact.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, contact.HasAudienceMembersWith(with...)) + } if i.HasFiles != nil { p := contact.HasFiles() if !*i.HasFiles { @@ -40210,6 +41827,18 @@ type GroupWhereInput struct { HasCampaignViewers *bool `json:"hasCampaignViewers,omitempty"` HasCampaignViewersWith []*CampaignWhereInput `json:"hasCampaignViewersWith,omitempty"` + // "audience_editors" edge predicates. + HasAudienceEditors *bool `json:"hasAudienceEditors,omitempty"` + HasAudienceEditorsWith []*AudienceWhereInput `json:"hasAudienceEditorsWith,omitempty"` + + // "audience_blocked_groups" edge predicates. + HasAudienceBlockedGroups *bool `json:"hasAudienceBlockedGroups,omitempty"` + HasAudienceBlockedGroupsWith []*AudienceWhereInput `json:"hasAudienceBlockedGroupsWith,omitempty"` + + // "audience_viewers" edge predicates. + HasAudienceViewers *bool `json:"hasAudienceViewers,omitempty"` + HasAudienceViewersWith []*AudienceWhereInput `json:"hasAudienceViewersWith,omitempty"` + // "procedure_editors" edge predicates. HasProcedureEditors *bool `json:"hasProcedureEditors,omitempty"` HasProcedureEditorsWith []*ProcedureWhereInput `json:"hasProcedureEditorsWith,omitempty"` @@ -40318,6 +41947,10 @@ type GroupWhereInput struct { HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // "members" edge predicates. HasMembers *bool `json:"hasMembers,omitempty"` HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` @@ -41379,6 +43012,63 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } predicates = append(predicates, group.HasCampaignViewersWith(with...)) } + if i.HasAudienceEditors != nil { + p := group.HasAudienceEditors() + if !*i.HasAudienceEditors { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceEditorsWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudienceEditorsWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudienceEditorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceEditorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasAudienceEditorsWith(with...)) + } + if i.HasAudienceBlockedGroups != nil { + p := group.HasAudienceBlockedGroups() + if !*i.HasAudienceBlockedGroups { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceBlockedGroupsWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudienceBlockedGroupsWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudienceBlockedGroupsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceBlockedGroupsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasAudienceBlockedGroupsWith(with...)) + } + if i.HasAudienceViewers != nil { + p := group.HasAudienceViewers() + if !*i.HasAudienceViewers { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceViewersWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudienceViewersWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudienceViewersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceViewersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasAudienceViewersWith(with...)) + } if i.HasProcedureEditors != nil { p := group.HasProcedureEditors() if !*i.HasProcedureEditors { @@ -41891,6 +43581,25 @@ func (i *GroupWhereInput) P() (predicate.Group, error) { } predicates = append(predicates, group.HasCampaignTargetsWith(with...)) } + if i.HasAudienceMembers != nil { + p := group.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = group.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, group.HasAudienceMembersWith(with...)) + } if i.HasMembers != nil { p := group.HasMembers() if !*i.HasMembers { @@ -44081,6 +45790,10 @@ type IdentityHolderWhereInput struct { HasCampaigns *bool `json:"hasCampaigns,omitempty"` HasCampaignsWith []*CampaignWhereInput `json:"hasCampaignsWith,omitempty"` + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // "tasks" edge predicates. HasTasks *bool `json:"hasTasks,omitempty"` HasTasksWith []*TaskWhereInput `json:"hasTasksWith,omitempty"` @@ -45519,6 +47232,25 @@ func (i *IdentityHolderWhereInput) P() (predicate.IdentityHolder, error) { } predicates = append(predicates, identityholder.HasCampaignsWith(with...)) } + if i.HasAudienceMembers != nil { + p := identityholder.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = identityholder.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, identityholder.HasAudienceMembersWith(with...)) + } if i.HasTasks != nil { p := identityholder.HasTasks() if !*i.HasTasks { @@ -56933,6 +58665,14 @@ type OrganizationWhereInput struct { HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + // "audience_creators" edge predicates. + HasAudienceCreators *bool `json:"hasAudienceCreators,omitempty"` + HasAudienceCreatorsWith []*GroupWhereInput `json:"hasAudienceCreatorsWith,omitempty"` + + // "audience_member_creators" edge predicates. + HasAudienceMemberCreators *bool `json:"hasAudienceMemberCreators,omitempty"` + HasAudienceMemberCreatorsWith []*GroupWhereInput `json:"hasAudienceMemberCreatorsWith,omitempty"` + // "campaign_creators" edge predicates. HasCampaignCreators *bool `json:"hasCampaignCreators,omitempty"` HasCampaignCreatorsWith []*GroupWhereInput `json:"hasCampaignCreatorsWith,omitempty"` @@ -57421,6 +59161,14 @@ type OrganizationWhereInput struct { HasExports *bool `json:"hasExports,omitempty"` HasExportsWith []*ExportWhereInput `json:"hasExportsWith,omitempty"` + // "audiences" edge predicates. + HasAudiences *bool `json:"hasAudiences,omitempty"` + HasAudiencesWith []*AudienceWhereInput `json:"hasAudiencesWith,omitempty"` + + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // "trust_center_watermark_configs" edge predicates. HasTrustCenterWatermarkConfigs *bool `json:"hasTrustCenterWatermarkConfigs,omitempty"` HasTrustCenterWatermarkConfigsWith []*TrustCenterWatermarkConfigWhereInput `json:"hasTrustCenterWatermarkConfigsWith,omitempty"` @@ -58024,6 +59772,44 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, organization.HasAssetCreatorsWith(with...)) } + if i.HasAudienceCreators != nil { + p := organization.HasAudienceCreators() + if !*i.HasAudienceCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasAudienceCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasAudienceCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasAudienceCreatorsWith(with...)) + } + if i.HasAudienceMemberCreators != nil { + p := organization.HasAudienceMemberCreators() + if !*i.HasAudienceMemberCreators { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMemberCreatorsWith) > 0 { + with := make([]predicate.Group, 0, len(i.HasAudienceMemberCreatorsWith)) + with = append(with, group.DeletedAtIsNil()) + for _, w := range i.HasAudienceMemberCreatorsWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMemberCreatorsWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasAudienceMemberCreatorsWith(with...)) + } if i.HasCampaignCreators != nil { p := organization.HasCampaignCreators() if !*i.HasCampaignCreators { @@ -60341,6 +62127,44 @@ func (i *OrganizationWhereInput) P() (predicate.Organization, error) { } predicates = append(predicates, organization.HasExportsWith(with...)) } + if i.HasAudiences != nil { + p := organization.HasAudiences() + if !*i.HasAudiences { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudiencesWith) > 0 { + with := make([]predicate.Audience, 0, len(i.HasAudiencesWith)) + with = append(with, audience.DeletedAtIsNil()) + for _, w := range i.HasAudiencesWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudiencesWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasAudiencesWith(with...)) + } + if i.HasAudienceMembers != nil { + p := organization.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = organization.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, organization.HasAudienceMembersWith(with...)) + } if i.HasTrustCenterWatermarkConfigs != nil { p := organization.HasTrustCenterWatermarkConfigsWith( predicate.TrustCenterWatermarkConfig(schemautil.TrustCenterScopePredicate()), @@ -82678,6 +84502,10 @@ type SubscriberWhereInput struct { // "user" edge predicates. HasUser *bool `json:"hasUser,omitempty"` HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` } // AddPredicates adds custom predicates to the where input to be used during the filtering phase. @@ -83265,6 +85093,25 @@ func (i *SubscriberWhereInput) P() (predicate.Subscriber, error) { } predicates = append(predicates, subscriber.HasUserWith(with...)) } + if i.HasAudienceMembers != nil { + p := subscriber.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = subscriber.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, subscriber.HasAudienceMembersWith(with...)) + } switch len(predicates) { case 0: return nil, ErrEmptySubscriberWhereInput @@ -96134,6 +97981,10 @@ type UserWhereInput struct { HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // "audience_members" edge predicates. + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // "subcontrols" edge predicates. HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` @@ -97119,6 +98970,25 @@ func (i *UserWhereInput) P() (predicate.User, error) { } predicates = append(predicates, user.HasCampaignTargetsWith(with...)) } + if i.HasAudienceMembers != nil { + p := user.HasAudienceMembers() + if !*i.HasAudienceMembers { + p = user.Not(p) + } + predicates = append(predicates, p) + } + if len(i.HasAudienceMembersWith) > 0 { + with := make([]predicate.AudienceMember, 0, len(i.HasAudienceMembersWith)) + with = append(with, audiencemember.DeletedAtIsNil()) + for _, w := range i.HasAudienceMembersWith { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'HasAudienceMembersWith'", err) + } + with = append(with, p) + } + predicates = append(predicates, user.HasAudienceMembersWith(with...)) + } if i.HasSubcontrols != nil { p := user.HasSubcontrols() if !*i.HasSubcontrols { diff --git a/internal/ent/generated/group.go b/internal/ent/generated/group.go index 21fbf11f1d..cec7f9deda 100644 --- a/internal/ent/generated/group.go +++ b/internal/ent/generated/group.go @@ -91,6 +91,8 @@ type Group struct { organization_api_token_creators *string organization_assessment_creators *string organization_asset_creators *string + organization_audience_creators *string + organization_audience_member_creators *string organization_campaign_creators *string organization_campaign_target_creators *string organization_check_result_creators *string @@ -244,6 +246,12 @@ type GroupEdges struct { CampaignBlockedGroups []*Campaign `json:"campaign_blocked_groups,omitempty"` // CampaignViewers holds the value of the campaign_viewers edge. CampaignViewers []*Campaign `json:"campaign_viewers,omitempty"` + // AudienceEditors holds the value of the audience_editors edge. + AudienceEditors []*Audience `json:"audience_editors,omitempty"` + // AudienceBlockedGroups holds the value of the audience_blocked_groups edge. + AudienceBlockedGroups []*Audience `json:"audience_blocked_groups,omitempty"` + // AudienceViewers holds the value of the audience_viewers edge. + AudienceViewers []*Audience `json:"audience_viewers,omitempty"` // ProcedureEditors holds the value of the procedure_editors edge. ProcedureEditors []*Procedure `json:"procedure_editors,omitempty"` // ProcedureBlockedGroups holds the value of the procedure_blocked_groups edge. @@ -298,15 +306,17 @@ type GroupEdges struct { Campaigns []*Campaign `json:"campaigns,omitempty"` // CampaignTargets holds the value of the campaign_targets edge. CampaignTargets []*CampaignTarget `json:"campaign_targets,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // Invites holds the value of the invites edge. Invites []*Invite `json:"invites,omitempty"` // Members holds the value of the members edge. Members []*GroupMembership `json:"members,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [54]bool + loadedTypes [58]bool // totalCount holds the count of the edges above. - totalCount [53]map[string]int + totalCount [57]map[string]int namedProgramEditors map[string][]*Program namedProgramBlockedGroups map[string][]*Program @@ -332,6 +342,9 @@ type GroupEdges struct { namedCampaignEditors map[string][]*Campaign namedCampaignBlockedGroups map[string][]*Campaign namedCampaignViewers map[string][]*Campaign + namedAudienceEditors map[string][]*Audience + namedAudienceBlockedGroups map[string][]*Audience + namedAudienceViewers map[string][]*Audience namedProcedureEditors map[string][]*Procedure namedProcedureBlockedGroups map[string][]*Procedure namedInternalPolicyEditors map[string][]*InternalPolicy @@ -357,6 +370,7 @@ type GroupEdges struct { namedTasks map[string][]*Task namedCampaigns map[string][]*Campaign namedCampaignTargets map[string][]*CampaignTarget + namedAudienceMembers map[string][]*AudienceMember namedInvites map[string][]*Invite namedMembers map[string][]*GroupMembership } @@ -588,10 +602,37 @@ func (e GroupEdges) CampaignViewersOrErr() ([]*Campaign, error) { return nil, &NotLoadedError{edge: "campaign_viewers"} } +// AudienceEditorsOrErr returns the AudienceEditors value or an error if the edge +// was not loaded in eager-loading. +func (e GroupEdges) AudienceEditorsOrErr() ([]*Audience, error) { + if e.loadedTypes[25] { + return e.AudienceEditors, nil + } + return nil, &NotLoadedError{edge: "audience_editors"} +} + +// AudienceBlockedGroupsOrErr returns the AudienceBlockedGroups value or an error if the edge +// was not loaded in eager-loading. +func (e GroupEdges) AudienceBlockedGroupsOrErr() ([]*Audience, error) { + if e.loadedTypes[26] { + return e.AudienceBlockedGroups, nil + } + return nil, &NotLoadedError{edge: "audience_blocked_groups"} +} + +// AudienceViewersOrErr returns the AudienceViewers value or an error if the edge +// was not loaded in eager-loading. +func (e GroupEdges) AudienceViewersOrErr() ([]*Audience, error) { + if e.loadedTypes[27] { + return e.AudienceViewers, nil + } + return nil, &NotLoadedError{edge: "audience_viewers"} +} + // ProcedureEditorsOrErr returns the ProcedureEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ProcedureEditorsOrErr() ([]*Procedure, error) { - if e.loadedTypes[25] { + if e.loadedTypes[28] { return e.ProcedureEditors, nil } return nil, &NotLoadedError{edge: "procedure_editors"} @@ -600,7 +641,7 @@ func (e GroupEdges) ProcedureEditorsOrErr() ([]*Procedure, error) { // ProcedureBlockedGroupsOrErr returns the ProcedureBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ProcedureBlockedGroupsOrErr() ([]*Procedure, error) { - if e.loadedTypes[26] { + if e.loadedTypes[29] { return e.ProcedureBlockedGroups, nil } return nil, &NotLoadedError{edge: "procedure_blocked_groups"} @@ -609,7 +650,7 @@ func (e GroupEdges) ProcedureBlockedGroupsOrErr() ([]*Procedure, error) { // InternalPolicyEditorsOrErr returns the InternalPolicyEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) InternalPolicyEditorsOrErr() ([]*InternalPolicy, error) { - if e.loadedTypes[27] { + if e.loadedTypes[30] { return e.InternalPolicyEditors, nil } return nil, &NotLoadedError{edge: "internal_policy_editors"} @@ -618,7 +659,7 @@ func (e GroupEdges) InternalPolicyEditorsOrErr() ([]*InternalPolicy, error) { // InternalPolicyBlockedGroupsOrErr returns the InternalPolicyBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) InternalPolicyBlockedGroupsOrErr() ([]*InternalPolicy, error) { - if e.loadedTypes[28] { + if e.loadedTypes[31] { return e.InternalPolicyBlockedGroups, nil } return nil, &NotLoadedError{edge: "internal_policy_blocked_groups"} @@ -627,7 +668,7 @@ func (e GroupEdges) InternalPolicyBlockedGroupsOrErr() ([]*InternalPolicy, error // ControlEditorsOrErr returns the ControlEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ControlEditorsOrErr() ([]*Control, error) { - if e.loadedTypes[29] { + if e.loadedTypes[32] { return e.ControlEditors, nil } return nil, &NotLoadedError{edge: "control_editors"} @@ -636,7 +677,7 @@ func (e GroupEdges) ControlEditorsOrErr() ([]*Control, error) { // ControlBlockedGroupsOrErr returns the ControlBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ControlBlockedGroupsOrErr() ([]*Control, error) { - if e.loadedTypes[30] { + if e.loadedTypes[33] { return e.ControlBlockedGroups, nil } return nil, &NotLoadedError{edge: "control_blocked_groups"} @@ -645,7 +686,7 @@ func (e GroupEdges) ControlBlockedGroupsOrErr() ([]*Control, error) { // MappedControlEditorsOrErr returns the MappedControlEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) MappedControlEditorsOrErr() ([]*MappedControl, error) { - if e.loadedTypes[31] { + if e.loadedTypes[34] { return e.MappedControlEditors, nil } return nil, &NotLoadedError{edge: "mapped_control_editors"} @@ -654,7 +695,7 @@ func (e GroupEdges) MappedControlEditorsOrErr() ([]*MappedControl, error) { // MappedControlBlockedGroupsOrErr returns the MappedControlBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) MappedControlBlockedGroupsOrErr() ([]*MappedControl, error) { - if e.loadedTypes[32] { + if e.loadedTypes[35] { return e.MappedControlBlockedGroups, nil } return nil, &NotLoadedError{edge: "mapped_control_blocked_groups"} @@ -663,7 +704,7 @@ func (e GroupEdges) MappedControlBlockedGroupsOrErr() ([]*MappedControl, error) // ScanEditorsOrErr returns the ScanEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ScanEditorsOrErr() ([]*Scan, error) { - if e.loadedTypes[33] { + if e.loadedTypes[36] { return e.ScanEditors, nil } return nil, &NotLoadedError{edge: "scan_editors"} @@ -672,7 +713,7 @@ func (e GroupEdges) ScanEditorsOrErr() ([]*Scan, error) { // ScanBlockedGroupsOrErr returns the ScanBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ScanBlockedGroupsOrErr() ([]*Scan, error) { - if e.loadedTypes[34] { + if e.loadedTypes[37] { return e.ScanBlockedGroups, nil } return nil, &NotLoadedError{edge: "scan_blocked_groups"} @@ -681,7 +722,7 @@ func (e GroupEdges) ScanBlockedGroupsOrErr() ([]*Scan, error) { // EntityEditorsOrErr returns the EntityEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) EntityEditorsOrErr() ([]*Entity, error) { - if e.loadedTypes[35] { + if e.loadedTypes[38] { return e.EntityEditors, nil } return nil, &NotLoadedError{edge: "entity_editors"} @@ -690,7 +731,7 @@ func (e GroupEdges) EntityEditorsOrErr() ([]*Entity, error) { // EntityBlockedGroupsOrErr returns the EntityBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) EntityBlockedGroupsOrErr() ([]*Entity, error) { - if e.loadedTypes[36] { + if e.loadedTypes[39] { return e.EntityBlockedGroups, nil } return nil, &NotLoadedError{edge: "entity_blocked_groups"} @@ -699,7 +740,7 @@ func (e GroupEdges) EntityBlockedGroupsOrErr() ([]*Entity, error) { // FindingEditorsOrErr returns the FindingEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) FindingEditorsOrErr() ([]*Finding, error) { - if e.loadedTypes[37] { + if e.loadedTypes[40] { return e.FindingEditors, nil } return nil, &NotLoadedError{edge: "finding_editors"} @@ -708,7 +749,7 @@ func (e GroupEdges) FindingEditorsOrErr() ([]*Finding, error) { // FindingBlockedGroupsOrErr returns the FindingBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) FindingBlockedGroupsOrErr() ([]*Finding, error) { - if e.loadedTypes[38] { + if e.loadedTypes[41] { return e.FindingBlockedGroups, nil } return nil, &NotLoadedError{edge: "finding_blocked_groups"} @@ -717,7 +758,7 @@ func (e GroupEdges) FindingBlockedGroupsOrErr() ([]*Finding, error) { // ReviewEditorsOrErr returns the ReviewEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ReviewEditorsOrErr() ([]*Review, error) { - if e.loadedTypes[39] { + if e.loadedTypes[42] { return e.ReviewEditors, nil } return nil, &NotLoadedError{edge: "review_editors"} @@ -726,7 +767,7 @@ func (e GroupEdges) ReviewEditorsOrErr() ([]*Review, error) { // ReviewBlockedGroupsOrErr returns the ReviewBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) ReviewBlockedGroupsOrErr() ([]*Review, error) { - if e.loadedTypes[40] { + if e.loadedTypes[43] { return e.ReviewBlockedGroups, nil } return nil, &NotLoadedError{edge: "review_blocked_groups"} @@ -735,7 +776,7 @@ func (e GroupEdges) ReviewBlockedGroupsOrErr() ([]*Review, error) { // RemediationEditorsOrErr returns the RemediationEditors value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) RemediationEditorsOrErr() ([]*Remediation, error) { - if e.loadedTypes[41] { + if e.loadedTypes[44] { return e.RemediationEditors, nil } return nil, &NotLoadedError{edge: "remediation_editors"} @@ -744,7 +785,7 @@ func (e GroupEdges) RemediationEditorsOrErr() ([]*Remediation, error) { // RemediationBlockedGroupsOrErr returns the RemediationBlockedGroups value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) RemediationBlockedGroupsOrErr() ([]*Remediation, error) { - if e.loadedTypes[42] { + if e.loadedTypes[45] { return e.RemediationBlockedGroups, nil } return nil, &NotLoadedError{edge: "remediation_blocked_groups"} @@ -755,7 +796,7 @@ func (e GroupEdges) RemediationBlockedGroupsOrErr() ([]*Remediation, error) { func (e GroupEdges) SettingOrErr() (*GroupSetting, error) { if e.Setting != nil { return e.Setting, nil - } else if e.loadedTypes[43] { + } else if e.loadedTypes[46] { return nil, &NotFoundError{label: groupsetting.Label} } return nil, &NotLoadedError{edge: "setting"} @@ -764,7 +805,7 @@ func (e GroupEdges) SettingOrErr() (*GroupSetting, error) { // UsersOrErr returns the Users value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) UsersOrErr() ([]*User, error) { - if e.loadedTypes[44] { + if e.loadedTypes[47] { return e.Users, nil } return nil, &NotLoadedError{edge: "users"} @@ -773,7 +814,7 @@ func (e GroupEdges) UsersOrErr() ([]*User, error) { // EventsOrErr returns the Events value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) EventsOrErr() ([]*Event, error) { - if e.loadedTypes[45] { + if e.loadedTypes[48] { return e.Events, nil } return nil, &NotLoadedError{edge: "events"} @@ -782,7 +823,7 @@ func (e GroupEdges) EventsOrErr() ([]*Event, error) { // IntegrationsOrErr returns the Integrations value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) IntegrationsOrErr() ([]*Integration, error) { - if e.loadedTypes[46] { + if e.loadedTypes[49] { return e.Integrations, nil } return nil, &NotLoadedError{edge: "integrations"} @@ -793,7 +834,7 @@ func (e GroupEdges) IntegrationsOrErr() ([]*Integration, error) { func (e GroupEdges) AvatarFileOrErr() (*File, error) { if e.AvatarFile != nil { return e.AvatarFile, nil - } else if e.loadedTypes[47] { + } else if e.loadedTypes[50] { return nil, &NotFoundError{label: file.Label} } return nil, &NotLoadedError{edge: "avatar_file"} @@ -802,7 +843,7 @@ func (e GroupEdges) AvatarFileOrErr() (*File, error) { // FilesOrErr returns the Files value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) FilesOrErr() ([]*File, error) { - if e.loadedTypes[48] { + if e.loadedTypes[51] { return e.Files, nil } return nil, &NotLoadedError{edge: "files"} @@ -811,7 +852,7 @@ func (e GroupEdges) FilesOrErr() ([]*File, error) { // TasksOrErr returns the Tasks value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) TasksOrErr() ([]*Task, error) { - if e.loadedTypes[49] { + if e.loadedTypes[52] { return e.Tasks, nil } return nil, &NotLoadedError{edge: "tasks"} @@ -820,7 +861,7 @@ func (e GroupEdges) TasksOrErr() ([]*Task, error) { // CampaignsOrErr returns the Campaigns value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) CampaignsOrErr() ([]*Campaign, error) { - if e.loadedTypes[50] { + if e.loadedTypes[53] { return e.Campaigns, nil } return nil, &NotLoadedError{edge: "campaigns"} @@ -829,16 +870,25 @@ func (e GroupEdges) CampaignsOrErr() ([]*Campaign, error) { // CampaignTargetsOrErr returns the CampaignTargets value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { - if e.loadedTypes[51] { + if e.loadedTypes[54] { return e.CampaignTargets, nil } return nil, &NotLoadedError{edge: "campaign_targets"} } +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e GroupEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[55] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // InvitesOrErr returns the Invites value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) InvitesOrErr() ([]*Invite, error) { - if e.loadedTypes[52] { + if e.loadedTypes[56] { return e.Invites, nil } return nil, &NotLoadedError{edge: "invites"} @@ -847,7 +897,7 @@ func (e GroupEdges) InvitesOrErr() ([]*Invite, error) { // MembersOrErr returns the Members value or an error if the edge // was not loaded in eager-loading. func (e GroupEdges) MembersOrErr() ([]*GroupMembership, error) { - if e.loadedTypes[53] { + if e.loadedTypes[57] { return e.Members, nil } return nil, &NotLoadedError{edge: "members"} @@ -904,201 +954,205 @@ func (*Group) scanValues(columns []string) ([]any, error) { values[i] = new(sql.NullString) case group.ForeignKeys[18]: // organization_asset_creators values[i] = new(sql.NullString) - case group.ForeignKeys[19]: // organization_campaign_creators + case group.ForeignKeys[19]: // organization_audience_creators values[i] = new(sql.NullString) - case group.ForeignKeys[20]: // organization_campaign_target_creators + case group.ForeignKeys[20]: // organization_audience_member_creators values[i] = new(sql.NullString) - case group.ForeignKeys[21]: // organization_check_result_creators + case group.ForeignKeys[21]: // organization_campaign_creators values[i] = new(sql.NullString) - case group.ForeignKeys[22]: // organization_contact_creators + case group.ForeignKeys[22]: // organization_campaign_target_creators values[i] = new(sql.NullString) - case group.ForeignKeys[23]: // organization_control_creators + case group.ForeignKeys[23]: // organization_check_result_creators values[i] = new(sql.NullString) - case group.ForeignKeys[24]: // organization_control_implementation_creators + case group.ForeignKeys[24]: // organization_contact_creators values[i] = new(sql.NullString) - case group.ForeignKeys[25]: // organization_control_objective_creators + case group.ForeignKeys[25]: // organization_control_creators values[i] = new(sql.NullString) - case group.ForeignKeys[26]: // organization_custom_domain_creators + case group.ForeignKeys[26]: // organization_control_implementation_creators values[i] = new(sql.NullString) - case group.ForeignKeys[27]: // organization_custom_type_enum_creators + case group.ForeignKeys[27]: // organization_control_objective_creators values[i] = new(sql.NullString) - case group.ForeignKeys[28]: // organization_directory_account_creators + case group.ForeignKeys[28]: // organization_custom_domain_creators values[i] = new(sql.NullString) - case group.ForeignKeys[29]: // organization_directory_group_creators + case group.ForeignKeys[29]: // organization_custom_type_enum_creators values[i] = new(sql.NullString) - case group.ForeignKeys[30]: // organization_directory_membership_creators + case group.ForeignKeys[30]: // organization_directory_account_creators values[i] = new(sql.NullString) - case group.ForeignKeys[31]: // organization_directory_sync_run_creators + case group.ForeignKeys[31]: // organization_directory_group_creators values[i] = new(sql.NullString) - case group.ForeignKeys[32]: // organization_discussion_creators + case group.ForeignKeys[32]: // organization_directory_membership_creators values[i] = new(sql.NullString) - case group.ForeignKeys[33]: // organization_document_data_creators + case group.ForeignKeys[33]: // organization_directory_sync_run_creators values[i] = new(sql.NullString) - case group.ForeignKeys[34]: // organization_email_template_creators + case group.ForeignKeys[34]: // organization_discussion_creators values[i] = new(sql.NullString) - case group.ForeignKeys[35]: // organization_entity_creators + case group.ForeignKeys[35]: // organization_document_data_creators values[i] = new(sql.NullString) - case group.ForeignKeys[36]: // organization_entity_type_creators + case group.ForeignKeys[36]: // organization_email_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[37]: // organization_evidence_creators + case group.ForeignKeys[37]: // organization_entity_creators values[i] = new(sql.NullString) - case group.ForeignKeys[38]: // organization_file_creators + case group.ForeignKeys[38]: // organization_entity_type_creators values[i] = new(sql.NullString) - case group.ForeignKeys[39]: // organization_finding_creators + case group.ForeignKeys[39]: // organization_evidence_creators values[i] = new(sql.NullString) - case group.ForeignKeys[40]: // organization_finding_control_creators + case group.ForeignKeys[40]: // organization_file_creators values[i] = new(sql.NullString) - case group.ForeignKeys[41]: // organization_group_creators + case group.ForeignKeys[41]: // organization_finding_creators values[i] = new(sql.NullString) - case group.ForeignKeys[42]: // organization_group_membership_creators + case group.ForeignKeys[42]: // organization_finding_control_creators values[i] = new(sql.NullString) - case group.ForeignKeys[43]: // organization_group_setting_creators + case group.ForeignKeys[43]: // organization_group_creators values[i] = new(sql.NullString) - case group.ForeignKeys[44]: // organization_hush_creators + case group.ForeignKeys[44]: // organization_group_membership_creators values[i] = new(sql.NullString) - case group.ForeignKeys[45]: // organization_identity_holder_creators + case group.ForeignKeys[45]: // organization_group_setting_creators values[i] = new(sql.NullString) - case group.ForeignKeys[46]: // organization_internal_policy_creators + case group.ForeignKeys[46]: // organization_hush_creators values[i] = new(sql.NullString) - case group.ForeignKeys[47]: // organization_invite_creators + case group.ForeignKeys[47]: // organization_identity_holder_creators values[i] = new(sql.NullString) - case group.ForeignKeys[48]: // organization_mapped_control_creators + case group.ForeignKeys[48]: // organization_internal_policy_creators values[i] = new(sql.NullString) - case group.ForeignKeys[49]: // organization_narrative_creators + case group.ForeignKeys[49]: // organization_invite_creators values[i] = new(sql.NullString) - case group.ForeignKeys[50]: // organization_note_creators + case group.ForeignKeys[50]: // organization_mapped_control_creators values[i] = new(sql.NullString) - case group.ForeignKeys[51]: // organization_notification_template_creators + case group.ForeignKeys[51]: // organization_narrative_creators values[i] = new(sql.NullString) - case group.ForeignKeys[52]: // organization_org_membership_creators + case group.ForeignKeys[52]: // organization_note_creators values[i] = new(sql.NullString) - case group.ForeignKeys[53]: // organization_platform_creators + case group.ForeignKeys[53]: // organization_notification_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[54]: // organization_procedure_creators + case group.ForeignKeys[54]: // organization_org_membership_creators values[i] = new(sql.NullString) - case group.ForeignKeys[55]: // organization_program_creators + case group.ForeignKeys[55]: // organization_platform_creators values[i] = new(sql.NullString) - case group.ForeignKeys[56]: // organization_program_membership_creators + case group.ForeignKeys[56]: // organization_procedure_creators values[i] = new(sql.NullString) - case group.ForeignKeys[57]: // organization_remediation_creators + case group.ForeignKeys[57]: // organization_program_creators values[i] = new(sql.NullString) - case group.ForeignKeys[58]: // organization_review_creators + case group.ForeignKeys[58]: // organization_program_membership_creators values[i] = new(sql.NullString) - case group.ForeignKeys[59]: // organization_risk_creators + case group.ForeignKeys[59]: // organization_remediation_creators values[i] = new(sql.NullString) - case group.ForeignKeys[60]: // organization_scan_creators + case group.ForeignKeys[60]: // organization_review_creators values[i] = new(sql.NullString) - case group.ForeignKeys[61]: // organization_sla_definition_creators + case group.ForeignKeys[61]: // organization_risk_creators values[i] = new(sql.NullString) - case group.ForeignKeys[62]: // organization_standard_creators + case group.ForeignKeys[62]: // organization_scan_creators values[i] = new(sql.NullString) - case group.ForeignKeys[63]: // organization_subcontrol_creators + case group.ForeignKeys[63]: // organization_sla_definition_creators values[i] = new(sql.NullString) - case group.ForeignKeys[64]: // organization_subprocessor_creators + case group.ForeignKeys[64]: // organization_standard_creators values[i] = new(sql.NullString) - case group.ForeignKeys[65]: // organization_subscriber_creators + case group.ForeignKeys[65]: // organization_subcontrol_creators values[i] = new(sql.NullString) - case group.ForeignKeys[66]: // organization_system_detail_creators + case group.ForeignKeys[66]: // organization_subprocessor_creators values[i] = new(sql.NullString) - case group.ForeignKeys[67]: // organization_tag_definition_creators + case group.ForeignKeys[67]: // organization_subscriber_creators values[i] = new(sql.NullString) - case group.ForeignKeys[68]: // organization_task_creators + case group.ForeignKeys[68]: // organization_system_detail_creators values[i] = new(sql.NullString) - case group.ForeignKeys[69]: // organization_template_creators + case group.ForeignKeys[69]: // organization_tag_definition_creators values[i] = new(sql.NullString) - case group.ForeignKeys[70]: // organization_trust_center_creators + case group.ForeignKeys[70]: // organization_task_creators values[i] = new(sql.NullString) - case group.ForeignKeys[71]: // organization_trust_center_compliance_creators + case group.ForeignKeys[71]: // organization_template_creators values[i] = new(sql.NullString) - case group.ForeignKeys[72]: // organization_trust_center_doc_creators + case group.ForeignKeys[72]: // organization_trust_center_creators values[i] = new(sql.NullString) - case group.ForeignKeys[73]: // organization_trust_center_entity_creators + case group.ForeignKeys[73]: // organization_trust_center_compliance_creators values[i] = new(sql.NullString) - case group.ForeignKeys[74]: // organization_trust_center_faq_creators + case group.ForeignKeys[74]: // organization_trust_center_doc_creators values[i] = new(sql.NullString) - case group.ForeignKeys[75]: // organization_trust_center_nda_request_creators + case group.ForeignKeys[75]: // organization_trust_center_entity_creators values[i] = new(sql.NullString) - case group.ForeignKeys[76]: // organization_trust_center_subprocessor_creators + case group.ForeignKeys[76]: // organization_trust_center_faq_creators values[i] = new(sql.NullString) - case group.ForeignKeys[77]: // organization_trust_center_watermark_config_creators + case group.ForeignKeys[77]: // organization_trust_center_nda_request_creators values[i] = new(sql.NullString) - case group.ForeignKeys[78]: // organization_vendor_risk_score_creators + case group.ForeignKeys[78]: // organization_trust_center_subprocessor_creators values[i] = new(sql.NullString) - case group.ForeignKeys[79]: // organization_vendor_scoring_config_creators + case group.ForeignKeys[79]: // organization_trust_center_watermark_config_creators values[i] = new(sql.NullString) - case group.ForeignKeys[80]: // organization_vulnerability_creators + case group.ForeignKeys[80]: // organization_vendor_risk_score_creators values[i] = new(sql.NullString) - case group.ForeignKeys[81]: // organization_workflow_definition_creators + case group.ForeignKeys[81]: // organization_vendor_scoring_config_creators values[i] = new(sql.NullString) - case group.ForeignKeys[82]: // organization_campaigns_manager + case group.ForeignKeys[82]: // organization_vulnerability_creators values[i] = new(sql.NullString) - case group.ForeignKeys[83]: // organization_compliance_manager + case group.ForeignKeys[83]: // organization_workflow_definition_creators values[i] = new(sql.NullString) - case group.ForeignKeys[84]: // organization_group_manager + case group.ForeignKeys[84]: // organization_campaigns_manager values[i] = new(sql.NullString) - case group.ForeignKeys[85]: // organization_policies_manager + case group.ForeignKeys[85]: // organization_compliance_manager values[i] = new(sql.NullString) - case group.ForeignKeys[86]: // organization_registry_manager + case group.ForeignKeys[86]: // organization_group_manager values[i] = new(sql.NullString) - case group.ForeignKeys[87]: // organization_risk_manager + case group.ForeignKeys[87]: // organization_policies_manager values[i] = new(sql.NullString) - case group.ForeignKeys[88]: // organization_trust_center_manager + case group.ForeignKeys[88]: // organization_registry_manager values[i] = new(sql.NullString) - case group.ForeignKeys[89]: // organization_workflows_manager + case group.ForeignKeys[89]: // organization_risk_manager values[i] = new(sql.NullString) - case group.ForeignKeys[90]: // sla_definition_blocked_groups + case group.ForeignKeys[90]: // organization_trust_center_manager values[i] = new(sql.NullString) - case group.ForeignKeys[91]: // sla_definition_editors + case group.ForeignKeys[91]: // organization_workflows_manager values[i] = new(sql.NullString) - case group.ForeignKeys[92]: // trust_center_blocked_groups + case group.ForeignKeys[92]: // sla_definition_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[93]: // trust_center_editors + case group.ForeignKeys[93]: // sla_definition_editors values[i] = new(sql.NullString) - case group.ForeignKeys[94]: // trust_center_compliance_blocked_groups + case group.ForeignKeys[94]: // trust_center_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[95]: // trust_center_compliance_editors + case group.ForeignKeys[95]: // trust_center_editors values[i] = new(sql.NullString) - case group.ForeignKeys[96]: // trust_center_doc_blocked_groups + case group.ForeignKeys[96]: // trust_center_compliance_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[97]: // trust_center_doc_editors + case group.ForeignKeys[97]: // trust_center_compliance_editors values[i] = new(sql.NullString) - case group.ForeignKeys[98]: // trust_center_entity_blocked_groups + case group.ForeignKeys[98]: // trust_center_doc_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[99]: // trust_center_entity_editors + case group.ForeignKeys[99]: // trust_center_doc_editors values[i] = new(sql.NullString) - case group.ForeignKeys[100]: // trust_center_faq_blocked_groups + case group.ForeignKeys[100]: // trust_center_entity_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[101]: // trust_center_faq_editors + case group.ForeignKeys[101]: // trust_center_entity_editors values[i] = new(sql.NullString) - case group.ForeignKeys[102]: // trust_center_nda_request_blocked_groups + case group.ForeignKeys[102]: // trust_center_faq_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[103]: // trust_center_nda_request_editors + case group.ForeignKeys[103]: // trust_center_faq_editors values[i] = new(sql.NullString) - case group.ForeignKeys[104]: // trust_center_setting_blocked_groups + case group.ForeignKeys[104]: // trust_center_nda_request_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[105]: // trust_center_setting_editors + case group.ForeignKeys[105]: // trust_center_nda_request_editors values[i] = new(sql.NullString) - case group.ForeignKeys[106]: // trust_center_subprocessor_blocked_groups + case group.ForeignKeys[106]: // trust_center_setting_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[107]: // trust_center_subprocessor_editors + case group.ForeignKeys[107]: // trust_center_setting_editors values[i] = new(sql.NullString) - case group.ForeignKeys[108]: // trust_center_watermark_config_blocked_groups + case group.ForeignKeys[108]: // trust_center_subprocessor_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[109]: // trust_center_watermark_config_editors + case group.ForeignKeys[109]: // trust_center_subprocessor_editors values[i] = new(sql.NullString) - case group.ForeignKeys[110]: // vulnerability_blocked_groups + case group.ForeignKeys[110]: // trust_center_watermark_config_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[111]: // vulnerability_editors + case group.ForeignKeys[111]: // trust_center_watermark_config_editors values[i] = new(sql.NullString) - case group.ForeignKeys[112]: // vulnerability_viewers + case group.ForeignKeys[112]: // vulnerability_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[113]: // workflow_definition_blocked_groups + case group.ForeignKeys[113]: // vulnerability_editors values[i] = new(sql.NullString) - case group.ForeignKeys[114]: // workflow_definition_editors + case group.ForeignKeys[114]: // vulnerability_viewers values[i] = new(sql.NullString) - case group.ForeignKeys[115]: // workflow_definition_viewers + case group.ForeignKeys[115]: // workflow_definition_blocked_groups values[i] = new(sql.NullString) - case group.ForeignKeys[116]: // workflow_definition_groups + case group.ForeignKeys[116]: // workflow_definition_editors + values[i] = new(sql.NullString) + case group.ForeignKeys[117]: // workflow_definition_viewers + values[i] = new(sql.NullString) + case group.ForeignKeys[118]: // workflow_definition_groups values[i] = new(sql.NullString) default: values[i] = new(sql.UnknownType) @@ -1410,685 +1464,699 @@ func (_m *Group) assignValues(columns []string, values []any) error { *_m.organization_asset_creators = value.String } case group.ForeignKeys[19]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_audience_creators", values[i]) + } else if value.Valid { + _m.organization_audience_creators = new(string) + *_m.organization_audience_creators = value.String + } + case group.ForeignKeys[20]: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field organization_audience_member_creators", values[i]) + } else if value.Valid { + _m.organization_audience_member_creators = new(string) + *_m.organization_audience_member_creators = value.String + } + case group.ForeignKeys[21]: 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[20]: + case group.ForeignKeys[22]: 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[21]: + case group.ForeignKeys[23]: 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[22]: + case group.ForeignKeys[24]: 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[23]: + case group.ForeignKeys[25]: 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[24]: + case group.ForeignKeys[26]: 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[25]: + case group.ForeignKeys[27]: 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[26]: + case group.ForeignKeys[28]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_custom_domain_creators", values[i]) } else if value.Valid { _m.organization_custom_domain_creators = new(string) *_m.organization_custom_domain_creators = value.String } - case group.ForeignKeys[27]: + 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[28]: + case group.ForeignKeys[30]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_directory_account_creators", values[i]) } else if value.Valid { _m.organization_directory_account_creators = new(string) *_m.organization_directory_account_creators = value.String } - case group.ForeignKeys[29]: + case group.ForeignKeys[31]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_directory_group_creators", values[i]) } else if value.Valid { _m.organization_directory_group_creators = new(string) *_m.organization_directory_group_creators = value.String } - case group.ForeignKeys[30]: + case group.ForeignKeys[32]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_directory_membership_creators", values[i]) } else if value.Valid { _m.organization_directory_membership_creators = new(string) *_m.organization_directory_membership_creators = value.String } - case group.ForeignKeys[31]: + case group.ForeignKeys[33]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_directory_sync_run_creators", values[i]) } else if value.Valid { _m.organization_directory_sync_run_creators = new(string) *_m.organization_directory_sync_run_creators = value.String } - case group.ForeignKeys[32]: + case group.ForeignKeys[34]: 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[33]: + case group.ForeignKeys[35]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_document_data_creators", values[i]) } else if value.Valid { _m.organization_document_data_creators = new(string) *_m.organization_document_data_creators = value.String } - case group.ForeignKeys[34]: + case group.ForeignKeys[36]: 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[35]: + case group.ForeignKeys[37]: 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[36]: + case group.ForeignKeys[38]: 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[37]: + case group.ForeignKeys[39]: 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[38]: + case group.ForeignKeys[40]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_file_creators", values[i]) } else if value.Valid { _m.organization_file_creators = new(string) *_m.organization_file_creators = value.String } - case group.ForeignKeys[39]: + case group.ForeignKeys[41]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_finding_creators", values[i]) } else if value.Valid { _m.organization_finding_creators = new(string) *_m.organization_finding_creators = value.String } - case group.ForeignKeys[40]: + case group.ForeignKeys[42]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_finding_control_creators", values[i]) } else if value.Valid { _m.organization_finding_control_creators = new(string) *_m.organization_finding_control_creators = value.String } - case group.ForeignKeys[41]: + case group.ForeignKeys[43]: 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[42]: + case group.ForeignKeys[44]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_group_membership_creators", values[i]) } else if value.Valid { _m.organization_group_membership_creators = new(string) *_m.organization_group_membership_creators = value.String } - case group.ForeignKeys[43]: + case group.ForeignKeys[45]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_group_setting_creators", values[i]) } else if value.Valid { _m.organization_group_setting_creators = new(string) *_m.organization_group_setting_creators = value.String } - case group.ForeignKeys[44]: + case group.ForeignKeys[46]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_hush_creators", values[i]) } else if value.Valid { _m.organization_hush_creators = new(string) *_m.organization_hush_creators = value.String } - case group.ForeignKeys[45]: + case group.ForeignKeys[47]: 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[46]: + case group.ForeignKeys[48]: 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[47]: + case group.ForeignKeys[49]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_invite_creators", values[i]) } else if value.Valid { _m.organization_invite_creators = new(string) *_m.organization_invite_creators = value.String } - case group.ForeignKeys[48]: + case group.ForeignKeys[50]: 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[49]: + case group.ForeignKeys[51]: 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[50]: + case group.ForeignKeys[52]: 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[51]: + case group.ForeignKeys[53]: 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[52]: + case group.ForeignKeys[54]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_org_membership_creators", values[i]) } else if value.Valid { _m.organization_org_membership_creators = new(string) *_m.organization_org_membership_creators = value.String } - case group.ForeignKeys[53]: + case group.ForeignKeys[55]: 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[54]: + case group.ForeignKeys[56]: 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[55]: + case group.ForeignKeys[57]: 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[56]: + case group.ForeignKeys[58]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_program_membership_creators", values[i]) } else if value.Valid { _m.organization_program_membership_creators = new(string) *_m.organization_program_membership_creators = value.String } - case group.ForeignKeys[57]: + case group.ForeignKeys[59]: 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[58]: + case group.ForeignKeys[60]: 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[59]: + case group.ForeignKeys[61]: 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[60]: + case group.ForeignKeys[62]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_scan_creators", values[i]) } else if value.Valid { _m.organization_scan_creators = new(string) *_m.organization_scan_creators = value.String } - case group.ForeignKeys[61]: + case group.ForeignKeys[63]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_sla_definition_creators", values[i]) } else if value.Valid { _m.organization_sla_definition_creators = new(string) *_m.organization_sla_definition_creators = value.String } - case group.ForeignKeys[62]: + case group.ForeignKeys[64]: 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[63]: + case group.ForeignKeys[65]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_subcontrol_creators", values[i]) } else if value.Valid { _m.organization_subcontrol_creators = new(string) *_m.organization_subcontrol_creators = value.String } - case group.ForeignKeys[64]: + case group.ForeignKeys[66]: 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[65]: + case group.ForeignKeys[67]: 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[66]: + case group.ForeignKeys[68]: 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[67]: + case group.ForeignKeys[69]: 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[68]: + case group.ForeignKeys[70]: 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[69]: + case group.ForeignKeys[71]: 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[70]: + case group.ForeignKeys[72]: 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[71]: + case group.ForeignKeys[73]: 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[72]: + case group.ForeignKeys[74]: 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[73]: + case group.ForeignKeys[75]: 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[74]: + case group.ForeignKeys[76]: 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[75]: + case group.ForeignKeys[77]: 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[76]: + case group.ForeignKeys[78]: 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[77]: + case group.ForeignKeys[79]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_trust_center_watermark_config_creators", values[i]) } else if value.Valid { _m.organization_trust_center_watermark_config_creators = new(string) *_m.organization_trust_center_watermark_config_creators = value.String } - case group.ForeignKeys[78]: + case group.ForeignKeys[80]: 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[79]: + case group.ForeignKeys[81]: if value, ok := values[i].(*sql.NullString); !ok { return fmt.Errorf("unexpected type %T for field organization_vendor_scoring_config_creators", values[i]) } else if value.Valid { _m.organization_vendor_scoring_config_creators = new(string) *_m.organization_vendor_scoring_config_creators = value.String } - case group.ForeignKeys[80]: + case group.ForeignKeys[82]: 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]: + 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[82]: + case group.ForeignKeys[84]: 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[83]: + case group.ForeignKeys[85]: 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[84]: + case group.ForeignKeys[86]: 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[85]: + case group.ForeignKeys[87]: 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[86]: + case group.ForeignKeys[88]: 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[87]: + case group.ForeignKeys[89]: 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[88]: + case group.ForeignKeys[90]: 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[89]: + case group.ForeignKeys[91]: 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[90]: + case group.ForeignKeys[92]: 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[91]: + case group.ForeignKeys[93]: 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[92]: + case group.ForeignKeys[94]: 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[93]: + case group.ForeignKeys[95]: 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[94]: + case group.ForeignKeys[96]: 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[95]: + case group.ForeignKeys[97]: 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[96]: + case group.ForeignKeys[98]: 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[97]: + case group.ForeignKeys[99]: 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[98]: + case group.ForeignKeys[100]: 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[99]: + case group.ForeignKeys[101]: 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[100]: + case group.ForeignKeys[102]: 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[101]: + case group.ForeignKeys[103]: 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[102]: + case group.ForeignKeys[104]: 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[103]: + case group.ForeignKeys[105]: 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[104]: + case group.ForeignKeys[106]: 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[105]: + case group.ForeignKeys[107]: 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[106]: + case group.ForeignKeys[108]: 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[107]: + case group.ForeignKeys[109]: 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[108]: + case group.ForeignKeys[110]: 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[109]: + case group.ForeignKeys[111]: 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[110]: + case group.ForeignKeys[112]: 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[111]: + case group.ForeignKeys[113]: 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[112]: + case group.ForeignKeys[114]: 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[113]: + case group.ForeignKeys[115]: 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[114]: + case group.ForeignKeys[116]: 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[115]: + case group.ForeignKeys[117]: 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[116]: + case group.ForeignKeys[118]: 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 { @@ -2233,6 +2301,21 @@ func (_m *Group) QueryCampaignViewers() *CampaignQuery { return NewGroupClient(_m.config).QueryCampaignViewers(_m) } +// QueryAudienceEditors queries the "audience_editors" edge of the Group entity. +func (_m *Group) QueryAudienceEditors() *AudienceQuery { + return NewGroupClient(_m.config).QueryAudienceEditors(_m) +} + +// QueryAudienceBlockedGroups queries the "audience_blocked_groups" edge of the Group entity. +func (_m *Group) QueryAudienceBlockedGroups() *AudienceQuery { + return NewGroupClient(_m.config).QueryAudienceBlockedGroups(_m) +} + +// QueryAudienceViewers queries the "audience_viewers" edge of the Group entity. +func (_m *Group) QueryAudienceViewers() *AudienceQuery { + return NewGroupClient(_m.config).QueryAudienceViewers(_m) +} + // QueryProcedureEditors queries the "procedure_editors" edge of the Group entity. func (_m *Group) QueryProcedureEditors() *ProcedureQuery { return NewGroupClient(_m.config).QueryProcedureEditors(_m) @@ -2368,6 +2451,11 @@ func (_m *Group) QueryCampaignTargets() *CampaignTargetQuery { return NewGroupClient(_m.config).QueryCampaignTargets(_m) } +// QueryAudienceMembers queries the "audience_members" edge of the Group entity. +func (_m *Group) QueryAudienceMembers() *AudienceMemberQuery { + return NewGroupClient(_m.config).QueryAudienceMembers(_m) +} + // QueryInvites queries the "invites" edge of the Group entity. func (_m *Group) QueryInvites() *InviteQuery { return NewGroupClient(_m.config).QueryInvites(_m) @@ -3066,6 +3154,78 @@ func (_m *Group) appendNamedCampaignViewers(name string, edges ...*Campaign) { } } +// NamedAudienceEditors returns the AudienceEditors named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Group) NamedAudienceEditors(name string) ([]*Audience, error) { + if _m.Edges.namedAudienceEditors == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceEditors[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Group) appendNamedAudienceEditors(name string, edges ...*Audience) { + if _m.Edges.namedAudienceEditors == nil { + _m.Edges.namedAudienceEditors = make(map[string][]*Audience) + } + if len(edges) == 0 { + _m.Edges.namedAudienceEditors[name] = []*Audience{} + } else { + _m.Edges.namedAudienceEditors[name] = append(_m.Edges.namedAudienceEditors[name], edges...) + } +} + +// NamedAudienceBlockedGroups returns the AudienceBlockedGroups named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Group) NamedAudienceBlockedGroups(name string) ([]*Audience, error) { + if _m.Edges.namedAudienceBlockedGroups == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceBlockedGroups[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Group) appendNamedAudienceBlockedGroups(name string, edges ...*Audience) { + if _m.Edges.namedAudienceBlockedGroups == nil { + _m.Edges.namedAudienceBlockedGroups = make(map[string][]*Audience) + } + if len(edges) == 0 { + _m.Edges.namedAudienceBlockedGroups[name] = []*Audience{} + } else { + _m.Edges.namedAudienceBlockedGroups[name] = append(_m.Edges.namedAudienceBlockedGroups[name], edges...) + } +} + +// NamedAudienceViewers returns the AudienceViewers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Group) NamedAudienceViewers(name string) ([]*Audience, error) { + if _m.Edges.namedAudienceViewers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceViewers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Group) appendNamedAudienceViewers(name string, edges ...*Audience) { + if _m.Edges.namedAudienceViewers == nil { + _m.Edges.namedAudienceViewers = make(map[string][]*Audience) + } + if len(edges) == 0 { + _m.Edges.namedAudienceViewers[name] = []*Audience{} + } else { + _m.Edges.namedAudienceViewers[name] = append(_m.Edges.namedAudienceViewers[name], edges...) + } +} + // NamedProcedureEditors returns the ProcedureEditors named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *Group) NamedProcedureEditors(name string) ([]*Procedure, error) { @@ -3666,6 +3826,30 @@ func (_m *Group) appendNamedCampaignTargets(name string, edges ...*CampaignTarge } } +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Group) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Group) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // NamedInvites returns the Invites named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *Group) NamedInvites(name string) ([]*Invite, error) { diff --git a/internal/ent/generated/group/group.go b/internal/ent/generated/group/group.go index 27d1aeca95..ea2929165b 100644 --- a/internal/ent/generated/group/group.go +++ b/internal/ent/generated/group/group.go @@ -113,6 +113,12 @@ const ( EdgeCampaignBlockedGroups = "campaign_blocked_groups" // EdgeCampaignViewers holds the string denoting the campaign_viewers edge name in mutations. EdgeCampaignViewers = "campaign_viewers" + // EdgeAudienceEditors holds the string denoting the audience_editors edge name in mutations. + EdgeAudienceEditors = "audience_editors" + // EdgeAudienceBlockedGroups holds the string denoting the audience_blocked_groups edge name in mutations. + EdgeAudienceBlockedGroups = "audience_blocked_groups" + // EdgeAudienceViewers holds the string denoting the audience_viewers edge name in mutations. + EdgeAudienceViewers = "audience_viewers" // EdgeProcedureEditors holds the string denoting the procedure_editors edge name in mutations. EdgeProcedureEditors = "procedure_editors" // EdgeProcedureBlockedGroups holds the string denoting the procedure_blocked_groups edge name in mutations. @@ -167,6 +173,8 @@ const ( EdgeCampaigns = "campaigns" // EdgeCampaignTargets holds the string denoting the campaign_targets edge name in mutations. EdgeCampaignTargets = "campaign_targets" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // EdgeInvites holds the string denoting the invites edge name in mutations. EdgeInvites = "invites" // EdgeMembers holds the string denoting the members edge name in mutations. @@ -300,6 +308,21 @@ const ( // CampaignViewersInverseTable is the table name for the Campaign entity. // It exists in this package in order to avoid circular dependency with the "campaign" package. CampaignViewersInverseTable = "campaigns" + // AudienceEditorsTable is the table that holds the audience_editors relation/edge. The primary key declared below. + AudienceEditorsTable = "audience_editors" + // AudienceEditorsInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudienceEditorsInverseTable = "audiences" + // AudienceBlockedGroupsTable is the table that holds the audience_blocked_groups relation/edge. The primary key declared below. + AudienceBlockedGroupsTable = "audience_blocked_groups" + // AudienceBlockedGroupsInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudienceBlockedGroupsInverseTable = "audiences" + // AudienceViewersTable is the table that holds the audience_viewers relation/edge. The primary key declared below. + AudienceViewersTable = "audience_viewers" + // AudienceViewersInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudienceViewersInverseTable = "audiences" // ProcedureEditorsTable is the table that holds the procedure_editors relation/edge. The primary key declared below. ProcedureEditorsTable = "procedure_editors" // ProcedureEditorsInverseTable is the table name for the Procedure entity. @@ -443,6 +466,13 @@ const ( CampaignTargetsInverseTable = "campaign_targets" // CampaignTargetsColumn is the table column denoting the campaign_targets relation/edge. CampaignTargetsColumn = "group_id" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "group_id" // InvitesTable is the table that holds the invites relation/edge. The primary key declared below. InvitesTable = "invite_groups" // InvitesInverseTable is the table name for the Invite entity. @@ -508,6 +538,8 @@ var ForeignKeys = []string{ "organization_api_token_creators", "organization_assessment_creators", "organization_asset_creators", + "organization_audience_creators", + "organization_audience_member_creators", "organization_campaign_creators", "organization_campaign_target_creators", "organization_check_result_creators", @@ -681,6 +713,15 @@ var ( // CampaignViewersPrimaryKey and CampaignViewersColumn2 are the table columns denoting the // primary key for the campaign_viewers relation (M2M). CampaignViewersPrimaryKey = []string{"campaign_id", "group_id"} + // AudienceEditorsPrimaryKey and AudienceEditorsColumn2 are the table columns denoting the + // primary key for the audience_editors relation (M2M). + AudienceEditorsPrimaryKey = []string{"audience_id", "group_id"} + // AudienceBlockedGroupsPrimaryKey and AudienceBlockedGroupsColumn2 are the table columns denoting the + // primary key for the audience_blocked_groups relation (M2M). + AudienceBlockedGroupsPrimaryKey = []string{"audience_id", "group_id"} + // AudienceViewersPrimaryKey and AudienceViewersColumn2 are the table columns denoting the + // primary key for the audience_viewers relation (M2M). + AudienceViewersPrimaryKey = []string{"audience_id", "group_id"} // ProcedureEditorsPrimaryKey and ProcedureEditorsColumn2 are the table columns denoting the // primary key for the procedure_editors relation (M2M). ProcedureEditorsPrimaryKey = []string{"procedure_id", "group_id"} @@ -1270,6 +1311,48 @@ func ByCampaignViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceEditorsCount orders the results by audience_editors count. +func ByAudienceEditorsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceEditorsStep(), opts...) + } +} + +// ByAudienceEditors orders the results by audience_editors terms. +func ByAudienceEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceEditorsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAudienceBlockedGroupsCount orders the results by audience_blocked_groups count. +func ByAudienceBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceBlockedGroupsStep(), opts...) + } +} + +// ByAudienceBlockedGroups orders the results by audience_blocked_groups terms. +func ByAudienceBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceBlockedGroupsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAudienceViewersCount orders the results by audience_viewers count. +func ByAudienceViewersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceViewersStep(), opts...) + } +} + +// ByAudienceViewers orders the results by audience_viewers terms. +func ByAudienceViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceViewersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByProcedureEditorsCount orders the results by procedure_editors count. func ByProcedureEditorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -1634,6 +1717,20 @@ func ByCampaignTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByInvitesCount orders the results by invites count. func ByInvitesCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -1836,6 +1933,27 @@ func newCampaignViewersStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2M, true, CampaignViewersTable, CampaignViewersPrimaryKey...), ) } +func newAudienceEditorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceEditorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceEditorsTable, AudienceEditorsPrimaryKey...), + ) +} +func newAudienceBlockedGroupsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceBlockedGroupsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceBlockedGroupsTable, AudienceBlockedGroupsPrimaryKey...), + ) +} +func newAudienceViewersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceViewersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceViewersTable, AudienceViewersPrimaryKey...), + ) +} func newProcedureEditorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -2025,6 +2143,13 @@ func newCampaignTargetsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, CampaignTargetsTable, CampaignTargetsColumn), ) } +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} func newInvitesStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/group/where.go b/internal/ent/generated/group/where.go index 3f76dce757..222c36a199 100644 --- a/internal/ent/generated/group/where.go +++ b/internal/ent/generated/group/where.go @@ -2205,6 +2205,75 @@ func HasCampaignViewersWith(preds ...predicate.Campaign) predicate.Group { }) } +// HasAudienceEditors applies the HasEdge predicate on the "audience_editors" edge. +func HasAudienceEditors() predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceEditorsTable, AudienceEditorsPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceEditorsWith applies the HasEdge predicate on the "audience_editors" edge with a given conditions (other predicates). +func HasAudienceEditorsWith(preds ...predicate.Audience) predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := newAudienceEditorsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudienceBlockedGroups applies the HasEdge predicate on the "audience_blocked_groups" edge. +func HasAudienceBlockedGroups() predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceBlockedGroupsTable, AudienceBlockedGroupsPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceBlockedGroupsWith applies the HasEdge predicate on the "audience_blocked_groups" edge with a given conditions (other predicates). +func HasAudienceBlockedGroupsWith(preds ...predicate.Audience) predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := newAudienceBlockedGroupsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudienceViewers applies the HasEdge predicate on the "audience_viewers" edge. +func HasAudienceViewers() predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, AudienceViewersTable, AudienceViewersPrimaryKey...), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceViewersWith applies the HasEdge predicate on the "audience_viewers" edge with a given conditions (other predicates). +func HasAudienceViewersWith(preds ...predicate.Audience) predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := newAudienceViewersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasProcedureEditors applies the HasEdge predicate on the "procedure_editors" edge. func HasProcedureEditors() predicate.Group { return predicate.Group(func(s *sql.Selector) { @@ -2826,6 +2895,29 @@ func HasCampaignTargetsWith(preds ...predicate.CampaignTarget) predicate.Group { }) } +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.Group { + return predicate.Group(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasInvites applies the HasEdge predicate on the "invites" edge. func HasInvites() predicate.Group { return predicate.Group(func(s *sql.Selector) { diff --git a/internal/ent/generated/group_create.go b/internal/ent/generated/group_create.go index b3a9e314b5..b5c877f38c 100644 --- a/internal/ent/generated/group_create.go +++ b/internal/ent/generated/group_create.go @@ -11,6 +11,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/control" @@ -730,6 +732,51 @@ func (_c *GroupCreate) AddCampaignViewers(v ...*Campaign) *GroupCreate { return _c.AddCampaignViewerIDs(ids...) } +// AddAudienceEditorIDs adds the "audience_editors" edge to the Audience entity by IDs. +func (_c *GroupCreate) AddAudienceEditorIDs(ids ...string) *GroupCreate { + _c.mutation.AddAudienceEditorIDs(ids...) + return _c +} + +// AddAudienceEditors adds the "audience_editors" edges to the Audience entity. +func (_c *GroupCreate) AddAudienceEditors(v ...*Audience) *GroupCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceEditorIDs(ids...) +} + +// AddAudienceBlockedGroupIDs adds the "audience_blocked_groups" edge to the Audience entity by IDs. +func (_c *GroupCreate) AddAudienceBlockedGroupIDs(ids ...string) *GroupCreate { + _c.mutation.AddAudienceBlockedGroupIDs(ids...) + return _c +} + +// AddAudienceBlockedGroups adds the "audience_blocked_groups" edges to the Audience entity. +func (_c *GroupCreate) AddAudienceBlockedGroups(v ...*Audience) *GroupCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceBlockedGroupIDs(ids...) +} + +// AddAudienceViewerIDs adds the "audience_viewers" edge to the Audience entity by IDs. +func (_c *GroupCreate) AddAudienceViewerIDs(ids ...string) *GroupCreate { + _c.mutation.AddAudienceViewerIDs(ids...) + return _c +} + +// AddAudienceViewers adds the "audience_viewers" edges to the Audience entity. +func (_c *GroupCreate) AddAudienceViewers(v ...*Audience) *GroupCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceViewerIDs(ids...) +} + // AddProcedureEditorIDs adds the "procedure_editors" edge to the Procedure entity by IDs. func (_c *GroupCreate) AddProcedureEditorIDs(ids ...string) *GroupCreate { _c.mutation.AddProcedureEditorIDs(ids...) @@ -1143,6 +1190,21 @@ func (_c *GroupCreate) AddCampaignTargets(v ...*CampaignTarget) *GroupCreate { return _c.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *GroupCreate) AddAudienceMemberIDs(ids ...string) *GroupCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *GroupCreate) AddAudienceMembers(v ...*AudienceMember) *GroupCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + // AddInviteIDs adds the "invites" edge to the Invite entity by IDs. func (_c *GroupCreate) AddInviteIDs(ids ...string) *GroupCreate { _c.mutation.AddInviteIDs(ids...) @@ -1815,6 +1877,54 @@ func (_c *GroupCreate) createSpec() (*Group, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceEditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceBlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.ProcedureEditorsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, @@ -2255,6 +2365,22 @@ func (_c *GroupCreate) createSpec() (*Group, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.InvitesIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, diff --git a/internal/ent/generated/group_query.go b/internal/ent/generated/group_query.go index 4d00d45d94..8336e1844d 100644 --- a/internal/ent/generated/group_query.go +++ b/internal/ent/generated/group_query.go @@ -14,6 +14,8 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/control" @@ -78,6 +80,9 @@ type GroupQuery struct { withCampaignEditors *CampaignQuery withCampaignBlockedGroups *CampaignQuery withCampaignViewers *CampaignQuery + withAudienceEditors *AudienceQuery + withAudienceBlockedGroups *AudienceQuery + withAudienceViewers *AudienceQuery withProcedureEditors *ProcedureQuery withProcedureBlockedGroups *ProcedureQuery withInternalPolicyEditors *InternalPolicyQuery @@ -105,6 +110,7 @@ type GroupQuery struct { withTasks *TaskQuery withCampaigns *CampaignQuery withCampaignTargets *CampaignTargetQuery + withAudienceMembers *AudienceMemberQuery withInvites *InviteQuery withMembers *GroupMembershipQuery withFKs bool @@ -134,6 +140,9 @@ type GroupQuery struct { withNamedCampaignEditors map[string]*CampaignQuery withNamedCampaignBlockedGroups map[string]*CampaignQuery withNamedCampaignViewers map[string]*CampaignQuery + withNamedAudienceEditors map[string]*AudienceQuery + withNamedAudienceBlockedGroups map[string]*AudienceQuery + withNamedAudienceViewers map[string]*AudienceQuery withNamedProcedureEditors map[string]*ProcedureQuery withNamedProcedureBlockedGroups map[string]*ProcedureQuery withNamedInternalPolicyEditors map[string]*InternalPolicyQuery @@ -159,6 +168,7 @@ type GroupQuery struct { withNamedTasks map[string]*TaskQuery withNamedCampaigns map[string]*CampaignQuery withNamedCampaignTargets map[string]*CampaignTargetQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery withNamedInvites map[string]*InviteQuery withNamedMembers map[string]*GroupMembershipQuery // intermediate query (i.e. traversal path). @@ -747,6 +757,72 @@ func (_q *GroupQuery) QueryCampaignViewers() *CampaignQuery { return query } +// QueryAudienceEditors chains the current query on the "audience_editors" edge. +func (_q *GroupQuery) QueryAudienceEditors() *AudienceQuery { + query := (&AudienceClient{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(group.Table, group.FieldID, selector), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceEditorsTable, group.AudienceEditorsPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudienceBlockedGroups chains the current query on the "audience_blocked_groups" edge. +func (_q *GroupQuery) QueryAudienceBlockedGroups() *AudienceQuery { + query := (&AudienceClient{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(group.Table, group.FieldID, selector), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceBlockedGroupsTable, group.AudienceBlockedGroupsPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudienceViewers chains the current query on the "audience_viewers" edge. +func (_q *GroupQuery) QueryAudienceViewers() *AudienceQuery { + query := (&AudienceClient{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(group.Table, group.FieldID, selector), + sqlgraph.To(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.M2M, true, group.AudienceViewersTable, group.AudienceViewersPrimaryKey...), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryProcedureEditors chains the current query on the "procedure_editors" edge. func (_q *GroupQuery) QueryProcedureEditors() *ProcedureQuery { query := (&ProcedureClient{config: _q.config}).Query() @@ -1341,6 +1417,28 @@ func (_q *GroupQuery) QueryCampaignTargets() *CampaignTargetQuery { return query } +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *GroupQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(group.Table, group.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, group.AudienceMembersTable, group.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryInvites chains the current query on the "invites" edge. func (_q *GroupQuery) QueryInvites() *InviteQuery { query := (&InviteClient{config: _q.config}).Query() @@ -1602,6 +1700,9 @@ func (_q *GroupQuery) Clone() *GroupQuery { withCampaignEditors: _q.withCampaignEditors.Clone(), withCampaignBlockedGroups: _q.withCampaignBlockedGroups.Clone(), withCampaignViewers: _q.withCampaignViewers.Clone(), + withAudienceEditors: _q.withAudienceEditors.Clone(), + withAudienceBlockedGroups: _q.withAudienceBlockedGroups.Clone(), + withAudienceViewers: _q.withAudienceViewers.Clone(), withProcedureEditors: _q.withProcedureEditors.Clone(), withProcedureBlockedGroups: _q.withProcedureBlockedGroups.Clone(), withInternalPolicyEditors: _q.withInternalPolicyEditors.Clone(), @@ -1629,6 +1730,7 @@ func (_q *GroupQuery) Clone() *GroupQuery { withTasks: _q.withTasks.Clone(), withCampaigns: _q.withCampaigns.Clone(), withCampaignTargets: _q.withCampaignTargets.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), withInvites: _q.withInvites.Clone(), withMembers: _q.withMembers.Clone(), // clone intermediate query. @@ -1913,6 +2015,39 @@ func (_q *GroupQuery) WithCampaignViewers(opts ...func(*CampaignQuery)) *GroupQu return _q } +// WithAudienceEditors tells the query-builder to eager-load the nodes that are connected to +// the "audience_editors" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithAudienceEditors(opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceEditors = query + return _q +} + +// WithAudienceBlockedGroups tells the query-builder to eager-load the nodes that are connected to +// the "audience_blocked_groups" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithAudienceBlockedGroups(opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceBlockedGroups = query + return _q +} + +// WithAudienceViewers tells the query-builder to eager-load the nodes that are connected to +// the "audience_viewers" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithAudienceViewers(opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceViewers = query + return _q +} + // WithProcedureEditors tells the query-builder to eager-load the nodes that are connected to // the "procedure_editors" edge. The optional arguments are used to configure the query builder of the edge. func (_q *GroupQuery) WithProcedureEditors(opts ...func(*ProcedureQuery)) *GroupQuery { @@ -2210,6 +2345,17 @@ func (_q *GroupQuery) WithCampaignTargets(opts ...func(*CampaignTargetQuery)) *G return _q } +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *GroupQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 *GroupQuery) WithInvites(opts ...func(*InviteQuery)) *GroupQuery { @@ -2317,7 +2463,7 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, nodes = []*Group{} withFKs = _q.withFKs _spec = _q.querySpec() - loadedTypes = [54]bool{ + loadedTypes = [58]bool{ _q.withOwner != nil, _q.withProgramEditors != nil, _q.withProgramBlockedGroups != nil, @@ -2343,6 +2489,9 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, _q.withCampaignEditors != nil, _q.withCampaignBlockedGroups != nil, _q.withCampaignViewers != nil, + _q.withAudienceEditors != nil, + _q.withAudienceBlockedGroups != nil, + _q.withAudienceViewers != nil, _q.withProcedureEditors != nil, _q.withProcedureBlockedGroups != nil, _q.withInternalPolicyEditors != nil, @@ -2370,6 +2519,7 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, _q.withTasks != nil, _q.withCampaigns != nil, _q.withCampaignTargets != nil, + _q.withAudienceMembers != nil, _q.withInvites != nil, _q.withMembers != nil, } @@ -2588,6 +2738,27 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, return nil, err } } + if query := _q.withAudienceEditors; query != nil { + if err := _q.loadAudienceEditors(ctx, query, nodes, + func(n *Group) { n.Edges.AudienceEditors = []*Audience{} }, + func(n *Group, e *Audience) { n.Edges.AudienceEditors = append(n.Edges.AudienceEditors, e) }); err != nil { + return nil, err + } + } + if query := _q.withAudienceBlockedGroups; query != nil { + if err := _q.loadAudienceBlockedGroups(ctx, query, nodes, + func(n *Group) { n.Edges.AudienceBlockedGroups = []*Audience{} }, + func(n *Group, e *Audience) { n.Edges.AudienceBlockedGroups = append(n.Edges.AudienceBlockedGroups, e) }); err != nil { + return nil, err + } + } + if query := _q.withAudienceViewers; query != nil { + if err := _q.loadAudienceViewers(ctx, query, nodes, + func(n *Group) { n.Edges.AudienceViewers = []*Audience{} }, + func(n *Group, e *Audience) { n.Edges.AudienceViewers = append(n.Edges.AudienceViewers, e) }); err != nil { + return nil, err + } + } if query := _q.withProcedureEditors; query != nil { if err := _q.loadProcedureEditors(ctx, query, nodes, func(n *Group) { n.Edges.ProcedureEditors = []*Procedure{} }, @@ -2787,6 +2958,13 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, return nil, err } } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Group) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *Group, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) }); err != nil { + return nil, err + } + } if query := _q.withInvites; query != nil { if err := _q.loadInvites(ctx, query, nodes, func(n *Group) { n.Edges.Invites = []*Invite{} }, @@ -2969,6 +3147,27 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, return nil, err } } + for name, query := range _q.withNamedAudienceEditors { + if err := _q.loadAudienceEditors(ctx, query, nodes, + func(n *Group) { n.appendNamedAudienceEditors(name) }, + func(n *Group, e *Audience) { n.appendNamedAudienceEditors(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAudienceBlockedGroups { + if err := _q.loadAudienceBlockedGroups(ctx, query, nodes, + func(n *Group) { n.appendNamedAudienceBlockedGroups(name) }, + func(n *Group, e *Audience) { n.appendNamedAudienceBlockedGroups(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAudienceViewers { + if err := _q.loadAudienceViewers(ctx, query, nodes, + func(n *Group) { n.appendNamedAudienceViewers(name) }, + func(n *Group, e *Audience) { n.appendNamedAudienceViewers(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedProcedureEditors { if err := _q.loadProcedureEditors(ctx, query, nodes, func(n *Group) { n.appendNamedProcedureEditors(name) }, @@ -3144,6 +3343,13 @@ func (_q *GroupQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*Group, return nil, err } } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Group) { n.appendNamedAudienceMembers(name) }, + func(n *Group, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedInvites { if err := _q.loadInvites(ctx, query, nodes, func(n *Group) { n.appendNamedInvites(name) }, @@ -4659,6 +4865,189 @@ func (_q *GroupQuery) loadCampaignViewers(ctx context.Context, query *CampaignQu } return nil } +func (_q *GroupQuery) loadAudienceEditors(ctx context.Context, query *AudienceQuery, nodes []*Group, init func(*Group), assign func(*Group, *Audience)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Group) + nids := make(map[string]map[*Group]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(group.AudienceEditorsTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceEditorsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceEditorsPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(group.AudienceEditorsPrimaryKey[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[*Group]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Audience](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 "audience_editors" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *GroupQuery) loadAudienceBlockedGroups(ctx context.Context, query *AudienceQuery, nodes []*Group, init func(*Group), assign func(*Group, *Audience)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Group) + nids := make(map[string]map[*Group]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(group.AudienceBlockedGroupsTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceBlockedGroupsPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceBlockedGroupsPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(group.AudienceBlockedGroupsPrimaryKey[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[*Group]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Audience](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 "audience_blocked_groups" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} +func (_q *GroupQuery) loadAudienceViewers(ctx context.Context, query *AudienceQuery, nodes []*Group, init func(*Group), assign func(*Group, *Audience)) error { + edgeIDs := make([]driver.Value, len(nodes)) + byID := make(map[string]*Group) + nids := make(map[string]map[*Group]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(group.AudienceViewersTable) + s.Join(joinT).On(s.C(audience.FieldID), joinT.C(group.AudienceViewersPrimaryKey[0])) + s.Where(sql.InValues(joinT.C(group.AudienceViewersPrimaryKey[1]), edgeIDs...)) + columns := s.SelectedColumns() + s.Select(joinT.C(group.AudienceViewersPrimaryKey[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[*Group]struct{}{byID[outValue]: {}} + return assign(columns[1:], values[1:]) + } + nids[inValue][byID[outValue]] = struct{}{} + return nil + } + }) + }) + neighbors, err := withInterceptors[[]*Audience](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 "audience_viewers" node returned %v`, n.ID) + } + for kn := range nodes { + assign(kn, n) + } + } + return nil +} func (_q *GroupQuery) loadProcedureEditors(ctx context.Context, query *ProcedureQuery, nodes []*Group, init func(*Group), assign func(*Group, *Procedure)) error { edgeIDs := make([]driver.Value, len(nodes)) byID := make(map[string]*Group) @@ -6182,6 +6571,36 @@ func (_q *GroupQuery) loadCampaignTargets(ctx context.Context, query *CampaignTa } return nil } +func (_q *GroupQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*Group, init func(*Group), assign func(*Group, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Group) + 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(audiencemember.FieldGroupID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(group.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.GroupID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "group_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} func (_q *GroupQuery) loadInvites(ctx context.Context, query *InviteQuery, nodes []*Group, init func(*Group), assign func(*Group, *Invite)) error { edgeIDs := make([]driver.Value, len(nodes)) byID := make(map[string]*Group) @@ -6710,6 +7129,48 @@ func (_q *GroupQuery) WithNamedCampaignViewers(name string, opts ...func(*Campai return _q } +// WithNamedAudienceEditors tells the query-builder to eager-load the nodes that are connected to the "audience_editors" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithNamedAudienceEditors(name string, opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceEditors == nil { + _q.withNamedAudienceEditors = make(map[string]*AudienceQuery) + } + _q.withNamedAudienceEditors[name] = query + return _q +} + +// WithNamedAudienceBlockedGroups tells the query-builder to eager-load the nodes that are connected to the "audience_blocked_groups" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithNamedAudienceBlockedGroups(name string, opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceBlockedGroups == nil { + _q.withNamedAudienceBlockedGroups = make(map[string]*AudienceQuery) + } + _q.withNamedAudienceBlockedGroups[name] = query + return _q +} + +// WithNamedAudienceViewers tells the query-builder to eager-load the nodes that are connected to the "audience_viewers" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithNamedAudienceViewers(name string, opts ...func(*AudienceQuery)) *GroupQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceViewers == nil { + _q.withNamedAudienceViewers = make(map[string]*AudienceQuery) + } + _q.withNamedAudienceViewers[name] = query + return _q +} + // WithNamedProcedureEditors tells the query-builder to eager-load the nodes that are connected to the "procedure_editors" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *GroupQuery) WithNamedProcedureEditors(name string, opts ...func(*ProcedureQuery)) *GroupQuery { @@ -7060,6 +7521,20 @@ func (_q *GroupQuery) WithNamedCampaignTargets(name string, opts ...func(*Campai return _q } +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *GroupQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *GroupQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // WithNamedInvites tells the query-builder to eager-load the nodes that are connected to the "invites" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *GroupQuery) WithNamedInvites(name string, opts ...func(*InviteQuery)) *GroupQuery { diff --git a/internal/ent/generated/group_update.go b/internal/ent/generated/group_update.go index be07aeeb31..0bd21b9a99 100644 --- a/internal/ent/generated/group_update.go +++ b/internal/ent/generated/group_update.go @@ -13,6 +13,8 @@ import ( "entgo.io/ent/dialect/sql/sqljson" "entgo.io/ent/schema/field" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/control" @@ -798,6 +800,51 @@ func (_u *GroupUpdate) AddCampaignViewers(v ...*Campaign) *GroupUpdate { return _u.AddCampaignViewerIDs(ids...) } +// AddAudienceEditorIDs adds the "audience_editors" edge to the Audience entity by IDs. +func (_u *GroupUpdate) AddAudienceEditorIDs(ids ...string) *GroupUpdate { + _u.mutation.AddAudienceEditorIDs(ids...) + return _u +} + +// AddAudienceEditors adds the "audience_editors" edges to the Audience entity. +func (_u *GroupUpdate) AddAudienceEditors(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceEditorIDs(ids...) +} + +// AddAudienceBlockedGroupIDs adds the "audience_blocked_groups" edge to the Audience entity by IDs. +func (_u *GroupUpdate) AddAudienceBlockedGroupIDs(ids ...string) *GroupUpdate { + _u.mutation.AddAudienceBlockedGroupIDs(ids...) + return _u +} + +// AddAudienceBlockedGroups adds the "audience_blocked_groups" edges to the Audience entity. +func (_u *GroupUpdate) AddAudienceBlockedGroups(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceBlockedGroupIDs(ids...) +} + +// AddAudienceViewerIDs adds the "audience_viewers" edge to the Audience entity by IDs. +func (_u *GroupUpdate) AddAudienceViewerIDs(ids ...string) *GroupUpdate { + _u.mutation.AddAudienceViewerIDs(ids...) + return _u +} + +// AddAudienceViewers adds the "audience_viewers" edges to the Audience entity. +func (_u *GroupUpdate) AddAudienceViewers(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceViewerIDs(ids...) +} + // AddProcedureEditorIDs adds the "procedure_editors" edge to the Procedure entity by IDs. func (_u *GroupUpdate) AddProcedureEditorIDs(ids ...string) *GroupUpdate { _u.mutation.AddProcedureEditorIDs(ids...) @@ -1211,6 +1258,21 @@ func (_u *GroupUpdate) AddCampaignTargets(v ...*CampaignTarget) *GroupUpdate { return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *GroupUpdate) AddAudienceMemberIDs(ids ...string) *GroupUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *GroupUpdate) AddAudienceMembers(v ...*AudienceMember) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddInviteIDs adds the "invites" edge to the Invite entity by IDs. func (_u *GroupUpdate) AddInviteIDs(ids ...string) *GroupUpdate { _u.mutation.AddInviteIDs(ids...) @@ -1756,6 +1818,69 @@ func (_u *GroupUpdate) RemoveCampaignViewers(v ...*Campaign) *GroupUpdate { return _u.RemoveCampaignViewerIDs(ids...) } +// ClearAudienceEditors clears all "audience_editors" edges to the Audience entity. +func (_u *GroupUpdate) ClearAudienceEditors() *GroupUpdate { + _u.mutation.ClearAudienceEditors() + return _u +} + +// RemoveAudienceEditorIDs removes the "audience_editors" edge to Audience entities by IDs. +func (_u *GroupUpdate) RemoveAudienceEditorIDs(ids ...string) *GroupUpdate { + _u.mutation.RemoveAudienceEditorIDs(ids...) + return _u +} + +// RemoveAudienceEditors removes "audience_editors" edges to Audience entities. +func (_u *GroupUpdate) RemoveAudienceEditors(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceEditorIDs(ids...) +} + +// ClearAudienceBlockedGroups clears all "audience_blocked_groups" edges to the Audience entity. +func (_u *GroupUpdate) ClearAudienceBlockedGroups() *GroupUpdate { + _u.mutation.ClearAudienceBlockedGroups() + return _u +} + +// RemoveAudienceBlockedGroupIDs removes the "audience_blocked_groups" edge to Audience entities by IDs. +func (_u *GroupUpdate) RemoveAudienceBlockedGroupIDs(ids ...string) *GroupUpdate { + _u.mutation.RemoveAudienceBlockedGroupIDs(ids...) + return _u +} + +// RemoveAudienceBlockedGroups removes "audience_blocked_groups" edges to Audience entities. +func (_u *GroupUpdate) RemoveAudienceBlockedGroups(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceBlockedGroupIDs(ids...) +} + +// ClearAudienceViewers clears all "audience_viewers" edges to the Audience entity. +func (_u *GroupUpdate) ClearAudienceViewers() *GroupUpdate { + _u.mutation.ClearAudienceViewers() + return _u +} + +// RemoveAudienceViewerIDs removes the "audience_viewers" edge to Audience entities by IDs. +func (_u *GroupUpdate) RemoveAudienceViewerIDs(ids ...string) *GroupUpdate { + _u.mutation.RemoveAudienceViewerIDs(ids...) + return _u +} + +// RemoveAudienceViewers removes "audience_viewers" edges to Audience entities. +func (_u *GroupUpdate) RemoveAudienceViewers(v ...*Audience) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceViewerIDs(ids...) +} + // ClearProcedureEditors clears all "procedure_editors" edges to the Procedure entity. func (_u *GroupUpdate) ClearProcedureEditors() *GroupUpdate { _u.mutation.ClearProcedureEditors() @@ -2293,6 +2418,27 @@ func (_u *GroupUpdate) RemoveCampaignTargets(v ...*CampaignTarget) *GroupUpdate return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *GroupUpdate) ClearAudienceMembers() *GroupUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *GroupUpdate) RemoveAudienceMemberIDs(ids ...string) *GroupUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *GroupUpdate) RemoveAudienceMembers(v ...*AudienceMember) *GroupUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearInvites clears all "invites" edges to the Invite entity. func (_u *GroupUpdate) ClearInvites() *GroupUpdate { _u.mutation.ClearInvites() @@ -3655,6 +3801,141 @@ func (_u *GroupUpdate) sqlSave(ctx context.Context) (_node int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceEditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceEditorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceEditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceEditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceBlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceBlockedGroupsIDs(); len(nodes) > 0 && !_u.mutation.AudienceBlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceBlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceViewersIDs(); len(nodes) > 0 && !_u.mutation.AudienceViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.ProcedureEditorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, @@ -4859,6 +5140,51 @@ func (_u *GroupUpdate) sqlSave(ctx context.Context) (_node int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, @@ -5712,6 +6038,51 @@ func (_u *GroupUpdateOne) AddCampaignViewers(v ...*Campaign) *GroupUpdateOne { return _u.AddCampaignViewerIDs(ids...) } +// AddAudienceEditorIDs adds the "audience_editors" edge to the Audience entity by IDs. +func (_u *GroupUpdateOne) AddAudienceEditorIDs(ids ...string) *GroupUpdateOne { + _u.mutation.AddAudienceEditorIDs(ids...) + return _u +} + +// AddAudienceEditors adds the "audience_editors" edges to the Audience entity. +func (_u *GroupUpdateOne) AddAudienceEditors(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceEditorIDs(ids...) +} + +// AddAudienceBlockedGroupIDs adds the "audience_blocked_groups" edge to the Audience entity by IDs. +func (_u *GroupUpdateOne) AddAudienceBlockedGroupIDs(ids ...string) *GroupUpdateOne { + _u.mutation.AddAudienceBlockedGroupIDs(ids...) + return _u +} + +// AddAudienceBlockedGroups adds the "audience_blocked_groups" edges to the Audience entity. +func (_u *GroupUpdateOne) AddAudienceBlockedGroups(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceBlockedGroupIDs(ids...) +} + +// AddAudienceViewerIDs adds the "audience_viewers" edge to the Audience entity by IDs. +func (_u *GroupUpdateOne) AddAudienceViewerIDs(ids ...string) *GroupUpdateOne { + _u.mutation.AddAudienceViewerIDs(ids...) + return _u +} + +// AddAudienceViewers adds the "audience_viewers" edges to the Audience entity. +func (_u *GroupUpdateOne) AddAudienceViewers(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceViewerIDs(ids...) +} + // AddProcedureEditorIDs adds the "procedure_editors" edge to the Procedure entity by IDs. func (_u *GroupUpdateOne) AddProcedureEditorIDs(ids ...string) *GroupUpdateOne { _u.mutation.AddProcedureEditorIDs(ids...) @@ -6125,6 +6496,21 @@ func (_u *GroupUpdateOne) AddCampaignTargets(v ...*CampaignTarget) *GroupUpdateO return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *GroupUpdateOne) AddAudienceMemberIDs(ids ...string) *GroupUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *GroupUpdateOne) AddAudienceMembers(v ...*AudienceMember) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddInviteIDs adds the "invites" edge to the Invite entity by IDs. func (_u *GroupUpdateOne) AddInviteIDs(ids ...string) *GroupUpdateOne { _u.mutation.AddInviteIDs(ids...) @@ -6670,6 +7056,69 @@ func (_u *GroupUpdateOne) RemoveCampaignViewers(v ...*Campaign) *GroupUpdateOne return _u.RemoveCampaignViewerIDs(ids...) } +// ClearAudienceEditors clears all "audience_editors" edges to the Audience entity. +func (_u *GroupUpdateOne) ClearAudienceEditors() *GroupUpdateOne { + _u.mutation.ClearAudienceEditors() + return _u +} + +// RemoveAudienceEditorIDs removes the "audience_editors" edge to Audience entities by IDs. +func (_u *GroupUpdateOne) RemoveAudienceEditorIDs(ids ...string) *GroupUpdateOne { + _u.mutation.RemoveAudienceEditorIDs(ids...) + return _u +} + +// RemoveAudienceEditors removes "audience_editors" edges to Audience entities. +func (_u *GroupUpdateOne) RemoveAudienceEditors(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceEditorIDs(ids...) +} + +// ClearAudienceBlockedGroups clears all "audience_blocked_groups" edges to the Audience entity. +func (_u *GroupUpdateOne) ClearAudienceBlockedGroups() *GroupUpdateOne { + _u.mutation.ClearAudienceBlockedGroups() + return _u +} + +// RemoveAudienceBlockedGroupIDs removes the "audience_blocked_groups" edge to Audience entities by IDs. +func (_u *GroupUpdateOne) RemoveAudienceBlockedGroupIDs(ids ...string) *GroupUpdateOne { + _u.mutation.RemoveAudienceBlockedGroupIDs(ids...) + return _u +} + +// RemoveAudienceBlockedGroups removes "audience_blocked_groups" edges to Audience entities. +func (_u *GroupUpdateOne) RemoveAudienceBlockedGroups(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceBlockedGroupIDs(ids...) +} + +// ClearAudienceViewers clears all "audience_viewers" edges to the Audience entity. +func (_u *GroupUpdateOne) ClearAudienceViewers() *GroupUpdateOne { + _u.mutation.ClearAudienceViewers() + return _u +} + +// RemoveAudienceViewerIDs removes the "audience_viewers" edge to Audience entities by IDs. +func (_u *GroupUpdateOne) RemoveAudienceViewerIDs(ids ...string) *GroupUpdateOne { + _u.mutation.RemoveAudienceViewerIDs(ids...) + return _u +} + +// RemoveAudienceViewers removes "audience_viewers" edges to Audience entities. +func (_u *GroupUpdateOne) RemoveAudienceViewers(v ...*Audience) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceViewerIDs(ids...) +} + // ClearProcedureEditors clears all "procedure_editors" edges to the Procedure entity. func (_u *GroupUpdateOne) ClearProcedureEditors() *GroupUpdateOne { _u.mutation.ClearProcedureEditors() @@ -7207,6 +7656,27 @@ func (_u *GroupUpdateOne) RemoveCampaignTargets(v ...*CampaignTarget) *GroupUpda return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *GroupUpdateOne) ClearAudienceMembers() *GroupUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *GroupUpdateOne) RemoveAudienceMemberIDs(ids ...string) *GroupUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *GroupUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *GroupUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearInvites clears all "invites" edges to the Invite entity. func (_u *GroupUpdateOne) ClearInvites() *GroupUpdateOne { _u.mutation.ClearInvites() @@ -8599,6 +9069,141 @@ func (_u *GroupUpdateOne) sqlSave(ctx context.Context) (_node *Group, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceEditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceEditorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceEditorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceEditorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceEditorsTable, + Columns: group.AudienceEditorsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceBlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceBlockedGroupsIDs(); len(nodes) > 0 && !_u.mutation.AudienceBlockedGroupsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceBlockedGroupsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceBlockedGroupsTable, + Columns: group.AudienceBlockedGroupsPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceViewersIDs(); len(nodes) > 0 && !_u.mutation.AudienceViewersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceViewersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.M2M, + Inverse: true, + Table: group.AudienceViewersTable, + Columns: group.AudienceViewersPrimaryKey, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.ProcedureEditorsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, @@ -9803,6 +10408,51 @@ func (_u *GroupUpdateOne) sqlSave(ctx context.Context) (_node *Group, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: group.AudienceMembersTable, + Columns: []string{group.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, diff --git a/internal/ent/generated/history_cleanup.go b/internal/ent/generated/history_cleanup.go index de9dd0d27c..138f513097 100644 --- a/internal/ent/generated/history_cleanup.go +++ b/internal/ent/generated/history_cleanup.go @@ -12,6 +12,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -79,6 +81,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -277,6 +281,68 @@ func PurgeAssetHistory(ctx context.Context, ps ...predicate.Asset) error { return nil } +// PurgeAudienceHistory removes the history rows belonging to every audience matching +// the given predicates. It is a no-op unless the context opts in via contextx.WithPurgeHistory, so +// deletes that should keep their audit trail are unaffected. +// This has to run before the audience records themselves are deleted, the rows are matched +// with a sub-select against the audience table +func PurgeAudienceHistory(ctx context.Context, ps ...predicate.Audience) error { + if !contextx.PurgeHistoryEnabled(ctx) { + return nil + } + + client := FromContext(ctx) + if client == nil || client.HistoryClient == nil { + return nil + } + + refs := sql.Select(audience.FieldID).From(sql.Table(audience.Table)) + for _, p := range ps { + p(refs) + } + + if _, err := client.HistoryClient.AudienceHistory.Delete().Where(func(s *sql.Selector) { + s.Where(sql.In(audiencehistory.FieldRef, refs)) + }).Exec(history.WithContext(ctx)); err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("error purging audience history") + + return err + } + + return nil +} + +// PurgeAudienceMemberHistory removes the history rows belonging to every audiencemember matching +// the given predicates. It is a no-op unless the context opts in via contextx.WithPurgeHistory, so +// deletes that should keep their audit trail are unaffected. +// This has to run before the audiencemember records themselves are deleted, the rows are matched +// with a sub-select against the audiencemember table +func PurgeAudienceMemberHistory(ctx context.Context, ps ...predicate.AudienceMember) error { + if !contextx.PurgeHistoryEnabled(ctx) { + return nil + } + + client := FromContext(ctx) + if client == nil || client.HistoryClient == nil { + return nil + } + + refs := sql.Select(audiencemember.FieldID).From(sql.Table(audiencemember.Table)) + for _, p := range ps { + p(refs) + } + + if _, err := client.HistoryClient.AudienceMemberHistory.Delete().Where(func(s *sql.Selector) { + s.Where(sql.In(audiencememberhistory.FieldRef, refs)) + }).Exec(history.WithContext(ctx)); err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("error purging audiencemember history") + + return err + } + + return nil +} + // PurgeCampaignHistory removes the history rows belonging to every campaign matching // the given predicates. It is a no-op unless the context opts in via contextx.WithPurgeHistory, so // deletes that should keep their audit trail are unaffected. diff --git a/internal/ent/generated/history_client.go b/internal/ent/generated/history_client.go index 27d2e2ccb7..9e861dd539 100644 --- a/internal/ent/generated/history_client.go +++ b/internal/ent/generated/history_client.go @@ -22,6 +22,12 @@ func (c *Client) WithHistory() { for _, hook := range history.Hooks[*AssetMutation]() { c.Asset.Use(hook) } + for _, hook := range history.Hooks[*AudienceMutation]() { + c.Audience.Use(hook) + } + for _, hook := range history.Hooks[*AudienceMemberMutation]() { + c.AudienceMember.Use(hook) + } for _, hook := range history.Hooks[*CampaignMutation]() { c.Campaign.Use(hook) } diff --git a/internal/ent/generated/history_from_mutation.go b/internal/ent/generated/history_from_mutation.go index 8d4e61c884..a6a15a740e 100644 --- a/internal/ent/generated/history_from_mutation.go +++ b/internal/ent/generated/history_from_mutation.go @@ -2107,6 +2107,604 @@ func (m *AssetMutation) CreateHistoryFromDelete(ctx context.Context) error { return nil } +func (m *AudienceMutation) skipper(ctx context.Context) bool { + + if PurgeHistoryEnabled(ctx) { + return true + } + + caller, _ := auth.CallerFromContext(ctx) + + return caller.HasInLineage(auth.CapBypassAuditLog) + +} + +func (m *AudienceMutation) CreateHistoryFromCreate(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.HistoryClient.AudienceHistory.Create() + + create = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id) + + if createdAt, exists := m.CreatedAt(); exists { + create = create.SetCreatedAt(createdAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } + + if updatedByImpersonator, exists := m.UpdatedByImpersonator(); exists { + create = create.SetNillableUpdatedByImpersonator(&updatedByImpersonator) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if displayID, exists := m.DisplayID(); exists { + create = create.SetDisplayID(displayID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } + + if audienceType, exists := m.AudienceType(); exists { + create = create.SetAudienceType(audienceType) + } + + if filters, exists := m.Filters(); exists { + create = create.SetFilters(filters) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *AudienceMutation) CreateHistoryFromUpdate(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + // check for soft delete operation and delete instead + if entx.CheckIsSoftDeleteType(ctx, m.Type()) { + return m.CreateHistoryFromDelete(ctx) + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + audience, err := client.Audience.Get(ctx, id) + if err != nil { + return err + } + + create := client.HistoryClient.AudienceHistory.Create() + + create = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id) + + if createdAt, exists := m.CreatedAt(); exists { + create = create.SetCreatedAt(createdAt) + } else { + create = create.SetCreatedAt(audience.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(audience.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(audience.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(audience.UpdatedBy) + } + + if updatedByImpersonator, exists := m.UpdatedByImpersonator(); exists { + create = create.SetNillableUpdatedByImpersonator(&updatedByImpersonator) + } else { + create = create.SetNillableUpdatedByImpersonator(audience.UpdatedByImpersonator) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(audience.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(audience.DeletedBy) + } + + if displayID, exists := m.DisplayID(); exists { + create = create.SetDisplayID(displayID) + } else { + create = create.SetDisplayID(audience.DisplayID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(audience.Tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(audience.OwnerID) + } + + if name, exists := m.Name(); exists { + create = create.SetName(name) + } else { + create = create.SetName(audience.Name) + } + + if description, exists := m.Description(); exists { + create = create.SetDescription(description) + } else { + create = create.SetDescription(audience.Description) + } + + if audienceType, exists := m.AudienceType(); exists { + create = create.SetAudienceType(audienceType) + } else { + create = create.SetAudienceType(audience.AudienceType) + } + + if filters, exists := m.Filters(); exists { + create = create.SetFilters(filters) + } else { + create = create.SetFilters(audience.Filters) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } else { + create = create.SetMetadata(audience.Metadata) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *AudienceMutation) CreateHistoryFromDelete(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDeleteType(ctx, m.Type()) { + return nil + } + + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + audience, err := client.Audience.Get(ctx, id) + if err != nil { + return err + } + + create := client.HistoryClient.AudienceHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(audience.CreatedAt). + SetUpdatedAt(audience.UpdatedAt). + SetCreatedBy(audience.CreatedBy). + SetUpdatedBy(audience.UpdatedBy). + SetNillableUpdatedByImpersonator(audience.UpdatedByImpersonator). + SetDeletedAt(audience.DeletedAt). + SetDeletedBy(audience.DeletedBy). + SetDisplayID(audience.DisplayID). + SetTags(audience.Tags). + SetOwnerID(audience.OwnerID). + SetName(audience.Name). + SetDescription(audience.Description). + SetAudienceType(audience.AudienceType). + SetFilters(audience.Filters). + SetMetadata(audience.Metadata). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + +func (m *AudienceMemberMutation) skipper(ctx context.Context) bool { + + if PurgeHistoryEnabled(ctx) { + return true + } + + caller, _ := auth.CallerFromContext(ctx) + + return caller.HasInLineage(auth.CapBypassAuditLog) + +} + +func (m *AudienceMemberMutation) CreateHistoryFromCreate(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + client := m.Client() + + id, ok := m.ID() + if !ok { + return idNotFoundError + } + + create := client.HistoryClient.AudienceMemberHistory.Create() + + create = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id) + + if createdAt, exists := m.CreatedAt(); exists { + create = create.SetCreatedAt(createdAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } + + if updatedByImpersonator, exists := m.UpdatedByImpersonator(); exists { + create = create.SetNillableUpdatedByImpersonator(&updatedByImpersonator) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } + + if displayID, exists := m.DisplayID(); exists { + create = create.SetDisplayID(displayID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } + + if audienceID, exists := m.AudienceID(); exists { + create = create.SetAudienceID(audienceID) + } + + if contactID, exists := m.ContactID(); exists { + create = create.SetContactID(contactID) + } + + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } + + if identityHolderID, exists := m.IdentityHolderID(); exists { + create = create.SetIdentityHolderID(identityHolderID) + } + + if subscriberID, exists := m.SubscriberID(); exists { + create = create.SetSubscriberID(subscriberID) + } + + if email, exists := m.Email(); exists { + create = create.SetEmail(email) + } + + if fullName, exists := m.FullName(); exists { + create = create.SetFullName(fullName) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } + + _, err := create.Save(ctx) + + return err +} + +func (m *AudienceMemberMutation) CreateHistoryFromUpdate(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + // check for soft delete operation and delete instead + if entx.CheckIsSoftDeleteType(ctx, m.Type()) { + return m.CreateHistoryFromDelete(ctx) + } + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + audiencemember, err := client.AudienceMember.Get(ctx, id) + if err != nil { + return err + } + + create := client.HistoryClient.AudienceMemberHistory.Create() + + create = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id) + + if createdAt, exists := m.CreatedAt(); exists { + create = create.SetCreatedAt(createdAt) + } else { + create = create.SetCreatedAt(audiencemember.CreatedAt) + } + + if updatedAt, exists := m.UpdatedAt(); exists { + create = create.SetUpdatedAt(updatedAt) + } else { + create = create.SetUpdatedAt(audiencemember.UpdatedAt) + } + + if createdBy, exists := m.CreatedBy(); exists { + create = create.SetCreatedBy(createdBy) + } else { + create = create.SetCreatedBy(audiencemember.CreatedBy) + } + + if updatedBy, exists := m.UpdatedBy(); exists { + create = create.SetUpdatedBy(updatedBy) + } else { + create = create.SetUpdatedBy(audiencemember.UpdatedBy) + } + + if updatedByImpersonator, exists := m.UpdatedByImpersonator(); exists { + create = create.SetNillableUpdatedByImpersonator(&updatedByImpersonator) + } else { + create = create.SetNillableUpdatedByImpersonator(audiencemember.UpdatedByImpersonator) + } + + if deletedAt, exists := m.DeletedAt(); exists { + create = create.SetDeletedAt(deletedAt) + } else { + create = create.SetDeletedAt(audiencemember.DeletedAt) + } + + if deletedBy, exists := m.DeletedBy(); exists { + create = create.SetDeletedBy(deletedBy) + } else { + create = create.SetDeletedBy(audiencemember.DeletedBy) + } + + if displayID, exists := m.DisplayID(); exists { + create = create.SetDisplayID(displayID) + } else { + create = create.SetDisplayID(audiencemember.DisplayID) + } + + if tags, exists := m.Tags(); exists { + create = create.SetTags(tags) + } else { + create = create.SetTags(audiencemember.Tags) + } + + if ownerID, exists := m.OwnerID(); exists { + create = create.SetOwnerID(ownerID) + } else { + create = create.SetOwnerID(audiencemember.OwnerID) + } + + if audienceID, exists := m.AudienceID(); exists { + create = create.SetAudienceID(audienceID) + } else { + create = create.SetAudienceID(audiencemember.AudienceID) + } + + if contactID, exists := m.ContactID(); exists { + create = create.SetContactID(contactID) + } else { + create = create.SetContactID(audiencemember.ContactID) + } + + if userID, exists := m.UserID(); exists { + create = create.SetUserID(userID) + } else { + create = create.SetUserID(audiencemember.UserID) + } + + if groupID, exists := m.GroupID(); exists { + create = create.SetGroupID(groupID) + } else { + create = create.SetGroupID(audiencemember.GroupID) + } + + if identityHolderID, exists := m.IdentityHolderID(); exists { + create = create.SetIdentityHolderID(identityHolderID) + } else { + create = create.SetIdentityHolderID(audiencemember.IdentityHolderID) + } + + if subscriberID, exists := m.SubscriberID(); exists { + create = create.SetSubscriberID(subscriberID) + } else { + create = create.SetSubscriberID(audiencemember.SubscriberID) + } + + if email, exists := m.Email(); exists { + create = create.SetEmail(email) + } else { + create = create.SetEmail(audiencemember.Email) + } + + if fullName, exists := m.FullName(); exists { + create = create.SetFullName(fullName) + } else { + create = create.SetFullName(audiencemember.FullName) + } + + if metadata, exists := m.Metadata(); exists { + create = create.SetMetadata(metadata) + } else { + create = create.SetMetadata(audiencemember.Metadata) + } + + if _, err := create.Save(ctx); err != nil { + return err + } + } + + return nil +} + +func (m *AudienceMemberMutation) CreateHistoryFromDelete(ctx context.Context) error { + ctx = history.WithContext(ctx) + if m.skipper(ctx) { + return nil + } + + // check for soft delete operation and skip so it happens on update + if entx.CheckIsSoftDeleteType(ctx, m.Type()) { + return nil + } + + client := m.Client() + + ids, err := m.IDs(ctx) + if err != nil { + return fmt.Errorf("getting ids: %w", err) + } + + for _, id := range ids { + audiencemember, err := client.AudienceMember.Get(ctx, id) + if err != nil { + return err + } + + create := client.HistoryClient.AudienceMemberHistory.Create() + + _, err = create. + SetOperation(EntOpToHistoryOp(m.Op())). + SetHistoryTime(time.Now()). + SetRef(id). + SetCreatedAt(audiencemember.CreatedAt). + SetUpdatedAt(audiencemember.UpdatedAt). + SetCreatedBy(audiencemember.CreatedBy). + SetUpdatedBy(audiencemember.UpdatedBy). + SetNillableUpdatedByImpersonator(audiencemember.UpdatedByImpersonator). + SetDeletedAt(audiencemember.DeletedAt). + SetDeletedBy(audiencemember.DeletedBy). + SetDisplayID(audiencemember.DisplayID). + SetTags(audiencemember.Tags). + SetOwnerID(audiencemember.OwnerID). + SetAudienceID(audiencemember.AudienceID). + SetContactID(audiencemember.ContactID). + SetUserID(audiencemember.UserID). + SetGroupID(audiencemember.GroupID). + SetIdentityHolderID(audiencemember.IdentityHolderID). + SetSubscriberID(audiencemember.SubscriberID). + SetEmail(audiencemember.Email). + SetFullName(audiencemember.FullName). + SetMetadata(audiencemember.Metadata). + Save(ctx) + if err != nil { + return err + } + } + + return nil +} + func (m *CampaignMutation) skipper(ctx context.Context) bool { if PurgeHistoryEnabled(ctx) { diff --git a/internal/ent/generated/hook/hook.go b/internal/ent/generated/hook/hook.go index 783c4764e4..bf9df4ac0e 100644 --- a/internal/ent/generated/hook/hook.go +++ b/internal/ent/generated/hook/hook.go @@ -69,6 +69,30 @@ func (f AssetFunc) Mutate(ctx context.Context, m generated.Mutation) (generated. return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.AssetMutation", m) } +// The AudienceFunc type is an adapter to allow the use of ordinary +// function as Audience mutator. +type AudienceFunc func(context.Context, *generated.AudienceMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f AudienceFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.AudienceMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.AudienceMutation", m) +} + +// The AudienceMemberFunc type is an adapter to allow the use of ordinary +// function as AudienceMember mutator. +type AudienceMemberFunc func(context.Context, *generated.AudienceMemberMutation) (generated.Value, error) + +// Mutate calls f(ctx, m). +func (f AudienceMemberFunc) Mutate(ctx context.Context, m generated.Mutation) (generated.Value, error) { + if mv, ok := m.(*generated.AudienceMemberMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *generated.AudienceMemberMutation", m) +} + // The CampaignFunc type is an adapter to allow the use of ordinary // function as Campaign mutator. type CampaignFunc func(context.Context, *generated.CampaignMutation) (generated.Value, error) diff --git a/internal/ent/generated/identityholder.go b/internal/ent/generated/identityholder.go index 32fc369695..283ebf8746 100644 --- a/internal/ent/generated/identityholder.go +++ b/internal/ent/generated/identityholder.go @@ -149,6 +149,8 @@ type IdentityHolderEdges struct { Platforms []*Platform `json:"platforms,omitempty"` // Campaigns holds the value of the campaigns edge. Campaigns []*Campaign `json:"campaigns,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // Tasks holds the value of the tasks edge. Tasks []*Task `json:"tasks,omitempty"` // Files holds the value of the files edge. @@ -165,9 +167,9 @@ type IdentityHolderEdges struct { InternalPolicies []*InternalPolicy `json:"internal_policies,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [26]bool + loadedTypes [27]bool // totalCount holds the count of the edges above. - totalCount [26]map[string]int + totalCount [27]map[string]int namedBlockedGroups map[string][]*Group namedEditors map[string][]*Group @@ -182,6 +184,7 @@ type IdentityHolderEdges struct { namedSubcontrols map[string][]*Subcontrol namedPlatforms map[string][]*Platform namedCampaigns map[string][]*Campaign + namedAudienceMembers map[string][]*AudienceMember namedTasks map[string][]*Task namedFiles map[string][]*File namedFindings map[string][]*Finding @@ -373,10 +376,19 @@ func (e IdentityHolderEdges) CampaignsOrErr() ([]*Campaign, error) { return nil, &NotLoadedError{edge: "campaigns"} } +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e IdentityHolderEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[19] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // TasksOrErr returns the Tasks value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) TasksOrErr() ([]*Task, error) { - if e.loadedTypes[19] { + if e.loadedTypes[20] { return e.Tasks, nil } return nil, &NotLoadedError{edge: "tasks"} @@ -385,7 +397,7 @@ func (e IdentityHolderEdges) TasksOrErr() ([]*Task, error) { // FilesOrErr returns the Files value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) FilesOrErr() ([]*File, error) { - if e.loadedTypes[20] { + if e.loadedTypes[21] { return e.Files, nil } return nil, &NotLoadedError{edge: "files"} @@ -394,7 +406,7 @@ func (e IdentityHolderEdges) FilesOrErr() ([]*File, error) { // FindingsOrErr returns the Findings value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) FindingsOrErr() ([]*Finding, error) { - if e.loadedTypes[21] { + if e.loadedTypes[22] { return e.Findings, nil } return nil, &NotLoadedError{edge: "findings"} @@ -403,7 +415,7 @@ func (e IdentityHolderEdges) FindingsOrErr() ([]*Finding, error) { // WorkflowObjectRefsOrErr returns the WorkflowObjectRefs value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, error) { - if e.loadedTypes[22] { + if e.loadedTypes[23] { return e.WorkflowObjectRefs, nil } return nil, &NotLoadedError{edge: "workflow_object_refs"} @@ -412,7 +424,7 @@ func (e IdentityHolderEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, er // AccessPlatformsOrErr returns the AccessPlatforms value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) AccessPlatformsOrErr() ([]*Platform, error) { - if e.loadedTypes[23] { + if e.loadedTypes[24] { return e.AccessPlatforms, nil } return nil, &NotLoadedError{edge: "access_platforms"} @@ -423,7 +435,7 @@ func (e IdentityHolderEdges) AccessPlatformsOrErr() ([]*Platform, error) { func (e IdentityHolderEdges) UserOrErr() (*User, error) { if e.User != nil { return e.User, nil - } else if e.loadedTypes[24] { + } else if e.loadedTypes[25] { return nil, &NotFoundError{label: user.Label} } return nil, &NotLoadedError{edge: "user"} @@ -432,7 +444,7 @@ func (e IdentityHolderEdges) UserOrErr() (*User, error) { // InternalPoliciesOrErr returns the InternalPolicies value or an error if the edge // was not loaded in eager-loading. func (e IdentityHolderEdges) InternalPoliciesOrErr() ([]*InternalPolicy, error) { - if e.loadedTypes[25] { + if e.loadedTypes[26] { return e.InternalPolicies, nil } return nil, &NotLoadedError{edge: "internal_policies"} @@ -826,6 +838,11 @@ func (_m *IdentityHolder) QueryCampaigns() *CampaignQuery { return NewIdentityHolderClient(_m.config).QueryCampaigns(_m) } +// QueryAudienceMembers queries the "audience_members" edge of the IdentityHolder entity. +func (_m *IdentityHolder) QueryAudienceMembers() *AudienceMemberQuery { + return NewIdentityHolderClient(_m.config).QueryAudienceMembers(_m) +} + // QueryTasks queries the "tasks" edge of the IdentityHolder entity. func (_m *IdentityHolder) QueryTasks() *TaskQuery { return NewIdentityHolderClient(_m.config).QueryTasks(_m) @@ -1324,6 +1341,30 @@ func (_m *IdentityHolder) appendNamedCampaigns(name string, edges ...*Campaign) } } +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *IdentityHolder) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *IdentityHolder) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // NamedTasks returns the Tasks named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *IdentityHolder) NamedTasks(name string) ([]*Task, error) { diff --git a/internal/ent/generated/identityholder/identityholder.go b/internal/ent/generated/identityholder/identityholder.go index 893425cb5d..5b454b20bc 100644 --- a/internal/ent/generated/identityholder/identityholder.go +++ b/internal/ent/generated/identityholder/identityholder.go @@ -134,6 +134,8 @@ const ( EdgePlatforms = "platforms" // EdgeCampaigns holds the string denoting the campaigns edge name in mutations. EdgeCampaigns = "campaigns" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeFiles holds the string denoting the files edge name in mutations. @@ -267,6 +269,13 @@ const ( // CampaignsInverseTable is the table name for the Campaign entity. // It exists in this package in order to avoid circular dependency with the "campaign" package. CampaignsInverseTable = "campaigns" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "identity_holder_id" // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "identity_holder_tasks" // TasksInverseTable is the table name for the Task entity. @@ -884,6 +893,20 @@ func ByCampaigns(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByTasksCount orders the results by tasks count. func ByTasksCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -1107,6 +1130,13 @@ func newCampaignsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2M, true, CampaignsTable, CampaignsPrimaryKey...), ) } +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} func newTasksStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/identityholder/where.go b/internal/ent/generated/identityholder/where.go index 7367c66e21..d19518029b 100644 --- a/internal/ent/generated/identityholder/where.go +++ b/internal/ent/generated/identityholder/where.go @@ -2984,6 +2984,29 @@ func HasCampaignsWith(preds ...predicate.Campaign) predicate.IdentityHolder { }) } +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.IdentityHolder { + return predicate.IdentityHolder(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.IdentityHolder { + return predicate.IdentityHolder(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasTasks applies the HasEdge predicate on the "tasks" edge. func HasTasks() predicate.IdentityHolder { return predicate.IdentityHolder(func(s *sql.Selector) { diff --git a/internal/ent/generated/identityholder_create.go b/internal/ent/generated/identityholder_create.go index 0e84ed2be9..9072bc39a5 100644 --- a/internal/ent/generated/identityholder_create.go +++ b/internal/ent/generated/identityholder_create.go @@ -15,6 +15,7 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/control" "github.com/theopenlane/core/v2/internal/ent/generated/customtypeenum" @@ -792,6 +793,21 @@ func (_c *IdentityHolderCreate) AddCampaigns(v ...*Campaign) *IdentityHolderCrea return _c.AddCampaignIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *IdentityHolderCreate) AddAudienceMemberIDs(ids ...string) *IdentityHolderCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *IdentityHolderCreate) AddAudienceMembers(v ...*AudienceMember) *IdentityHolderCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + // AddTaskIDs adds the "tasks" edge to the Task entity by IDs. func (_c *IdentityHolderCreate) AddTaskIDs(ids ...string) *IdentityHolderCreate { _c.mutation.AddTaskIDs(ids...) @@ -1519,6 +1535,22 @@ func (_c *IdentityHolderCreate) createSpec() (*IdentityHolder, *sqlgraph.CreateS } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.TasksIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.M2M, diff --git a/internal/ent/generated/identityholder_query.go b/internal/ent/generated/identityholder_query.go index c823be0d76..7e16d30560 100644 --- a/internal/ent/generated/identityholder_query.go +++ b/internal/ent/generated/identityholder_query.go @@ -16,6 +16,7 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/control" "github.com/theopenlane/core/v2/internal/ent/generated/customtypeenum" @@ -64,6 +65,7 @@ type IdentityHolderQuery struct { withSubcontrols *SubcontrolQuery withPlatforms *PlatformQuery withCampaigns *CampaignQuery + withAudienceMembers *AudienceMemberQuery withTasks *TaskQuery withFiles *FileQuery withFindings *FindingQuery @@ -86,6 +88,7 @@ type IdentityHolderQuery struct { withNamedSubcontrols map[string]*SubcontrolQuery withNamedPlatforms map[string]*PlatformQuery withNamedCampaigns map[string]*CampaignQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery withNamedTasks map[string]*TaskQuery withNamedFiles map[string]*FileQuery withNamedFindings map[string]*FindingQuery @@ -546,6 +549,28 @@ func (_q *IdentityHolderQuery) QueryCampaigns() *CampaignQuery { return query } +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *IdentityHolderQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(identityholder.Table, identityholder.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, identityholder.AudienceMembersTable, identityholder.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryTasks chains the current query on the "tasks" edge. func (_q *IdentityHolderQuery) QueryTasks() *TaskQuery { query := (&TaskClient{config: _q.config}).Query() @@ -911,6 +936,7 @@ func (_q *IdentityHolderQuery) Clone() *IdentityHolderQuery { withSubcontrols: _q.withSubcontrols.Clone(), withPlatforms: _q.withPlatforms.Clone(), withCampaigns: _q.withCampaigns.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), withTasks: _q.withTasks.Clone(), withFiles: _q.withFiles.Clone(), withFindings: _q.withFindings.Clone(), @@ -1134,6 +1160,17 @@ func (_q *IdentityHolderQuery) WithCampaigns(opts ...func(*CampaignQuery)) *Iden return _q } +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *IdentityHolderQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *IdentityHolderQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 *IdentityHolderQuery) WithTasks(opts ...func(*TaskQuery)) *IdentityHolderQuery { @@ -1295,7 +1332,7 @@ func (_q *IdentityHolderQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( var ( nodes = []*IdentityHolder{} _spec = _q.querySpec() - loadedTypes = [26]bool{ + loadedTypes = [27]bool{ _q.withOwner != nil, _q.withBlockedGroups != nil, _q.withEditors != nil, @@ -1315,6 +1352,7 @@ func (_q *IdentityHolderQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( _q.withSubcontrols != nil, _q.withPlatforms != nil, _q.withCampaigns != nil, + _q.withAudienceMembers != nil, _q.withTasks != nil, _q.withFiles != nil, _q.withFindings != nil, @@ -1476,6 +1514,15 @@ func (_q *IdentityHolderQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return nil, err } } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *IdentityHolder) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *IdentityHolder, e *AudienceMember) { + n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) + }); err != nil { + return nil, err + } + } if query := _q.withTasks; query != nil { if err := _q.loadTasks(ctx, query, nodes, func(n *IdentityHolder) { n.Edges.Tasks = []*Task{} }, @@ -1619,6 +1666,13 @@ func (_q *IdentityHolderQuery) sqlAll(ctx context.Context, hooks ...queryHook) ( return nil, err } } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *IdentityHolder) { n.appendNamedAudienceMembers(name) }, + func(n *IdentityHolder, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedTasks { if err := _q.loadTasks(ctx, query, nodes, func(n *IdentityHolder) { n.appendNamedTasks(name) }, @@ -2487,6 +2541,36 @@ func (_q *IdentityHolderQuery) loadCampaigns(ctx context.Context, query *Campaig } return nil } +func (_q *IdentityHolderQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*IdentityHolder, init func(*IdentityHolder), assign func(*IdentityHolder, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*IdentityHolder) + 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(audiencemember.FieldIdentityHolderID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(identityholder.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.IdentityHolderID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "identity_holder_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} func (_q *IdentityHolderQuery) loadTasks(ctx context.Context, query *TaskQuery, nodes []*IdentityHolder, init func(*IdentityHolder), assign func(*IdentityHolder, *Task)) error { edgeIDs := make([]driver.Value, len(nodes)) byID := make(map[string]*IdentityHolder) @@ -3119,6 +3203,20 @@ func (_q *IdentityHolderQuery) WithNamedCampaigns(name string, opts ...func(*Cam return _q } +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *IdentityHolderQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *IdentityHolderQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // WithNamedTasks tells the query-builder to eager-load the nodes that are connected to the "tasks" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *IdentityHolderQuery) WithNamedTasks(name string, opts ...func(*TaskQuery)) *IdentityHolderQuery { diff --git a/internal/ent/generated/identityholder_update.go b/internal/ent/generated/identityholder_update.go index 06bf76c97b..8b95cf673b 100644 --- a/internal/ent/generated/identityholder_update.go +++ b/internal/ent/generated/identityholder_update.go @@ -17,6 +17,7 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/control" "github.com/theopenlane/core/v2/internal/ent/generated/customtypeenum" @@ -934,6 +935,21 @@ func (_u *IdentityHolderUpdate) AddCampaigns(v ...*Campaign) *IdentityHolderUpda return _u.AddCampaignIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *IdentityHolderUpdate) AddAudienceMemberIDs(ids ...string) *IdentityHolderUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *IdentityHolderUpdate) AddAudienceMembers(v ...*AudienceMember) *IdentityHolderUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddTaskIDs adds the "tasks" edge to the Task entity by IDs. func (_u *IdentityHolderUpdate) AddTaskIDs(ids ...string) *IdentityHolderUpdate { _u.mutation.AddTaskIDs(ids...) @@ -1337,6 +1353,27 @@ func (_u *IdentityHolderUpdate) RemoveCampaigns(v ...*Campaign) *IdentityHolderU return _u.RemoveCampaignIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *IdentityHolderUpdate) ClearAudienceMembers() *IdentityHolderUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *IdentityHolderUpdate) RemoveAudienceMemberIDs(ids ...string) *IdentityHolderUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *IdentityHolderUpdate) RemoveAudienceMembers(v ...*AudienceMember) *IdentityHolderUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearTasks clears all "tasks" edges to the Task entity. func (_u *IdentityHolderUpdate) ClearTasks() *IdentityHolderUpdate { _u.mutation.ClearTasks() @@ -2479,6 +2516,51 @@ func (_u *IdentityHolderUpdate) sqlSave(ctx context.Context) (_node int, err err } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, @@ -3684,6 +3766,21 @@ func (_u *IdentityHolderUpdateOne) AddCampaigns(v ...*Campaign) *IdentityHolderU return _u.AddCampaignIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *IdentityHolderUpdateOne) AddAudienceMemberIDs(ids ...string) *IdentityHolderUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *IdentityHolderUpdateOne) AddAudienceMembers(v ...*AudienceMember) *IdentityHolderUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddTaskIDs adds the "tasks" edge to the Task entity by IDs. func (_u *IdentityHolderUpdateOne) AddTaskIDs(ids ...string) *IdentityHolderUpdateOne { _u.mutation.AddTaskIDs(ids...) @@ -4087,6 +4184,27 @@ func (_u *IdentityHolderUpdateOne) RemoveCampaigns(v ...*Campaign) *IdentityHold return _u.RemoveCampaignIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *IdentityHolderUpdateOne) ClearAudienceMembers() *IdentityHolderUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *IdentityHolderUpdateOne) RemoveAudienceMemberIDs(ids ...string) *IdentityHolderUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *IdentityHolderUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *IdentityHolderUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearTasks clears all "tasks" edges to the Task entity. func (_u *IdentityHolderUpdateOne) ClearTasks() *IdentityHolderUpdateOne { _u.mutation.ClearTasks() @@ -5259,6 +5377,51 @@ func (_u *IdentityHolderUpdateOne) sqlSave(ctx context.Context) (_node *Identity } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: identityholder.AudienceMembersTable, + Columns: []string{identityholder.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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.M2M, diff --git a/internal/ent/generated/intercept/intercept.go b/internal/ent/generated/intercept/intercept.go index a05aa88103..7a53125cfd 100644 --- a/internal/ent/generated/intercept/intercept.go +++ b/internal/ent/generated/intercept/intercept.go @@ -13,6 +13,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -302,6 +304,60 @@ func (f TraverseAsset) Traverse(ctx context.Context, q generated.Query) error { return fmt.Errorf("unexpected query type %T. expect *generated.AssetQuery", q) } +// The AudienceFunc type is an adapter to allow the use of ordinary function as a Querier. +type AudienceFunc func(context.Context, *generated.AudienceQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f AudienceFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.AudienceQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.AudienceQuery", q) +} + +// The TraverseAudience type is an adapter to allow the use of ordinary function as Traverser. +type TraverseAudience func(context.Context, *generated.AudienceQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseAudience) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseAudience) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.AudienceQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.AudienceQuery", q) +} + +// The AudienceMemberFunc type is an adapter to allow the use of ordinary function as a Querier. +type AudienceMemberFunc func(context.Context, *generated.AudienceMemberQuery) (generated.Value, error) + +// Query calls f(ctx, q). +func (f AudienceMemberFunc) Query(ctx context.Context, q generated.Query) (generated.Value, error) { + if q, ok := q.(*generated.AudienceMemberQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *generated.AudienceMemberQuery", q) +} + +// The TraverseAudienceMember type is an adapter to allow the use of ordinary function as Traverser. +type TraverseAudienceMember func(context.Context, *generated.AudienceMemberQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseAudienceMember) Intercept(next generated.Querier) generated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseAudienceMember) Traverse(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.AudienceMemberQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *generated.AudienceMemberQuery", q) +} + // The CampaignFunc type is an adapter to allow the use of ordinary function as a Querier. type CampaignFunc func(context.Context, *generated.CampaignQuery) (generated.Value, error) @@ -2880,6 +2936,10 @@ func NewQuery(q generated.Query) (Query, error) { return &query[*generated.AssessmentResponseQuery, predicate.AssessmentResponse, assessmentresponse.OrderOption]{typ: generated.TypeAssessmentResponse, tq: q}, nil case *generated.AssetQuery: return &query[*generated.AssetQuery, predicate.Asset, asset.OrderOption]{typ: generated.TypeAsset, tq: q}, nil + case *generated.AudienceQuery: + return &query[*generated.AudienceQuery, predicate.Audience, audience.OrderOption]{typ: generated.TypeAudience, tq: q}, nil + case *generated.AudienceMemberQuery: + return &query[*generated.AudienceMemberQuery, predicate.AudienceMember, audiencemember.OrderOption]{typ: generated.TypeAudienceMember, tq: q}, nil case *generated.CampaignQuery: return &query[*generated.CampaignQuery, predicate.Campaign, campaign.OrderOption]{typ: generated.TypeCampaign, tq: q}, nil case *generated.CampaignTargetQuery: diff --git a/internal/ent/generated/join_table_indexes.go b/internal/ent/generated/join_table_indexes.go index dbc835efdf..d566c86d3b 100644 --- a/internal/ent/generated/join_table_indexes.go +++ b/internal/ent/generated/join_table_indexes.go @@ -20,6 +20,9 @@ var joinTables = map[string]bool{ "action_plan_viewers": true, "action_plan_tasks": true, "asset_connected_assets": true, + "audience_blocked_groups": true, + "audience_editors": true, + "audience_viewers": true, "campaign_blocked_groups": true, "campaign_editors": true, "campaign_viewers": true, @@ -27,6 +30,7 @@ var joinTables = map[string]bool{ "campaign_users": true, "campaign_groups": true, "campaign_identity_holders": true, + "campaign_audiences": true, "check_result_controls": true, "contact_files": true, "control_control_objectives": true, diff --git a/internal/ent/generated/migrate/schema.go b/internal/ent/generated/migrate/schema.go index 047db39f0c..a7569eb5d7 100644 --- a/internal/ent/generated/migrate/schema.go +++ b/internal/ent/generated/migrate/schema.go @@ -551,6 +551,177 @@ var ( }, }, } + // AudiencesColumns holds the columns for the "audiences" table. + AudiencesColumns = []*schema.Column{ + {Name: "id", Type: field.TypeString}, + {Name: "created_at", Type: field.TypeTime, Nullable: true}, + {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: "updated_by_impersonator", Type: field.TypeString, Nullable: true}, + {Name: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "display_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true}, + {Name: "audience_type", Type: field.TypeEnum, Enums: []string{"MANUAL", "DYNAMIC"}, Default: "MANUAL"}, + {Name: "filters", Type: field.TypeJSON, Nullable: true}, + {Name: "metadata", Type: field.TypeJSON, Nullable: true}, + {Name: "owner_id", Type: field.TypeString, Nullable: true}, + } + // AudiencesTable holds the schema information for the "audiences" table. + AudiencesTable = &schema.Table{ + Name: "audiences", + Columns: AudiencesColumns, + PrimaryKey: []*schema.Column{AudiencesColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "audiences_organizations_audiences", + Columns: []*schema.Column{AudiencesColumns[15]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + Indexes: []*schema.Index{ + { + Name: "audience_display_id_owner_id", + Unique: true, + Columns: []*schema.Column{AudiencesColumns[8], AudiencesColumns[15]}, + }, + { + Name: "audience_owner_id_idx", + Unique: false, + Columns: []*schema.Column{AudiencesColumns[15]}, + }, + { + Name: "audience_name_owner_id", + Unique: false, + Columns: []*schema.Column{AudiencesColumns[10], AudiencesColumns[15]}, + Annotation: &entsql.IndexAnnotation{ + Where: "deleted_at is NULL", + }, + }, + }, + } + // AudienceMembersColumns holds the columns for the "audience_members" table. + AudienceMembersColumns = []*schema.Column{ + {Name: "id", Type: field.TypeString}, + {Name: "created_at", Type: field.TypeTime, Nullable: true}, + {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: "updated_by_impersonator", Type: field.TypeString, Nullable: true}, + {Name: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "display_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "email", Type: field.TypeString}, + {Name: "full_name", Type: field.TypeString, Nullable: true}, + {Name: "metadata", Type: field.TypeJSON, Nullable: true}, + {Name: "audience_id", Type: field.TypeString}, + {Name: "contact_id", Type: field.TypeString, Nullable: true}, + {Name: "group_id", Type: field.TypeString, Nullable: true}, + {Name: "identity_holder_id", Type: field.TypeString, Nullable: true}, + {Name: "owner_id", Type: field.TypeString, Nullable: true}, + {Name: "subscriber_id", Type: field.TypeString, Nullable: true}, + {Name: "user_id", Type: field.TypeString, Nullable: true}, + } + // AudienceMembersTable holds the schema information for the "audience_members" table. + AudienceMembersTable = &schema.Table{ + Name: "audience_members", + Columns: AudienceMembersColumns, + PrimaryKey: []*schema.Column{AudienceMembersColumns[0]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "audience_members_audiences_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[13]}, + RefColumns: []*schema.Column{AudiencesColumns[0]}, + OnDelete: schema.NoAction, + }, + { + Symbol: "audience_members_contacts_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[14]}, + RefColumns: []*schema.Column{ContactsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "audience_members_groups_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[15]}, + RefColumns: []*schema.Column{GroupsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "audience_members_identity_holders_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[16]}, + RefColumns: []*schema.Column{IdentityHoldersColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "audience_members_organizations_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[17]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "audience_members_subscribers_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[18]}, + RefColumns: []*schema.Column{SubscribersColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "audience_members_users_audience_members", + Columns: []*schema.Column{AudienceMembersColumns[19]}, + RefColumns: []*schema.Column{UsersColumns[0]}, + OnDelete: schema.SetNull, + }, + }, + Indexes: []*schema.Index{ + { + Name: "audience_member_contact_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[14]}, + }, + { + Name: "audience_member_user_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[19]}, + }, + { + Name: "audience_member_group_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[15]}, + }, + { + Name: "audience_member_identity_holder_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[16]}, + }, + { + Name: "audience_member_subscriber_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[18]}, + }, + { + Name: "audiencemember_display_id_owner_id", + Unique: true, + Columns: []*schema.Column{AudienceMembersColumns[8], AudienceMembersColumns[17]}, + }, + { + Name: "audience_member_owner_id_idx", + Unique: false, + Columns: []*schema.Column{AudienceMembersColumns[17]}, + }, + { + Name: "audiencemember_audience_id_email", + Unique: true, + Columns: []*schema.Column{AudienceMembersColumns[13], AudienceMembersColumns[10]}, + Annotation: &entsql.IndexAnnotation{ + Where: "deleted_at is NULL", + }, + }, + }, + } // CampaignsColumns holds the columns for the "campaigns" table. CampaignsColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -2597,7 +2768,7 @@ var ( {Name: "deleted_at", Type: field.TypeTime, Nullable: true}, {Name: "deleted_by", Type: field.TypeString, Nullable: true}, {Name: "requestor_id", Type: field.TypeString, Nullable: true}, - {Name: "export_type", Type: field.TypeEnum, Enums: []string{"ASSESSMENT", "ASSET", "CAMPAIGN", "CHECK_RESULT", "CONTACT", "CONTROL", "DIRECTORY_MEMBERSHIP", "ENTITY", "EVIDENCE", "FINDING", "IDENTITY_HOLDER", "INTERNAL_POLICY", "PROCEDURE", "REMEDIATION", "REVIEW", "RISK", "SUBPROCESSOR", "SUBSCRIBER", "SYSTEM_DETAIL", "TASK", "TRUST_CENTER_FAQ", "TRUST_CENTER_SUBPROCESSOR", "VENDOR_RISK_SCORE", "VENDOR_SCORING_CONFIG", "VULNERABILITY"}}, + {Name: "export_type", Type: field.TypeEnum, Enums: []string{"ASSESSMENT", "ASSET", "AUDIENCE", "AUDIENCE_MEMBER", "CAMPAIGN", "CHECK_RESULT", "CONTACT", "CONTROL", "DIRECTORY_MEMBERSHIP", "ENTITY", "EVIDENCE", "FINDING", "IDENTITY_HOLDER", "INTERNAL_POLICY", "PROCEDURE", "REMEDIATION", "REVIEW", "RISK", "SUBPROCESSOR", "SUBSCRIBER", "SYSTEM_DETAIL", "TASK", "TRUST_CENTER_FAQ", "TRUST_CENTER_SUBPROCESSOR", "VENDOR_RISK_SCORE", "VENDOR_SCORING_CONFIG", "VULNERABILITY"}}, {Name: "format", Type: field.TypeEnum, Enums: []string{"CSV", "MARKDOWN", "DOCX", "PDF"}, Default: "CSV"}, {Name: "status", Type: field.TypeEnum, Enums: []string{"PENDING", "FAILED", "READY", "NODATA"}, Default: "PENDING"}, {Name: "fields", Type: field.TypeJSON, Nullable: true}, @@ -3078,6 +3249,8 @@ var ( {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_audience_creators", Type: field.TypeString, Nullable: true}, + {Name: "organization_audience_member_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}, @@ -3305,596 +3478,608 @@ var ( OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_campaign_creators", + Symbol: "groups_organizations_audience_creators", Columns: []*schema.Column{GroupsColumns[43]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_campaign_target_creators", + Symbol: "groups_organizations_audience_member_creators", Columns: []*schema.Column{GroupsColumns[44]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_check_result_creators", + Symbol: "groups_organizations_campaign_creators", Columns: []*schema.Column{GroupsColumns[45]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_contact_creators", + Symbol: "groups_organizations_campaign_target_creators", Columns: []*schema.Column{GroupsColumns[46]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_creators", + Symbol: "groups_organizations_check_result_creators", Columns: []*schema.Column{GroupsColumns[47]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_implementation_creators", + Symbol: "groups_organizations_contact_creators", Columns: []*schema.Column{GroupsColumns[48]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_control_objective_creators", + Symbol: "groups_organizations_control_creators", Columns: []*schema.Column{GroupsColumns[49]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_custom_domain_creators", + Symbol: "groups_organizations_control_implementation_creators", Columns: []*schema.Column{GroupsColumns[50]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_custom_type_enum_creators", + Symbol: "groups_organizations_control_objective_creators", Columns: []*schema.Column{GroupsColumns[51]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_directory_account_creators", + Symbol: "groups_organizations_custom_domain_creators", Columns: []*schema.Column{GroupsColumns[52]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_directory_group_creators", + Symbol: "groups_organizations_custom_type_enum_creators", Columns: []*schema.Column{GroupsColumns[53]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_directory_membership_creators", + Symbol: "groups_organizations_directory_account_creators", Columns: []*schema.Column{GroupsColumns[54]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_directory_sync_run_creators", + Symbol: "groups_organizations_directory_group_creators", Columns: []*schema.Column{GroupsColumns[55]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_discussion_creators", + Symbol: "groups_organizations_directory_membership_creators", Columns: []*schema.Column{GroupsColumns[56]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_document_data_creators", + Symbol: "groups_organizations_directory_sync_run_creators", Columns: []*schema.Column{GroupsColumns[57]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_email_template_creators", + Symbol: "groups_organizations_discussion_creators", Columns: []*schema.Column{GroupsColumns[58]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_entity_creators", + Symbol: "groups_organizations_document_data_creators", Columns: []*schema.Column{GroupsColumns[59]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_entity_type_creators", + Symbol: "groups_organizations_email_template_creators", Columns: []*schema.Column{GroupsColumns[60]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_evidence_creators", + Symbol: "groups_organizations_entity_creators", Columns: []*schema.Column{GroupsColumns[61]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_file_creators", + Symbol: "groups_organizations_entity_type_creators", Columns: []*schema.Column{GroupsColumns[62]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_finding_creators", + Symbol: "groups_organizations_evidence_creators", Columns: []*schema.Column{GroupsColumns[63]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_finding_control_creators", + Symbol: "groups_organizations_file_creators", Columns: []*schema.Column{GroupsColumns[64]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_group_creators", + Symbol: "groups_organizations_finding_creators", Columns: []*schema.Column{GroupsColumns[65]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_group_membership_creators", + Symbol: "groups_organizations_finding_control_creators", Columns: []*schema.Column{GroupsColumns[66]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_group_setting_creators", + Symbol: "groups_organizations_group_creators", Columns: []*schema.Column{GroupsColumns[67]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_hush_creators", + Symbol: "groups_organizations_group_membership_creators", Columns: []*schema.Column{GroupsColumns[68]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_identity_holder_creators", + Symbol: "groups_organizations_group_setting_creators", Columns: []*schema.Column{GroupsColumns[69]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_internal_policy_creators", + Symbol: "groups_organizations_hush_creators", Columns: []*schema.Column{GroupsColumns[70]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_invite_creators", + Symbol: "groups_organizations_identity_holder_creators", Columns: []*schema.Column{GroupsColumns[71]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_mapped_control_creators", + Symbol: "groups_organizations_internal_policy_creators", Columns: []*schema.Column{GroupsColumns[72]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_narrative_creators", + Symbol: "groups_organizations_invite_creators", Columns: []*schema.Column{GroupsColumns[73]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_note_creators", + Symbol: "groups_organizations_mapped_control_creators", Columns: []*schema.Column{GroupsColumns[74]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_notification_template_creators", + Symbol: "groups_organizations_narrative_creators", Columns: []*schema.Column{GroupsColumns[75]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_org_membership_creators", + Symbol: "groups_organizations_note_creators", Columns: []*schema.Column{GroupsColumns[76]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_platform_creators", + Symbol: "groups_organizations_notification_template_creators", Columns: []*schema.Column{GroupsColumns[77]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_procedure_creators", + Symbol: "groups_organizations_org_membership_creators", Columns: []*schema.Column{GroupsColumns[78]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_program_creators", + Symbol: "groups_organizations_platform_creators", Columns: []*schema.Column{GroupsColumns[79]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_program_membership_creators", + Symbol: "groups_organizations_procedure_creators", Columns: []*schema.Column{GroupsColumns[80]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_remediation_creators", + Symbol: "groups_organizations_program_creators", Columns: []*schema.Column{GroupsColumns[81]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_review_creators", + Symbol: "groups_organizations_program_membership_creators", Columns: []*schema.Column{GroupsColumns[82]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_risk_creators", + Symbol: "groups_organizations_remediation_creators", Columns: []*schema.Column{GroupsColumns[83]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_scan_creators", + Symbol: "groups_organizations_review_creators", Columns: []*schema.Column{GroupsColumns[84]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_sla_definition_creators", + Symbol: "groups_organizations_risk_creators", Columns: []*schema.Column{GroupsColumns[85]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_standard_creators", + Symbol: "groups_organizations_scan_creators", Columns: []*schema.Column{GroupsColumns[86]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_subcontrol_creators", + Symbol: "groups_organizations_sla_definition_creators", Columns: []*schema.Column{GroupsColumns[87]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_subprocessor_creators", + Symbol: "groups_organizations_standard_creators", Columns: []*schema.Column{GroupsColumns[88]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_subscriber_creators", + Symbol: "groups_organizations_subcontrol_creators", Columns: []*schema.Column{GroupsColumns[89]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_system_detail_creators", + Symbol: "groups_organizations_subprocessor_creators", Columns: []*schema.Column{GroupsColumns[90]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_tag_definition_creators", + Symbol: "groups_organizations_subscriber_creators", Columns: []*schema.Column{GroupsColumns[91]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_task_creators", + Symbol: "groups_organizations_system_detail_creators", Columns: []*schema.Column{GroupsColumns[92]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_template_creators", + Symbol: "groups_organizations_tag_definition_creators", Columns: []*schema.Column{GroupsColumns[93]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_creators", + Symbol: "groups_organizations_task_creators", Columns: []*schema.Column{GroupsColumns[94]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_compliance_creators", + Symbol: "groups_organizations_template_creators", Columns: []*schema.Column{GroupsColumns[95]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_doc_creators", + Symbol: "groups_organizations_trust_center_creators", Columns: []*schema.Column{GroupsColumns[96]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_entity_creators", + Symbol: "groups_organizations_trust_center_compliance_creators", Columns: []*schema.Column{GroupsColumns[97]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_faq_creators", + Symbol: "groups_organizations_trust_center_doc_creators", Columns: []*schema.Column{GroupsColumns[98]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_nda_request_creators", + Symbol: "groups_organizations_trust_center_entity_creators", Columns: []*schema.Column{GroupsColumns[99]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_subprocessor_creators", + Symbol: "groups_organizations_trust_center_faq_creators", Columns: []*schema.Column{GroupsColumns[100]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_watermark_config_creators", + Symbol: "groups_organizations_trust_center_nda_request_creators", Columns: []*schema.Column{GroupsColumns[101]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_vendor_risk_score_creators", + Symbol: "groups_organizations_trust_center_subprocessor_creators", Columns: []*schema.Column{GroupsColumns[102]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_vendor_scoring_config_creators", + Symbol: "groups_organizations_trust_center_watermark_config_creators", Columns: []*schema.Column{GroupsColumns[103]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_vulnerability_creators", + Symbol: "groups_organizations_vendor_risk_score_creators", Columns: []*schema.Column{GroupsColumns[104]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_workflow_definition_creators", + Symbol: "groups_organizations_vendor_scoring_config_creators", Columns: []*schema.Column{GroupsColumns[105]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_campaigns_manager", + Symbol: "groups_organizations_vulnerability_creators", Columns: []*schema.Column{GroupsColumns[106]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_compliance_manager", + Symbol: "groups_organizations_workflow_definition_creators", Columns: []*schema.Column{GroupsColumns[107]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_group_manager", + Symbol: "groups_organizations_campaigns_manager", Columns: []*schema.Column{GroupsColumns[108]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_policies_manager", + Symbol: "groups_organizations_compliance_manager", Columns: []*schema.Column{GroupsColumns[109]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_registry_manager", + Symbol: "groups_organizations_group_manager", Columns: []*schema.Column{GroupsColumns[110]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_risk_manager", + Symbol: "groups_organizations_policies_manager", Columns: []*schema.Column{GroupsColumns[111]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_trust_center_manager", + Symbol: "groups_organizations_registry_manager", Columns: []*schema.Column{GroupsColumns[112]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_workflows_manager", + Symbol: "groups_organizations_risk_manager", Columns: []*schema.Column{GroupsColumns[113]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_organizations_groups", + Symbol: "groups_organizations_trust_center_manager", Columns: []*schema.Column{GroupsColumns[114]}, RefColumns: []*schema.Column{OrganizationsColumns[0]}, OnDelete: schema.SetNull, }, { - Symbol: "groups_sla_definitions_blocked_groups", + Symbol: "groups_organizations_workflows_manager", Columns: []*schema.Column{GroupsColumns[115]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_organizations_groups", + Columns: []*schema.Column{GroupsColumns[116]}, + RefColumns: []*schema.Column{OrganizationsColumns[0]}, + OnDelete: schema.SetNull, + }, + { + Symbol: "groups_sla_definitions_blocked_groups", + Columns: []*schema.Column{GroupsColumns[117]}, RefColumns: []*schema.Column{SLADefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_sla_definitions_editors", - Columns: []*schema.Column{GroupsColumns[116]}, + Columns: []*schema.Column{GroupsColumns[118]}, RefColumns: []*schema.Column{SLADefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_centers_blocked_groups", - Columns: []*schema.Column{GroupsColumns[117]}, + Columns: []*schema.Column{GroupsColumns[119]}, RefColumns: []*schema.Column{TrustCentersColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_centers_editors", - Columns: []*schema.Column{GroupsColumns[118]}, + Columns: []*schema.Column{GroupsColumns[120]}, RefColumns: []*schema.Column{TrustCentersColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_compliances_blocked_groups", - Columns: []*schema.Column{GroupsColumns[119]}, + Columns: []*schema.Column{GroupsColumns[121]}, RefColumns: []*schema.Column{TrustCenterCompliancesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_compliances_editors", - Columns: []*schema.Column{GroupsColumns[120]}, + Columns: []*schema.Column{GroupsColumns[122]}, RefColumns: []*schema.Column{TrustCenterCompliancesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_docs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[121]}, + Columns: []*schema.Column{GroupsColumns[123]}, RefColumns: []*schema.Column{TrustCenterDocsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_docs_editors", - Columns: []*schema.Column{GroupsColumns[122]}, + Columns: []*schema.Column{GroupsColumns[124]}, RefColumns: []*schema.Column{TrustCenterDocsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_entities_blocked_groups", - Columns: []*schema.Column{GroupsColumns[123]}, + Columns: []*schema.Column{GroupsColumns[125]}, RefColumns: []*schema.Column{TrustCenterEntitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_entities_editors", - Columns: []*schema.Column{GroupsColumns[124]}, + Columns: []*schema.Column{GroupsColumns[126]}, RefColumns: []*schema.Column{TrustCenterEntitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_faqs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[125]}, + Columns: []*schema.Column{GroupsColumns[127]}, RefColumns: []*schema.Column{TrustCenterFaqsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_faqs_editors", - Columns: []*schema.Column{GroupsColumns[126]}, + Columns: []*schema.Column{GroupsColumns[128]}, RefColumns: []*schema.Column{TrustCenterFaqsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_nda_requests_blocked_groups", - Columns: []*schema.Column{GroupsColumns[127]}, + Columns: []*schema.Column{GroupsColumns[129]}, RefColumns: []*schema.Column{TrustCenterNdaRequestsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_nda_requests_editors", - Columns: []*schema.Column{GroupsColumns[128]}, + Columns: []*schema.Column{GroupsColumns[130]}, RefColumns: []*schema.Column{TrustCenterNdaRequestsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_settings_blocked_groups", - Columns: []*schema.Column{GroupsColumns[129]}, + Columns: []*schema.Column{GroupsColumns[131]}, RefColumns: []*schema.Column{TrustCenterSettingsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_settings_editors", - Columns: []*schema.Column{GroupsColumns[130]}, + Columns: []*schema.Column{GroupsColumns[132]}, RefColumns: []*schema.Column{TrustCenterSettingsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_subprocessors_blocked_groups", - Columns: []*schema.Column{GroupsColumns[131]}, + Columns: []*schema.Column{GroupsColumns[133]}, RefColumns: []*schema.Column{TrustCenterSubprocessorsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_subprocessors_editors", - Columns: []*schema.Column{GroupsColumns[132]}, + Columns: []*schema.Column{GroupsColumns[134]}, RefColumns: []*schema.Column{TrustCenterSubprocessorsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_watermark_configs_blocked_groups", - Columns: []*schema.Column{GroupsColumns[133]}, + Columns: []*schema.Column{GroupsColumns[135]}, RefColumns: []*schema.Column{TrustCenterWatermarkConfigsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_trust_center_watermark_configs_editors", - Columns: []*schema.Column{GroupsColumns[134]}, + Columns: []*schema.Column{GroupsColumns[136]}, RefColumns: []*schema.Column{TrustCenterWatermarkConfigsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_blocked_groups", - Columns: []*schema.Column{GroupsColumns[135]}, + Columns: []*schema.Column{GroupsColumns[137]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_editors", - Columns: []*schema.Column{GroupsColumns[136]}, + Columns: []*schema.Column{GroupsColumns[138]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_vulnerabilities_viewers", - Columns: []*schema.Column{GroupsColumns[137]}, + Columns: []*schema.Column{GroupsColumns[139]}, RefColumns: []*schema.Column{VulnerabilitiesColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_blocked_groups", - Columns: []*schema.Column{GroupsColumns[138]}, + Columns: []*schema.Column{GroupsColumns[140]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_editors", - Columns: []*schema.Column{GroupsColumns[139]}, + Columns: []*schema.Column{GroupsColumns[141]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_viewers", - Columns: []*schema.Column{GroupsColumns[140]}, + Columns: []*schema.Column{GroupsColumns[142]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, { Symbol: "groups_workflow_definitions_groups", - Columns: []*schema.Column{GroupsColumns[141]}, + Columns: []*schema.Column{GroupsColumns[143]}, RefColumns: []*schema.Column{WorkflowDefinitionsColumns[0]}, OnDelete: schema.SetNull, }, @@ -3908,17 +4093,17 @@ var ( { Name: "group_display_id_owner_id", Unique: true, - Columns: []*schema.Column{GroupsColumns[8], GroupsColumns[114]}, + Columns: []*schema.Column{GroupsColumns[8], GroupsColumns[116]}, }, { Name: "group_owner_id_idx", Unique: false, - Columns: []*schema.Column{GroupsColumns[114]}, + Columns: []*schema.Column{GroupsColumns[116]}, }, { Name: "group_name_owner_id", Unique: true, - Columns: []*schema.Column{GroupsColumns[10], GroupsColumns[114]}, + Columns: []*schema.Column{GroupsColumns[10], GroupsColumns[116]}, Annotation: &entsql.IndexAnnotation{ Where: "deleted_at is NULL", }, @@ -9857,6 +10042,81 @@ var ( }, }, } + // AudienceBlockedGroupsColumns holds the columns for the "audience_blocked_groups" table. + AudienceBlockedGroupsColumns = []*schema.Column{ + {Name: "audience_id", Type: field.TypeString}, + {Name: "group_id", Type: field.TypeString}, + } + // AudienceBlockedGroupsTable holds the schema information for the "audience_blocked_groups" table. + AudienceBlockedGroupsTable = &schema.Table{ + Name: "audience_blocked_groups", + Columns: AudienceBlockedGroupsColumns, + PrimaryKey: []*schema.Column{AudienceBlockedGroupsColumns[0], AudienceBlockedGroupsColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "audience_blocked_groups_audience_id", + Columns: []*schema.Column{AudienceBlockedGroupsColumns[0]}, + RefColumns: []*schema.Column{AudiencesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "audience_blocked_groups_group_id", + Columns: []*schema.Column{AudienceBlockedGroupsColumns[1]}, + RefColumns: []*schema.Column{GroupsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // AudienceEditorsColumns holds the columns for the "audience_editors" table. + AudienceEditorsColumns = []*schema.Column{ + {Name: "audience_id", Type: field.TypeString}, + {Name: "group_id", Type: field.TypeString}, + } + // AudienceEditorsTable holds the schema information for the "audience_editors" table. + AudienceEditorsTable = &schema.Table{ + Name: "audience_editors", + Columns: AudienceEditorsColumns, + PrimaryKey: []*schema.Column{AudienceEditorsColumns[0], AudienceEditorsColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "audience_editors_audience_id", + Columns: []*schema.Column{AudienceEditorsColumns[0]}, + RefColumns: []*schema.Column{AudiencesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "audience_editors_group_id", + Columns: []*schema.Column{AudienceEditorsColumns[1]}, + RefColumns: []*schema.Column{GroupsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } + // AudienceViewersColumns holds the columns for the "audience_viewers" table. + AudienceViewersColumns = []*schema.Column{ + {Name: "audience_id", Type: field.TypeString}, + {Name: "group_id", Type: field.TypeString}, + } + // AudienceViewersTable holds the schema information for the "audience_viewers" table. + AudienceViewersTable = &schema.Table{ + Name: "audience_viewers", + Columns: AudienceViewersColumns, + PrimaryKey: []*schema.Column{AudienceViewersColumns[0], AudienceViewersColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "audience_viewers_audience_id", + Columns: []*schema.Column{AudienceViewersColumns[0]}, + RefColumns: []*schema.Column{AudiencesColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "audience_viewers_group_id", + Columns: []*schema.Column{AudienceViewersColumns[1]}, + RefColumns: []*schema.Column{GroupsColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // CampaignBlockedGroupsColumns holds the columns for the "campaign_blocked_groups" table. CampaignBlockedGroupsColumns = []*schema.Column{ {Name: "campaign_id", Type: field.TypeString}, @@ -10032,6 +10292,31 @@ var ( }, }, } + // CampaignAudiencesColumns holds the columns for the "campaign_audiences" table. + CampaignAudiencesColumns = []*schema.Column{ + {Name: "campaign_id", Type: field.TypeString}, + {Name: "audience_id", Type: field.TypeString}, + } + // CampaignAudiencesTable holds the schema information for the "campaign_audiences" table. + CampaignAudiencesTable = &schema.Table{ + Name: "campaign_audiences", + Columns: CampaignAudiencesColumns, + PrimaryKey: []*schema.Column{CampaignAudiencesColumns[0], CampaignAudiencesColumns[1]}, + ForeignKeys: []*schema.ForeignKey{ + { + Symbol: "campaign_audiences_campaign_id", + Columns: []*schema.Column{CampaignAudiencesColumns[0]}, + RefColumns: []*schema.Column{CampaignsColumns[0]}, + OnDelete: schema.Cascade, + }, + { + Symbol: "campaign_audiences_audience_id", + Columns: []*schema.Column{CampaignAudiencesColumns[1]}, + RefColumns: []*schema.Column{AudiencesColumns[0]}, + OnDelete: schema.Cascade, + }, + }, + } // CheckResultControlsColumns holds the columns for the "check_result_controls" table. CheckResultControlsColumns = []*schema.Column{ {Name: "check_result_id", Type: field.TypeString}, @@ -15114,6 +15399,8 @@ var ( AssessmentsTable, AssessmentResponsesTable, AssetsTable, + AudiencesTable, + AudienceMembersTable, CampaignsTable, CampaignTargetsTable, CheckResultsTable, @@ -15214,6 +15501,9 @@ var ( ActionPlanViewersTable, ActionPlanTasksTable, AssetConnectedAssetsTable, + AudienceBlockedGroupsTable, + AudienceEditorsTable, + AudienceViewersTable, CampaignBlockedGroupsTable, CampaignEditorsTable, CampaignViewersTable, @@ -15221,6 +15511,7 @@ var ( CampaignUsersTable, CampaignGroupsTable, CampaignIdentityHoldersTable, + CampaignAudiencesTable, CheckResultControlsTable, ContactFilesTable, ControlControlObjectivesTable, @@ -15459,6 +15750,14 @@ func init() { AssetsTable.ForeignKeys[11].RefTable = OrganizationsTable AssetsTable.ForeignKeys[12].RefTable = PlatformsTable AssetsTable.ForeignKeys[13].RefTable = RisksTable + AudiencesTable.ForeignKeys[0].RefTable = OrganizationsTable + AudienceMembersTable.ForeignKeys[0].RefTable = AudiencesTable + AudienceMembersTable.ForeignKeys[1].RefTable = ContactsTable + AudienceMembersTable.ForeignKeys[2].RefTable = GroupsTable + AudienceMembersTable.ForeignKeys[3].RefTable = IdentityHoldersTable + AudienceMembersTable.ForeignKeys[4].RefTable = OrganizationsTable + AudienceMembersTable.ForeignKeys[5].RefTable = SubscribersTable + AudienceMembersTable.ForeignKeys[6].RefTable = UsersTable CampaignsTable.ForeignKeys[0].RefTable = AssessmentsTable CampaignsTable.ForeignKeys[1].RefTable = UsersTable CampaignsTable.ForeignKeys[2].RefTable = GroupsTable @@ -15680,33 +15979,35 @@ func init() { GroupsTable.ForeignKeys[89].RefTable = OrganizationsTable GroupsTable.ForeignKeys[90].RefTable = OrganizationsTable GroupsTable.ForeignKeys[91].RefTable = OrganizationsTable - GroupsTable.ForeignKeys[92].RefTable = SLADefinitionsTable - GroupsTable.ForeignKeys[93].RefTable = SLADefinitionsTable - GroupsTable.ForeignKeys[94].RefTable = TrustCentersTable - GroupsTable.ForeignKeys[95].RefTable = TrustCentersTable - GroupsTable.ForeignKeys[96].RefTable = TrustCenterCompliancesTable - GroupsTable.ForeignKeys[97].RefTable = TrustCenterCompliancesTable - GroupsTable.ForeignKeys[98].RefTable = TrustCenterDocsTable - GroupsTable.ForeignKeys[99].RefTable = TrustCenterDocsTable - GroupsTable.ForeignKeys[100].RefTable = TrustCenterEntitiesTable - GroupsTable.ForeignKeys[101].RefTable = TrustCenterEntitiesTable - GroupsTable.ForeignKeys[102].RefTable = TrustCenterFaqsTable - GroupsTable.ForeignKeys[103].RefTable = TrustCenterFaqsTable - GroupsTable.ForeignKeys[104].RefTable = TrustCenterNdaRequestsTable - GroupsTable.ForeignKeys[105].RefTable = TrustCenterNdaRequestsTable - GroupsTable.ForeignKeys[106].RefTable = TrustCenterSettingsTable - GroupsTable.ForeignKeys[107].RefTable = TrustCenterSettingsTable - GroupsTable.ForeignKeys[108].RefTable = TrustCenterSubprocessorsTable - GroupsTable.ForeignKeys[109].RefTable = TrustCenterSubprocessorsTable - GroupsTable.ForeignKeys[110].RefTable = TrustCenterWatermarkConfigsTable - GroupsTable.ForeignKeys[111].RefTable = TrustCenterWatermarkConfigsTable - GroupsTable.ForeignKeys[112].RefTable = VulnerabilitiesTable - GroupsTable.ForeignKeys[113].RefTable = VulnerabilitiesTable + GroupsTable.ForeignKeys[92].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[93].RefTable = OrganizationsTable + GroupsTable.ForeignKeys[94].RefTable = SLADefinitionsTable + GroupsTable.ForeignKeys[95].RefTable = SLADefinitionsTable + GroupsTable.ForeignKeys[96].RefTable = TrustCentersTable + GroupsTable.ForeignKeys[97].RefTable = TrustCentersTable + GroupsTable.ForeignKeys[98].RefTable = TrustCenterCompliancesTable + GroupsTable.ForeignKeys[99].RefTable = TrustCenterCompliancesTable + GroupsTable.ForeignKeys[100].RefTable = TrustCenterDocsTable + GroupsTable.ForeignKeys[101].RefTable = TrustCenterDocsTable + GroupsTable.ForeignKeys[102].RefTable = TrustCenterEntitiesTable + GroupsTable.ForeignKeys[103].RefTable = TrustCenterEntitiesTable + GroupsTable.ForeignKeys[104].RefTable = TrustCenterFaqsTable + GroupsTable.ForeignKeys[105].RefTable = TrustCenterFaqsTable + GroupsTable.ForeignKeys[106].RefTable = TrustCenterNdaRequestsTable + GroupsTable.ForeignKeys[107].RefTable = TrustCenterNdaRequestsTable + GroupsTable.ForeignKeys[108].RefTable = TrustCenterSettingsTable + GroupsTable.ForeignKeys[109].RefTable = TrustCenterSettingsTable + GroupsTable.ForeignKeys[110].RefTable = TrustCenterSubprocessorsTable + GroupsTable.ForeignKeys[111].RefTable = TrustCenterSubprocessorsTable + GroupsTable.ForeignKeys[112].RefTable = TrustCenterWatermarkConfigsTable + GroupsTable.ForeignKeys[113].RefTable = TrustCenterWatermarkConfigsTable GroupsTable.ForeignKeys[114].RefTable = VulnerabilitiesTable - GroupsTable.ForeignKeys[115].RefTable = WorkflowDefinitionsTable - GroupsTable.ForeignKeys[116].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[115].RefTable = VulnerabilitiesTable + GroupsTable.ForeignKeys[116].RefTable = VulnerabilitiesTable GroupsTable.ForeignKeys[117].RefTable = WorkflowDefinitionsTable GroupsTable.ForeignKeys[118].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[119].RefTable = WorkflowDefinitionsTable + GroupsTable.ForeignKeys[120].RefTable = WorkflowDefinitionsTable GroupMembershipsTable.ForeignKeys[0].RefTable = GroupsTable GroupMembershipsTable.ForeignKeys[1].RefTable = UsersTable GroupMembershipsTable.ForeignKeys[2].RefTable = OrgMembershipsTable @@ -16029,6 +16330,12 @@ func init() { ActionPlanTasksTable.ForeignKeys[1].RefTable = TasksTable AssetConnectedAssetsTable.ForeignKeys[0].RefTable = AssetsTable AssetConnectedAssetsTable.ForeignKeys[1].RefTable = AssetsTable + AudienceBlockedGroupsTable.ForeignKeys[0].RefTable = AudiencesTable + AudienceBlockedGroupsTable.ForeignKeys[1].RefTable = GroupsTable + AudienceEditorsTable.ForeignKeys[0].RefTable = AudiencesTable + AudienceEditorsTable.ForeignKeys[1].RefTable = GroupsTable + AudienceViewersTable.ForeignKeys[0].RefTable = AudiencesTable + AudienceViewersTable.ForeignKeys[1].RefTable = GroupsTable CampaignBlockedGroupsTable.ForeignKeys[0].RefTable = CampaignsTable CampaignBlockedGroupsTable.ForeignKeys[1].RefTable = GroupsTable CampaignEditorsTable.ForeignKeys[0].RefTable = CampaignsTable @@ -16043,6 +16350,8 @@ func init() { CampaignGroupsTable.ForeignKeys[1].RefTable = GroupsTable CampaignIdentityHoldersTable.ForeignKeys[0].RefTable = CampaignsTable CampaignIdentityHoldersTable.ForeignKeys[1].RefTable = IdentityHoldersTable + CampaignAudiencesTable.ForeignKeys[0].RefTable = CampaignsTable + CampaignAudiencesTable.ForeignKeys[1].RefTable = AudiencesTable CheckResultControlsTable.ForeignKeys[0].RefTable = CheckResultsTable CheckResultControlsTable.ForeignKeys[1].RefTable = ControlsTable ContactFilesTable.ForeignKeys[0].RefTable = ContactsTable diff --git a/internal/ent/generated/mutation.go b/internal/ent/generated/mutation.go index d98c16b3a7..6b8ac2e07e 100644 --- a/internal/ent/generated/mutation.go +++ b/internal/ent/generated/mutation.go @@ -19,6 +19,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -131,6 +133,8 @@ const ( TypeAssessment = "Assessment" TypeAssessmentResponse = "AssessmentResponse" TypeAsset = "Asset" + TypeAudience = "Audience" + TypeAudienceMember = "AudienceMember" TypeCampaign = "Campaign" TypeCampaignTarget = "CampaignTarget" TypeCheckResult = "CheckResult" @@ -18743,6 +18747,3771 @@ func (m *AssetMutation) ResetEdge(name string) error { return fmt.Errorf("unknown Asset edge %s", name) } +// AudienceMutation represents an operation that mutates the Audience nodes in the graph. +type AudienceMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + updated_by_impersonator *string + deleted_at *time.Time + deleted_by *string + display_id *string + tags *[]string + appendtags []string + name *string + description *string + audience_type *enums.AudienceType + filters *map[string]interface{} + metadata *map[string]interface{} + clearedFields map[string]struct{} + owner *string + clearedowner bool + blocked_groups map[string]struct{} + removedblocked_groups map[string]struct{} + clearedblocked_groups bool + editors map[string]struct{} + removededitors map[string]struct{} + clearededitors bool + viewers map[string]struct{} + removedviewers map[string]struct{} + clearedviewers bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool + campaigns map[string]struct{} + removedcampaigns map[string]struct{} + clearedcampaigns bool + done bool + oldValue func(context.Context) (*Audience, error) + predicates []predicate.Audience +} + +var _ ent.Mutation = (*AudienceMutation)(nil) + +// audienceOption allows management of the mutation configuration using functional options. +type audienceOption func(*AudienceMutation) + +// newAudienceMutation creates new mutation for the Audience entity. +func newAudienceMutation(c config, op Op, opts ...audienceOption) *AudienceMutation { + m := &AudienceMutation{ + config: c, + op: op, + typ: TypeAudience, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withAudienceID sets the ID field of the mutation. +func withAudienceID(id string) audienceOption { + return func(m *AudienceMutation) { + var ( + err error + once sync.Once + value *Audience + ) + m.oldValue = func(ctx context.Context) (*Audience, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().Audience.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withAudience sets the old Audience of the mutation. +func withAudience(node *Audience) audienceOption { + return func(m *AudienceMutation) { + m.oldValue = func(context.Context) (*Audience, error) { + return node, nil + } + m.id = &node.ID + } +} + +// Client returns a new `ent.Client` from the mutation. If the mutation was +// executed in a transaction (ent.Tx), a transactional client is returned. +func (m AudienceMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client +} + +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m AudienceMutation) Tx() (*Tx, error) { + if _, ok := m.driver.(*txDriver); !ok { + return nil, errors.New("generated: mutation is not running in a transaction") + } + tx := &Tx{config: m.config} + tx.init() + return tx, nil +} + +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of Audience entities. +func (m *AudienceMutation) SetID(id string) { + m.id = &id +} + +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. +func (m *AudienceMutation) ID() (id string, exists bool) { + if m.id == nil { + return + } + return *m.id, true +} + +// IDs queries the database and returns the entity ids that match the mutation's predicate. +// That means, if the mutation is applied within a transaction with an isolation level such +// as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated +// or updated by the mutation. +func (m *AudienceMutation) IDs(ctx context.Context) ([]string, error) { + switch { + case m.op.Is(OpUpdateOne | OpDeleteOne): + id, exists := m.ID() + if exists { + return []string{id}, nil + } + fallthrough + case m.op.Is(OpUpdate | OpDelete): + return m.Client().Audience.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) + } +} + +// SetCreatedAt sets the "created_at" field. +func (m *AudienceMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *AudienceMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true +} + +// OldCreatedAt returns the old "created_at" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + } + return oldValue.CreatedAt, nil +} + +// ClearCreatedAt clears the value of the "created_at" field. +func (m *AudienceMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[audience.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *AudienceMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[audience.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *AudienceMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, audience.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *AudienceMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *AudienceMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return + } + return *v, true +} + +// OldUpdatedAt returns the old "updated_at" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + } + return oldValue.UpdatedAt, nil +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *AudienceMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[audience.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *AudienceMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[audience.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *AudienceMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, audience.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *AudienceMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *AudienceMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return + } + return *v, true +} + +// OldCreatedBy returns the old "created_by" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) + } + return oldValue.CreatedBy, nil +} + +// ClearCreatedBy clears the value of the "created_by" field. +func (m *AudienceMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[audience.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *AudienceMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[audience.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *AudienceMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, audience.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *AudienceMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *AudienceMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return + } + return *v, true +} + +// OldUpdatedBy returns the old "updated_by" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) + } + return oldValue.UpdatedBy, nil +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *AudienceMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[audience.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *AudienceMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[audience.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *AudienceMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, audience.FieldUpdatedBy) +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (m *AudienceMutation) SetUpdatedByImpersonator(s string) { + m.updated_by_impersonator = &s +} + +// UpdatedByImpersonator returns the value of the "updated_by_impersonator" field in the mutation. +func (m *AudienceMutation) UpdatedByImpersonator() (r string, exists bool) { + v := m.updated_by_impersonator + if v == nil { + return + } + return *v, true +} + +// OldUpdatedByImpersonator returns the old "updated_by_impersonator" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldUpdatedByImpersonator(ctx context.Context) (v *string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedByImpersonator is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedByImpersonator requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedByImpersonator: %w", err) + } + return oldValue.UpdatedByImpersonator, nil +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (m *AudienceMutation) ClearUpdatedByImpersonator() { + m.updated_by_impersonator = nil + m.clearedFields[audience.FieldUpdatedByImpersonator] = struct{}{} +} + +// UpdatedByImpersonatorCleared returns if the "updated_by_impersonator" field was cleared in this mutation. +func (m *AudienceMutation) UpdatedByImpersonatorCleared() bool { + _, ok := m.clearedFields[audience.FieldUpdatedByImpersonator] + return ok +} + +// ResetUpdatedByImpersonator resets all changes to the "updated_by_impersonator" field. +func (m *AudienceMutation) ResetUpdatedByImpersonator() { + m.updated_by_impersonator = nil + delete(m.clearedFields, audience.FieldUpdatedByImpersonator) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *AudienceMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *AudienceMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return + } + return *v, true +} + +// OldDeletedAt returns the old "deleted_at" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + } + return oldValue.DeletedAt, nil +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *AudienceMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[audience.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *AudienceMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[audience.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *AudienceMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, audience.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *AudienceMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *AudienceMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return + } + return *v, true +} + +// OldDeletedBy returns the old "deleted_by" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) + } + return oldValue.DeletedBy, nil +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *AudienceMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[audience.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *AudienceMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[audience.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *AudienceMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, audience.FieldDeletedBy) +} + +// SetDisplayID sets the "display_id" field. +func (m *AudienceMutation) SetDisplayID(s string) { + m.display_id = &s +} + +// DisplayID returns the value of the "display_id" field in the mutation. +func (m *AudienceMutation) DisplayID() (r string, exists bool) { + v := m.display_id + if v == nil { + return + } + return *v, true +} + +// OldDisplayID returns the old "display_id" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldDisplayID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayID: %w", err) + } + return oldValue.DisplayID, nil +} + +// ResetDisplayID resets all changes to the "display_id" field. +func (m *AudienceMutation) ResetDisplayID() { + m.display_id = nil +} + +// SetTags sets the "tags" field. +func (m *AudienceMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *AudienceMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true +} + +// OldTags returns the old "tags" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) + } + return oldValue.Tags, nil +} + +// AppendTags adds s to the "tags" field. +func (m *AudienceMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) +} + +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *AudienceMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true +} + +// ClearTags clears the value of the "tags" field. +func (m *AudienceMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[audience.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *AudienceMutation) TagsCleared() bool { + _, ok := m.clearedFields[audience.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *AudienceMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, audience.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *AudienceMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *AudienceMutation) OwnerID() (r string, exists bool) { + v := m.owner + if v == nil { + return + } + return *v, true +} + +// OldOwnerID returns the old "owner_id" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldOwnerID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) + } + return oldValue.OwnerID, nil +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (m *AudienceMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[audience.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *AudienceMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[audience.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *AudienceMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, audience.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *AudienceMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *AudienceMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return + } + return *v, true +} + +// OldName returns the old "name" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldName: %w", err) + } + return oldValue.Name, nil +} + +// ResetName resets all changes to the "name" field. +func (m *AudienceMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *AudienceMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *AudienceMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return + } + return *v, true +} + +// OldDescription returns the old "description" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldDescription(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDescription is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDescription requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDescription: %w", err) + } + return oldValue.Description, nil +} + +// ClearDescription clears the value of the "description" field. +func (m *AudienceMutation) ClearDescription() { + m.description = nil + m.clearedFields[audience.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *AudienceMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[audience.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *AudienceMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, audience.FieldDescription) +} + +// SetAudienceType sets the "audience_type" field. +func (m *AudienceMutation) SetAudienceType(et enums.AudienceType) { + m.audience_type = &et +} + +// AudienceType returns the value of the "audience_type" field in the mutation. +func (m *AudienceMutation) AudienceType() (r enums.AudienceType, exists bool) { + v := m.audience_type + if v == nil { + return + } + return *v, true +} + +// OldAudienceType returns the old "audience_type" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldAudienceType(ctx context.Context) (v enums.AudienceType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAudienceType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAudienceType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAudienceType: %w", err) + } + return oldValue.AudienceType, nil +} + +// ResetAudienceType resets all changes to the "audience_type" field. +func (m *AudienceMutation) ResetAudienceType() { + m.audience_type = nil +} + +// SetFilters sets the "filters" field. +func (m *AudienceMutation) SetFilters(value map[string]interface{}) { + m.filters = &value +} + +// Filters returns the value of the "filters" field in the mutation. +func (m *AudienceMutation) Filters() (r map[string]interface{}, exists bool) { + v := m.filters + if v == nil { + return + } + return *v, true +} + +// OldFilters returns the old "filters" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldFilters(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFilters is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFilters requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFilters: %w", err) + } + return oldValue.Filters, nil +} + +// ClearFilters clears the value of the "filters" field. +func (m *AudienceMutation) ClearFilters() { + m.filters = nil + m.clearedFields[audience.FieldFilters] = struct{}{} +} + +// FiltersCleared returns if the "filters" field was cleared in this mutation. +func (m *AudienceMutation) FiltersCleared() bool { + _, ok := m.clearedFields[audience.FieldFilters] + return ok +} + +// ResetFilters resets all changes to the "filters" field. +func (m *AudienceMutation) ResetFilters() { + m.filters = nil + delete(m.clearedFields, audience.FieldFilters) +} + +// SetMetadata sets the "metadata" field. +func (m *AudienceMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *AudienceMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata + if v == nil { + return + } + return *v, true +} + +// OldMetadata returns the old "metadata" field's value of the Audience entity. +// If the Audience object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMetadata requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) + } + return oldValue.Metadata, nil +} + +// ClearMetadata clears the value of the "metadata" field. +func (m *AudienceMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[audience.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *AudienceMutation) MetadataCleared() bool { + _, ok := m.clearedFields[audience.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *AudienceMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, audience.FieldMetadata) +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *AudienceMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[audience.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *AudienceMutation) OwnerCleared() bool { + return m.OwnerIDCleared() || m.clearedowner +} + +// OwnerIDs returns the "owner" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// OwnerID instead. It exists only for internal usage by the builders. +func (m *AudienceMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *AudienceMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// AddBlockedGroupIDs adds the "blocked_groups" edge to the Group entity by ids. +func (m *AudienceMutation) AddBlockedGroupIDs(ids ...string) { + if m.blocked_groups == nil { + m.blocked_groups = make(map[string]struct{}) + } + for i := range ids { + m.blocked_groups[ids[i]] = struct{}{} + } +} + +// ClearBlockedGroups clears the "blocked_groups" edge to the Group entity. +func (m *AudienceMutation) ClearBlockedGroups() { + m.clearedblocked_groups = true +} + +// BlockedGroupsCleared reports if the "blocked_groups" edge to the Group entity was cleared. +func (m *AudienceMutation) BlockedGroupsCleared() bool { + return m.clearedblocked_groups +} + +// RemoveBlockedGroupIDs removes the "blocked_groups" edge to the Group entity by IDs. +func (m *AudienceMutation) RemoveBlockedGroupIDs(ids ...string) { + if m.removedblocked_groups == nil { + m.removedblocked_groups = make(map[string]struct{}) + } + for i := range ids { + delete(m.blocked_groups, ids[i]) + m.removedblocked_groups[ids[i]] = struct{}{} + } +} + +// RemovedBlockedGroups returns the removed IDs of the "blocked_groups" edge to the Group entity. +func (m *AudienceMutation) RemovedBlockedGroupsIDs() (ids []string) { + for id := range m.removedblocked_groups { + ids = append(ids, id) + } + return +} + +// BlockedGroupsIDs returns the "blocked_groups" edge IDs in the mutation. +func (m *AudienceMutation) BlockedGroupsIDs() (ids []string) { + for id := range m.blocked_groups { + ids = append(ids, id) + } + return +} + +// ResetBlockedGroups resets all changes to the "blocked_groups" edge. +func (m *AudienceMutation) ResetBlockedGroups() { + m.blocked_groups = nil + m.clearedblocked_groups = false + m.removedblocked_groups = nil +} + +// AddEditorIDs adds the "editors" edge to the Group entity by ids. +func (m *AudienceMutation) AddEditorIDs(ids ...string) { + if m.editors == nil { + m.editors = make(map[string]struct{}) + } + for i := range ids { + m.editors[ids[i]] = struct{}{} + } +} + +// ClearEditors clears the "editors" edge to the Group entity. +func (m *AudienceMutation) ClearEditors() { + m.clearededitors = true +} + +// EditorsCleared reports if the "editors" edge to the Group entity was cleared. +func (m *AudienceMutation) EditorsCleared() bool { + return m.clearededitors +} + +// RemoveEditorIDs removes the "editors" edge to the Group entity by IDs. +func (m *AudienceMutation) RemoveEditorIDs(ids ...string) { + if m.removededitors == nil { + m.removededitors = make(map[string]struct{}) + } + for i := range ids { + delete(m.editors, ids[i]) + m.removededitors[ids[i]] = struct{}{} + } +} + +// RemovedEditors returns the removed IDs of the "editors" edge to the Group entity. +func (m *AudienceMutation) RemovedEditorsIDs() (ids []string) { + for id := range m.removededitors { + ids = append(ids, id) + } + return +} + +// EditorsIDs returns the "editors" edge IDs in the mutation. +func (m *AudienceMutation) EditorsIDs() (ids []string) { + for id := range m.editors { + ids = append(ids, id) + } + return +} + +// ResetEditors resets all changes to the "editors" edge. +func (m *AudienceMutation) ResetEditors() { + m.editors = nil + m.clearededitors = false + m.removededitors = nil +} + +// AddViewerIDs adds the "viewers" edge to the Group entity by ids. +func (m *AudienceMutation) AddViewerIDs(ids ...string) { + if m.viewers == nil { + m.viewers = make(map[string]struct{}) + } + for i := range ids { + m.viewers[ids[i]] = struct{}{} + } +} + +// ClearViewers clears the "viewers" edge to the Group entity. +func (m *AudienceMutation) ClearViewers() { + m.clearedviewers = true +} + +// ViewersCleared reports if the "viewers" edge to the Group entity was cleared. +func (m *AudienceMutation) ViewersCleared() bool { + return m.clearedviewers +} + +// RemoveViewerIDs removes the "viewers" edge to the Group entity by IDs. +func (m *AudienceMutation) RemoveViewerIDs(ids ...string) { + if m.removedviewers == nil { + m.removedviewers = make(map[string]struct{}) + } + for i := range ids { + delete(m.viewers, ids[i]) + m.removedviewers[ids[i]] = struct{}{} + } +} + +// RemovedViewers returns the removed IDs of the "viewers" edge to the Group entity. +func (m *AudienceMutation) RemovedViewersIDs() (ids []string) { + for id := range m.removedviewers { + ids = append(ids, id) + } + return +} + +// ViewersIDs returns the "viewers" edge IDs in the mutation. +func (m *AudienceMutation) ViewersIDs() (ids []string) { + for id := range m.viewers { + ids = append(ids, id) + } + return +} + +// ResetViewers resets all changes to the "viewers" edge. +func (m *AudienceMutation) ResetViewers() { + m.viewers = nil + m.clearedviewers = false + m.removedviewers = nil +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *AudienceMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *AudienceMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *AudienceMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *AudienceMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *AudienceMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *AudienceMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *AudienceMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + +// AddCampaignIDs adds the "campaigns" edge to the Campaign entity by ids. +func (m *AudienceMutation) AddCampaignIDs(ids ...string) { + if m.campaigns == nil { + m.campaigns = make(map[string]struct{}) + } + for i := range ids { + m.campaigns[ids[i]] = struct{}{} + } +} + +// ClearCampaigns clears the "campaigns" edge to the Campaign entity. +func (m *AudienceMutation) ClearCampaigns() { + m.clearedcampaigns = true +} + +// CampaignsCleared reports if the "campaigns" edge to the Campaign entity was cleared. +func (m *AudienceMutation) CampaignsCleared() bool { + return m.clearedcampaigns +} + +// RemoveCampaignIDs removes the "campaigns" edge to the Campaign entity by IDs. +func (m *AudienceMutation) RemoveCampaignIDs(ids ...string) { + if m.removedcampaigns == nil { + m.removedcampaigns = make(map[string]struct{}) + } + for i := range ids { + delete(m.campaigns, ids[i]) + m.removedcampaigns[ids[i]] = struct{}{} + } +} + +// RemovedCampaigns returns the removed IDs of the "campaigns" edge to the Campaign entity. +func (m *AudienceMutation) RemovedCampaignsIDs() (ids []string) { + for id := range m.removedcampaigns { + ids = append(ids, id) + } + return +} + +// CampaignsIDs returns the "campaigns" edge IDs in the mutation. +func (m *AudienceMutation) CampaignsIDs() (ids []string) { + for id := range m.campaigns { + ids = append(ids, id) + } + return +} + +// ResetCampaigns resets all changes to the "campaigns" edge. +func (m *AudienceMutation) ResetCampaigns() { + m.campaigns = nil + m.clearedcampaigns = false + m.removedcampaigns = nil +} + +// Where appends a list predicates to the AudienceMutation builder. +func (m *AudienceMutation) Where(ps ...predicate.Audience) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the AudienceMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *AudienceMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.Audience, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *AudienceMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *AudienceMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (Audience). +func (m *AudienceMutation) Type() string { + return m.typ +} + +// Fields returns all fields that were changed during this mutation. Note that in +// order to get all numeric fields that were incremented/decremented, call +// AddedFields(). +func (m *AudienceMutation) Fields() []string { + fields := make([]string, 0, 15) + if m.created_at != nil { + fields = append(fields, audience.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, audience.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, audience.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, audience.FieldUpdatedBy) + } + if m.updated_by_impersonator != nil { + fields = append(fields, audience.FieldUpdatedByImpersonator) + } + if m.deleted_at != nil { + fields = append(fields, audience.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, audience.FieldDeletedBy) + } + if m.display_id != nil { + fields = append(fields, audience.FieldDisplayID) + } + if m.tags != nil { + fields = append(fields, audience.FieldTags) + } + if m.owner != nil { + fields = append(fields, audience.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, audience.FieldName) + } + if m.description != nil { + fields = append(fields, audience.FieldDescription) + } + if m.audience_type != nil { + fields = append(fields, audience.FieldAudienceType) + } + if m.filters != nil { + fields = append(fields, audience.FieldFilters) + } + if m.metadata != nil { + fields = append(fields, audience.FieldMetadata) + } + return fields +} + +// Field returns the value of a field with the given name. The second boolean +// return value indicates that this field was not set, or was not defined in the +// schema. +func (m *AudienceMutation) Field(name string) (ent.Value, bool) { + switch name { + case audience.FieldCreatedAt: + return m.CreatedAt() + case audience.FieldUpdatedAt: + return m.UpdatedAt() + case audience.FieldCreatedBy: + return m.CreatedBy() + case audience.FieldUpdatedBy: + return m.UpdatedBy() + case audience.FieldUpdatedByImpersonator: + return m.UpdatedByImpersonator() + case audience.FieldDeletedAt: + return m.DeletedAt() + case audience.FieldDeletedBy: + return m.DeletedBy() + case audience.FieldDisplayID: + return m.DisplayID() + case audience.FieldTags: + return m.Tags() + case audience.FieldOwnerID: + return m.OwnerID() + case audience.FieldName: + return m.Name() + case audience.FieldDescription: + return m.Description() + case audience.FieldAudienceType: + return m.AudienceType() + case audience.FieldFilters: + return m.Filters() + case audience.FieldMetadata: + return m.Metadata() + } + return nil, false +} + +// OldField returns the old value of the field from the database. An error is +// returned if the mutation operation is not UpdateOne, or the query to the +// database failed. +func (m *AudienceMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case audience.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case audience.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case audience.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case audience.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case audience.FieldUpdatedByImpersonator: + return m.OldUpdatedByImpersonator(ctx) + case audience.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case audience.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case audience.FieldDisplayID: + return m.OldDisplayID(ctx) + case audience.FieldTags: + return m.OldTags(ctx) + case audience.FieldOwnerID: + return m.OldOwnerID(ctx) + case audience.FieldName: + return m.OldName(ctx) + case audience.FieldDescription: + return m.OldDescription(ctx) + case audience.FieldAudienceType: + return m.OldAudienceType(ctx) + case audience.FieldFilters: + return m.OldFilters(ctx) + case audience.FieldMetadata: + return m.OldMetadata(ctx) + } + return nil, fmt.Errorf("unknown Audience field %s", name) +} + +// SetField sets the value of a field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMutation) SetField(name string, value ent.Value) error { + switch name { + case audience.FieldCreatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedAt(v) + return nil + case audience.FieldUpdatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedAt(v) + return nil + case audience.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case audience.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case audience.FieldUpdatedByImpersonator: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedByImpersonator(v) + return nil + case audience.FieldDeletedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedAt(v) + return nil + case audience.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case audience.FieldDisplayID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayID(v) + return nil + case audience.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case audience.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case audience.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case audience.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case audience.FieldAudienceType: + v, ok := value.(enums.AudienceType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAudienceType(v) + return nil + case audience.FieldFilters: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFilters(v) + return nil + case audience.FieldMetadata: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMetadata(v) + return nil + } + return fmt.Errorf("unknown Audience field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *AudienceMutation) AddedFields() []string { + return nil +} + +// AddedField returns the numeric value that was incremented/decremented on a field +// with the given name. The second boolean return value indicates that this field +// was not set, or was not defined in the schema. +func (m *AudienceMutation) AddedField(name string) (ent.Value, bool) { + return nil, false +} + +// AddField adds the value to the field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown Audience numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *AudienceMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(audience.FieldCreatedAt) { + fields = append(fields, audience.FieldCreatedAt) + } + if m.FieldCleared(audience.FieldUpdatedAt) { + fields = append(fields, audience.FieldUpdatedAt) + } + if m.FieldCleared(audience.FieldCreatedBy) { + fields = append(fields, audience.FieldCreatedBy) + } + if m.FieldCleared(audience.FieldUpdatedBy) { + fields = append(fields, audience.FieldUpdatedBy) + } + if m.FieldCleared(audience.FieldUpdatedByImpersonator) { + fields = append(fields, audience.FieldUpdatedByImpersonator) + } + if m.FieldCleared(audience.FieldDeletedAt) { + fields = append(fields, audience.FieldDeletedAt) + } + if m.FieldCleared(audience.FieldDeletedBy) { + fields = append(fields, audience.FieldDeletedBy) + } + if m.FieldCleared(audience.FieldTags) { + fields = append(fields, audience.FieldTags) + } + if m.FieldCleared(audience.FieldOwnerID) { + fields = append(fields, audience.FieldOwnerID) + } + if m.FieldCleared(audience.FieldDescription) { + fields = append(fields, audience.FieldDescription) + } + if m.FieldCleared(audience.FieldFilters) { + fields = append(fields, audience.FieldFilters) + } + if m.FieldCleared(audience.FieldMetadata) { + fields = append(fields, audience.FieldMetadata) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *AudienceMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok +} + +// ClearField clears the value of the field with the given name. It returns an +// error if the field is not defined in the schema. +func (m *AudienceMutation) ClearField(name string) error { + switch name { + case audience.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case audience.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case audience.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case audience.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case audience.FieldUpdatedByImpersonator: + m.ClearUpdatedByImpersonator() + return nil + case audience.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case audience.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case audience.FieldTags: + m.ClearTags() + return nil + case audience.FieldOwnerID: + m.ClearOwnerID() + return nil + case audience.FieldDescription: + m.ClearDescription() + return nil + case audience.FieldFilters: + m.ClearFilters() + return nil + case audience.FieldMetadata: + m.ClearMetadata() + return nil + } + return fmt.Errorf("unknown Audience nullable field %s", name) +} + +// ResetField resets all changes in the mutation for the field with the given name. +// It returns an error if the field is not defined in the schema. +func (m *AudienceMutation) ResetField(name string) error { + switch name { + case audience.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case audience.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case audience.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case audience.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case audience.FieldUpdatedByImpersonator: + m.ResetUpdatedByImpersonator() + return nil + case audience.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case audience.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case audience.FieldDisplayID: + m.ResetDisplayID() + return nil + case audience.FieldTags: + m.ResetTags() + return nil + case audience.FieldOwnerID: + m.ResetOwnerID() + return nil + case audience.FieldName: + m.ResetName() + return nil + case audience.FieldDescription: + m.ResetDescription() + return nil + case audience.FieldAudienceType: + m.ResetAudienceType() + return nil + case audience.FieldFilters: + m.ResetFilters() + return nil + case audience.FieldMetadata: + m.ResetMetadata() + return nil + } + return fmt.Errorf("unknown Audience field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *AudienceMutation) AddedEdges() []string { + edges := make([]string, 0, 6) + if m.owner != nil { + edges = append(edges, audience.EdgeOwner) + } + if m.blocked_groups != nil { + edges = append(edges, audience.EdgeBlockedGroups) + } + if m.editors != nil { + edges = append(edges, audience.EdgeEditors) + } + if m.viewers != nil { + edges = append(edges, audience.EdgeViewers) + } + if m.audience_members != nil { + edges = append(edges, audience.EdgeAudienceMembers) + } + if m.campaigns != nil { + edges = append(edges, audience.EdgeCampaigns) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *AudienceMutation) AddedIDs(name string) []ent.Value { + switch name { + case audience.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case audience.EdgeBlockedGroups: + ids := make([]ent.Value, 0, len(m.blocked_groups)) + for id := range m.blocked_groups { + ids = append(ids, id) + } + return ids + case audience.EdgeEditors: + ids := make([]ent.Value, 0, len(m.editors)) + for id := range m.editors { + ids = append(ids, id) + } + return ids + case audience.EdgeViewers: + ids := make([]ent.Value, 0, len(m.viewers)) + for id := range m.viewers { + ids = append(ids, id) + } + return ids + case audience.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids + case audience.EdgeCampaigns: + ids := make([]ent.Value, 0, len(m.campaigns)) + for id := range m.campaigns { + ids = append(ids, id) + } + return ids + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *AudienceMutation) RemovedEdges() []string { + edges := make([]string, 0, 6) + if m.removedblocked_groups != nil { + edges = append(edges, audience.EdgeBlockedGroups) + } + if m.removededitors != nil { + edges = append(edges, audience.EdgeEditors) + } + if m.removedviewers != nil { + edges = append(edges, audience.EdgeViewers) + } + if m.removedaudience_members != nil { + edges = append(edges, audience.EdgeAudienceMembers) + } + if m.removedcampaigns != nil { + edges = append(edges, audience.EdgeCampaigns) + } + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *AudienceMutation) RemovedIDs(name string) []ent.Value { + switch name { + case audience.EdgeBlockedGroups: + ids := make([]ent.Value, 0, len(m.removedblocked_groups)) + for id := range m.removedblocked_groups { + ids = append(ids, id) + } + return ids + case audience.EdgeEditors: + ids := make([]ent.Value, 0, len(m.removededitors)) + for id := range m.removededitors { + ids = append(ids, id) + } + return ids + case audience.EdgeViewers: + ids := make([]ent.Value, 0, len(m.removedviewers)) + for id := range m.removedviewers { + ids = append(ids, id) + } + return ids + case audience.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids + case audience.EdgeCampaigns: + ids := make([]ent.Value, 0, len(m.removedcampaigns)) + for id := range m.removedcampaigns { + ids = append(ids, id) + } + return ids + } + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *AudienceMutation) ClearedEdges() []string { + edges := make([]string, 0, 6) + if m.clearedowner { + edges = append(edges, audience.EdgeOwner) + } + if m.clearedblocked_groups { + edges = append(edges, audience.EdgeBlockedGroups) + } + if m.clearededitors { + edges = append(edges, audience.EdgeEditors) + } + if m.clearedviewers { + edges = append(edges, audience.EdgeViewers) + } + if m.clearedaudience_members { + edges = append(edges, audience.EdgeAudienceMembers) + } + if m.clearedcampaigns { + edges = append(edges, audience.EdgeCampaigns) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *AudienceMutation) EdgeCleared(name string) bool { + switch name { + case audience.EdgeOwner: + return m.clearedowner + case audience.EdgeBlockedGroups: + return m.clearedblocked_groups + case audience.EdgeEditors: + return m.clearededitors + case audience.EdgeViewers: + return m.clearedviewers + case audience.EdgeAudienceMembers: + return m.clearedaudience_members + case audience.EdgeCampaigns: + return m.clearedcampaigns + } + return false +} + +// ClearEdge clears the value of the edge with the given name. It returns an error +// if that edge is not defined in the schema. +func (m *AudienceMutation) ClearEdge(name string) error { + switch name { + case audience.EdgeOwner: + m.ClearOwner() + return nil + } + return fmt.Errorf("unknown Audience unique edge %s", name) +} + +// ResetEdge resets all changes to the edge with the given name in this mutation. +// It returns an error if the edge is not defined in the schema. +func (m *AudienceMutation) ResetEdge(name string) error { + switch name { + case audience.EdgeOwner: + m.ResetOwner() + return nil + case audience.EdgeBlockedGroups: + m.ResetBlockedGroups() + return nil + case audience.EdgeEditors: + m.ResetEditors() + return nil + case audience.EdgeViewers: + m.ResetViewers() + return nil + case audience.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil + case audience.EdgeCampaigns: + m.ResetCampaigns() + return nil + } + return fmt.Errorf("unknown Audience edge %s", name) +} + +// AudienceMemberMutation represents an operation that mutates the AudienceMember nodes in the graph. +type AudienceMemberMutation struct { + config + op Op + typ string + id *string + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + updated_by_impersonator *string + deleted_at *time.Time + deleted_by *string + display_id *string + tags *[]string + appendtags []string + email *string + full_name *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + owner *string + clearedowner bool + audience *string + clearedaudience bool + contact *string + clearedcontact bool + user *string + cleareduser bool + group *string + clearedgroup bool + identity_holder *string + clearedidentity_holder bool + subscriber *string + clearedsubscriber bool + done bool + oldValue func(context.Context) (*AudienceMember, error) + predicates []predicate.AudienceMember +} + +var _ ent.Mutation = (*AudienceMemberMutation)(nil) + +// audiencememberOption allows management of the mutation configuration using functional options. +type audiencememberOption func(*AudienceMemberMutation) + +// newAudienceMemberMutation creates new mutation for the AudienceMember entity. +func newAudienceMemberMutation(c config, op Op, opts ...audiencememberOption) *AudienceMemberMutation { + m := &AudienceMemberMutation{ + config: c, + op: op, + typ: TypeAudienceMember, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withAudienceMemberID sets the ID field of the mutation. +func withAudienceMemberID(id string) audiencememberOption { + return func(m *AudienceMemberMutation) { + var ( + err error + once sync.Once + value *AudienceMember + ) + m.oldValue = func(ctx context.Context) (*AudienceMember, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().AudienceMember.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withAudienceMember sets the old AudienceMember of the mutation. +func withAudienceMember(node *AudienceMember) audiencememberOption { + return func(m *AudienceMemberMutation) { + m.oldValue = func(context.Context) (*AudienceMember, error) { + return node, nil + } + m.id = &node.ID + } +} + +// Client returns a new `ent.Client` from the mutation. If the mutation was +// executed in a transaction (ent.Tx), a transactional client is returned. +func (m AudienceMemberMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client +} + +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m AudienceMemberMutation) Tx() (*Tx, error) { + if _, ok := m.driver.(*txDriver); !ok { + return nil, errors.New("generated: mutation is not running in a transaction") + } + tx := &Tx{config: m.config} + tx.init() + return tx, nil +} + +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of AudienceMember entities. +func (m *AudienceMemberMutation) SetID(id string) { + m.id = &id +} + +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. +func (m *AudienceMemberMutation) ID() (id string, exists bool) { + if m.id == nil { + return + } + return *m.id, true +} + +// IDs queries the database and returns the entity ids that match the mutation's predicate. +// That means, if the mutation is applied within a transaction with an isolation level such +// as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated +// or updated by the mutation. +func (m *AudienceMemberMutation) IDs(ctx context.Context) ([]string, error) { + switch { + case m.op.Is(OpUpdateOne | OpDeleteOne): + id, exists := m.ID() + if exists { + return []string{id}, nil + } + fallthrough + case m.op.Is(OpUpdate | OpDelete): + return m.Client().AudienceMember.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) + } +} + +// SetCreatedAt sets the "created_at" field. +func (m *AudienceMemberMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *AudienceMemberMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true +} + +// OldCreatedAt returns the old "created_at" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + } + return oldValue.CreatedAt, nil +} + +// ClearCreatedAt clears the value of the "created_at" field. +func (m *AudienceMemberMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[audiencemember.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *AudienceMemberMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *AudienceMemberMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, audiencemember.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *AudienceMemberMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *AudienceMemberMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return + } + return *v, true +} + +// OldUpdatedAt returns the old "updated_at" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + } + return oldValue.UpdatedAt, nil +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *AudienceMemberMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[audiencemember.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *AudienceMemberMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *AudienceMemberMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, audiencemember.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *AudienceMemberMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *AudienceMemberMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return + } + return *v, true +} + +// OldCreatedBy returns the old "created_by" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) + } + return oldValue.CreatedBy, nil +} + +// ClearCreatedBy clears the value of the "created_by" field. +func (m *AudienceMemberMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[audiencemember.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *AudienceMemberMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *AudienceMemberMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, audiencemember.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *AudienceMemberMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *AudienceMemberMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return + } + return *v, true +} + +// OldUpdatedBy returns the old "updated_by" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) + } + return oldValue.UpdatedBy, nil +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *AudienceMemberMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[audiencemember.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *AudienceMemberMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *AudienceMemberMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, audiencemember.FieldUpdatedBy) +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (m *AudienceMemberMutation) SetUpdatedByImpersonator(s string) { + m.updated_by_impersonator = &s +} + +// UpdatedByImpersonator returns the value of the "updated_by_impersonator" field in the mutation. +func (m *AudienceMemberMutation) UpdatedByImpersonator() (r string, exists bool) { + v := m.updated_by_impersonator + if v == nil { + return + } + return *v, true +} + +// OldUpdatedByImpersonator returns the old "updated_by_impersonator" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldUpdatedByImpersonator(ctx context.Context) (v *string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedByImpersonator is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedByImpersonator requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedByImpersonator: %w", err) + } + return oldValue.UpdatedByImpersonator, nil +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (m *AudienceMemberMutation) ClearUpdatedByImpersonator() { + m.updated_by_impersonator = nil + m.clearedFields[audiencemember.FieldUpdatedByImpersonator] = struct{}{} +} + +// UpdatedByImpersonatorCleared returns if the "updated_by_impersonator" field was cleared in this mutation. +func (m *AudienceMemberMutation) UpdatedByImpersonatorCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldUpdatedByImpersonator] + return ok +} + +// ResetUpdatedByImpersonator resets all changes to the "updated_by_impersonator" field. +func (m *AudienceMemberMutation) ResetUpdatedByImpersonator() { + m.updated_by_impersonator = nil + delete(m.clearedFields, audiencemember.FieldUpdatedByImpersonator) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *AudienceMemberMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *AudienceMemberMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return + } + return *v, true +} + +// OldDeletedAt returns the old "deleted_at" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + } + return oldValue.DeletedAt, nil +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *AudienceMemberMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[audiencemember.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *AudienceMemberMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *AudienceMemberMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, audiencemember.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *AudienceMemberMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *AudienceMemberMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return + } + return *v, true +} + +// OldDeletedBy returns the old "deleted_by" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) + } + return oldValue.DeletedBy, nil +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *AudienceMemberMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[audiencemember.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *AudienceMemberMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *AudienceMemberMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, audiencemember.FieldDeletedBy) +} + +// SetDisplayID sets the "display_id" field. +func (m *AudienceMemberMutation) SetDisplayID(s string) { + m.display_id = &s +} + +// DisplayID returns the value of the "display_id" field in the mutation. +func (m *AudienceMemberMutation) DisplayID() (r string, exists bool) { + v := m.display_id + if v == nil { + return + } + return *v, true +} + +// OldDisplayID returns the old "display_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldDisplayID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayID: %w", err) + } + return oldValue.DisplayID, nil +} + +// ResetDisplayID resets all changes to the "display_id" field. +func (m *AudienceMemberMutation) ResetDisplayID() { + m.display_id = nil +} + +// SetTags sets the "tags" field. +func (m *AudienceMemberMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *AudienceMemberMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true +} + +// OldTags returns the old "tags" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) + } + return oldValue.Tags, nil +} + +// AppendTags adds s to the "tags" field. +func (m *AudienceMemberMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) +} + +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *AudienceMemberMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true +} + +// ClearTags clears the value of the "tags" field. +func (m *AudienceMemberMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[audiencemember.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *AudienceMemberMutation) TagsCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *AudienceMemberMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, audiencemember.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *AudienceMemberMutation) SetOwnerID(s string) { + m.owner = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *AudienceMemberMutation) OwnerID() (r string, exists bool) { + v := m.owner + if v == nil { + return + } + return *v, true +} + +// OldOwnerID returns the old "owner_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldOwnerID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) + } + return oldValue.OwnerID, nil +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (m *AudienceMemberMutation) ClearOwnerID() { + m.owner = nil + m.clearedFields[audiencemember.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *AudienceMemberMutation) ResetOwnerID() { + m.owner = nil + delete(m.clearedFields, audiencemember.FieldOwnerID) +} + +// SetAudienceID sets the "audience_id" field. +func (m *AudienceMemberMutation) SetAudienceID(s string) { + m.audience = &s +} + +// AudienceID returns the value of the "audience_id" field in the mutation. +func (m *AudienceMemberMutation) AudienceID() (r string, exists bool) { + v := m.audience + if v == nil { + return + } + return *v, true +} + +// OldAudienceID returns the old "audience_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldAudienceID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAudienceID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAudienceID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAudienceID: %w", err) + } + return oldValue.AudienceID, nil +} + +// ResetAudienceID resets all changes to the "audience_id" field. +func (m *AudienceMemberMutation) ResetAudienceID() { + m.audience = nil +} + +// SetContactID sets the "contact_id" field. +func (m *AudienceMemberMutation) SetContactID(s string) { + m.contact = &s +} + +// ContactID returns the value of the "contact_id" field in the mutation. +func (m *AudienceMemberMutation) ContactID() (r string, exists bool) { + v := m.contact + if v == nil { + return + } + return *v, true +} + +// OldContactID returns the old "contact_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldContactID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldContactID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldContactID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldContactID: %w", err) + } + return oldValue.ContactID, nil +} + +// ClearContactID clears the value of the "contact_id" field. +func (m *AudienceMemberMutation) ClearContactID() { + m.contact = nil + m.clearedFields[audiencemember.FieldContactID] = struct{}{} +} + +// ContactIDCleared returns if the "contact_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) ContactIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldContactID] + return ok +} + +// ResetContactID resets all changes to the "contact_id" field. +func (m *AudienceMemberMutation) ResetContactID() { + m.contact = nil + delete(m.clearedFields, audiencemember.FieldContactID) +} + +// SetUserID sets the "user_id" field. +func (m *AudienceMemberMutation) SetUserID(s string) { + m.user = &s +} + +// UserID returns the value of the "user_id" field in the mutation. +func (m *AudienceMemberMutation) UserID() (r string, exists bool) { + v := m.user + if v == nil { + return + } + return *v, true +} + +// OldUserID returns the old "user_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldUserID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUserID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUserID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUserID: %w", err) + } + return oldValue.UserID, nil +} + +// ClearUserID clears the value of the "user_id" field. +func (m *AudienceMemberMutation) ClearUserID() { + m.user = nil + m.clearedFields[audiencemember.FieldUserID] = struct{}{} +} + +// UserIDCleared returns if the "user_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) UserIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldUserID] + return ok +} + +// ResetUserID resets all changes to the "user_id" field. +func (m *AudienceMemberMutation) ResetUserID() { + m.user = nil + delete(m.clearedFields, audiencemember.FieldUserID) +} + +// SetGroupID sets the "group_id" field. +func (m *AudienceMemberMutation) SetGroupID(s string) { + m.group = &s +} + +// GroupID returns the value of the "group_id" field in the mutation. +func (m *AudienceMemberMutation) GroupID() (r string, exists bool) { + v := m.group + if v == nil { + return + } + return *v, true +} + +// OldGroupID returns the old "group_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldGroupID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldGroupID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldGroupID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldGroupID: %w", err) + } + return oldValue.GroupID, nil +} + +// ClearGroupID clears the value of the "group_id" field. +func (m *AudienceMemberMutation) ClearGroupID() { + m.group = nil + m.clearedFields[audiencemember.FieldGroupID] = struct{}{} +} + +// GroupIDCleared returns if the "group_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) GroupIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldGroupID] + return ok +} + +// ResetGroupID resets all changes to the "group_id" field. +func (m *AudienceMemberMutation) ResetGroupID() { + m.group = nil + delete(m.clearedFields, audiencemember.FieldGroupID) +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (m *AudienceMemberMutation) SetIdentityHolderID(s string) { + m.identity_holder = &s +} + +// IdentityHolderID returns the value of the "identity_holder_id" field in the mutation. +func (m *AudienceMemberMutation) IdentityHolderID() (r string, exists bool) { + v := m.identity_holder + if v == nil { + return + } + return *v, true +} + +// OldIdentityHolderID returns the old "identity_holder_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldIdentityHolderID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldIdentityHolderID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldIdentityHolderID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldIdentityHolderID: %w", err) + } + return oldValue.IdentityHolderID, nil +} + +// ClearIdentityHolderID clears the value of the "identity_holder_id" field. +func (m *AudienceMemberMutation) ClearIdentityHolderID() { + m.identity_holder = nil + m.clearedFields[audiencemember.FieldIdentityHolderID] = struct{}{} +} + +// IdentityHolderIDCleared returns if the "identity_holder_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) IdentityHolderIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldIdentityHolderID] + return ok +} + +// ResetIdentityHolderID resets all changes to the "identity_holder_id" field. +func (m *AudienceMemberMutation) ResetIdentityHolderID() { + m.identity_holder = nil + delete(m.clearedFields, audiencemember.FieldIdentityHolderID) +} + +// SetSubscriberID sets the "subscriber_id" field. +func (m *AudienceMemberMutation) SetSubscriberID(s string) { + m.subscriber = &s +} + +// SubscriberID returns the value of the "subscriber_id" field in the mutation. +func (m *AudienceMemberMutation) SubscriberID() (r string, exists bool) { + v := m.subscriber + if v == nil { + return + } + return *v, true +} + +// OldSubscriberID returns the old "subscriber_id" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldSubscriberID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSubscriberID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSubscriberID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSubscriberID: %w", err) + } + return oldValue.SubscriberID, nil +} + +// ClearSubscriberID clears the value of the "subscriber_id" field. +func (m *AudienceMemberMutation) ClearSubscriberID() { + m.subscriber = nil + m.clearedFields[audiencemember.FieldSubscriberID] = struct{}{} +} + +// SubscriberIDCleared returns if the "subscriber_id" field was cleared in this mutation. +func (m *AudienceMemberMutation) SubscriberIDCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldSubscriberID] + return ok +} + +// ResetSubscriberID resets all changes to the "subscriber_id" field. +func (m *AudienceMemberMutation) ResetSubscriberID() { + m.subscriber = nil + delete(m.clearedFields, audiencemember.FieldSubscriberID) +} + +// SetEmail sets the "email" field. +func (m *AudienceMemberMutation) SetEmail(s string) { + m.email = &s +} + +// Email returns the value of the "email" field in the mutation. +func (m *AudienceMemberMutation) Email() (r string, exists bool) { + v := m.email + if v == nil { + return + } + return *v, true +} + +// OldEmail returns the old "email" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldEmail(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldEmail is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldEmail requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldEmail: %w", err) + } + return oldValue.Email, nil +} + +// ResetEmail resets all changes to the "email" field. +func (m *AudienceMemberMutation) ResetEmail() { + m.email = nil +} + +// SetFullName sets the "full_name" field. +func (m *AudienceMemberMutation) SetFullName(s string) { + m.full_name = &s +} + +// FullName returns the value of the "full_name" field in the mutation. +func (m *AudienceMemberMutation) FullName() (r string, exists bool) { + v := m.full_name + if v == nil { + return + } + return *v, true +} + +// OldFullName returns the old "full_name" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldFullName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFullName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFullName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFullName: %w", err) + } + return oldValue.FullName, nil +} + +// ClearFullName clears the value of the "full_name" field. +func (m *AudienceMemberMutation) ClearFullName() { + m.full_name = nil + m.clearedFields[audiencemember.FieldFullName] = struct{}{} +} + +// FullNameCleared returns if the "full_name" field was cleared in this mutation. +func (m *AudienceMemberMutation) FullNameCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldFullName] + return ok +} + +// ResetFullName resets all changes to the "full_name" field. +func (m *AudienceMemberMutation) ResetFullName() { + m.full_name = nil + delete(m.clearedFields, audiencemember.FieldFullName) +} + +// SetMetadata sets the "metadata" field. +func (m *AudienceMemberMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *AudienceMemberMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata + if v == nil { + return + } + return *v, true +} + +// OldMetadata returns the old "metadata" field's value of the AudienceMember entity. +// If the AudienceMember object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMetadata requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) + } + return oldValue.Metadata, nil +} + +// ClearMetadata clears the value of the "metadata" field. +func (m *AudienceMemberMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[audiencemember.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *AudienceMemberMutation) MetadataCleared() bool { + _, ok := m.clearedFields[audiencemember.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *AudienceMemberMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, audiencemember.FieldMetadata) +} + +// ClearOwner clears the "owner" edge to the Organization entity. +func (m *AudienceMemberMutation) ClearOwner() { + m.clearedowner = true + m.clearedFields[audiencemember.FieldOwnerID] = struct{}{} +} + +// OwnerCleared reports if the "owner" edge to the Organization entity was cleared. +func (m *AudienceMemberMutation) OwnerCleared() bool { + return m.OwnerIDCleared() || m.clearedowner +} + +// OwnerIDs returns the "owner" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// OwnerID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) OwnerIDs() (ids []string) { + if id := m.owner; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetOwner resets all changes to the "owner" edge. +func (m *AudienceMemberMutation) ResetOwner() { + m.owner = nil + m.clearedowner = false +} + +// ClearAudience clears the "audience" edge to the Audience entity. +func (m *AudienceMemberMutation) ClearAudience() { + m.clearedaudience = true + m.clearedFields[audiencemember.FieldAudienceID] = struct{}{} +} + +// AudienceCleared reports if the "audience" edge to the Audience entity was cleared. +func (m *AudienceMemberMutation) AudienceCleared() bool { + return m.clearedaudience +} + +// AudienceIDs returns the "audience" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// AudienceID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) AudienceIDs() (ids []string) { + if id := m.audience; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetAudience resets all changes to the "audience" edge. +func (m *AudienceMemberMutation) ResetAudience() { + m.audience = nil + m.clearedaudience = false +} + +// ClearContact clears the "contact" edge to the Contact entity. +func (m *AudienceMemberMutation) ClearContact() { + m.clearedcontact = true + m.clearedFields[audiencemember.FieldContactID] = struct{}{} +} + +// ContactCleared reports if the "contact" edge to the Contact entity was cleared. +func (m *AudienceMemberMutation) ContactCleared() bool { + return m.ContactIDCleared() || m.clearedcontact +} + +// ContactIDs returns the "contact" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// ContactID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) ContactIDs() (ids []string) { + if id := m.contact; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetContact resets all changes to the "contact" edge. +func (m *AudienceMemberMutation) ResetContact() { + m.contact = nil + m.clearedcontact = false +} + +// ClearUser clears the "user" edge to the User entity. +func (m *AudienceMemberMutation) ClearUser() { + m.cleareduser = true + m.clearedFields[audiencemember.FieldUserID] = struct{}{} +} + +// UserCleared reports if the "user" edge to the User entity was cleared. +func (m *AudienceMemberMutation) UserCleared() bool { + return m.UserIDCleared() || m.cleareduser +} + +// UserIDs returns the "user" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// UserID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) UserIDs() (ids []string) { + if id := m.user; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetUser resets all changes to the "user" edge. +func (m *AudienceMemberMutation) ResetUser() { + m.user = nil + m.cleareduser = false +} + +// ClearGroup clears the "group" edge to the Group entity. +func (m *AudienceMemberMutation) ClearGroup() { + m.clearedgroup = true + m.clearedFields[audiencemember.FieldGroupID] = struct{}{} +} + +// GroupCleared reports if the "group" edge to the Group entity was cleared. +func (m *AudienceMemberMutation) GroupCleared() bool { + return m.GroupIDCleared() || m.clearedgroup +} + +// GroupIDs returns the "group" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// GroupID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) GroupIDs() (ids []string) { + if id := m.group; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetGroup resets all changes to the "group" edge. +func (m *AudienceMemberMutation) ResetGroup() { + m.group = nil + m.clearedgroup = false +} + +// ClearIdentityHolder clears the "identity_holder" edge to the IdentityHolder entity. +func (m *AudienceMemberMutation) ClearIdentityHolder() { + m.clearedidentity_holder = true + m.clearedFields[audiencemember.FieldIdentityHolderID] = struct{}{} +} + +// IdentityHolderCleared reports if the "identity_holder" edge to the IdentityHolder entity was cleared. +func (m *AudienceMemberMutation) IdentityHolderCleared() bool { + return m.IdentityHolderIDCleared() || m.clearedidentity_holder +} + +// IdentityHolderIDs returns the "identity_holder" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// IdentityHolderID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) IdentityHolderIDs() (ids []string) { + if id := m.identity_holder; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetIdentityHolder resets all changes to the "identity_holder" edge. +func (m *AudienceMemberMutation) ResetIdentityHolder() { + m.identity_holder = nil + m.clearedidentity_holder = false +} + +// ClearSubscriber clears the "subscriber" edge to the Subscriber entity. +func (m *AudienceMemberMutation) ClearSubscriber() { + m.clearedsubscriber = true + m.clearedFields[audiencemember.FieldSubscriberID] = struct{}{} +} + +// SubscriberCleared reports if the "subscriber" edge to the Subscriber entity was cleared. +func (m *AudienceMemberMutation) SubscriberCleared() bool { + return m.SubscriberIDCleared() || m.clearedsubscriber +} + +// SubscriberIDs returns the "subscriber" edge IDs in the mutation. +// Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use +// SubscriberID instead. It exists only for internal usage by the builders. +func (m *AudienceMemberMutation) SubscriberIDs() (ids []string) { + if id := m.subscriber; id != nil { + ids = append(ids, *id) + } + return +} + +// ResetSubscriber resets all changes to the "subscriber" edge. +func (m *AudienceMemberMutation) ResetSubscriber() { + m.subscriber = nil + m.clearedsubscriber = false +} + +// Where appends a list predicates to the AudienceMemberMutation builder. +func (m *AudienceMemberMutation) Where(ps ...predicate.AudienceMember) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the AudienceMemberMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *AudienceMemberMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.AudienceMember, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *AudienceMemberMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *AudienceMemberMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (AudienceMember). +func (m *AudienceMemberMutation) Type() string { + return m.typ +} + +// Fields returns all fields that were changed during this mutation. Note that in +// order to get all numeric fields that were incremented/decremented, call +// AddedFields(). +func (m *AudienceMemberMutation) Fields() []string { + fields := make([]string, 0, 19) + if m.created_at != nil { + fields = append(fields, audiencemember.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, audiencemember.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, audiencemember.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, audiencemember.FieldUpdatedBy) + } + if m.updated_by_impersonator != nil { + fields = append(fields, audiencemember.FieldUpdatedByImpersonator) + } + if m.deleted_at != nil { + fields = append(fields, audiencemember.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, audiencemember.FieldDeletedBy) + } + if m.display_id != nil { + fields = append(fields, audiencemember.FieldDisplayID) + } + if m.tags != nil { + fields = append(fields, audiencemember.FieldTags) + } + if m.owner != nil { + fields = append(fields, audiencemember.FieldOwnerID) + } + if m.audience != nil { + fields = append(fields, audiencemember.FieldAudienceID) + } + if m.contact != nil { + fields = append(fields, audiencemember.FieldContactID) + } + if m.user != nil { + fields = append(fields, audiencemember.FieldUserID) + } + if m.group != nil { + fields = append(fields, audiencemember.FieldGroupID) + } + if m.identity_holder != nil { + fields = append(fields, audiencemember.FieldIdentityHolderID) + } + if m.subscriber != nil { + fields = append(fields, audiencemember.FieldSubscriberID) + } + if m.email != nil { + fields = append(fields, audiencemember.FieldEmail) + } + if m.full_name != nil { + fields = append(fields, audiencemember.FieldFullName) + } + if m.metadata != nil { + fields = append(fields, audiencemember.FieldMetadata) + } + return fields +} + +// Field returns the value of a field with the given name. The second boolean +// return value indicates that this field was not set, or was not defined in the +// schema. +func (m *AudienceMemberMutation) Field(name string) (ent.Value, bool) { + switch name { + case audiencemember.FieldCreatedAt: + return m.CreatedAt() + case audiencemember.FieldUpdatedAt: + return m.UpdatedAt() + case audiencemember.FieldCreatedBy: + return m.CreatedBy() + case audiencemember.FieldUpdatedBy: + return m.UpdatedBy() + case audiencemember.FieldUpdatedByImpersonator: + return m.UpdatedByImpersonator() + case audiencemember.FieldDeletedAt: + return m.DeletedAt() + case audiencemember.FieldDeletedBy: + return m.DeletedBy() + case audiencemember.FieldDisplayID: + return m.DisplayID() + case audiencemember.FieldTags: + return m.Tags() + case audiencemember.FieldOwnerID: + return m.OwnerID() + case audiencemember.FieldAudienceID: + return m.AudienceID() + case audiencemember.FieldContactID: + return m.ContactID() + case audiencemember.FieldUserID: + return m.UserID() + case audiencemember.FieldGroupID: + return m.GroupID() + case audiencemember.FieldIdentityHolderID: + return m.IdentityHolderID() + case audiencemember.FieldSubscriberID: + return m.SubscriberID() + case audiencemember.FieldEmail: + return m.Email() + case audiencemember.FieldFullName: + return m.FullName() + case audiencemember.FieldMetadata: + return m.Metadata() + } + return nil, false +} + +// OldField returns the old value of the field from the database. An error is +// returned if the mutation operation is not UpdateOne, or the query to the +// database failed. +func (m *AudienceMemberMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case audiencemember.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case audiencemember.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case audiencemember.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case audiencemember.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case audiencemember.FieldUpdatedByImpersonator: + return m.OldUpdatedByImpersonator(ctx) + case audiencemember.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case audiencemember.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case audiencemember.FieldDisplayID: + return m.OldDisplayID(ctx) + case audiencemember.FieldTags: + return m.OldTags(ctx) + case audiencemember.FieldOwnerID: + return m.OldOwnerID(ctx) + case audiencemember.FieldAudienceID: + return m.OldAudienceID(ctx) + case audiencemember.FieldContactID: + return m.OldContactID(ctx) + case audiencemember.FieldUserID: + return m.OldUserID(ctx) + case audiencemember.FieldGroupID: + return m.OldGroupID(ctx) + case audiencemember.FieldIdentityHolderID: + return m.OldIdentityHolderID(ctx) + case audiencemember.FieldSubscriberID: + return m.OldSubscriberID(ctx) + case audiencemember.FieldEmail: + return m.OldEmail(ctx) + case audiencemember.FieldFullName: + return m.OldFullName(ctx) + case audiencemember.FieldMetadata: + return m.OldMetadata(ctx) + } + return nil, fmt.Errorf("unknown AudienceMember field %s", name) +} + +// SetField sets the value of a field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMemberMutation) SetField(name string, value ent.Value) error { + switch name { + case audiencemember.FieldCreatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedAt(v) + return nil + case audiencemember.FieldUpdatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedAt(v) + return nil + case audiencemember.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case audiencemember.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case audiencemember.FieldUpdatedByImpersonator: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedByImpersonator(v) + return nil + case audiencemember.FieldDeletedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedAt(v) + return nil + case audiencemember.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case audiencemember.FieldDisplayID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayID(v) + return nil + case audiencemember.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case audiencemember.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case audiencemember.FieldAudienceID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAudienceID(v) + return nil + case audiencemember.FieldContactID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetContactID(v) + return nil + case audiencemember.FieldUserID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUserID(v) + return nil + case audiencemember.FieldGroupID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetGroupID(v) + return nil + case audiencemember.FieldIdentityHolderID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetIdentityHolderID(v) + return nil + case audiencemember.FieldSubscriberID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSubscriberID(v) + return nil + case audiencemember.FieldEmail: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetEmail(v) + return nil + case audiencemember.FieldFullName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFullName(v) + return nil + case audiencemember.FieldMetadata: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMetadata(v) + return nil + } + return fmt.Errorf("unknown AudienceMember field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *AudienceMemberMutation) AddedFields() []string { + return nil +} + +// AddedField returns the numeric value that was incremented/decremented on a field +// with the given name. The second boolean return value indicates that this field +// was not set, or was not defined in the schema. +func (m *AudienceMemberMutation) AddedField(name string) (ent.Value, bool) { + return nil, false +} + +// AddField adds the value to the field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMemberMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown AudienceMember numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *AudienceMemberMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(audiencemember.FieldCreatedAt) { + fields = append(fields, audiencemember.FieldCreatedAt) + } + if m.FieldCleared(audiencemember.FieldUpdatedAt) { + fields = append(fields, audiencemember.FieldUpdatedAt) + } + if m.FieldCleared(audiencemember.FieldCreatedBy) { + fields = append(fields, audiencemember.FieldCreatedBy) + } + if m.FieldCleared(audiencemember.FieldUpdatedBy) { + fields = append(fields, audiencemember.FieldUpdatedBy) + } + if m.FieldCleared(audiencemember.FieldUpdatedByImpersonator) { + fields = append(fields, audiencemember.FieldUpdatedByImpersonator) + } + if m.FieldCleared(audiencemember.FieldDeletedAt) { + fields = append(fields, audiencemember.FieldDeletedAt) + } + if m.FieldCleared(audiencemember.FieldDeletedBy) { + fields = append(fields, audiencemember.FieldDeletedBy) + } + if m.FieldCleared(audiencemember.FieldTags) { + fields = append(fields, audiencemember.FieldTags) + } + if m.FieldCleared(audiencemember.FieldOwnerID) { + fields = append(fields, audiencemember.FieldOwnerID) + } + if m.FieldCleared(audiencemember.FieldContactID) { + fields = append(fields, audiencemember.FieldContactID) + } + if m.FieldCleared(audiencemember.FieldUserID) { + fields = append(fields, audiencemember.FieldUserID) + } + if m.FieldCleared(audiencemember.FieldGroupID) { + fields = append(fields, audiencemember.FieldGroupID) + } + if m.FieldCleared(audiencemember.FieldIdentityHolderID) { + fields = append(fields, audiencemember.FieldIdentityHolderID) + } + if m.FieldCleared(audiencemember.FieldSubscriberID) { + fields = append(fields, audiencemember.FieldSubscriberID) + } + if m.FieldCleared(audiencemember.FieldFullName) { + fields = append(fields, audiencemember.FieldFullName) + } + if m.FieldCleared(audiencemember.FieldMetadata) { + fields = append(fields, audiencemember.FieldMetadata) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *AudienceMemberMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok +} + +// ClearField clears the value of the field with the given name. It returns an +// error if the field is not defined in the schema. +func (m *AudienceMemberMutation) ClearField(name string) error { + switch name { + case audiencemember.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case audiencemember.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case audiencemember.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case audiencemember.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case audiencemember.FieldUpdatedByImpersonator: + m.ClearUpdatedByImpersonator() + return nil + case audiencemember.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case audiencemember.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case audiencemember.FieldTags: + m.ClearTags() + return nil + case audiencemember.FieldOwnerID: + m.ClearOwnerID() + return nil + case audiencemember.FieldContactID: + m.ClearContactID() + return nil + case audiencemember.FieldUserID: + m.ClearUserID() + return nil + case audiencemember.FieldGroupID: + m.ClearGroupID() + return nil + case audiencemember.FieldIdentityHolderID: + m.ClearIdentityHolderID() + return nil + case audiencemember.FieldSubscriberID: + m.ClearSubscriberID() + return nil + case audiencemember.FieldFullName: + m.ClearFullName() + return nil + case audiencemember.FieldMetadata: + m.ClearMetadata() + return nil + } + return fmt.Errorf("unknown AudienceMember nullable field %s", name) +} + +// ResetField resets all changes in the mutation for the field with the given name. +// It returns an error if the field is not defined in the schema. +func (m *AudienceMemberMutation) ResetField(name string) error { + switch name { + case audiencemember.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case audiencemember.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case audiencemember.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case audiencemember.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case audiencemember.FieldUpdatedByImpersonator: + m.ResetUpdatedByImpersonator() + return nil + case audiencemember.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case audiencemember.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case audiencemember.FieldDisplayID: + m.ResetDisplayID() + return nil + case audiencemember.FieldTags: + m.ResetTags() + return nil + case audiencemember.FieldOwnerID: + m.ResetOwnerID() + return nil + case audiencemember.FieldAudienceID: + m.ResetAudienceID() + return nil + case audiencemember.FieldContactID: + m.ResetContactID() + return nil + case audiencemember.FieldUserID: + m.ResetUserID() + return nil + case audiencemember.FieldGroupID: + m.ResetGroupID() + return nil + case audiencemember.FieldIdentityHolderID: + m.ResetIdentityHolderID() + return nil + case audiencemember.FieldSubscriberID: + m.ResetSubscriberID() + return nil + case audiencemember.FieldEmail: + m.ResetEmail() + return nil + case audiencemember.FieldFullName: + m.ResetFullName() + return nil + case audiencemember.FieldMetadata: + m.ResetMetadata() + return nil + } + return fmt.Errorf("unknown AudienceMember field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *AudienceMemberMutation) AddedEdges() []string { + edges := make([]string, 0, 7) + if m.owner != nil { + edges = append(edges, audiencemember.EdgeOwner) + } + if m.audience != nil { + edges = append(edges, audiencemember.EdgeAudience) + } + if m.contact != nil { + edges = append(edges, audiencemember.EdgeContact) + } + if m.user != nil { + edges = append(edges, audiencemember.EdgeUser) + } + if m.group != nil { + edges = append(edges, audiencemember.EdgeGroup) + } + if m.identity_holder != nil { + edges = append(edges, audiencemember.EdgeIdentityHolder) + } + if m.subscriber != nil { + edges = append(edges, audiencemember.EdgeSubscriber) + } + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *AudienceMemberMutation) AddedIDs(name string) []ent.Value { + switch name { + case audiencemember.EdgeOwner: + if id := m.owner; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeAudience: + if id := m.audience; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeContact: + if id := m.contact; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeUser: + if id := m.user; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeGroup: + if id := m.group; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeIdentityHolder: + if id := m.identity_holder; id != nil { + return []ent.Value{*id} + } + case audiencemember.EdgeSubscriber: + if id := m.subscriber; id != nil { + return []ent.Value{*id} + } + } + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *AudienceMemberMutation) RemovedEdges() []string { + edges := make([]string, 0, 7) + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *AudienceMemberMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *AudienceMemberMutation) ClearedEdges() []string { + edges := make([]string, 0, 7) + if m.clearedowner { + edges = append(edges, audiencemember.EdgeOwner) + } + if m.clearedaudience { + edges = append(edges, audiencemember.EdgeAudience) + } + if m.clearedcontact { + edges = append(edges, audiencemember.EdgeContact) + } + if m.cleareduser { + edges = append(edges, audiencemember.EdgeUser) + } + if m.clearedgroup { + edges = append(edges, audiencemember.EdgeGroup) + } + if m.clearedidentity_holder { + edges = append(edges, audiencemember.EdgeIdentityHolder) + } + if m.clearedsubscriber { + edges = append(edges, audiencemember.EdgeSubscriber) + } + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *AudienceMemberMutation) EdgeCleared(name string) bool { + switch name { + case audiencemember.EdgeOwner: + return m.clearedowner + case audiencemember.EdgeAudience: + return m.clearedaudience + case audiencemember.EdgeContact: + return m.clearedcontact + case audiencemember.EdgeUser: + return m.cleareduser + case audiencemember.EdgeGroup: + return m.clearedgroup + case audiencemember.EdgeIdentityHolder: + return m.clearedidentity_holder + case audiencemember.EdgeSubscriber: + return m.clearedsubscriber + } + return false +} + +// ClearEdge clears the value of the edge with the given name. It returns an error +// if that edge is not defined in the schema. +func (m *AudienceMemberMutation) ClearEdge(name string) error { + switch name { + case audiencemember.EdgeOwner: + m.ClearOwner() + return nil + case audiencemember.EdgeAudience: + m.ClearAudience() + return nil + case audiencemember.EdgeContact: + m.ClearContact() + return nil + case audiencemember.EdgeUser: + m.ClearUser() + return nil + case audiencemember.EdgeGroup: + m.ClearGroup() + return nil + case audiencemember.EdgeIdentityHolder: + m.ClearIdentityHolder() + return nil + case audiencemember.EdgeSubscriber: + m.ClearSubscriber() + return nil + } + return fmt.Errorf("unknown AudienceMember unique edge %s", name) +} + +// ResetEdge resets all changes to the edge with the given name in this mutation. +// It returns an error if the edge is not defined in the schema. +func (m *AudienceMemberMutation) ResetEdge(name string) error { + switch name { + case audiencemember.EdgeOwner: + m.ResetOwner() + return nil + case audiencemember.EdgeAudience: + m.ResetAudience() + return nil + case audiencemember.EdgeContact: + m.ResetContact() + return nil + case audiencemember.EdgeUser: + m.ResetUser() + return nil + case audiencemember.EdgeGroup: + m.ResetGroup() + return nil + case audiencemember.EdgeIdentityHolder: + m.ResetIdentityHolder() + return nil + case audiencemember.EdgeSubscriber: + m.ResetSubscriber() + return nil + } + return fmt.Errorf("unknown AudienceMember edge %s", name) +} + // CampaignMutation represents an operation that mutates the Campaign nodes in the graph. type CampaignMutation struct { config @@ -18832,6 +22601,9 @@ type CampaignMutation struct { identity_holders map[string]struct{} removedidentity_holders map[string]struct{} clearedidentity_holders bool + audiences map[string]struct{} + removedaudiences map[string]struct{} + clearedaudiences bool controls map[string]struct{} removedcontrols map[string]struct{} clearedcontrols bool @@ -21735,6 +25507,60 @@ func (m *CampaignMutation) ResetIdentityHolders() { m.removedidentity_holders = nil } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by ids. +func (m *CampaignMutation) AddAudienceIDs(ids ...string) { + if m.audiences == nil { + m.audiences = make(map[string]struct{}) + } + for i := range ids { + m.audiences[ids[i]] = struct{}{} + } +} + +// ClearAudiences clears the "audiences" edge to the Audience entity. +func (m *CampaignMutation) ClearAudiences() { + m.clearedaudiences = true +} + +// AudiencesCleared reports if the "audiences" edge to the Audience entity was cleared. +func (m *CampaignMutation) AudiencesCleared() bool { + return m.clearedaudiences +} + +// RemoveAudienceIDs removes the "audiences" edge to the Audience entity by IDs. +func (m *CampaignMutation) RemoveAudienceIDs(ids ...string) { + if m.removedaudiences == nil { + m.removedaudiences = make(map[string]struct{}) + } + for i := range ids { + delete(m.audiences, ids[i]) + m.removedaudiences[ids[i]] = struct{}{} + } +} + +// RemovedAudiences returns the removed IDs of the "audiences" edge to the Audience entity. +func (m *CampaignMutation) RemovedAudiencesIDs() (ids []string) { + for id := range m.removedaudiences { + ids = append(ids, id) + } + return +} + +// AudiencesIDs returns the "audiences" edge IDs in the mutation. +func (m *CampaignMutation) AudiencesIDs() (ids []string) { + for id := range m.audiences { + ids = append(ids, id) + } + return +} + +// ResetAudiences resets all changes to the "audiences" edge. +func (m *CampaignMutation) ResetAudiences() { + m.audiences = nil + m.clearedaudiences = false + m.removedaudiences = nil +} + // AddControlIDs adds the "controls" edge to the Control entity by ids. func (m *CampaignMutation) AddControlIDs(ids ...string) { if m.controls == nil { @@ -22931,7 +26757,7 @@ func (m *CampaignMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *CampaignMutation) AddedEdges() []string { - edges := make([]string, 0, 20) + edges := make([]string, 0, 21) if m.owner != nil { edges = append(edges, campaign.EdgeOwner) } @@ -22986,6 +26812,9 @@ func (m *CampaignMutation) AddedEdges() []string { if m.identity_holders != nil { edges = append(edges, campaign.EdgeIdentityHolders) } + if m.audiences != nil { + edges = append(edges, campaign.EdgeAudiences) + } if m.controls != nil { edges = append(edges, campaign.EdgeControls) } @@ -23089,6 +26918,12 @@ func (m *CampaignMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case campaign.EdgeAudiences: + ids := make([]ent.Value, 0, len(m.audiences)) + for id := range m.audiences { + ids = append(ids, id) + } + return ids case campaign.EdgeControls: ids := make([]ent.Value, 0, len(m.controls)) for id := range m.controls { @@ -23107,7 +26942,7 @@ func (m *CampaignMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *CampaignMutation) RemovedEdges() []string { - edges := make([]string, 0, 20) + edges := make([]string, 0, 21) if m.removedblocked_groups != nil { edges = append(edges, campaign.EdgeBlockedGroups) } @@ -23135,6 +26970,9 @@ func (m *CampaignMutation) RemovedEdges() []string { if m.removedidentity_holders != nil { edges = append(edges, campaign.EdgeIdentityHolders) } + if m.removedaudiences != nil { + edges = append(edges, campaign.EdgeAudiences) + } if m.removedcontrols != nil { edges = append(edges, campaign.EdgeControls) } @@ -23202,6 +27040,12 @@ func (m *CampaignMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case campaign.EdgeAudiences: + ids := make([]ent.Value, 0, len(m.removedaudiences)) + for id := range m.removedaudiences { + ids = append(ids, id) + } + return ids case campaign.EdgeControls: ids := make([]ent.Value, 0, len(m.removedcontrols)) for id := range m.removedcontrols { @@ -23220,7 +27064,7 @@ func (m *CampaignMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *CampaignMutation) ClearedEdges() []string { - edges := make([]string, 0, 20) + edges := make([]string, 0, 21) if m.clearedowner { edges = append(edges, campaign.EdgeOwner) } @@ -23275,6 +27119,9 @@ func (m *CampaignMutation) ClearedEdges() []string { if m.clearedidentity_holders { edges = append(edges, campaign.EdgeIdentityHolders) } + if m.clearedaudiences { + edges = append(edges, campaign.EdgeAudiences) + } if m.clearedcontrols { edges = append(edges, campaign.EdgeControls) } @@ -23324,6 +27171,8 @@ func (m *CampaignMutation) EdgeCleared(name string) bool { return m.clearedgroups case campaign.EdgeIdentityHolders: return m.clearedidentity_holders + case campaign.EdgeAudiences: + return m.clearedaudiences case campaign.EdgeControls: return m.clearedcontrols case campaign.EdgeWorkflowObjectRefs: @@ -23425,6 +27274,9 @@ func (m *CampaignMutation) ResetEdge(name string) error { case campaign.EdgeIdentityHolders: m.ResetIdentityHolders() return nil + case campaign.EdgeAudiences: + m.ResetAudiences() + return nil case campaign.EdgeControls: m.ResetControls() return nil @@ -27370,6 +31222,9 @@ type ContactMutation struct { campaign_targets map[string]struct{} removedcampaign_targets map[string]struct{} clearedcampaign_targets bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool files map[string]struct{} removedfiles map[string]struct{} clearedfiles bool @@ -28608,6 +32463,60 @@ func (m *ContactMutation) ResetCampaignTargets() { m.removedcampaign_targets = nil } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *ContactMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *ContactMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *ContactMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *ContactMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *ContactMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *ContactMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *ContactMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // AddFileIDs adds the "files" edge to the File entity by ids. func (m *ContactMutation) AddFileIDs(ids ...string) { if m.files == nil { @@ -29266,7 +33175,7 @@ func (m *ContactMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *ContactMutation) AddedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.owner != nil { edges = append(edges, contact.EdgeOwner) } @@ -29279,6 +33188,9 @@ func (m *ContactMutation) AddedEdges() []string { if m.campaign_targets != nil { edges = append(edges, contact.EdgeCampaignTargets) } + if m.audience_members != nil { + edges = append(edges, contact.EdgeAudienceMembers) + } if m.files != nil { edges = append(edges, contact.EdgeFiles) } @@ -29314,6 +33226,12 @@ func (m *ContactMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case contact.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids case contact.EdgeFiles: ids := make([]ent.Value, 0, len(m.files)) for id := range m.files { @@ -29332,7 +33250,7 @@ func (m *ContactMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *ContactMutation) RemovedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.removedentities != nil { edges = append(edges, contact.EdgeEntities) } @@ -29342,6 +33260,9 @@ func (m *ContactMutation) RemovedEdges() []string { if m.removedcampaign_targets != nil { edges = append(edges, contact.EdgeCampaignTargets) } + if m.removedaudience_members != nil { + edges = append(edges, contact.EdgeAudienceMembers) + } if m.removedfiles != nil { edges = append(edges, contact.EdgeFiles) } @@ -29373,6 +33294,12 @@ func (m *ContactMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case contact.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids case contact.EdgeFiles: ids := make([]ent.Value, 0, len(m.removedfiles)) for id := range m.removedfiles { @@ -29391,7 +33318,7 @@ func (m *ContactMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *ContactMutation) ClearedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.clearedowner { edges = append(edges, contact.EdgeOwner) } @@ -29404,6 +33331,9 @@ func (m *ContactMutation) ClearedEdges() []string { if m.clearedcampaign_targets { edges = append(edges, contact.EdgeCampaignTargets) } + if m.clearedaudience_members { + edges = append(edges, contact.EdgeAudienceMembers) + } if m.clearedfiles { edges = append(edges, contact.EdgeFiles) } @@ -29425,6 +33355,8 @@ func (m *ContactMutation) EdgeCleared(name string) bool { return m.clearedcampaigns case contact.EdgeCampaignTargets: return m.clearedcampaign_targets + case contact.EdgeAudienceMembers: + return m.clearedaudience_members case contact.EdgeFiles: return m.clearedfiles case contact.EdgeSubscribers: @@ -29460,6 +33392,9 @@ func (m *ContactMutation) ResetEdge(name string) error { case contact.EdgeCampaignTargets: m.ResetCampaignTargets() return nil + case contact.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil case contact.EdgeFiles: m.ResetFiles() return nil @@ -99128,6 +103063,15 @@ type GroupMutation struct { campaign_viewers map[string]struct{} removedcampaign_viewers map[string]struct{} clearedcampaign_viewers bool + audience_editors map[string]struct{} + removedaudience_editors map[string]struct{} + clearedaudience_editors bool + audience_blocked_groups map[string]struct{} + removedaudience_blocked_groups map[string]struct{} + clearedaudience_blocked_groups bool + audience_viewers map[string]struct{} + removedaudience_viewers map[string]struct{} + clearedaudience_viewers bool procedure_editors map[string]struct{} removedprocedure_editors map[string]struct{} clearedprocedure_editors bool @@ -99207,6 +103151,9 @@ type GroupMutation struct { campaign_targets map[string]struct{} removedcampaign_targets map[string]struct{} clearedcampaign_targets bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool invites map[string]struct{} removedinvites map[string]struct{} clearedinvites bool @@ -101814,6 +105761,168 @@ func (m *GroupMutation) ResetCampaignViewers() { m.removedcampaign_viewers = nil } +// AddAudienceEditorIDs adds the "audience_editors" edge to the Audience entity by ids. +func (m *GroupMutation) AddAudienceEditorIDs(ids ...string) { + if m.audience_editors == nil { + m.audience_editors = make(map[string]struct{}) + } + for i := range ids { + m.audience_editors[ids[i]] = struct{}{} + } +} + +// ClearAudienceEditors clears the "audience_editors" edge to the Audience entity. +func (m *GroupMutation) ClearAudienceEditors() { + m.clearedaudience_editors = true +} + +// AudienceEditorsCleared reports if the "audience_editors" edge to the Audience entity was cleared. +func (m *GroupMutation) AudienceEditorsCleared() bool { + return m.clearedaudience_editors +} + +// RemoveAudienceEditorIDs removes the "audience_editors" edge to the Audience entity by IDs. +func (m *GroupMutation) RemoveAudienceEditorIDs(ids ...string) { + if m.removedaudience_editors == nil { + m.removedaudience_editors = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_editors, ids[i]) + m.removedaudience_editors[ids[i]] = struct{}{} + } +} + +// RemovedAudienceEditors returns the removed IDs of the "audience_editors" edge to the Audience entity. +func (m *GroupMutation) RemovedAudienceEditorsIDs() (ids []string) { + for id := range m.removedaudience_editors { + ids = append(ids, id) + } + return +} + +// AudienceEditorsIDs returns the "audience_editors" edge IDs in the mutation. +func (m *GroupMutation) AudienceEditorsIDs() (ids []string) { + for id := range m.audience_editors { + ids = append(ids, id) + } + return +} + +// ResetAudienceEditors resets all changes to the "audience_editors" edge. +func (m *GroupMutation) ResetAudienceEditors() { + m.audience_editors = nil + m.clearedaudience_editors = false + m.removedaudience_editors = nil +} + +// AddAudienceBlockedGroupIDs adds the "audience_blocked_groups" edge to the Audience entity by ids. +func (m *GroupMutation) AddAudienceBlockedGroupIDs(ids ...string) { + if m.audience_blocked_groups == nil { + m.audience_blocked_groups = make(map[string]struct{}) + } + for i := range ids { + m.audience_blocked_groups[ids[i]] = struct{}{} + } +} + +// ClearAudienceBlockedGroups clears the "audience_blocked_groups" edge to the Audience entity. +func (m *GroupMutation) ClearAudienceBlockedGroups() { + m.clearedaudience_blocked_groups = true +} + +// AudienceBlockedGroupsCleared reports if the "audience_blocked_groups" edge to the Audience entity was cleared. +func (m *GroupMutation) AudienceBlockedGroupsCleared() bool { + return m.clearedaudience_blocked_groups +} + +// RemoveAudienceBlockedGroupIDs removes the "audience_blocked_groups" edge to the Audience entity by IDs. +func (m *GroupMutation) RemoveAudienceBlockedGroupIDs(ids ...string) { + if m.removedaudience_blocked_groups == nil { + m.removedaudience_blocked_groups = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_blocked_groups, ids[i]) + m.removedaudience_blocked_groups[ids[i]] = struct{}{} + } +} + +// RemovedAudienceBlockedGroups returns the removed IDs of the "audience_blocked_groups" edge to the Audience entity. +func (m *GroupMutation) RemovedAudienceBlockedGroupsIDs() (ids []string) { + for id := range m.removedaudience_blocked_groups { + ids = append(ids, id) + } + return +} + +// AudienceBlockedGroupsIDs returns the "audience_blocked_groups" edge IDs in the mutation. +func (m *GroupMutation) AudienceBlockedGroupsIDs() (ids []string) { + for id := range m.audience_blocked_groups { + ids = append(ids, id) + } + return +} + +// ResetAudienceBlockedGroups resets all changes to the "audience_blocked_groups" edge. +func (m *GroupMutation) ResetAudienceBlockedGroups() { + m.audience_blocked_groups = nil + m.clearedaudience_blocked_groups = false + m.removedaudience_blocked_groups = nil +} + +// AddAudienceViewerIDs adds the "audience_viewers" edge to the Audience entity by ids. +func (m *GroupMutation) AddAudienceViewerIDs(ids ...string) { + if m.audience_viewers == nil { + m.audience_viewers = make(map[string]struct{}) + } + for i := range ids { + m.audience_viewers[ids[i]] = struct{}{} + } +} + +// ClearAudienceViewers clears the "audience_viewers" edge to the Audience entity. +func (m *GroupMutation) ClearAudienceViewers() { + m.clearedaudience_viewers = true +} + +// AudienceViewersCleared reports if the "audience_viewers" edge to the Audience entity was cleared. +func (m *GroupMutation) AudienceViewersCleared() bool { + return m.clearedaudience_viewers +} + +// RemoveAudienceViewerIDs removes the "audience_viewers" edge to the Audience entity by IDs. +func (m *GroupMutation) RemoveAudienceViewerIDs(ids ...string) { + if m.removedaudience_viewers == nil { + m.removedaudience_viewers = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_viewers, ids[i]) + m.removedaudience_viewers[ids[i]] = struct{}{} + } +} + +// RemovedAudienceViewers returns the removed IDs of the "audience_viewers" edge to the Audience entity. +func (m *GroupMutation) RemovedAudienceViewersIDs() (ids []string) { + for id := range m.removedaudience_viewers { + ids = append(ids, id) + } + return +} + +// AudienceViewersIDs returns the "audience_viewers" edge IDs in the mutation. +func (m *GroupMutation) AudienceViewersIDs() (ids []string) { + for id := range m.audience_viewers { + ids = append(ids, id) + } + return +} + +// ResetAudienceViewers resets all changes to the "audience_viewers" edge. +func (m *GroupMutation) ResetAudienceViewers() { + m.audience_viewers = nil + m.clearedaudience_viewers = false + m.removedaudience_viewers = nil +} + // AddProcedureEditorIDs adds the "procedure_editors" edge to the Procedure entity by ids. func (m *GroupMutation) AddProcedureEditorIDs(ids ...string) { if m.procedure_editors == nil { @@ -103243,6 +107352,60 @@ func (m *GroupMutation) ResetCampaignTargets() { m.removedcampaign_targets = nil } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *GroupMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *GroupMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *GroupMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *GroupMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *GroupMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *GroupMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *GroupMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // AddInviteIDs adds the "invites" edge to the Invite entity by ids. func (m *GroupMutation) AddInviteIDs(ids ...string) { if m.invites == nil { @@ -104004,7 +108167,7 @@ func (m *GroupMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *GroupMutation) AddedEdges() []string { - edges := make([]string, 0, 54) + edges := make([]string, 0, 58) if m.owner != nil { edges = append(edges, group.EdgeOwner) } @@ -104080,6 +108243,15 @@ func (m *GroupMutation) AddedEdges() []string { if m.campaign_viewers != nil { edges = append(edges, group.EdgeCampaignViewers) } + if m.audience_editors != nil { + edges = append(edges, group.EdgeAudienceEditors) + } + if m.audience_blocked_groups != nil { + edges = append(edges, group.EdgeAudienceBlockedGroups) + } + if m.audience_viewers != nil { + edges = append(edges, group.EdgeAudienceViewers) + } if m.procedure_editors != nil { edges = append(edges, group.EdgeProcedureEditors) } @@ -104161,6 +108333,9 @@ func (m *GroupMutation) AddedEdges() []string { if m.campaign_targets != nil { edges = append(edges, group.EdgeCampaignTargets) } + if m.audience_members != nil { + edges = append(edges, group.EdgeAudienceMembers) + } if m.invites != nil { edges = append(edges, group.EdgeInvites) } @@ -104322,6 +108497,24 @@ func (m *GroupMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case group.EdgeAudienceEditors: + ids := make([]ent.Value, 0, len(m.audience_editors)) + for id := range m.audience_editors { + ids = append(ids, id) + } + return ids + case group.EdgeAudienceBlockedGroups: + ids := make([]ent.Value, 0, len(m.audience_blocked_groups)) + for id := range m.audience_blocked_groups { + ids = append(ids, id) + } + return ids + case group.EdgeAudienceViewers: + ids := make([]ent.Value, 0, len(m.audience_viewers)) + for id := range m.audience_viewers { + ids = append(ids, id) + } + return ids case group.EdgeProcedureEditors: ids := make([]ent.Value, 0, len(m.procedure_editors)) for id := range m.procedure_editors { @@ -104480,6 +108673,12 @@ func (m *GroupMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case group.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids case group.EdgeInvites: ids := make([]ent.Value, 0, len(m.invites)) for id := range m.invites { @@ -104498,7 +108697,7 @@ func (m *GroupMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *GroupMutation) RemovedEdges() []string { - edges := make([]string, 0, 54) + edges := make([]string, 0, 58) if m.removedprogram_editors != nil { edges = append(edges, group.EdgeProgramEditors) } @@ -104571,6 +108770,15 @@ func (m *GroupMutation) RemovedEdges() []string { if m.removedcampaign_viewers != nil { edges = append(edges, group.EdgeCampaignViewers) } + if m.removedaudience_editors != nil { + edges = append(edges, group.EdgeAudienceEditors) + } + if m.removedaudience_blocked_groups != nil { + edges = append(edges, group.EdgeAudienceBlockedGroups) + } + if m.removedaudience_viewers != nil { + edges = append(edges, group.EdgeAudienceViewers) + } if m.removedprocedure_editors != nil { edges = append(edges, group.EdgeProcedureEditors) } @@ -104646,6 +108854,9 @@ func (m *GroupMutation) RemovedEdges() []string { if m.removedcampaign_targets != nil { edges = append(edges, group.EdgeCampaignTargets) } + if m.removedaudience_members != nil { + edges = append(edges, group.EdgeAudienceMembers) + } if m.removedinvites != nil { edges = append(edges, group.EdgeInvites) } @@ -104803,6 +109014,24 @@ func (m *GroupMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case group.EdgeAudienceEditors: + ids := make([]ent.Value, 0, len(m.removedaudience_editors)) + for id := range m.removedaudience_editors { + ids = append(ids, id) + } + return ids + case group.EdgeAudienceBlockedGroups: + ids := make([]ent.Value, 0, len(m.removedaudience_blocked_groups)) + for id := range m.removedaudience_blocked_groups { + ids = append(ids, id) + } + return ids + case group.EdgeAudienceViewers: + ids := make([]ent.Value, 0, len(m.removedaudience_viewers)) + for id := range m.removedaudience_viewers { + ids = append(ids, id) + } + return ids case group.EdgeProcedureEditors: ids := make([]ent.Value, 0, len(m.removedprocedure_editors)) for id := range m.removedprocedure_editors { @@ -104953,6 +109182,12 @@ func (m *GroupMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case group.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids case group.EdgeInvites: ids := make([]ent.Value, 0, len(m.removedinvites)) for id := range m.removedinvites { @@ -104971,7 +109206,7 @@ func (m *GroupMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *GroupMutation) ClearedEdges() []string { - edges := make([]string, 0, 54) + edges := make([]string, 0, 58) if m.clearedowner { edges = append(edges, group.EdgeOwner) } @@ -105047,6 +109282,15 @@ func (m *GroupMutation) ClearedEdges() []string { if m.clearedcampaign_viewers { edges = append(edges, group.EdgeCampaignViewers) } + if m.clearedaudience_editors { + edges = append(edges, group.EdgeAudienceEditors) + } + if m.clearedaudience_blocked_groups { + edges = append(edges, group.EdgeAudienceBlockedGroups) + } + if m.clearedaudience_viewers { + edges = append(edges, group.EdgeAudienceViewers) + } if m.clearedprocedure_editors { edges = append(edges, group.EdgeProcedureEditors) } @@ -105128,6 +109372,9 @@ func (m *GroupMutation) ClearedEdges() []string { if m.clearedcampaign_targets { edges = append(edges, group.EdgeCampaignTargets) } + if m.clearedaudience_members { + edges = append(edges, group.EdgeAudienceMembers) + } if m.clearedinvites { edges = append(edges, group.EdgeInvites) } @@ -105191,6 +109438,12 @@ func (m *GroupMutation) EdgeCleared(name string) bool { return m.clearedcampaign_blocked_groups case group.EdgeCampaignViewers: return m.clearedcampaign_viewers + case group.EdgeAudienceEditors: + return m.clearedaudience_editors + case group.EdgeAudienceBlockedGroups: + return m.clearedaudience_blocked_groups + case group.EdgeAudienceViewers: + return m.clearedaudience_viewers case group.EdgeProcedureEditors: return m.clearedprocedure_editors case group.EdgeProcedureBlockedGroups: @@ -105245,6 +109498,8 @@ func (m *GroupMutation) EdgeCleared(name string) bool { return m.clearedcampaigns case group.EdgeCampaignTargets: return m.clearedcampaign_targets + case group.EdgeAudienceMembers: + return m.clearedaudience_members case group.EdgeInvites: return m.clearedinvites case group.EdgeMembers: @@ -105349,6 +109604,15 @@ func (m *GroupMutation) ResetEdge(name string) error { case group.EdgeCampaignViewers: m.ResetCampaignViewers() return nil + case group.EdgeAudienceEditors: + m.ResetAudienceEditors() + return nil + case group.EdgeAudienceBlockedGroups: + m.ResetAudienceBlockedGroups() + return nil + case group.EdgeAudienceViewers: + m.ResetAudienceViewers() + return nil case group.EdgeProcedureEditors: m.ResetProcedureEditors() return nil @@ -105430,6 +109694,9 @@ func (m *GroupMutation) ResetEdge(name string) error { case group.EdgeCampaignTargets: m.ResetCampaignTargets() return nil + case group.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil case group.EdgeInvites: m.ResetInvites() return nil @@ -109784,6 +114051,9 @@ type IdentityHolderMutation struct { campaigns map[string]struct{} removedcampaigns map[string]struct{} clearedcampaigns bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool tasks map[string]struct{} removedtasks map[string]struct{} clearedtasks bool @@ -112655,6 +116925,60 @@ func (m *IdentityHolderMutation) ResetCampaigns() { m.removedcampaigns = nil } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *IdentityHolderMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *IdentityHolderMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *IdentityHolderMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *IdentityHolderMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *IdentityHolderMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *IdentityHolderMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *IdentityHolderMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // AddTaskIDs adds the "tasks" edge to the Task entity by ids. func (m *IdentityHolderMutation) AddTaskIDs(ids ...string) { if m.tasks == nil { @@ -113986,7 +118310,7 @@ func (m *IdentityHolderMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *IdentityHolderMutation) AddedEdges() []string { - edges := make([]string, 0, 26) + edges := make([]string, 0, 27) if m.owner != nil { edges = append(edges, identityholder.EdgeOwner) } @@ -114044,6 +118368,9 @@ func (m *IdentityHolderMutation) AddedEdges() []string { if m.campaigns != nil { edges = append(edges, identityholder.EdgeCampaigns) } + if m.audience_members != nil { + edges = append(edges, identityholder.EdgeAudienceMembers) + } if m.tasks != nil { edges = append(edges, identityholder.EdgeTasks) } @@ -114174,6 +118501,12 @@ func (m *IdentityHolderMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case identityholder.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids case identityholder.EdgeTasks: ids := make([]ent.Value, 0, len(m.tasks)) for id := range m.tasks { @@ -114220,7 +118553,7 @@ func (m *IdentityHolderMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *IdentityHolderMutation) RemovedEdges() []string { - edges := make([]string, 0, 26) + edges := make([]string, 0, 27) if m.removedblocked_groups != nil { edges = append(edges, identityholder.EdgeBlockedGroups) } @@ -114260,6 +118593,9 @@ func (m *IdentityHolderMutation) RemovedEdges() []string { if m.removedcampaigns != nil { edges = append(edges, identityholder.EdgeCampaigns) } + if m.removedaudience_members != nil { + edges = append(edges, identityholder.EdgeAudienceMembers) + } if m.removedtasks != nil { edges = append(edges, identityholder.EdgeTasks) } @@ -114363,6 +118699,12 @@ func (m *IdentityHolderMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case identityholder.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids case identityholder.EdgeTasks: ids := make([]ent.Value, 0, len(m.removedtasks)) for id := range m.removedtasks { @@ -114405,7 +118747,7 @@ func (m *IdentityHolderMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *IdentityHolderMutation) ClearedEdges() []string { - edges := make([]string, 0, 26) + edges := make([]string, 0, 27) if m.clearedowner { edges = append(edges, identityholder.EdgeOwner) } @@ -114463,6 +118805,9 @@ func (m *IdentityHolderMutation) ClearedEdges() []string { if m.clearedcampaigns { edges = append(edges, identityholder.EdgeCampaigns) } + if m.clearedaudience_members { + edges = append(edges, identityholder.EdgeAudienceMembers) + } if m.clearedtasks { edges = append(edges, identityholder.EdgeTasks) } @@ -114529,6 +118874,8 @@ func (m *IdentityHolderMutation) EdgeCleared(name string) bool { return m.clearedplatforms case identityholder.EdgeCampaigns: return m.clearedcampaigns + case identityholder.EdgeAudienceMembers: + return m.clearedaudience_members case identityholder.EdgeTasks: return m.clearedtasks case identityholder.EdgeFiles: @@ -114637,6 +118984,9 @@ func (m *IdentityHolderMutation) ResetEdge(name string) error { case identityholder.EdgeCampaigns: m.ResetCampaigns() return nil + case identityholder.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil case identityholder.EdgeTasks: m.ResetTasks() return nil @@ -156584,6 +160934,12 @@ type OrganizationMutation struct { asset_creators map[string]struct{} removedasset_creators map[string]struct{} clearedasset_creators bool + audience_creators map[string]struct{} + removedaudience_creators map[string]struct{} + clearedaudience_creators bool + audience_member_creators map[string]struct{} + removedaudience_member_creators map[string]struct{} + clearedaudience_member_creators bool campaign_creators map[string]struct{} removedcampaign_creators map[string]struct{} clearedcampaign_creators bool @@ -156962,6 +161318,12 @@ type OrganizationMutation struct { exports map[string]struct{} removedexports map[string]struct{} clearedexports bool + audiences map[string]struct{} + removedaudiences map[string]struct{} + clearedaudiences bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool trust_center_watermark_configs map[string]struct{} removedtrust_center_watermark_configs map[string]struct{} clearedtrust_center_watermark_configs bool @@ -158240,6 +162602,114 @@ func (m *OrganizationMutation) ResetAssetCreators() { m.removedasset_creators = nil } +// AddAudienceCreatorIDs adds the "audience_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddAudienceCreatorIDs(ids ...string) { + if m.audience_creators == nil { + m.audience_creators = make(map[string]struct{}) + } + for i := range ids { + m.audience_creators[ids[i]] = struct{}{} + } +} + +// ClearAudienceCreators clears the "audience_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearAudienceCreators() { + m.clearedaudience_creators = true +} + +// AudienceCreatorsCleared reports if the "audience_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) AudienceCreatorsCleared() bool { + return m.clearedaudience_creators +} + +// RemoveAudienceCreatorIDs removes the "audience_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveAudienceCreatorIDs(ids ...string) { + if m.removedaudience_creators == nil { + m.removedaudience_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_creators, ids[i]) + m.removedaudience_creators[ids[i]] = struct{}{} + } +} + +// RemovedAudienceCreators returns the removed IDs of the "audience_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedAudienceCreatorsIDs() (ids []string) { + for id := range m.removedaudience_creators { + ids = append(ids, id) + } + return +} + +// AudienceCreatorsIDs returns the "audience_creators" edge IDs in the mutation. +func (m *OrganizationMutation) AudienceCreatorsIDs() (ids []string) { + for id := range m.audience_creators { + ids = append(ids, id) + } + return +} + +// ResetAudienceCreators resets all changes to the "audience_creators" edge. +func (m *OrganizationMutation) ResetAudienceCreators() { + m.audience_creators = nil + m.clearedaudience_creators = false + m.removedaudience_creators = nil +} + +// AddAudienceMemberCreatorIDs adds the "audience_member_creators" edge to the Group entity by ids. +func (m *OrganizationMutation) AddAudienceMemberCreatorIDs(ids ...string) { + if m.audience_member_creators == nil { + m.audience_member_creators = make(map[string]struct{}) + } + for i := range ids { + m.audience_member_creators[ids[i]] = struct{}{} + } +} + +// ClearAudienceMemberCreators clears the "audience_member_creators" edge to the Group entity. +func (m *OrganizationMutation) ClearAudienceMemberCreators() { + m.clearedaudience_member_creators = true +} + +// AudienceMemberCreatorsCleared reports if the "audience_member_creators" edge to the Group entity was cleared. +func (m *OrganizationMutation) AudienceMemberCreatorsCleared() bool { + return m.clearedaudience_member_creators +} + +// RemoveAudienceMemberCreatorIDs removes the "audience_member_creators" edge to the Group entity by IDs. +func (m *OrganizationMutation) RemoveAudienceMemberCreatorIDs(ids ...string) { + if m.removedaudience_member_creators == nil { + m.removedaudience_member_creators = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_member_creators, ids[i]) + m.removedaudience_member_creators[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMemberCreators returns the removed IDs of the "audience_member_creators" edge to the Group entity. +func (m *OrganizationMutation) RemovedAudienceMemberCreatorsIDs() (ids []string) { + for id := range m.removedaudience_member_creators { + ids = append(ids, id) + } + return +} + +// AudienceMemberCreatorsIDs returns the "audience_member_creators" edge IDs in the mutation. +func (m *OrganizationMutation) AudienceMemberCreatorsIDs() (ids []string) { + for id := range m.audience_member_creators { + ids = append(ids, id) + } + return +} + +// ResetAudienceMemberCreators resets all changes to the "audience_member_creators" edge. +func (m *OrganizationMutation) ResetAudienceMemberCreators() { + m.audience_member_creators = nil + m.clearedaudience_member_creators = false + m.removedaudience_member_creators = nil +} + // AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by ids. func (m *OrganizationMutation) AddCampaignCreatorIDs(ids ...string) { if m.campaign_creators == nil { @@ -165055,6 +169525,114 @@ func (m *OrganizationMutation) ResetExports() { m.removedexports = nil } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by ids. +func (m *OrganizationMutation) AddAudienceIDs(ids ...string) { + if m.audiences == nil { + m.audiences = make(map[string]struct{}) + } + for i := range ids { + m.audiences[ids[i]] = struct{}{} + } +} + +// ClearAudiences clears the "audiences" edge to the Audience entity. +func (m *OrganizationMutation) ClearAudiences() { + m.clearedaudiences = true +} + +// AudiencesCleared reports if the "audiences" edge to the Audience entity was cleared. +func (m *OrganizationMutation) AudiencesCleared() bool { + return m.clearedaudiences +} + +// RemoveAudienceIDs removes the "audiences" edge to the Audience entity by IDs. +func (m *OrganizationMutation) RemoveAudienceIDs(ids ...string) { + if m.removedaudiences == nil { + m.removedaudiences = make(map[string]struct{}) + } + for i := range ids { + delete(m.audiences, ids[i]) + m.removedaudiences[ids[i]] = struct{}{} + } +} + +// RemovedAudiences returns the removed IDs of the "audiences" edge to the Audience entity. +func (m *OrganizationMutation) RemovedAudiencesIDs() (ids []string) { + for id := range m.removedaudiences { + ids = append(ids, id) + } + return +} + +// AudiencesIDs returns the "audiences" edge IDs in the mutation. +func (m *OrganizationMutation) AudiencesIDs() (ids []string) { + for id := range m.audiences { + ids = append(ids, id) + } + return +} + +// ResetAudiences resets all changes to the "audiences" edge. +func (m *OrganizationMutation) ResetAudiences() { + m.audiences = nil + m.clearedaudiences = false + m.removedaudiences = nil +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *OrganizationMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *OrganizationMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *OrganizationMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *OrganizationMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *OrganizationMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *OrganizationMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *OrganizationMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // AddTrustCenterWatermarkConfigIDs adds the "trust_center_watermark_configs" edge to the TrustCenterWatermarkConfig entity by ids. func (m *OrganizationMutation) AddTrustCenterWatermarkConfigIDs(ids ...string) { if m.trust_center_watermark_configs == nil { @@ -167034,7 +171612,7 @@ 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, 158) + edges := make([]string, 0, 162) if m.action_plan_creators != nil { edges = append(edges, organization.EdgeActionPlanCreators) } @@ -167047,6 +171625,12 @@ func (m *OrganizationMutation) AddedEdges() []string { if m.asset_creators != nil { edges = append(edges, organization.EdgeAssetCreators) } + if m.audience_creators != nil { + edges = append(edges, organization.EdgeAudienceCreators) + } + if m.audience_member_creators != nil { + edges = append(edges, organization.EdgeAudienceMemberCreators) + } if m.campaign_creators != nil { edges = append(edges, organization.EdgeCampaignCreators) } @@ -167428,6 +172012,12 @@ func (m *OrganizationMutation) AddedEdges() []string { if m.exports != nil { edges = append(edges, organization.EdgeExports) } + if m.audiences != nil { + edges = append(edges, organization.EdgeAudiences) + } + if m.audience_members != nil { + edges = append(edges, organization.EdgeAudienceMembers) + } if m.trust_center_watermark_configs != nil { edges = append(edges, organization.EdgeTrustCenterWatermarkConfigs) } @@ -167540,6 +172130,18 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeAudienceCreators: + ids := make([]ent.Value, 0, len(m.audience_creators)) + for id := range m.audience_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAudienceMemberCreators: + ids := make([]ent.Value, 0, len(m.audience_member_creators)) + for id := range m.audience_member_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 { @@ -168296,6 +172898,18 @@ func (m *OrganizationMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeAudiences: + ids := make([]ent.Value, 0, len(m.audiences)) + for id := range m.audiences { + ids = append(ids, id) + } + return ids + case organization.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids case organization.EdgeTrustCenterWatermarkConfigs: ids := make([]ent.Value, 0, len(m.trust_center_watermark_configs)) for id := range m.trust_center_watermark_configs { @@ -168464,7 +173078,7 @@ 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, 158) + edges := make([]string, 0, 162) if m.removedaction_plan_creators != nil { edges = append(edges, organization.EdgeActionPlanCreators) } @@ -168477,6 +173091,12 @@ func (m *OrganizationMutation) RemovedEdges() []string { if m.removedasset_creators != nil { edges = append(edges, organization.EdgeAssetCreators) } + if m.removedaudience_creators != nil { + edges = append(edges, organization.EdgeAudienceCreators) + } + if m.removedaudience_member_creators != nil { + edges = append(edges, organization.EdgeAudienceMemberCreators) + } if m.removedcampaign_creators != nil { edges = append(edges, organization.EdgeCampaignCreators) } @@ -168849,6 +173469,12 @@ func (m *OrganizationMutation) RemovedEdges() []string { if m.removedexports != nil { edges = append(edges, organization.EdgeExports) } + if m.removedaudiences != nil { + edges = append(edges, organization.EdgeAudiences) + } + if m.removedaudience_members != nil { + edges = append(edges, organization.EdgeAudienceMembers) + } if m.removedtrust_center_watermark_configs != nil { edges = append(edges, organization.EdgeTrustCenterWatermarkConfigs) } @@ -168961,6 +173587,18 @@ func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeAudienceCreators: + ids := make([]ent.Value, 0, len(m.removedaudience_creators)) + for id := range m.removedaudience_creators { + ids = append(ids, id) + } + return ids + case organization.EdgeAudienceMemberCreators: + ids := make([]ent.Value, 0, len(m.removedaudience_member_creators)) + for id := range m.removedaudience_member_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 { @@ -169705,6 +174343,18 @@ func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case organization.EdgeAudiences: + ids := make([]ent.Value, 0, len(m.removedaudiences)) + for id := range m.removedaudiences { + ids = append(ids, id) + } + return ids + case organization.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids case organization.EdgeTrustCenterWatermarkConfigs: ids := make([]ent.Value, 0, len(m.removedtrust_center_watermark_configs)) for id := range m.removedtrust_center_watermark_configs { @@ -169873,7 +174523,7 @@ 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, 158) + edges := make([]string, 0, 162) if m.clearedaction_plan_creators { edges = append(edges, organization.EdgeActionPlanCreators) } @@ -169886,6 +174536,12 @@ func (m *OrganizationMutation) ClearedEdges() []string { if m.clearedasset_creators { edges = append(edges, organization.EdgeAssetCreators) } + if m.clearedaudience_creators { + edges = append(edges, organization.EdgeAudienceCreators) + } + if m.clearedaudience_member_creators { + edges = append(edges, organization.EdgeAudienceMemberCreators) + } if m.clearedcampaign_creators { edges = append(edges, organization.EdgeCampaignCreators) } @@ -170267,6 +174923,12 @@ func (m *OrganizationMutation) ClearedEdges() []string { if m.clearedexports { edges = append(edges, organization.EdgeExports) } + if m.clearedaudiences { + edges = append(edges, organization.EdgeAudiences) + } + if m.clearedaudience_members { + edges = append(edges, organization.EdgeAudienceMembers) + } if m.clearedtrust_center_watermark_configs { edges = append(edges, organization.EdgeTrustCenterWatermarkConfigs) } @@ -170363,6 +175025,10 @@ func (m *OrganizationMutation) EdgeCleared(name string) bool { return m.clearedassessment_creators case organization.EdgeAssetCreators: return m.clearedasset_creators + case organization.EdgeAudienceCreators: + return m.clearedaudience_creators + case organization.EdgeAudienceMemberCreators: + return m.clearedaudience_member_creators case organization.EdgeCampaignCreators: return m.clearedcampaign_creators case organization.EdgeCampaignTargetCreators: @@ -170617,6 +175283,10 @@ func (m *OrganizationMutation) EdgeCleared(name string) bool { return m.clearedsubprocessors case organization.EdgeExports: return m.clearedexports + case organization.EdgeAudiences: + return m.clearedaudiences + case organization.EdgeAudienceMembers: + return m.clearedaudience_members case organization.EdgeTrustCenterWatermarkConfigs: return m.clearedtrust_center_watermark_configs case organization.EdgeImpersonationEvents: @@ -170708,6 +175378,12 @@ func (m *OrganizationMutation) ResetEdge(name string) error { case organization.EdgeAssetCreators: m.ResetAssetCreators() return nil + case organization.EdgeAudienceCreators: + m.ResetAudienceCreators() + return nil + case organization.EdgeAudienceMemberCreators: + m.ResetAudienceMemberCreators() + return nil case organization.EdgeCampaignCreators: m.ResetCampaignCreators() return nil @@ -171089,6 +175765,12 @@ func (m *OrganizationMutation) ResetEdge(name string) error { case organization.EdgeExports: m.ResetExports() return nil + case organization.EdgeAudiences: + m.ResetAudiences() + return nil + case organization.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil case organization.EdgeTrustCenterWatermarkConfigs: m.ResetTrustCenterWatermarkConfigs() return nil @@ -226218,6 +230900,9 @@ type SubscriberMutation struct { clearedcontact bool user *string cleareduser bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool done bool oldValue func(context.Context) (*Subscriber, error) predicates []predicate.Subscriber @@ -227540,6 +232225,60 @@ func (m *SubscriberMutation) ResetUser() { m.cleareduser = false } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *SubscriberMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *SubscriberMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *SubscriberMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *SubscriberMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *SubscriberMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *SubscriberMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *SubscriberMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // Where appends a list predicates to the SubscriberMutation builder. func (m *SubscriberMutation) Where(ps ...predicate.Subscriber) { m.predicates = append(m.predicates, ps...) @@ -228126,7 +232865,7 @@ func (m *SubscriberMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *SubscriberMutation) AddedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.owner != nil { edges = append(edges, subscriber.EdgeOwner) } @@ -228145,6 +232884,9 @@ func (m *SubscriberMutation) AddedEdges() []string { if m.user != nil { edges = append(edges, subscriber.EdgeUser) } + if m.audience_members != nil { + edges = append(edges, subscriber.EdgeAudienceMembers) + } return edges } @@ -228180,19 +232922,28 @@ func (m *SubscriberMutation) AddedIDs(name string) []ent.Value { if id := m.user; id != nil { return []ent.Value{*id} } + case subscriber.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids } return nil } // RemovedEdges returns all edge names that were removed in this mutation. func (m *SubscriberMutation) RemovedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.removedevents != nil { edges = append(edges, subscriber.EdgeEvents) } if m.removedcampaign_targets != nil { edges = append(edges, subscriber.EdgeCampaignTargets) } + if m.removedaudience_members != nil { + edges = append(edges, subscriber.EdgeAudienceMembers) + } return edges } @@ -228212,13 +232963,19 @@ func (m *SubscriberMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case subscriber.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids } return nil } // ClearedEdges returns all edge names that were cleared in this mutation. func (m *SubscriberMutation) ClearedEdges() []string { - edges := make([]string, 0, 6) + edges := make([]string, 0, 7) if m.clearedowner { edges = append(edges, subscriber.EdgeOwner) } @@ -228237,6 +232994,9 @@ func (m *SubscriberMutation) ClearedEdges() []string { if m.cleareduser { edges = append(edges, subscriber.EdgeUser) } + if m.clearedaudience_members { + edges = append(edges, subscriber.EdgeAudienceMembers) + } return edges } @@ -228256,6 +233016,8 @@ func (m *SubscriberMutation) EdgeCleared(name string) bool { return m.clearedcontact case subscriber.EdgeUser: return m.cleareduser + case subscriber.EdgeAudienceMembers: + return m.clearedaudience_members } return false } @@ -228302,6 +233064,9 @@ func (m *SubscriberMutation) ResetEdge(name string) error { case subscriber.EdgeUser: m.ResetUser() return nil + case subscriber.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil } return fmt.Errorf("unknown Subscriber edge %s", name) } @@ -258762,6 +263527,9 @@ type UserMutation struct { campaign_targets map[string]struct{} removedcampaign_targets map[string]struct{} clearedcampaign_targets bool + audience_members map[string]struct{} + removedaudience_members map[string]struct{} + clearedaudience_members bool subcontrols map[string]struct{} removedsubcontrols map[string]struct{} clearedsubcontrols bool @@ -260926,6 +265694,60 @@ func (m *UserMutation) ResetCampaignTargets() { m.removedcampaign_targets = nil } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by ids. +func (m *UserMutation) AddAudienceMemberIDs(ids ...string) { + if m.audience_members == nil { + m.audience_members = make(map[string]struct{}) + } + for i := range ids { + m.audience_members[ids[i]] = struct{}{} + } +} + +// ClearAudienceMembers clears the "audience_members" edge to the AudienceMember entity. +func (m *UserMutation) ClearAudienceMembers() { + m.clearedaudience_members = true +} + +// AudienceMembersCleared reports if the "audience_members" edge to the AudienceMember entity was cleared. +func (m *UserMutation) AudienceMembersCleared() bool { + return m.clearedaudience_members +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to the AudienceMember entity by IDs. +func (m *UserMutation) RemoveAudienceMemberIDs(ids ...string) { + if m.removedaudience_members == nil { + m.removedaudience_members = make(map[string]struct{}) + } + for i := range ids { + delete(m.audience_members, ids[i]) + m.removedaudience_members[ids[i]] = struct{}{} + } +} + +// RemovedAudienceMembers returns the removed IDs of the "audience_members" edge to the AudienceMember entity. +func (m *UserMutation) RemovedAudienceMembersIDs() (ids []string) { + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return +} + +// AudienceMembersIDs returns the "audience_members" edge IDs in the mutation. +func (m *UserMutation) AudienceMembersIDs() (ids []string) { + for id := range m.audience_members { + ids = append(ids, id) + } + return +} + +// ResetAudienceMembers resets all changes to the "audience_members" edge. +func (m *UserMutation) ResetAudienceMembers() { + m.audience_members = nil + m.clearedaudience_members = false + m.removedaudience_members = nil +} + // AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by ids. func (m *UserMutation) AddSubcontrolIDs(ids ...string) { if m.subcontrols == nil { @@ -262267,7 +267089,7 @@ func (m *UserMutation) ResetField(name string) error { // AddedEdges returns all edge names that were set/added in this mutation. func (m *UserMutation) AddedEdges() []string { - edges := make([]string, 0, 27) + edges := make([]string, 0, 28) if m.personal_access_tokens != nil { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -262313,6 +267135,9 @@ func (m *UserMutation) AddedEdges() []string { if m.campaign_targets != nil { edges = append(edges, user.EdgeCampaignTargets) } + if m.audience_members != nil { + edges = append(edges, user.EdgeAudienceMembers) + } if m.subcontrols != nil { edges = append(edges, user.EdgeSubcontrols) } @@ -262442,6 +267267,12 @@ func (m *UserMutation) AddedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case user.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.audience_members)) + for id := range m.audience_members { + ids = append(ids, id) + } + return ids case user.EdgeSubcontrols: ids := make([]ent.Value, 0, len(m.subcontrols)) for id := range m.subcontrols { @@ -262520,7 +267351,7 @@ func (m *UserMutation) AddedIDs(name string) []ent.Value { // RemovedEdges returns all edge names that were removed in this mutation. func (m *UserMutation) RemovedEdges() []string { - edges := make([]string, 0, 27) + edges := make([]string, 0, 28) if m.removedpersonal_access_tokens != nil { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -262560,6 +267391,9 @@ func (m *UserMutation) RemovedEdges() []string { if m.removedcampaign_targets != nil { edges = append(edges, user.EdgeCampaignTargets) } + if m.removedaudience_members != nil { + edges = append(edges, user.EdgeAudienceMembers) + } if m.removedsubcontrols != nil { edges = append(edges, user.EdgeSubcontrols) } @@ -262681,6 +267515,12 @@ func (m *UserMutation) RemovedIDs(name string) []ent.Value { ids = append(ids, id) } return ids + case user.EdgeAudienceMembers: + ids := make([]ent.Value, 0, len(m.removedaudience_members)) + for id := range m.removedaudience_members { + ids = append(ids, id) + } + return ids case user.EdgeSubcontrols: ids := make([]ent.Value, 0, len(m.removedsubcontrols)) for id := range m.removedsubcontrols { @@ -262759,7 +267599,7 @@ func (m *UserMutation) RemovedIDs(name string) []ent.Value { // ClearedEdges returns all edge names that were cleared in this mutation. func (m *UserMutation) ClearedEdges() []string { - edges := make([]string, 0, 27) + edges := make([]string, 0, 28) if m.clearedpersonal_access_tokens { edges = append(edges, user.EdgePersonalAccessTokens) } @@ -262805,6 +267645,9 @@ func (m *UserMutation) ClearedEdges() []string { if m.clearedcampaign_targets { edges = append(edges, user.EdgeCampaignTargets) } + if m.clearedaudience_members { + edges = append(edges, user.EdgeAudienceMembers) + } if m.clearedsubcontrols { edges = append(edges, user.EdgeSubcontrols) } @@ -262878,6 +267721,8 @@ func (m *UserMutation) EdgeCleared(name string) bool { return m.clearedcampaigns case user.EdgeCampaignTargets: return m.clearedcampaign_targets + case user.EdgeAudienceMembers: + return m.clearedaudience_members case user.EdgeSubcontrols: return m.clearedsubcontrols case user.EdgeAssignerTasks: @@ -262969,6 +267814,9 @@ func (m *UserMutation) ResetEdge(name string) error { case user.EdgeCampaignTargets: m.ResetCampaignTargets() return nil + case user.EdgeAudienceMembers: + m.ResetAudienceMembers() + return nil case user.EdgeSubcontrols: m.ResetSubcontrols() return nil diff --git a/internal/ent/generated/organization.go b/internal/ent/generated/organization.go index 10933ea3c9..c30ac63c17 100644 --- a/internal/ent/generated/organization.go +++ b/internal/ent/generated/organization.go @@ -72,6 +72,10 @@ type OrganizationEdges struct { 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 audiences + AudienceCreators []*Group `json:"audience_creators,omitempty"` + // groups that are allowed to create audience_members + AudienceMemberCreators []*Group `json:"audience_member_creators,omitempty"` // groups that are allowed to create campaigns CampaignCreators []*Group `json:"campaign_creators,omitempty"` // groups that are allowed to create campaign_targets @@ -326,6 +330,10 @@ type OrganizationEdges struct { Subprocessors []*Subprocessor `json:"subprocessors,omitempty"` // Exports holds the value of the exports edge. Exports []*Export `json:"exports,omitempty"` + // Audiences holds the value of the audiences edge. + Audiences []*Audience `json:"audiences,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // TrustCenterWatermarkConfigs holds the value of the trust_center_watermark_configs edge. TrustCenterWatermarkConfigs []*TrustCenterWatermarkConfig `json:"trust_center_watermark_configs,omitempty"` // ImpersonationEvents holds the value of the impersonation_events edge. @@ -382,14 +390,16 @@ 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 [158]bool + loadedTypes [162]bool // totalCount holds the count of the edges above. - totalCount [150]map[string]int + totalCount [154]map[string]int namedActionPlanCreators map[string][]*Group namedAPITokenCreators map[string][]*Group namedAssessmentCreators map[string][]*Group namedAssetCreators map[string][]*Group + namedAudienceCreators map[string][]*Group + namedAudienceMemberCreators map[string][]*Group namedCampaignCreators map[string][]*Group namedCampaignTargetCreators map[string][]*Group namedCheckResultCreators map[string][]*Group @@ -514,6 +524,8 @@ type OrganizationEdges struct { namedSLADefinitions map[string][]*SLADefinition namedSubprocessors map[string][]*Subprocessor namedExports map[string][]*Export + namedAudiences map[string][]*Audience + namedAudienceMembers map[string][]*AudienceMember namedTrustCenterWatermarkConfigs map[string][]*TrustCenterWatermarkConfig namedImpersonationEvents map[string][]*ImpersonationEvent namedAssessments map[string][]*Assessment @@ -579,10 +591,28 @@ func (e OrganizationEdges) AssetCreatorsOrErr() ([]*Group, error) { return nil, &NotLoadedError{edge: "asset_creators"} } +// AudienceCreatorsOrErr returns the AudienceCreators value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AudienceCreatorsOrErr() ([]*Group, error) { + if e.loadedTypes[4] { + return e.AudienceCreators, nil + } + return nil, &NotLoadedError{edge: "audience_creators"} +} + +// AudienceMemberCreatorsOrErr returns the AudienceMemberCreators value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AudienceMemberCreatorsOrErr() ([]*Group, error) { + if e.loadedTypes[5] { + return e.AudienceMemberCreators, nil + } + return nil, &NotLoadedError{edge: "audience_member_creators"} +} + // CampaignCreatorsOrErr returns the CampaignCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CampaignCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[4] { + if e.loadedTypes[6] { return e.CampaignCreators, nil } return nil, &NotLoadedError{edge: "campaign_creators"} @@ -591,7 +621,7 @@ func (e OrganizationEdges) CampaignCreatorsOrErr() ([]*Group, error) { // CampaignTargetCreatorsOrErr returns the CampaignTargetCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CampaignTargetCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[5] { + if e.loadedTypes[7] { return e.CampaignTargetCreators, nil } return nil, &NotLoadedError{edge: "campaign_target_creators"} @@ -600,7 +630,7 @@ func (e OrganizationEdges) CampaignTargetCreatorsOrErr() ([]*Group, error) { // CheckResultCreatorsOrErr returns the CheckResultCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CheckResultCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[6] { + if e.loadedTypes[8] { return e.CheckResultCreators, nil } return nil, &NotLoadedError{edge: "check_result_creators"} @@ -609,7 +639,7 @@ func (e OrganizationEdges) CheckResultCreatorsOrErr() ([]*Group, error) { // ContactCreatorsOrErr returns the ContactCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ContactCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[7] { + if e.loadedTypes[9] { return e.ContactCreators, nil } return nil, &NotLoadedError{edge: "contact_creators"} @@ -618,7 +648,7 @@ func (e OrganizationEdges) ContactCreatorsOrErr() ([]*Group, error) { // ControlCreatorsOrErr returns the ControlCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ControlCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[8] { + if e.loadedTypes[10] { return e.ControlCreators, nil } return nil, &NotLoadedError{edge: "control_creators"} @@ -627,7 +657,7 @@ func (e OrganizationEdges) ControlCreatorsOrErr() ([]*Group, error) { // ControlImplementationCreatorsOrErr returns the ControlImplementationCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ControlImplementationCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[9] { + if e.loadedTypes[11] { return e.ControlImplementationCreators, nil } return nil, &NotLoadedError{edge: "control_implementation_creators"} @@ -636,7 +666,7 @@ func (e OrganizationEdges) ControlImplementationCreatorsOrErr() ([]*Group, error // ControlObjectiveCreatorsOrErr returns the ControlObjectiveCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ControlObjectiveCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[10] { + if e.loadedTypes[12] { return e.ControlObjectiveCreators, nil } return nil, &NotLoadedError{edge: "control_objective_creators"} @@ -645,7 +675,7 @@ func (e OrganizationEdges) ControlObjectiveCreatorsOrErr() ([]*Group, error) { // CustomDomainCreatorsOrErr returns the CustomDomainCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CustomDomainCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[11] { + if e.loadedTypes[13] { return e.CustomDomainCreators, nil } return nil, &NotLoadedError{edge: "custom_domain_creators"} @@ -654,7 +684,7 @@ func (e OrganizationEdges) CustomDomainCreatorsOrErr() ([]*Group, error) { // CustomTypeEnumCreatorsOrErr returns the CustomTypeEnumCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CustomTypeEnumCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[12] { + if e.loadedTypes[14] { return e.CustomTypeEnumCreators, nil } return nil, &NotLoadedError{edge: "custom_type_enum_creators"} @@ -663,7 +693,7 @@ func (e OrganizationEdges) CustomTypeEnumCreatorsOrErr() ([]*Group, error) { // DirectoryAccountCreatorsOrErr returns the DirectoryAccountCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DirectoryAccountCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[13] { + if e.loadedTypes[15] { return e.DirectoryAccountCreators, nil } return nil, &NotLoadedError{edge: "directory_account_creators"} @@ -672,7 +702,7 @@ func (e OrganizationEdges) DirectoryAccountCreatorsOrErr() ([]*Group, error) { // DirectoryGroupCreatorsOrErr returns the DirectoryGroupCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DirectoryGroupCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[14] { + if e.loadedTypes[16] { return e.DirectoryGroupCreators, nil } return nil, &NotLoadedError{edge: "directory_group_creators"} @@ -681,7 +711,7 @@ func (e OrganizationEdges) DirectoryGroupCreatorsOrErr() ([]*Group, error) { // DirectoryMembershipCreatorsOrErr returns the DirectoryMembershipCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DirectoryMembershipCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[15] { + if e.loadedTypes[17] { return e.DirectoryMembershipCreators, nil } return nil, &NotLoadedError{edge: "directory_membership_creators"} @@ -690,7 +720,7 @@ func (e OrganizationEdges) DirectoryMembershipCreatorsOrErr() ([]*Group, error) // DirectorySyncRunCreatorsOrErr returns the DirectorySyncRunCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DirectorySyncRunCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[16] { + if e.loadedTypes[18] { return e.DirectorySyncRunCreators, nil } return nil, &NotLoadedError{edge: "directory_sync_run_creators"} @@ -699,7 +729,7 @@ func (e OrganizationEdges) DirectorySyncRunCreatorsOrErr() ([]*Group, error) { // DiscussionCreatorsOrErr returns the DiscussionCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DiscussionCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[17] { + if e.loadedTypes[19] { return e.DiscussionCreators, nil } return nil, &NotLoadedError{edge: "discussion_creators"} @@ -708,7 +738,7 @@ func (e OrganizationEdges) DiscussionCreatorsOrErr() ([]*Group, error) { // DocumentDataCreatorsOrErr returns the DocumentDataCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DocumentDataCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[18] { + if e.loadedTypes[20] { return e.DocumentDataCreators, nil } return nil, &NotLoadedError{edge: "document_data_creators"} @@ -717,7 +747,7 @@ func (e OrganizationEdges) DocumentDataCreatorsOrErr() ([]*Group, error) { // EmailTemplateCreatorsOrErr returns the EmailTemplateCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EmailTemplateCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[19] { + if e.loadedTypes[21] { return e.EmailTemplateCreators, nil } return nil, &NotLoadedError{edge: "email_template_creators"} @@ -726,7 +756,7 @@ func (e OrganizationEdges) EmailTemplateCreatorsOrErr() ([]*Group, error) { // EntityCreatorsOrErr returns the EntityCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EntityCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[20] { + if e.loadedTypes[22] { return e.EntityCreators, nil } return nil, &NotLoadedError{edge: "entity_creators"} @@ -735,7 +765,7 @@ func (e OrganizationEdges) EntityCreatorsOrErr() ([]*Group, error) { // EntityTypeCreatorsOrErr returns the EntityTypeCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EntityTypeCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[21] { + if e.loadedTypes[23] { return e.EntityTypeCreators, nil } return nil, &NotLoadedError{edge: "entity_type_creators"} @@ -744,7 +774,7 @@ func (e OrganizationEdges) EntityTypeCreatorsOrErr() ([]*Group, error) { // EvidenceCreatorsOrErr returns the EvidenceCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EvidenceCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[22] { + if e.loadedTypes[24] { return e.EvidenceCreators, nil } return nil, &NotLoadedError{edge: "evidence_creators"} @@ -753,7 +783,7 @@ func (e OrganizationEdges) EvidenceCreatorsOrErr() ([]*Group, error) { // FileCreatorsOrErr returns the FileCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) FileCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[23] { + if e.loadedTypes[25] { return e.FileCreators, nil } return nil, &NotLoadedError{edge: "file_creators"} @@ -762,7 +792,7 @@ func (e OrganizationEdges) FileCreatorsOrErr() ([]*Group, error) { // FindingCreatorsOrErr returns the FindingCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) FindingCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[24] { + if e.loadedTypes[26] { return e.FindingCreators, nil } return nil, &NotLoadedError{edge: "finding_creators"} @@ -771,7 +801,7 @@ func (e OrganizationEdges) FindingCreatorsOrErr() ([]*Group, error) { // FindingControlCreatorsOrErr returns the FindingControlCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) FindingControlCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[25] { + if e.loadedTypes[27] { return e.FindingControlCreators, nil } return nil, &NotLoadedError{edge: "finding_control_creators"} @@ -780,7 +810,7 @@ func (e OrganizationEdges) FindingControlCreatorsOrErr() ([]*Group, error) { // GroupCreatorsOrErr returns the GroupCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) GroupCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[26] { + if e.loadedTypes[28] { return e.GroupCreators, nil } return nil, &NotLoadedError{edge: "group_creators"} @@ -789,7 +819,7 @@ func (e OrganizationEdges) GroupCreatorsOrErr() ([]*Group, error) { // GroupMembershipCreatorsOrErr returns the GroupMembershipCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) GroupMembershipCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[27] { + if e.loadedTypes[29] { return e.GroupMembershipCreators, nil } return nil, &NotLoadedError{edge: "group_membership_creators"} @@ -798,7 +828,7 @@ func (e OrganizationEdges) GroupMembershipCreatorsOrErr() ([]*Group, error) { // GroupSettingCreatorsOrErr returns the GroupSettingCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) GroupSettingCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[28] { + if e.loadedTypes[30] { return e.GroupSettingCreators, nil } return nil, &NotLoadedError{edge: "group_setting_creators"} @@ -807,7 +837,7 @@ func (e OrganizationEdges) GroupSettingCreatorsOrErr() ([]*Group, error) { // HushCreatorsOrErr returns the HushCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) HushCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[29] { + if e.loadedTypes[31] { return e.HushCreators, nil } return nil, &NotLoadedError{edge: "hush_creators"} @@ -816,7 +846,7 @@ func (e OrganizationEdges) HushCreatorsOrErr() ([]*Group, error) { // IdentityHolderCreatorsOrErr returns the IdentityHolderCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) IdentityHolderCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[30] { + if e.loadedTypes[32] { return e.IdentityHolderCreators, nil } return nil, &NotLoadedError{edge: "identity_holder_creators"} @@ -825,7 +855,7 @@ func (e OrganizationEdges) IdentityHolderCreatorsOrErr() ([]*Group, error) { // 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[31] { + if e.loadedTypes[33] { return e.InternalPolicyCreators, nil } return nil, &NotLoadedError{edge: "internal_policy_creators"} @@ -834,7 +864,7 @@ func (e OrganizationEdges) InternalPolicyCreatorsOrErr() ([]*Group, error) { // InviteCreatorsOrErr returns the InviteCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) InviteCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[32] { + if e.loadedTypes[34] { return e.InviteCreators, nil } return nil, &NotLoadedError{edge: "invite_creators"} @@ -843,7 +873,7 @@ func (e OrganizationEdges) InviteCreatorsOrErr() ([]*Group, error) { // MappedControlCreatorsOrErr returns the MappedControlCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) MappedControlCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[33] { + if e.loadedTypes[35] { return e.MappedControlCreators, nil } return nil, &NotLoadedError{edge: "mapped_control_creators"} @@ -852,7 +882,7 @@ func (e OrganizationEdges) MappedControlCreatorsOrErr() ([]*Group, error) { // NarrativeCreatorsOrErr returns the NarrativeCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NarrativeCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[34] { + if e.loadedTypes[36] { return e.NarrativeCreators, nil } return nil, &NotLoadedError{edge: "narrative_creators"} @@ -861,7 +891,7 @@ func (e OrganizationEdges) NarrativeCreatorsOrErr() ([]*Group, error) { // NoteCreatorsOrErr returns the NoteCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NoteCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[35] { + if e.loadedTypes[37] { return e.NoteCreators, nil } return nil, &NotLoadedError{edge: "note_creators"} @@ -870,7 +900,7 @@ func (e OrganizationEdges) NoteCreatorsOrErr() ([]*Group, error) { // NotificationTemplateCreatorsOrErr returns the NotificationTemplateCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NotificationTemplateCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[36] { + if e.loadedTypes[38] { return e.NotificationTemplateCreators, nil } return nil, &NotLoadedError{edge: "notification_template_creators"} @@ -879,7 +909,7 @@ func (e OrganizationEdges) NotificationTemplateCreatorsOrErr() ([]*Group, error) // OrgMembershipCreatorsOrErr returns the OrgMembershipCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) OrgMembershipCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[37] { + if e.loadedTypes[39] { return e.OrgMembershipCreators, nil } return nil, &NotLoadedError{edge: "org_membership_creators"} @@ -888,7 +918,7 @@ func (e OrganizationEdges) OrgMembershipCreatorsOrErr() ([]*Group, error) { // PlatformCreatorsOrErr returns the PlatformCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) PlatformCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[38] { + if e.loadedTypes[40] { return e.PlatformCreators, nil } return nil, &NotLoadedError{edge: "platform_creators"} @@ -897,7 +927,7 @@ func (e OrganizationEdges) PlatformCreatorsOrErr() ([]*Group, error) { // ProcedureCreatorsOrErr returns the ProcedureCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ProcedureCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[39] { + if e.loadedTypes[41] { return e.ProcedureCreators, nil } return nil, &NotLoadedError{edge: "procedure_creators"} @@ -906,7 +936,7 @@ func (e OrganizationEdges) ProcedureCreatorsOrErr() ([]*Group, error) { // 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[40] { + if e.loadedTypes[42] { return e.ProgramCreators, nil } return nil, &NotLoadedError{edge: "program_creators"} @@ -915,7 +945,7 @@ func (e OrganizationEdges) ProgramCreatorsOrErr() ([]*Group, error) { // ProgramMembershipCreatorsOrErr returns the ProgramMembershipCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ProgramMembershipCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[41] { + if e.loadedTypes[43] { return e.ProgramMembershipCreators, nil } return nil, &NotLoadedError{edge: "program_membership_creators"} @@ -924,7 +954,7 @@ func (e OrganizationEdges) ProgramMembershipCreatorsOrErr() ([]*Group, error) { // RemediationCreatorsOrErr returns the RemediationCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) RemediationCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[42] { + if e.loadedTypes[44] { return e.RemediationCreators, nil } return nil, &NotLoadedError{edge: "remediation_creators"} @@ -933,7 +963,7 @@ func (e OrganizationEdges) RemediationCreatorsOrErr() ([]*Group, error) { // ReviewCreatorsOrErr returns the ReviewCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ReviewCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[43] { + if e.loadedTypes[45] { return e.ReviewCreators, nil } return nil, &NotLoadedError{edge: "review_creators"} @@ -942,7 +972,7 @@ func (e OrganizationEdges) ReviewCreatorsOrErr() ([]*Group, error) { // RiskCreatorsOrErr returns the RiskCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) RiskCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[44] { + if e.loadedTypes[46] { return e.RiskCreators, nil } return nil, &NotLoadedError{edge: "risk_creators"} @@ -951,7 +981,7 @@ func (e OrganizationEdges) RiskCreatorsOrErr() ([]*Group, error) { // ScanCreatorsOrErr returns the ScanCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ScanCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[45] { + if e.loadedTypes[47] { return e.ScanCreators, nil } return nil, &NotLoadedError{edge: "scan_creators"} @@ -960,7 +990,7 @@ func (e OrganizationEdges) ScanCreatorsOrErr() ([]*Group, error) { // SLADefinitionCreatorsOrErr returns the SLADefinitionCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SLADefinitionCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[46] { + if e.loadedTypes[48] { return e.SLADefinitionCreators, nil } return nil, &NotLoadedError{edge: "sla_definition_creators"} @@ -969,7 +999,7 @@ func (e OrganizationEdges) SLADefinitionCreatorsOrErr() ([]*Group, error) { // StandardCreatorsOrErr returns the StandardCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) StandardCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[47] { + if e.loadedTypes[49] { return e.StandardCreators, nil } return nil, &NotLoadedError{edge: "standard_creators"} @@ -978,7 +1008,7 @@ func (e OrganizationEdges) StandardCreatorsOrErr() ([]*Group, error) { // SubcontrolCreatorsOrErr returns the SubcontrolCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SubcontrolCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[48] { + if e.loadedTypes[50] { return e.SubcontrolCreators, nil } return nil, &NotLoadedError{edge: "subcontrol_creators"} @@ -987,7 +1017,7 @@ func (e OrganizationEdges) SubcontrolCreatorsOrErr() ([]*Group, error) { // SubprocessorCreatorsOrErr returns the SubprocessorCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SubprocessorCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[49] { + if e.loadedTypes[51] { return e.SubprocessorCreators, nil } return nil, &NotLoadedError{edge: "subprocessor_creators"} @@ -996,7 +1026,7 @@ func (e OrganizationEdges) SubprocessorCreatorsOrErr() ([]*Group, error) { // SubscriberCreatorsOrErr returns the SubscriberCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SubscriberCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[50] { + if e.loadedTypes[52] { return e.SubscriberCreators, nil } return nil, &NotLoadedError{edge: "subscriber_creators"} @@ -1005,7 +1035,7 @@ func (e OrganizationEdges) SubscriberCreatorsOrErr() ([]*Group, error) { // SystemDetailCreatorsOrErr returns the SystemDetailCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SystemDetailCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[51] { + if e.loadedTypes[53] { return e.SystemDetailCreators, nil } return nil, &NotLoadedError{edge: "system_detail_creators"} @@ -1014,7 +1044,7 @@ func (e OrganizationEdges) SystemDetailCreatorsOrErr() ([]*Group, error) { // TagDefinitionCreatorsOrErr returns the TagDefinitionCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TagDefinitionCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[52] { + if e.loadedTypes[54] { return e.TagDefinitionCreators, nil } return nil, &NotLoadedError{edge: "tag_definition_creators"} @@ -1023,7 +1053,7 @@ func (e OrganizationEdges) TagDefinitionCreatorsOrErr() ([]*Group, error) { // TaskCreatorsOrErr returns the TaskCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TaskCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[53] { + if e.loadedTypes[55] { return e.TaskCreators, nil } return nil, &NotLoadedError{edge: "task_creators"} @@ -1032,7 +1062,7 @@ func (e OrganizationEdges) TaskCreatorsOrErr() ([]*Group, error) { // TemplateCreatorsOrErr returns the TemplateCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TemplateCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[54] { + if e.loadedTypes[56] { return e.TemplateCreators, nil } return nil, &NotLoadedError{edge: "template_creators"} @@ -1041,7 +1071,7 @@ func (e OrganizationEdges) TemplateCreatorsOrErr() ([]*Group, error) { // TrustCenterCreatorsOrErr returns the TrustCenterCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[55] { + if e.loadedTypes[57] { return e.TrustCenterCreators, nil } return nil, &NotLoadedError{edge: "trust_center_creators"} @@ -1050,7 +1080,7 @@ func (e OrganizationEdges) TrustCenterCreatorsOrErr() ([]*Group, error) { // TrustCenterComplianceCreatorsOrErr returns the TrustCenterComplianceCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterComplianceCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[56] { + if e.loadedTypes[58] { return e.TrustCenterComplianceCreators, nil } return nil, &NotLoadedError{edge: "trust_center_compliance_creators"} @@ -1059,7 +1089,7 @@ func (e OrganizationEdges) TrustCenterComplianceCreatorsOrErr() ([]*Group, error // TrustCenterDocCreatorsOrErr returns the TrustCenterDocCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterDocCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[57] { + if e.loadedTypes[59] { return e.TrustCenterDocCreators, nil } return nil, &NotLoadedError{edge: "trust_center_doc_creators"} @@ -1068,7 +1098,7 @@ func (e OrganizationEdges) TrustCenterDocCreatorsOrErr() ([]*Group, error) { // TrustCenterEntityCreatorsOrErr returns the TrustCenterEntityCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterEntityCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[58] { + if e.loadedTypes[60] { return e.TrustCenterEntityCreators, nil } return nil, &NotLoadedError{edge: "trust_center_entity_creators"} @@ -1077,7 +1107,7 @@ func (e OrganizationEdges) TrustCenterEntityCreatorsOrErr() ([]*Group, error) { // TrustCenterFaqCreatorsOrErr returns the TrustCenterFaqCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterFaqCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[59] { + if e.loadedTypes[61] { return e.TrustCenterFaqCreators, nil } return nil, &NotLoadedError{edge: "trust_center_faq_creators"} @@ -1086,7 +1116,7 @@ func (e OrganizationEdges) TrustCenterFaqCreatorsOrErr() ([]*Group, error) { // TrustCenterNdaRequestCreatorsOrErr returns the TrustCenterNdaRequestCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterNdaRequestCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[60] { + if e.loadedTypes[62] { return e.TrustCenterNdaRequestCreators, nil } return nil, &NotLoadedError{edge: "trust_center_nda_request_creators"} @@ -1095,7 +1125,7 @@ func (e OrganizationEdges) TrustCenterNdaRequestCreatorsOrErr() ([]*Group, error // TrustCenterSubprocessorCreatorsOrErr returns the TrustCenterSubprocessorCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterSubprocessorCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[61] { + if e.loadedTypes[63] { return e.TrustCenterSubprocessorCreators, nil } return nil, &NotLoadedError{edge: "trust_center_subprocessor_creators"} @@ -1104,7 +1134,7 @@ func (e OrganizationEdges) TrustCenterSubprocessorCreatorsOrErr() ([]*Group, err // TrustCenterWatermarkConfigCreatorsOrErr returns the TrustCenterWatermarkConfigCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterWatermarkConfigCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[62] { + if e.loadedTypes[64] { return e.TrustCenterWatermarkConfigCreators, nil } return nil, &NotLoadedError{edge: "trust_center_watermark_config_creators"} @@ -1113,7 +1143,7 @@ func (e OrganizationEdges) TrustCenterWatermarkConfigCreatorsOrErr() ([]*Group, // VendorRiskScoreCreatorsOrErr returns the VendorRiskScoreCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) VendorRiskScoreCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[63] { + if e.loadedTypes[65] { return e.VendorRiskScoreCreators, nil } return nil, &NotLoadedError{edge: "vendor_risk_score_creators"} @@ -1122,7 +1152,7 @@ func (e OrganizationEdges) VendorRiskScoreCreatorsOrErr() ([]*Group, error) { // VendorScoringConfigCreatorsOrErr returns the VendorScoringConfigCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) VendorScoringConfigCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[64] { + if e.loadedTypes[66] { return e.VendorScoringConfigCreators, nil } return nil, &NotLoadedError{edge: "vendor_scoring_config_creators"} @@ -1131,7 +1161,7 @@ func (e OrganizationEdges) VendorScoringConfigCreatorsOrErr() ([]*Group, error) // VulnerabilityCreatorsOrErr returns the VulnerabilityCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) VulnerabilityCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[65] { + if e.loadedTypes[67] { return e.VulnerabilityCreators, nil } return nil, &NotLoadedError{edge: "vulnerability_creators"} @@ -1140,7 +1170,7 @@ func (e OrganizationEdges) VulnerabilityCreatorsOrErr() ([]*Group, error) { // WorkflowDefinitionCreatorsOrErr returns the WorkflowDefinitionCreators value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) WorkflowDefinitionCreatorsOrErr() ([]*Group, error) { - if e.loadedTypes[66] { + if e.loadedTypes[68] { return e.WorkflowDefinitionCreators, nil } return nil, &NotLoadedError{edge: "workflow_definition_creators"} @@ -1149,7 +1179,7 @@ func (e OrganizationEdges) WorkflowDefinitionCreatorsOrErr() ([]*Group, error) { // CampaignsManagerOrErr returns the CampaignsManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CampaignsManagerOrErr() ([]*Group, error) { - if e.loadedTypes[67] { + if e.loadedTypes[69] { return e.CampaignsManager, nil } return nil, &NotLoadedError{edge: "campaigns_manager"} @@ -1158,7 +1188,7 @@ func (e OrganizationEdges) CampaignsManagerOrErr() ([]*Group, error) { // ComplianceManagerOrErr returns the ComplianceManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ComplianceManagerOrErr() ([]*Group, error) { - if e.loadedTypes[68] { + if e.loadedTypes[70] { return e.ComplianceManager, nil } return nil, &NotLoadedError{edge: "compliance_manager"} @@ -1167,7 +1197,7 @@ func (e OrganizationEdges) ComplianceManagerOrErr() ([]*Group, error) { // GroupManagerOrErr returns the GroupManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) GroupManagerOrErr() ([]*Group, error) { - if e.loadedTypes[69] { + if e.loadedTypes[71] { return e.GroupManager, nil } return nil, &NotLoadedError{edge: "group_manager"} @@ -1176,7 +1206,7 @@ func (e OrganizationEdges) GroupManagerOrErr() ([]*Group, error) { // PoliciesManagerOrErr returns the PoliciesManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) PoliciesManagerOrErr() ([]*Group, error) { - if e.loadedTypes[70] { + if e.loadedTypes[72] { return e.PoliciesManager, nil } return nil, &NotLoadedError{edge: "policies_manager"} @@ -1185,7 +1215,7 @@ func (e OrganizationEdges) PoliciesManagerOrErr() ([]*Group, error) { // RegistryManagerOrErr returns the RegistryManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) RegistryManagerOrErr() ([]*Group, error) { - if e.loadedTypes[71] { + if e.loadedTypes[73] { return e.RegistryManager, nil } return nil, &NotLoadedError{edge: "registry_manager"} @@ -1194,7 +1224,7 @@ func (e OrganizationEdges) RegistryManagerOrErr() ([]*Group, error) { // RiskManagerOrErr returns the RiskManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) RiskManagerOrErr() ([]*Group, error) { - if e.loadedTypes[72] { + if e.loadedTypes[74] { return e.RiskManager, nil } return nil, &NotLoadedError{edge: "risk_manager"} @@ -1203,7 +1233,7 @@ func (e OrganizationEdges) RiskManagerOrErr() ([]*Group, error) { // TrustCenterManagerOrErr returns the TrustCenterManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TrustCenterManagerOrErr() ([]*Group, error) { - if e.loadedTypes[73] { + if e.loadedTypes[75] { return e.TrustCenterManager, nil } return nil, &NotLoadedError{edge: "trust_center_manager"} @@ -1212,7 +1242,7 @@ func (e OrganizationEdges) TrustCenterManagerOrErr() ([]*Group, error) { // WorkflowsManagerOrErr returns the WorkflowsManager value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) WorkflowsManagerOrErr() ([]*Group, error) { - if e.loadedTypes[74] { + if e.loadedTypes[76] { return e.WorkflowsManager, nil } return nil, &NotLoadedError{edge: "workflows_manager"} @@ -1223,7 +1253,7 @@ func (e OrganizationEdges) WorkflowsManagerOrErr() ([]*Group, error) { func (e OrganizationEdges) ParentOrErr() (*Organization, error) { if e.Parent != nil { return e.Parent, nil - } else if e.loadedTypes[75] { + } else if e.loadedTypes[77] { return nil, &NotFoundError{label: organization.Label} } return nil, &NotLoadedError{edge: "parent"} @@ -1232,7 +1262,7 @@ func (e OrganizationEdges) ParentOrErr() (*Organization, error) { // ChildrenOrErr returns the Children value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error) { - if e.loadedTypes[76] { + if e.loadedTypes[78] { return e.Children, nil } return nil, &NotLoadedError{edge: "children"} @@ -1243,7 +1273,7 @@ func (e OrganizationEdges) ChildrenOrErr() ([]*Organization, error) { func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error) { if e.Setting != nil { return e.Setting, nil - } else if e.loadedTypes[77] { + } else if e.loadedTypes[79] { return nil, &NotFoundError{label: organizationsetting.Label} } return nil, &NotLoadedError{edge: "setting"} @@ -1252,7 +1282,7 @@ func (e OrganizationEdges) SettingOrErr() (*OrganizationSetting, error) { // PersonalAccessTokensOrErr returns the PersonalAccessTokens value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, error) { - if e.loadedTypes[78] { + if e.loadedTypes[80] { return e.PersonalAccessTokens, nil } return nil, &NotLoadedError{edge: "personal_access_tokens"} @@ -1261,7 +1291,7 @@ func (e OrganizationEdges) PersonalAccessTokensOrErr() ([]*PersonalAccessToken, // APITokensOrErr returns the APITokens value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error) { - if e.loadedTypes[79] { + if e.loadedTypes[81] { return e.APITokens, nil } return nil, &NotLoadedError{edge: "api_tokens"} @@ -1270,7 +1300,7 @@ func (e OrganizationEdges) APITokensOrErr() ([]*APIToken, error) { // EmailTemplatesOrErr returns the EmailTemplates value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EmailTemplatesOrErr() ([]*EmailTemplate, error) { - if e.loadedTypes[80] { + if e.loadedTypes[82] { return e.EmailTemplates, nil } return nil, &NotLoadedError{edge: "email_templates"} @@ -1279,7 +1309,7 @@ func (e OrganizationEdges) EmailTemplatesOrErr() ([]*EmailTemplate, error) { // IntegrationWebhooksOrErr returns the IntegrationWebhooks value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) IntegrationWebhooksOrErr() ([]*IntegrationWebhook, error) { - if e.loadedTypes[81] { + if e.loadedTypes[83] { return e.IntegrationWebhooks, nil } return nil, &NotLoadedError{edge: "integration_webhooks"} @@ -1288,7 +1318,7 @@ func (e OrganizationEdges) IntegrationWebhooksOrErr() ([]*IntegrationWebhook, er // IntegrationRunsOrErr returns the IntegrationRuns value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) IntegrationRunsOrErr() ([]*IntegrationRun, error) { - if e.loadedTypes[82] { + if e.loadedTypes[84] { return e.IntegrationRuns, nil } return nil, &NotLoadedError{edge: "integration_runs"} @@ -1297,7 +1327,7 @@ func (e OrganizationEdges) IntegrationRunsOrErr() ([]*IntegrationRun, error) { // NotificationPreferencesOrErr returns the NotificationPreferences value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NotificationPreferencesOrErr() ([]*NotificationPreference, error) { - if e.loadedTypes[83] { + if e.loadedTypes[85] { return e.NotificationPreferences, nil } return nil, &NotLoadedError{edge: "notification_preferences"} @@ -1306,7 +1336,7 @@ func (e OrganizationEdges) NotificationPreferencesOrErr() ([]*NotificationPrefer // NotificationTemplatesOrErr returns the NotificationTemplates value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NotificationTemplatesOrErr() ([]*NotificationTemplate, error) { - if e.loadedTypes[84] { + if e.loadedTypes[86] { return e.NotificationTemplates, nil } return nil, &NotLoadedError{edge: "notification_templates"} @@ -1315,7 +1345,7 @@ func (e OrganizationEdges) NotificationTemplatesOrErr() ([]*NotificationTemplate // UsersOrErr returns the Users value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) UsersOrErr() ([]*User, error) { - if e.loadedTypes[85] { + if e.loadedTypes[87] { return e.Users, nil } return nil, &NotLoadedError{edge: "users"} @@ -1324,7 +1354,7 @@ func (e OrganizationEdges) UsersOrErr() ([]*User, error) { // FilesOrErr returns the Files value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) FilesOrErr() ([]*File, error) { - if e.loadedTypes[86] { + if e.loadedTypes[88] { return e.Files, nil } return nil, &NotLoadedError{edge: "files"} @@ -1333,7 +1363,7 @@ func (e OrganizationEdges) FilesOrErr() ([]*File, error) { // EventsOrErr returns the Events value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EventsOrErr() ([]*Event, error) { - if e.loadedTypes[87] { + if e.loadedTypes[89] { return e.Events, nil } return nil, &NotLoadedError{edge: "events"} @@ -1342,7 +1372,7 @@ func (e OrganizationEdges) EventsOrErr() ([]*Event, error) { // SecretsOrErr returns the Secrets value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SecretsOrErr() ([]*Hush, error) { - if e.loadedTypes[88] { + if e.loadedTypes[90] { return e.Secrets, nil } return nil, &NotLoadedError{edge: "secrets"} @@ -1353,7 +1383,7 @@ func (e OrganizationEdges) SecretsOrErr() ([]*Hush, error) { func (e OrganizationEdges) AvatarFileOrErr() (*File, error) { if e.AvatarFile != nil { return e.AvatarFile, nil - } else if e.loadedTypes[89] { + } else if e.loadedTypes[91] { return nil, &NotFoundError{label: file.Label} } return nil, &NotLoadedError{edge: "avatar_file"} @@ -1362,7 +1392,7 @@ func (e OrganizationEdges) AvatarFileOrErr() (*File, error) { // GroupsOrErr returns the Groups value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) GroupsOrErr() ([]*Group, error) { - if e.loadedTypes[90] { + if e.loadedTypes[92] { return e.Groups, nil } return nil, &NotLoadedError{edge: "groups"} @@ -1371,7 +1401,7 @@ func (e OrganizationEdges) GroupsOrErr() ([]*Group, error) { // TemplatesOrErr returns the Templates value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) TemplatesOrErr() ([]*Template, error) { - if e.loadedTypes[91] { + if e.loadedTypes[93] { return e.Templates, nil } return nil, &NotLoadedError{edge: "templates"} @@ -1380,7 +1410,7 @@ func (e OrganizationEdges) TemplatesOrErr() ([]*Template, error) { // IntegrationsOrErr returns the Integrations value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error) { - if e.loadedTypes[92] { + if e.loadedTypes[94] { return e.Integrations, nil } return nil, &NotLoadedError{edge: "integrations"} @@ -1389,7 +1419,7 @@ func (e OrganizationEdges) IntegrationsOrErr() ([]*Integration, error) { // DocumentsOrErr returns the Documents value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) DocumentsOrErr() ([]*DocumentData, error) { - if e.loadedTypes[93] { + if e.loadedTypes[95] { return e.Documents, nil } return nil, &NotLoadedError{edge: "documents"} @@ -1398,7 +1428,7 @@ func (e OrganizationEdges) DocumentsOrErr() ([]*DocumentData, error) { // OrgSubscriptionsOrErr returns the OrgSubscriptions value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) OrgSubscriptionsOrErr() ([]*OrgSubscription, error) { - if e.loadedTypes[94] { + if e.loadedTypes[96] { return e.OrgSubscriptions, nil } return nil, &NotLoadedError{edge: "org_subscriptions"} @@ -1407,7 +1437,7 @@ func (e OrganizationEdges) OrgSubscriptionsOrErr() ([]*OrgSubscription, error) { // OrgProductsOrErr returns the OrgProducts value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) OrgProductsOrErr() ([]*OrgProduct, error) { - if e.loadedTypes[95] { + if e.loadedTypes[97] { return e.OrgProducts, nil } return nil, &NotLoadedError{edge: "org_products"} @@ -1416,7 +1446,7 @@ func (e OrganizationEdges) OrgProductsOrErr() ([]*OrgProduct, error) { // OrgPricesOrErr returns the OrgPrices value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) OrgPricesOrErr() ([]*OrgPrice, error) { - if e.loadedTypes[96] { + if e.loadedTypes[98] { return e.OrgPrices, nil } return nil, &NotLoadedError{edge: "org_prices"} @@ -1425,7 +1455,7 @@ func (e OrganizationEdges) OrgPricesOrErr() ([]*OrgPrice, error) { // OrgModulesOrErr returns the OrgModules value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) OrgModulesOrErr() ([]*OrgModule, error) { - if e.loadedTypes[97] { + if e.loadedTypes[99] { return e.OrgModules, nil } return nil, &NotLoadedError{edge: "org_modules"} @@ -1434,7 +1464,7 @@ func (e OrganizationEdges) OrgModulesOrErr() ([]*OrgModule, error) { // InvitesOrErr returns the Invites value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) InvitesOrErr() ([]*Invite, error) { - if e.loadedTypes[98] { + if e.loadedTypes[100] { return e.Invites, nil } return nil, &NotLoadedError{edge: "invites"} @@ -1443,7 +1473,7 @@ func (e OrganizationEdges) InvitesOrErr() ([]*Invite, error) { // SubscribersOrErr returns the Subscribers value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) SubscribersOrErr() ([]*Subscriber, error) { - if e.loadedTypes[99] { + if e.loadedTypes[101] { return e.Subscribers, nil } return nil, &NotLoadedError{edge: "subscribers"} @@ -1452,7 +1482,7 @@ func (e OrganizationEdges) SubscribersOrErr() ([]*Subscriber, error) { // EntitiesOrErr returns the Entities value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EntitiesOrErr() ([]*Entity, error) { - if e.loadedTypes[100] { + if e.loadedTypes[102] { return e.Entities, nil } return nil, &NotLoadedError{edge: "entities"} @@ -1461,7 +1491,7 @@ func (e OrganizationEdges) EntitiesOrErr() ([]*Entity, error) { // PlatformsOrErr returns the Platforms value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) PlatformsOrErr() ([]*Platform, error) { - if e.loadedTypes[101] { + if e.loadedTypes[103] { return e.Platforms, nil } return nil, &NotLoadedError{edge: "platforms"} @@ -1470,7 +1500,7 @@ func (e OrganizationEdges) PlatformsOrErr() ([]*Platform, error) { // IdentityHoldersOrErr returns the IdentityHolders value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) IdentityHoldersOrErr() ([]*IdentityHolder, error) { - if e.loadedTypes[102] { + if e.loadedTypes[104] { return e.IdentityHolders, nil } return nil, &NotLoadedError{edge: "identity_holders"} @@ -1479,7 +1509,7 @@ func (e OrganizationEdges) IdentityHoldersOrErr() ([]*IdentityHolder, error) { // CampaignsOrErr returns the Campaigns value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CampaignsOrErr() ([]*Campaign, error) { - if e.loadedTypes[103] { + if e.loadedTypes[105] { return e.Campaigns, nil } return nil, &NotLoadedError{edge: "campaigns"} @@ -1488,7 +1518,7 @@ func (e OrganizationEdges) CampaignsOrErr() ([]*Campaign, error) { // CampaignTargetsOrErr returns the CampaignTargets value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { - if e.loadedTypes[104] { + if e.loadedTypes[106] { return e.CampaignTargets, nil } return nil, &NotLoadedError{edge: "campaign_targets"} @@ -1497,7 +1527,7 @@ func (e OrganizationEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { // EntityTypesOrErr returns the EntityTypes value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) EntityTypesOrErr() ([]*EntityType, error) { - if e.loadedTypes[105] { + if e.loadedTypes[107] { return e.EntityTypes, nil } return nil, &NotLoadedError{edge: "entity_types"} @@ -1506,7 +1536,7 @@ func (e OrganizationEdges) EntityTypesOrErr() ([]*EntityType, error) { // ContactsOrErr returns the Contacts value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) ContactsOrErr() ([]*Contact, error) { - if e.loadedTypes[106] { + if e.loadedTypes[108] { return e.Contacts, nil } return nil, &NotLoadedError{edge: "contacts"} @@ -1515,7 +1545,7 @@ func (e OrganizationEdges) ContactsOrErr() ([]*Contact, error) { // NotesOrErr returns the Notes value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) NotesOrErr() ([]*Note, error) { - if e.loadedTypes[107] { + if e.loadedTypes[109] { return e.Notes, nil } return nil, &NotLoadedError{edge: "notes"} @@ -1524,7 +1554,7 @@ func (e OrganizationEdges) NotesOrErr() ([]*Note, error) { // 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[108] { + if e.loadedTypes[110] { return e.Tasks, nil } return nil, &NotLoadedError{edge: "tasks"} @@ -1533,7 +1563,7 @@ func (e OrganizationEdges) TasksOrErr() ([]*Task, error) { // 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[109] { + if e.loadedTypes[111] { return e.Programs, nil } return nil, &NotLoadedError{edge: "programs"} @@ -1542,7 +1572,7 @@ func (e OrganizationEdges) ProgramsOrErr() ([]*Program, error) { // 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[110] { + if e.loadedTypes[112] { return e.SystemDetails, nil } return nil, &NotLoadedError{edge: "system_details"} @@ -1551,7 +1581,7 @@ func (e OrganizationEdges) SystemDetailsOrErr() ([]*SystemDetail, error) { // 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[111] { + if e.loadedTypes[113] { return e.Procedures, nil } return nil, &NotLoadedError{edge: "procedures"} @@ -1560,7 +1590,7 @@ func (e OrganizationEdges) ProceduresOrErr() ([]*Procedure, error) { // 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[112] { + if e.loadedTypes[114] { return e.InternalPolicies, nil } return nil, &NotLoadedError{edge: "internal_policies"} @@ -1569,7 +1599,7 @@ func (e OrganizationEdges) InternalPoliciesOrErr() ([]*InternalPolicy, error) { // 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[113] { + if e.loadedTypes[115] { return e.Risks, nil } return nil, &NotLoadedError{edge: "risks"} @@ -1578,7 +1608,7 @@ func (e OrganizationEdges) RisksOrErr() ([]*Risk, error) { // 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[114] { + if e.loadedTypes[116] { return e.ControlObjectives, nil } return nil, &NotLoadedError{edge: "control_objectives"} @@ -1587,7 +1617,7 @@ func (e OrganizationEdges) ControlObjectivesOrErr() ([]*ControlObjective, error) // 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[115] { + if e.loadedTypes[117] { return e.Narratives, nil } return nil, &NotLoadedError{edge: "narratives"} @@ -1596,7 +1626,7 @@ func (e OrganizationEdges) NarrativesOrErr() ([]*Narrative, error) { // 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[116] { + if e.loadedTypes[118] { return e.Controls, nil } return nil, &NotLoadedError{edge: "controls"} @@ -1605,7 +1635,7 @@ func (e OrganizationEdges) ControlsOrErr() ([]*Control, error) { // 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[117] { + if e.loadedTypes[119] { return e.Subcontrols, nil } return nil, &NotLoadedError{edge: "subcontrols"} @@ -1614,7 +1644,7 @@ func (e OrganizationEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { // 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[118] { + if e.loadedTypes[120] { return e.ControlImplementations, nil } return nil, &NotLoadedError{edge: "control_implementations"} @@ -1623,7 +1653,7 @@ func (e OrganizationEdges) ControlImplementationsOrErr() ([]*ControlImplementati // 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[119] { + if e.loadedTypes[121] { return e.MappedControls, nil } return nil, &NotLoadedError{edge: "mapped_controls"} @@ -1632,7 +1662,7 @@ func (e OrganizationEdges) MappedControlsOrErr() ([]*MappedControl, error) { // 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[120] { + if e.loadedTypes[122] { return e.Evidence, nil } return nil, &NotLoadedError{edge: "evidence"} @@ -1641,7 +1671,7 @@ func (e OrganizationEdges) EvidenceOrErr() ([]*Evidence, error) { // 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[121] { + if e.loadedTypes[123] { return e.Standards, nil } return nil, &NotLoadedError{edge: "standards"} @@ -1650,7 +1680,7 @@ func (e OrganizationEdges) StandardsOrErr() ([]*Standard, error) { // 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[122] { + if e.loadedTypes[124] { return e.ActionPlans, nil } return nil, &NotLoadedError{edge: "action_plans"} @@ -1659,7 +1689,7 @@ func (e OrganizationEdges) ActionPlansOrErr() ([]*ActionPlan, error) { // 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[123] { + if e.loadedTypes[125] { return e.CustomDomains, nil } return nil, &NotLoadedError{edge: "custom_domains"} @@ -1668,7 +1698,7 @@ func (e OrganizationEdges) CustomDomainsOrErr() ([]*CustomDomain, error) { // 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[124] { + if e.loadedTypes[126] { return e.DNSVerifications, nil } return nil, &NotLoadedError{edge: "dns_verifications"} @@ -1677,7 +1707,7 @@ func (e OrganizationEdges) DNSVerificationsOrErr() ([]*DNSVerification, error) { // 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[125] { + if e.loadedTypes[127] { return e.TrustCenters, nil } return nil, &NotLoadedError{edge: "trust_centers"} @@ -1686,7 +1716,7 @@ func (e OrganizationEdges) TrustCentersOrErr() ([]*TrustCenter, error) { // 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[126] { + if e.loadedTypes[128] { return e.Assets, nil } return nil, &NotLoadedError{edge: "assets"} @@ -1695,7 +1725,7 @@ func (e OrganizationEdges) AssetsOrErr() ([]*Asset, error) { // 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[127] { + if e.loadedTypes[129] { return e.Scans, nil } return nil, &NotLoadedError{edge: "scans"} @@ -1704,7 +1734,7 @@ func (e OrganizationEdges) ScansOrErr() ([]*Scan, error) { // 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[128] { + if e.loadedTypes[130] { return e.SLADefinitions, nil } return nil, &NotLoadedError{edge: "sla_definitions"} @@ -1713,7 +1743,7 @@ func (e OrganizationEdges) SLADefinitionsOrErr() ([]*SLADefinition, error) { // 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[129] { + if e.loadedTypes[131] { return e.Subprocessors, nil } return nil, &NotLoadedError{edge: "subprocessors"} @@ -1722,16 +1752,34 @@ func (e OrganizationEdges) SubprocessorsOrErr() ([]*Subprocessor, error) { // 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[130] { + if e.loadedTypes[132] { return e.Exports, nil } return nil, &NotLoadedError{edge: "exports"} } +// AudiencesOrErr returns the Audiences value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AudiencesOrErr() ([]*Audience, error) { + if e.loadedTypes[133] { + return e.Audiences, nil + } + return nil, &NotLoadedError{edge: "audiences"} +} + +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e OrganizationEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[134] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // 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[131] { + if e.loadedTypes[135] { return e.TrustCenterWatermarkConfigs, nil } return nil, &NotLoadedError{edge: "trust_center_watermark_configs"} @@ -1740,7 +1788,7 @@ func (e OrganizationEdges) TrustCenterWatermarkConfigsOrErr() ([]*TrustCenterWat // 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[132] { + if e.loadedTypes[136] { return e.ImpersonationEvents, nil } return nil, &NotLoadedError{edge: "impersonation_events"} @@ -1749,7 +1797,7 @@ func (e OrganizationEdges) ImpersonationEventsOrErr() ([]*ImpersonationEvent, er // 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[133] { + if e.loadedTypes[137] { return e.Assessments, nil } return nil, &NotLoadedError{edge: "assessments"} @@ -1758,7 +1806,7 @@ func (e OrganizationEdges) AssessmentsOrErr() ([]*Assessment, error) { // 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[134] { + if e.loadedTypes[138] { return e.AssessmentResponses, nil } return nil, &NotLoadedError{edge: "assessment_responses"} @@ -1767,7 +1815,7 @@ func (e OrganizationEdges) AssessmentResponsesOrErr() ([]*AssessmentResponse, er // 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[135] { + if e.loadedTypes[139] { return e.CustomTypeEnums, nil } return nil, &NotLoadedError{edge: "custom_type_enums"} @@ -1776,7 +1824,7 @@ func (e OrganizationEdges) CustomTypeEnumsOrErr() ([]*CustomTypeEnum, error) { // 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[136] { + if e.loadedTypes[140] { return e.TagDefinitions, nil } return nil, &NotLoadedError{edge: "tag_definitions"} @@ -1785,7 +1833,7 @@ func (e OrganizationEdges) TagDefinitionsOrErr() ([]*TagDefinition, error) { // 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[137] { + if e.loadedTypes[141] { return e.Remediations, nil } return nil, &NotLoadedError{edge: "remediations"} @@ -1794,7 +1842,7 @@ func (e OrganizationEdges) RemediationsOrErr() ([]*Remediation, error) { // 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[138] { + if e.loadedTypes[142] { return e.Findings, nil } return nil, &NotLoadedError{edge: "findings"} @@ -1803,7 +1851,7 @@ func (e OrganizationEdges) FindingsOrErr() ([]*Finding, error) { // FindingControlsOrErr returns the FindingControls value or an error if the edge // was not loaded in eager-loading. func (e OrganizationEdges) FindingControlsOrErr() ([]*FindingControl, error) { - if e.loadedTypes[139] { + if e.loadedTypes[143] { return e.FindingControls, nil } return nil, &NotLoadedError{edge: "finding_controls"} @@ -1812,7 +1860,7 @@ func (e OrganizationEdges) FindingControlsOrErr() ([]*FindingControl, error) { // 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[140] { + if e.loadedTypes[144] { return e.Reviews, nil } return nil, &NotLoadedError{edge: "reviews"} @@ -1821,7 +1869,7 @@ func (e OrganizationEdges) ReviewsOrErr() ([]*Review, error) { // 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[141] { + if e.loadedTypes[145] { return e.Vulnerabilities, nil } return nil, &NotLoadedError{edge: "vulnerabilities"} @@ -1830,7 +1878,7 @@ func (e OrganizationEdges) VulnerabilitiesOrErr() ([]*Vulnerability, error) { // 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[142] { + if e.loadedTypes[146] { return e.Notifications, nil } return nil, &NotLoadedError{edge: "notifications"} @@ -1839,7 +1887,7 @@ func (e OrganizationEdges) NotificationsOrErr() ([]*Notification, error) { // 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[143] { + if e.loadedTypes[147] { return e.WorkflowDefinitions, nil } return nil, &NotLoadedError{edge: "workflow_definitions"} @@ -1848,7 +1896,7 @@ func (e OrganizationEdges) WorkflowDefinitionsOrErr() ([]*WorkflowDefinition, er // 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[144] { + if e.loadedTypes[148] { return e.WorkflowInstances, nil } return nil, &NotLoadedError{edge: "workflow_instances"} @@ -1857,7 +1905,7 @@ func (e OrganizationEdges) WorkflowInstancesOrErr() ([]*WorkflowInstance, error) // 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[145] { + if e.loadedTypes[149] { return e.WorkflowEvents, nil } return nil, &NotLoadedError{edge: "workflow_events"} @@ -1866,7 +1914,7 @@ func (e OrganizationEdges) WorkflowEventsOrErr() ([]*WorkflowEvent, error) { // 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[146] { + if e.loadedTypes[150] { return e.WorkflowAssignments, nil } return nil, &NotLoadedError{edge: "workflow_assignments"} @@ -1875,7 +1923,7 @@ func (e OrganizationEdges) WorkflowAssignmentsOrErr() ([]*WorkflowAssignment, er // 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[147] { + if e.loadedTypes[151] { return e.WorkflowAssignmentTargets, nil } return nil, &NotLoadedError{edge: "workflow_assignment_targets"} @@ -1884,7 +1932,7 @@ func (e OrganizationEdges) WorkflowAssignmentTargetsOrErr() ([]*WorkflowAssignme // 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[148] { + if e.loadedTypes[152] { return e.WorkflowObjectRefs, nil } return nil, &NotLoadedError{edge: "workflow_object_refs"} @@ -1893,7 +1941,7 @@ func (e OrganizationEdges) WorkflowObjectRefsOrErr() ([]*WorkflowObjectRef, erro // 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[149] { + if e.loadedTypes[153] { return e.WorkflowProposals, nil } return nil, &NotLoadedError{edge: "workflow_proposals"} @@ -1902,7 +1950,7 @@ func (e OrganizationEdges) WorkflowProposalsOrErr() ([]*WorkflowProposal, error) // 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[150] { + if e.loadedTypes[154] { return e.DirectoryAccounts, nil } return nil, &NotLoadedError{edge: "directory_accounts"} @@ -1911,7 +1959,7 @@ func (e OrganizationEdges) DirectoryAccountsOrErr() ([]*DirectoryAccount, error) // 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[151] { + if e.loadedTypes[155] { return e.DirectoryGroups, nil } return nil, &NotLoadedError{edge: "directory_groups"} @@ -1920,7 +1968,7 @@ func (e OrganizationEdges) DirectoryGroupsOrErr() ([]*DirectoryGroup, error) { // 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[152] { + if e.loadedTypes[156] { return e.DirectoryMemberships, nil } return nil, &NotLoadedError{edge: "directory_memberships"} @@ -1929,7 +1977,7 @@ func (e OrganizationEdges) DirectoryMembershipsOrErr() ([]*DirectoryMembership, // 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[153] { + if e.loadedTypes[157] { return e.DirectorySyncRuns, nil } return nil, &NotLoadedError{edge: "directory_sync_runs"} @@ -1938,7 +1986,7 @@ func (e OrganizationEdges) DirectorySyncRunsOrErr() ([]*DirectorySyncRun, error) // 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[154] { + if e.loadedTypes[158] { return e.Discussions, nil } return nil, &NotLoadedError{edge: "discussions"} @@ -1947,7 +1995,7 @@ func (e OrganizationEdges) DiscussionsOrErr() ([]*Discussion, error) { // 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[155] { + if e.loadedTypes[159] { return e.VendorScoringConfigs, nil } return nil, &NotLoadedError{edge: "vendor_scoring_configs"} @@ -1956,7 +2004,7 @@ func (e OrganizationEdges) VendorScoringConfigsOrErr() ([]*VendorScoringConfig, // 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[156] { + if e.loadedTypes[160] { return e.VendorRiskScores, nil } return nil, &NotLoadedError{edge: "vendor_risk_scores"} @@ -1965,7 +2013,7 @@ func (e OrganizationEdges) VendorRiskScoresOrErr() ([]*VendorRiskScore, error) { // 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[157] { + if e.loadedTypes[161] { return e.Members, nil } return nil, &NotLoadedError{edge: "members"} @@ -2153,6 +2201,16 @@ func (_m *Organization) QueryAssetCreators() *GroupQuery { return NewOrganizationClient(_m.config).QueryAssetCreators(_m) } +// QueryAudienceCreators queries the "audience_creators" edge of the Organization entity. +func (_m *Organization) QueryAudienceCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryAudienceCreators(_m) +} + +// QueryAudienceMemberCreators queries the "audience_member_creators" edge of the Organization entity. +func (_m *Organization) QueryAudienceMemberCreators() *GroupQuery { + return NewOrganizationClient(_m.config).QueryAudienceMemberCreators(_m) +} + // QueryCampaignCreators queries the "campaign_creators" edge of the Organization entity. func (_m *Organization) QueryCampaignCreators() *GroupQuery { return NewOrganizationClient(_m.config).QueryCampaignCreators(_m) @@ -2788,6 +2846,16 @@ func (_m *Organization) QueryExports() *ExportQuery { return NewOrganizationClient(_m.config).QueryExports(_m) } +// QueryAudiences queries the "audiences" edge of the Organization entity. +func (_m *Organization) QueryAudiences() *AudienceQuery { + return NewOrganizationClient(_m.config).QueryAudiences(_m) +} + +// QueryAudienceMembers queries the "audience_members" edge of the Organization entity. +func (_m *Organization) QueryAudienceMembers() *AudienceMemberQuery { + return NewOrganizationClient(_m.config).QueryAudienceMembers(_m) +} + // QueryTrustCenterWatermarkConfigs queries the "trust_center_watermark_configs" edge of the Organization entity. func (_m *Organization) QueryTrustCenterWatermarkConfigs() *TrustCenterWatermarkConfigQuery { return NewOrganizationClient(_m.config).QueryTrustCenterWatermarkConfigs(_m) @@ -3109,6 +3177,54 @@ func (_m *Organization) appendNamedAssetCreators(name string, edges ...*Group) { } } +// NamedAudienceCreators returns the AudienceCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAudienceCreators(name string) ([]*Group, error) { + if _m.Edges.namedAudienceCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedAudienceCreators(name string, edges ...*Group) { + if _m.Edges.namedAudienceCreators == nil { + _m.Edges.namedAudienceCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedAudienceCreators[name] = []*Group{} + } else { + _m.Edges.namedAudienceCreators[name] = append(_m.Edges.namedAudienceCreators[name], edges...) + } +} + +// NamedAudienceMemberCreators returns the AudienceMemberCreators named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAudienceMemberCreators(name string) ([]*Group, error) { + if _m.Edges.namedAudienceMemberCreators == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMemberCreators[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedAudienceMemberCreators(name string, edges ...*Group) { + if _m.Edges.namedAudienceMemberCreators == nil { + _m.Edges.namedAudienceMemberCreators = make(map[string][]*Group) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMemberCreators[name] = []*Group{} + } else { + _m.Edges.namedAudienceMemberCreators[name] = append(_m.Edges.namedAudienceMemberCreators[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) { @@ -6085,6 +6201,54 @@ func (_m *Organization) appendNamedExports(name string, edges ...*Export) { } } +// NamedAudiences returns the Audiences named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAudiences(name string) ([]*Audience, error) { + if _m.Edges.namedAudiences == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudiences[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedAudiences(name string, edges ...*Audience) { + if _m.Edges.namedAudiences == nil { + _m.Edges.namedAudiences = make(map[string][]*Audience) + } + if len(edges) == 0 { + _m.Edges.namedAudiences[name] = []*Audience{} + } else { + _m.Edges.namedAudiences[name] = append(_m.Edges.namedAudiences[name], edges...) + } +} + +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Organization) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Organization) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // NamedTrustCenterWatermarkConfigs returns the TrustCenterWatermarkConfigs named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *Organization) NamedTrustCenterWatermarkConfigs(name string) ([]*TrustCenterWatermarkConfig, error) { diff --git a/internal/ent/generated/organization/organization.go b/internal/ent/generated/organization/organization.go index b576d18688..71d20374fe 100644 --- a/internal/ent/generated/organization/organization.go +++ b/internal/ent/generated/organization/organization.go @@ -59,6 +59,10 @@ const ( EdgeAssessmentCreators = "assessment_creators" // EdgeAssetCreators holds the string denoting the asset_creators edge name in mutations. EdgeAssetCreators = "asset_creators" + // EdgeAudienceCreators holds the string denoting the audience_creators edge name in mutations. + EdgeAudienceCreators = "audience_creators" + // EdgeAudienceMemberCreators holds the string denoting the audience_member_creators edge name in mutations. + EdgeAudienceMemberCreators = "audience_member_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. @@ -313,6 +317,10 @@ const ( EdgeSubprocessors = "subprocessors" // EdgeExports holds the string denoting the exports edge name in mutations. EdgeExports = "exports" + // EdgeAudiences holds the string denoting the audiences edge name in mutations. + EdgeAudiences = "audiences" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // EdgeTrustCenterWatermarkConfigs holds the string denoting the trust_center_watermark_configs edge name in mutations. EdgeTrustCenterWatermarkConfigs = "trust_center_watermark_configs" // EdgeImpersonationEvents holds the string denoting the impersonation_events edge name in mutations. @@ -397,6 +405,20 @@ const ( AssetCreatorsInverseTable = "groups" // AssetCreatorsColumn is the table column denoting the asset_creators relation/edge. AssetCreatorsColumn = "organization_asset_creators" + // AudienceCreatorsTable is the table that holds the audience_creators relation/edge. + AudienceCreatorsTable = "groups" + // AudienceCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + AudienceCreatorsInverseTable = "groups" + // AudienceCreatorsColumn is the table column denoting the audience_creators relation/edge. + AudienceCreatorsColumn = "organization_audience_creators" + // AudienceMemberCreatorsTable is the table that holds the audience_member_creators relation/edge. + AudienceMemberCreatorsTable = "groups" + // AudienceMemberCreatorsInverseTable is the table name for the Group entity. + // It exists in this package in order to avoid circular dependency with the "group" package. + AudienceMemberCreatorsInverseTable = "groups" + // AudienceMemberCreatorsColumn is the table column denoting the audience_member_creators relation/edge. + AudienceMemberCreatorsColumn = "organization_audience_member_creators" // CampaignCreatorsTable is the table that holds the campaign_creators relation/edge. CampaignCreatorsTable = "groups" // CampaignCreatorsInverseTable is the table name for the Group entity. @@ -1272,6 +1294,20 @@ const ( ExportsInverseTable = "exports" // ExportsColumn is the table column denoting the exports relation/edge. ExportsColumn = "owner_id" + // AudiencesTable is the table that holds the audiences relation/edge. + AudiencesTable = "audiences" + // AudiencesInverseTable is the table name for the Audience entity. + // It exists in this package in order to avoid circular dependency with the "audience" package. + AudiencesInverseTable = "audiences" + // AudiencesColumn is the table column denoting the audiences relation/edge. + AudiencesColumn = "owner_id" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "owner_id" // TrustCenterWatermarkConfigsTable is the table that holds the trust_center_watermark_configs relation/edge. TrustCenterWatermarkConfigsTable = "trust_center_watermark_configs" // TrustCenterWatermarkConfigsInverseTable is the table name for the TrustCenterWatermarkConfig entity. @@ -1517,7 +1553,7 @@ func ValidColumn(column string) bool { // // import _ "github.com/theopenlane/core/v2/internal/ent/generated/runtime" var ( - Hooks [83]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. @@ -1695,6 +1731,34 @@ func ByAssetCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceCreatorsCount orders the results by audience_creators count. +func ByAudienceCreatorsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceCreatorsStep(), opts...) + } +} + +// ByAudienceCreators orders the results by audience_creators terms. +func ByAudienceCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAudienceMemberCreatorsCount orders the results by audience_member_creators count. +func ByAudienceMemberCreatorsCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMemberCreatorsStep(), opts...) + } +} + +// ByAudienceMemberCreators orders the results by audience_member_creators terms. +func ByAudienceMemberCreators(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMemberCreatorsStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // ByCampaignCreatorsCount orders the results by campaign_creators count. func ByCampaignCreatorsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -3452,6 +3516,34 @@ func ByExports(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudiencesCount orders the results by audiences count. +func ByAudiencesCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudiencesStep(), opts...) + } +} + +// ByAudiences orders the results by audiences terms. +func ByAudiences(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudiencesStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), 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) { @@ -3857,6 +3949,20 @@ func newAssetCreatorsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, AssetCreatorsTable, AssetCreatorsColumn), ) } +func newAudienceCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceCreatorsTable, AudienceCreatorsColumn), + ) +} +func newAudienceMemberCreatorsStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMemberCreatorsInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMemberCreatorsTable, AudienceMemberCreatorsColumn), + ) +} func newCampaignCreatorsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -4746,6 +4852,20 @@ func newExportsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, ExportsTable, ExportsColumn), ) } +func newAudiencesStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudiencesInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudiencesTable, AudiencesColumn), + ) +} +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} func newTrustCenterWatermarkConfigsStep() *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 f610e587d2..2ab1bd3f67 100644 --- a/internal/ent/generated/organization/where.go +++ b/internal/ent/generated/organization/where.go @@ -1352,6 +1352,52 @@ func HasAssetCreatorsWith(preds ...predicate.Group) predicate.Organization { }) } +// HasAudienceCreators applies the HasEdge predicate on the "audience_creators" edge. +func HasAudienceCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceCreatorsTable, AudienceCreatorsColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceCreatorsWith applies the HasEdge predicate on the "audience_creators" edge with a given conditions (other predicates). +func HasAudienceCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAudienceCreatorsStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudienceMemberCreators applies the HasEdge predicate on the "audience_member_creators" edge. +func HasAudienceMemberCreators() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMemberCreatorsTable, AudienceMemberCreatorsColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMemberCreatorsWith applies the HasEdge predicate on the "audience_member_creators" edge with a given conditions (other predicates). +func HasAudienceMemberCreatorsWith(preds ...predicate.Group) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAudienceMemberCreatorsStep() + 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) { @@ -4273,6 +4319,52 @@ func HasExportsWith(preds ...predicate.Export) predicate.Organization { }) } +// HasAudiences applies the HasEdge predicate on the "audiences" edge. +func HasAudiences() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudiencesTable, AudiencesColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudiencesWith applies the HasEdge predicate on the "audiences" edge with a given conditions (other predicates). +func HasAudiencesWith(preds ...predicate.Audience) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAudiencesStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.Organization { + return predicate.Organization(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasTrustCenterWatermarkConfigs applies the HasEdge predicate on the "trust_center_watermark_configs" edge. func HasTrustCenterWatermarkConfigs() 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 6479bfeec8..d07ce25a23 100644 --- a/internal/ent/generated/organization_create.go +++ b/internal/ent/generated/organization_create.go @@ -15,6 +15,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -410,6 +412,36 @@ func (_c *OrganizationCreate) AddAssetCreators(v ...*Group) *OrganizationCreate return _c.AddAssetCreatorIDs(ids...) } +// AddAudienceCreatorIDs adds the "audience_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddAudienceCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAudienceCreatorIDs(ids...) + return _c +} + +// AddAudienceCreators adds the "audience_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddAudienceCreators(v ...*Group) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceCreatorIDs(ids...) +} + +// AddAudienceMemberCreatorIDs adds the "audience_member_creators" edge to the Group entity by IDs. +func (_c *OrganizationCreate) AddAudienceMemberCreatorIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAudienceMemberCreatorIDs(ids...) + return _c +} + +// AddAudienceMemberCreators adds the "audience_member_creators" edges to the Group entity. +func (_c *OrganizationCreate) AddAudienceMemberCreators(v ...*Group) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberCreatorIDs(ids...) +} + // AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. func (_c *OrganizationCreate) AddCampaignCreatorIDs(ids ...string) *OrganizationCreate { _c.mutation.AddCampaignCreatorIDs(ids...) @@ -2327,6 +2359,36 @@ func (_c *OrganizationCreate) AddExports(v ...*Export) *OrganizationCreate { return _c.AddExportIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_c *OrganizationCreate) AddAudienceIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAudienceIDs(ids...) + return _c +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_c *OrganizationCreate) AddAudiences(v ...*Audience) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *OrganizationCreate) AddAudienceMemberIDs(ids ...string) *OrganizationCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *OrganizationCreate) AddAudienceMembers(v ...*AudienceMember) *OrganizationCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(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...) @@ -3003,6 +3065,38 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceMemberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + 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, @@ -5044,6 +5138,38 @@ func (_c *OrganizationCreate) createSpec() (*Organization, *sqlgraph.CreateSpec) } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.TrustCenterWatermarkConfigsIDs(); 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 d361bb6f5c..973bff24be 100644 --- a/internal/ent/generated/organization_query.go +++ b/internal/ent/generated/organization_query.go @@ -18,6 +18,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -110,6 +112,8 @@ type OrganizationQuery struct { withAPITokenCreators *GroupQuery withAssessmentCreators *GroupQuery withAssetCreators *GroupQuery + withAudienceCreators *GroupQuery + withAudienceMemberCreators *GroupQuery withCampaignCreators *GroupQuery withCampaignTargetCreators *GroupQuery withCheckResultCreators *GroupQuery @@ -237,6 +241,8 @@ type OrganizationQuery struct { withSLADefinitions *SLADefinitionQuery withSubprocessors *SubprocessorQuery withExports *ExportQuery + withAudiences *AudienceQuery + withAudienceMembers *AudienceMemberQuery withTrustCenterWatermarkConfigs *TrustCenterWatermarkConfigQuery withImpersonationEvents *ImpersonationEventQuery withAssessments *AssessmentQuery @@ -270,6 +276,8 @@ type OrganizationQuery struct { withNamedAPITokenCreators map[string]*GroupQuery withNamedAssessmentCreators map[string]*GroupQuery withNamedAssetCreators map[string]*GroupQuery + withNamedAudienceCreators map[string]*GroupQuery + withNamedAudienceMemberCreators map[string]*GroupQuery withNamedCampaignCreators map[string]*GroupQuery withNamedCampaignTargetCreators map[string]*GroupQuery withNamedCheckResultCreators map[string]*GroupQuery @@ -394,6 +402,8 @@ type OrganizationQuery struct { withNamedSLADefinitions map[string]*SLADefinitionQuery withNamedSubprocessors map[string]*SubprocessorQuery withNamedExports map[string]*ExportQuery + withNamedAudiences map[string]*AudienceQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery withNamedTrustCenterWatermarkConfigs map[string]*TrustCenterWatermarkConfigQuery withNamedImpersonationEvents map[string]*ImpersonationEventQuery withNamedAssessments map[string]*AssessmentQuery @@ -545,6 +555,50 @@ func (_q *OrganizationQuery) QueryAssetCreators() *GroupQuery { return query } +// QueryAudienceCreators chains the current query on the "audience_creators" edge. +func (_q *OrganizationQuery) QueryAudienceCreators() *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 + } + 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(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudienceCreatorsTable, organization.AudienceCreatorsColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudienceMemberCreators chains the current query on the "audience_member_creators" edge. +func (_q *OrganizationQuery) QueryAudienceMemberCreators() *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 + } + 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(group.Table, group.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudienceMemberCreatorsTable, organization.AudienceMemberCreatorsColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QueryCampaignCreators chains the current query on the "campaign_creators" edge. func (_q *OrganizationQuery) QueryCampaignCreators() *GroupQuery { query := (&GroupClient{config: _q.config}).Query() @@ -3339,6 +3393,50 @@ func (_q *OrganizationQuery) QueryExports() *ExportQuery { return query } +// QueryAudiences chains the current query on the "audiences" edge. +func (_q *OrganizationQuery) QueryAudiences() *AudienceQuery { + query := (&AudienceClient{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(audience.Table, audience.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudiencesTable, organization.AudiencesColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *OrganizationQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, organization.AudienceMembersTable, organization.AudienceMembersColumn), + ) + 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() @@ -4129,6 +4227,8 @@ func (_q *OrganizationQuery) Clone() *OrganizationQuery { withAPITokenCreators: _q.withAPITokenCreators.Clone(), withAssessmentCreators: _q.withAssessmentCreators.Clone(), withAssetCreators: _q.withAssetCreators.Clone(), + withAudienceCreators: _q.withAudienceCreators.Clone(), + withAudienceMemberCreators: _q.withAudienceMemberCreators.Clone(), withCampaignCreators: _q.withCampaignCreators.Clone(), withCampaignTargetCreators: _q.withCampaignTargetCreators.Clone(), withCheckResultCreators: _q.withCheckResultCreators.Clone(), @@ -4256,6 +4356,8 @@ func (_q *OrganizationQuery) Clone() *OrganizationQuery { withSLADefinitions: _q.withSLADefinitions.Clone(), withSubprocessors: _q.withSubprocessors.Clone(), withExports: _q.withExports.Clone(), + withAudiences: _q.withAudiences.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), withTrustCenterWatermarkConfigs: _q.withTrustCenterWatermarkConfigs.Clone(), withImpersonationEvents: _q.withImpersonationEvents.Clone(), withAssessments: _q.withAssessments.Clone(), @@ -4334,6 +4436,28 @@ func (_q *OrganizationQuery) WithAssetCreators(opts ...func(*GroupQuery)) *Organ return _q } +// WithAudienceCreators tells the query-builder to eager-load the nodes that are connected to +// the "audience_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAudienceCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceCreators = query + return _q +} + +// WithAudienceMemberCreators tells the query-builder to eager-load the nodes that are connected to +// the "audience_member_creators" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAudienceMemberCreators(opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMemberCreators = query + return _q +} + // 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 { @@ -5731,6 +5855,28 @@ func (_q *OrganizationQuery) WithExports(opts ...func(*ExportQuery)) *Organizati return _q } +// WithAudiences tells the query-builder to eager-load the nodes that are connected to +// the "audiences" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAudiences(opts ...func(*AudienceQuery)) *OrganizationQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudiences = query + return _q +} + +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *OrganizationQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 { @@ -6112,11 +6258,13 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] var ( nodes = []*Organization{} _spec = _q.querySpec() - loadedTypes = [158]bool{ + loadedTypes = [162]bool{ _q.withActionPlanCreators != nil, _q.withAPITokenCreators != nil, _q.withAssessmentCreators != nil, _q.withAssetCreators != nil, + _q.withAudienceCreators != nil, + _q.withAudienceMemberCreators != nil, _q.withCampaignCreators != nil, _q.withCampaignTargetCreators != nil, _q.withCheckResultCreators != nil, @@ -6244,6 +6392,8 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] _q.withSLADefinitions != nil, _q.withSubprocessors != nil, _q.withExports != nil, + _q.withAudiences != nil, + _q.withAudienceMembers != nil, _q.withTrustCenterWatermarkConfigs != nil, _q.withImpersonationEvents != nil, _q.withAssessments != nil, @@ -6322,6 +6472,22 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return nil, err } } + if query := _q.withAudienceCreators; query != nil { + if err := _q.loadAudienceCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.AudienceCreators = []*Group{} }, + func(n *Organization, e *Group) { n.Edges.AudienceCreators = append(n.Edges.AudienceCreators, e) }); err != nil { + return nil, err + } + } + if query := _q.withAudienceMemberCreators; query != nil { + if err := _q.loadAudienceMemberCreators(ctx, query, nodes, + func(n *Organization) { n.Edges.AudienceMemberCreators = []*Group{} }, + func(n *Organization, e *Group) { + n.Edges.AudienceMemberCreators = append(n.Edges.AudienceMemberCreators, 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{} }, @@ -7296,6 +7462,20 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return nil, err } } + if query := _q.withAudiences; query != nil { + if err := _q.loadAudiences(ctx, query, nodes, + func(n *Organization) { n.Edges.Audiences = []*Audience{} }, + func(n *Organization, e *Audience) { n.Edges.Audiences = append(n.Edges.Audiences, e) }); err != nil { + return nil, err + } + } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Organization) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *Organization, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, 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{} }, @@ -7541,6 +7721,20 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return nil, err } } + for name, query := range _q.withNamedAudienceCreators { + if err := _q.loadAudienceCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedAudienceCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedAudienceCreators(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAudienceMemberCreators { + if err := _q.loadAudienceMemberCreators(ctx, query, nodes, + func(n *Organization) { n.appendNamedAudienceMemberCreators(name) }, + func(n *Organization, e *Group) { n.appendNamedAudienceMemberCreators(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) }, @@ -8409,6 +8603,20 @@ func (_q *OrganizationQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([] return nil, err } } + for name, query := range _q.withNamedAudiences { + if err := _q.loadAudiences(ctx, query, nodes, + func(n *Organization) { n.appendNamedAudiences(name) }, + func(n *Organization, e *Audience) { n.appendNamedAudiences(name, e) }); err != nil { + return nil, err + } + } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Organization) { n.appendNamedAudienceMembers(name) }, + func(n *Organization, e *AudienceMember) { n.appendNamedAudienceMembers(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) }, @@ -8732,6 +8940,68 @@ func (_q *OrganizationQuery) loadAssetCreators(ctx context.Context, query *Group } return nil } +func (_q *OrganizationQuery) loadAudienceCreators(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.AudienceCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_audience_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_audience_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_audience_creators" returned %v for node %v`, *fk, n.ID) + } + assign(node, n) + } + return nil +} +func (_q *OrganizationQuery) loadAudienceMemberCreators(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.AudienceMemberCreatorsColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.organization_audience_member_creators + if fk == nil { + return fmt.Errorf(`foreign-key "organization_audience_member_creators" is nil for node %v`, n.ID) + } + node, ok := nodeids[*fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "organization_audience_member_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) @@ -12756,6 +13026,66 @@ func (_q *OrganizationQuery) loadExports(ctx context.Context, query *ExportQuery } return nil } +func (_q *OrganizationQuery) loadAudiences(ctx context.Context, query *AudienceQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *Audience)) 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(audience.FieldOwnerID) + } + query.Where(predicate.Audience(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AudiencesColumn), 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) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*Organization, init func(*Organization), assign func(*Organization, *AudienceMember)) 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(audiencemember.FieldOwnerID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(organization.AudienceMembersColumn), 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) 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) @@ -13730,6 +14060,34 @@ func (_q *OrganizationQuery) WithNamedAssetCreators(name string, opts ...func(*G return _q } +// WithNamedAudienceCreators tells the query-builder to eager-load the nodes that are connected to the "audience_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAudienceCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceCreators == nil { + _q.withNamedAudienceCreators = make(map[string]*GroupQuery) + } + _q.withNamedAudienceCreators[name] = query + return _q +} + +// WithNamedAudienceMemberCreators tells the query-builder to eager-load the nodes that are connected to the "audience_member_creators" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAudienceMemberCreators(name string, opts ...func(*GroupQuery)) *OrganizationQuery { + query := (&GroupClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMemberCreators == nil { + _q.withNamedAudienceMemberCreators = make(map[string]*GroupQuery) + } + _q.withNamedAudienceMemberCreators[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 { @@ -15466,6 +15824,34 @@ func (_q *OrganizationQuery) WithNamedExports(name string, opts ...func(*ExportQ return _q } +// WithNamedAudiences tells the query-builder to eager-load the nodes that are connected to the "audiences" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAudiences(name string, opts ...func(*AudienceQuery)) *OrganizationQuery { + query := (&AudienceClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudiences == nil { + _q.withNamedAudiences = make(map[string]*AudienceQuery) + } + _q.withNamedAudiences[name] = query + return _q +} + +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *OrganizationQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *OrganizationQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // WithNamedTrustCenterWatermarkConfigs tells the query-builder to eager-load the nodes that are connected to the "trust_center_watermark_configs" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *OrganizationQuery) WithNamedTrustCenterWatermarkConfigs(name string, opts ...func(*TrustCenterWatermarkConfigQuery)) *OrganizationQuery { diff --git a/internal/ent/generated/organization_update.go b/internal/ent/generated/organization_update.go index 897778f4d3..33b7525f81 100644 --- a/internal/ent/generated/organization_update.go +++ b/internal/ent/generated/organization_update.go @@ -17,6 +17,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -414,6 +416,36 @@ func (_u *OrganizationUpdate) AddAssetCreators(v ...*Group) *OrganizationUpdate return _u.AddAssetCreatorIDs(ids...) } +// AddAudienceCreatorIDs adds the "audience_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddAudienceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAudienceCreatorIDs(ids...) + return _u +} + +// AddAudienceCreators adds the "audience_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddAudienceCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceCreatorIDs(ids...) +} + +// AddAudienceMemberCreatorIDs adds the "audience_member_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdate) AddAudienceMemberCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAudienceMemberCreatorIDs(ids...) + return _u +} + +// AddAudienceMemberCreators adds the "audience_member_creators" edges to the Group entity. +func (_u *OrganizationUpdate) AddAudienceMemberCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberCreatorIDs(ids...) +} + // AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. func (_u *OrganizationUpdate) AddCampaignCreatorIDs(ids ...string) *OrganizationUpdate { _u.mutation.AddCampaignCreatorIDs(ids...) @@ -2312,6 +2344,36 @@ func (_u *OrganizationUpdate) AddExports(v ...*Export) *OrganizationUpdate { return _u.AddExportIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_u *OrganizationUpdate) AddAudienceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAudienceIDs(ids...) + return _u +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_u *OrganizationUpdate) AddAudiences(v ...*Audience) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *OrganizationUpdate) AddAudienceMemberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *OrganizationUpdate) AddAudienceMembers(v ...*AudienceMember) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(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...) @@ -2806,6 +2868,48 @@ func (_u *OrganizationUpdate) RemoveAssetCreators(v ...*Group) *OrganizationUpda return _u.RemoveAssetCreatorIDs(ids...) } +// ClearAudienceCreators clears all "audience_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearAudienceCreators() *OrganizationUpdate { + _u.mutation.ClearAudienceCreators() + return _u +} + +// RemoveAudienceCreatorIDs removes the "audience_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveAudienceCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAudienceCreatorIDs(ids...) + return _u +} + +// RemoveAudienceCreators removes "audience_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveAudienceCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceCreatorIDs(ids...) +} + +// ClearAudienceMemberCreators clears all "audience_member_creators" edges to the Group entity. +func (_u *OrganizationUpdate) ClearAudienceMemberCreators() *OrganizationUpdate { + _u.mutation.ClearAudienceMemberCreators() + return _u +} + +// RemoveAudienceMemberCreatorIDs removes the "audience_member_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdate) RemoveAudienceMemberCreatorIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAudienceMemberCreatorIDs(ids...) + return _u +} + +// RemoveAudienceMemberCreators removes "audience_member_creators" edges to Group entities. +func (_u *OrganizationUpdate) RemoveAudienceMemberCreators(v ...*Group) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberCreatorIDs(ids...) +} + // ClearCampaignCreators clears all "campaign_creators" edges to the Group entity. func (_u *OrganizationUpdate) ClearCampaignCreators() *OrganizationUpdate { _u.mutation.ClearCampaignCreators() @@ -5422,6 +5526,48 @@ func (_u *OrganizationUpdate) RemoveExports(v ...*Export) *OrganizationUpdate { return _u.RemoveExportIDs(ids...) } +// ClearAudiences clears all "audiences" edges to the Audience entity. +func (_u *OrganizationUpdate) ClearAudiences() *OrganizationUpdate { + _u.mutation.ClearAudiences() + return _u +} + +// RemoveAudienceIDs removes the "audiences" edge to Audience entities by IDs. +func (_u *OrganizationUpdate) RemoveAudienceIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAudienceIDs(ids...) + return _u +} + +// RemoveAudiences removes "audiences" edges to Audience entities. +func (_u *OrganizationUpdate) RemoveAudiences(v ...*Audience) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceIDs(ids...) +} + +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *OrganizationUpdate) ClearAudienceMembers() *OrganizationUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *OrganizationUpdate) RemoveAudienceMemberIDs(ids ...string) *OrganizationUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *OrganizationUpdate) RemoveAudienceMembers(v ...*AudienceMember) *OrganizationUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. func (_u *OrganizationUpdate) ClearTrustCenterWatermarkConfigs() *OrganizationUpdate { _u.mutation.ClearTrustCenterWatermarkConfigs() @@ -6332,6 +6478,96 @@ func (_u *OrganizationUpdate) sqlSave(ctx context.Context) (_node int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMemberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMemberCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceMemberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMemberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + 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, @@ -11991,6 +12227,96 @@ func (_u *OrganizationUpdate) sqlSave(ctx context.Context) (_node int, err error } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudiencesIDs(); len(nodes) > 0 && !_u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.TrustCenterWatermarkConfigsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, @@ -13532,6 +13858,36 @@ func (_u *OrganizationUpdateOne) AddAssetCreators(v ...*Group) *OrganizationUpda return _u.AddAssetCreatorIDs(ids...) } +// AddAudienceCreatorIDs adds the "audience_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddAudienceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAudienceCreatorIDs(ids...) + return _u +} + +// AddAudienceCreators adds the "audience_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddAudienceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceCreatorIDs(ids...) +} + +// AddAudienceMemberCreatorIDs adds the "audience_member_creators" edge to the Group entity by IDs. +func (_u *OrganizationUpdateOne) AddAudienceMemberCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAudienceMemberCreatorIDs(ids...) + return _u +} + +// AddAudienceMemberCreators adds the "audience_member_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) AddAudienceMemberCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberCreatorIDs(ids...) +} + // AddCampaignCreatorIDs adds the "campaign_creators" edge to the Group entity by IDs. func (_u *OrganizationUpdateOne) AddCampaignCreatorIDs(ids ...string) *OrganizationUpdateOne { _u.mutation.AddCampaignCreatorIDs(ids...) @@ -15430,6 +15786,36 @@ func (_u *OrganizationUpdateOne) AddExports(v ...*Export) *OrganizationUpdateOne return _u.AddExportIDs(ids...) } +// AddAudienceIDs adds the "audiences" edge to the Audience entity by IDs. +func (_u *OrganizationUpdateOne) AddAudienceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAudienceIDs(ids...) + return _u +} + +// AddAudiences adds the "audiences" edges to the Audience entity. +func (_u *OrganizationUpdateOne) AddAudiences(v ...*Audience) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceIDs(ids...) +} + +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *OrganizationUpdateOne) AddAudienceMemberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *OrganizationUpdateOne) AddAudienceMembers(v ...*AudienceMember) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(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...) @@ -15924,6 +16310,48 @@ func (_u *OrganizationUpdateOne) RemoveAssetCreators(v ...*Group) *OrganizationU return _u.RemoveAssetCreatorIDs(ids...) } +// ClearAudienceCreators clears all "audience_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearAudienceCreators() *OrganizationUpdateOne { + _u.mutation.ClearAudienceCreators() + return _u +} + +// RemoveAudienceCreatorIDs removes the "audience_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAudienceCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAudienceCreatorIDs(ids...) + return _u +} + +// RemoveAudienceCreators removes "audience_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveAudienceCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceCreatorIDs(ids...) +} + +// ClearAudienceMemberCreators clears all "audience_member_creators" edges to the Group entity. +func (_u *OrganizationUpdateOne) ClearAudienceMemberCreators() *OrganizationUpdateOne { + _u.mutation.ClearAudienceMemberCreators() + return _u +} + +// RemoveAudienceMemberCreatorIDs removes the "audience_member_creators" edge to Group entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAudienceMemberCreatorIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAudienceMemberCreatorIDs(ids...) + return _u +} + +// RemoveAudienceMemberCreators removes "audience_member_creators" edges to Group entities. +func (_u *OrganizationUpdateOne) RemoveAudienceMemberCreators(v ...*Group) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberCreatorIDs(ids...) +} + // ClearCampaignCreators clears all "campaign_creators" edges to the Group entity. func (_u *OrganizationUpdateOne) ClearCampaignCreators() *OrganizationUpdateOne { _u.mutation.ClearCampaignCreators() @@ -18540,6 +18968,48 @@ func (_u *OrganizationUpdateOne) RemoveExports(v ...*Export) *OrganizationUpdate return _u.RemoveExportIDs(ids...) } +// ClearAudiences clears all "audiences" edges to the Audience entity. +func (_u *OrganizationUpdateOne) ClearAudiences() *OrganizationUpdateOne { + _u.mutation.ClearAudiences() + return _u +} + +// RemoveAudienceIDs removes the "audiences" edge to Audience entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAudienceIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAudienceIDs(ids...) + return _u +} + +// RemoveAudiences removes "audiences" edges to Audience entities. +func (_u *OrganizationUpdateOne) RemoveAudiences(v ...*Audience) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceIDs(ids...) +} + +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *OrganizationUpdateOne) ClearAudienceMembers() *OrganizationUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *OrganizationUpdateOne) RemoveAudienceMemberIDs(ids ...string) *OrganizationUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *OrganizationUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *OrganizationUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearTrustCenterWatermarkConfigs clears all "trust_center_watermark_configs" edges to the TrustCenterWatermarkConfig entity. func (_u *OrganizationUpdateOne) ClearTrustCenterWatermarkConfigs() *OrganizationUpdateOne { _u.mutation.ClearTrustCenterWatermarkConfigs() @@ -19480,6 +19950,96 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceCreatorsTable, + Columns: []string{organization.AudienceCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMemberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMemberCreatorsIDs(); len(nodes) > 0 && !_u.mutation.AudienceMemberCreatorsCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMemberCreatorsIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMemberCreatorsTable, + Columns: []string{organization.AudienceMemberCreatorsColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(group.FieldID, field.TypeString), + }, + } + 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, @@ -25139,6 +25699,96 @@ func (_u *OrganizationUpdateOne) sqlSave(ctx context.Context) (_node *Organizati } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudiencesIDs(); len(nodes) > 0 && !_u.mutation.AudiencesCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudiencesIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudiencesTable, + Columns: []string{organization.AudiencesColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audience.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: organization.AudienceMembersTable, + Columns: []string{organization.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } if _u.mutation.TrustCenterWatermarkConfigsCleared() { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/generated/predicate/predicate.go b/internal/ent/generated/predicate/predicate.go index 9f2ed6a338..2510737f9e 100644 --- a/internal/ent/generated/predicate/predicate.go +++ b/internal/ent/generated/predicate/predicate.go @@ -21,6 +21,12 @@ type AssessmentResponse func(*sql.Selector) // Asset is the predicate function for asset builders. type Asset func(*sql.Selector) +// Audience is the predicate function for audience builders. +type Audience func(*sql.Selector) + +// AudienceMember is the predicate function for audiencemember builders. +type AudienceMember func(*sql.Selector) + // Campaign is the predicate function for campaign builders. type Campaign func(*sql.Selector) diff --git a/internal/ent/generated/privacy/privacy.go b/internal/ent/generated/privacy/privacy.go index 2581a9e5aa..e62c56c163 100644 --- a/internal/ent/generated/privacy/privacy.go +++ b/internal/ent/generated/privacy/privacy.go @@ -231,6 +231,54 @@ func (f AssetMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mut return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.AssetMutation", m) } +// The AudienceQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type AudienceQueryRuleFunc func(context.Context, *generated.AudienceQuery) error + +// EvalQuery return f(ctx, q). +func (f AudienceQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.AudienceQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.AudienceQuery", q) +} + +// The AudienceMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type AudienceMutationRuleFunc func(context.Context, *generated.AudienceMutation) error + +// EvalMutation calls f(ctx, m). +func (f AudienceMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.AudienceMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.AudienceMutation", m) +} + +// The AudienceMemberQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type AudienceMemberQueryRuleFunc func(context.Context, *generated.AudienceMemberQuery) error + +// EvalQuery return f(ctx, q). +func (f AudienceMemberQueryRuleFunc) EvalQuery(ctx context.Context, q generated.Query) error { + if q, ok := q.(*generated.AudienceMemberQuery); ok { + return f(ctx, q) + } + return Denyf("generated/privacy: unexpected query type %T, expect *generated.AudienceMemberQuery", q) +} + +// The AudienceMemberMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type AudienceMemberMutationRuleFunc func(context.Context, *generated.AudienceMemberMutation) error + +// EvalMutation calls f(ctx, m). +func (f AudienceMemberMutationRuleFunc) EvalMutation(ctx context.Context, m generated.Mutation) error { + if m, ok := m.(*generated.AudienceMemberMutation); ok { + return f(ctx, m) + } + return Denyf("generated/privacy: unexpected mutation type %T, expect *generated.AudienceMemberMutation", m) +} + // The CampaignQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type CampaignQueryRuleFunc func(context.Context, *generated.CampaignQuery) error @@ -2556,6 +2604,10 @@ func queryFilter(q generated.Query) (Filter, error) { return q.Filter(), nil case *generated.AssetQuery: return q.Filter(), nil + case *generated.AudienceQuery: + return q.Filter(), nil + case *generated.AudienceMemberQuery: + return q.Filter(), nil case *generated.CampaignQuery: return q.Filter(), nil case *generated.CampaignTargetQuery: @@ -2763,6 +2815,10 @@ func mutationFilter(m generated.Mutation) (Filter, error) { return m.Filter(), nil case *generated.AssetMutation: return m.Filter(), nil + case *generated.AudienceMutation: + return m.Filter(), nil + case *generated.AudienceMemberMutation: + return m.Filter(), nil case *generated.CampaignMutation: return m.Filter(), nil case *generated.CampaignTargetMutation: diff --git a/internal/ent/generated/runtime/runtime.go b/internal/ent/generated/runtime/runtime.go index 82efb09a03..7ce839e99a 100644 --- a/internal/ent/generated/runtime/runtime.go +++ b/internal/ent/generated/runtime/runtime.go @@ -12,6 +12,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/checkresult" @@ -709,6 +711,178 @@ func init() { assetDescID := assetMixinFields4[0].Descriptor() // asset.DefaultID holds the default value on creation for the id field. asset.DefaultID = assetDescID.Default.(func() string) + audienceMixin := schema.Audience{}.Mixin() + audience.Policy = privacy.NewPolicies(schema.Audience{}) + audience.Hooks[0] = func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + if err := audience.Policy.EvalMutation(ctx, m); err != nil { + return nil, err + } + return next.Mutate(ctx, m) + }) + } + audienceMixinHooks0 := audienceMixin[0].Hooks() + audienceMixinHooks1 := audienceMixin[1].Hooks() + audienceMixinHooks3 := audienceMixin[3].Hooks() + audienceMixinHooks4 := audienceMixin[4].Hooks() + audienceMixinHooks5 := audienceMixin[5].Hooks() + audienceMixinHooks7 := audienceMixin[7].Hooks() + audienceMixinHooks8 := audienceMixin[8].Hooks() + audienceHooks := schema.Audience{}.Hooks() + + audience.Hooks[1] = audienceMixinHooks0[0] + + audience.Hooks[2] = audienceMixinHooks1[0] + + audience.Hooks[3] = audienceMixinHooks3[0] + + audience.Hooks[4] = audienceMixinHooks4[0] + + audience.Hooks[5] = audienceMixinHooks5[0] + + audience.Hooks[6] = audienceMixinHooks7[0] + + audience.Hooks[7] = audienceMixinHooks8[0] + + audience.Hooks[8] = audienceMixinHooks8[1] + + audience.Hooks[9] = audienceMixinHooks8[2] + + audience.Hooks[10] = audienceHooks[0] + audienceMixinInters3 := audienceMixin[3].Interceptors() + audienceMixinInters7 := audienceMixin[7].Interceptors() + audience.Interceptors[0] = audienceMixinInters3[0] + audience.Interceptors[1] = audienceMixinInters7[0] + audienceMixinFields0 := audienceMixin[0].Fields() + _ = audienceMixinFields0 + audienceMixinFields4 := audienceMixin[4].Fields() + _ = audienceMixinFields4 + audienceMixinFields5 := audienceMixin[5].Fields() + _ = audienceMixinFields5 + audienceMixinFields7 := audienceMixin[7].Fields() + _ = audienceMixinFields7 + audienceFields := schema.Audience{}.Fields() + _ = audienceFields + // audienceDescCreatedAt is the schema descriptor for created_at field. + audienceDescCreatedAt := audienceMixinFields0[0].Descriptor() + // audience.DefaultCreatedAt holds the default value on creation for the created_at field. + audience.DefaultCreatedAt = audienceDescCreatedAt.Default.(func() time.Time) + // audienceDescUpdatedAt is the schema descriptor for updated_at field. + audienceDescUpdatedAt := audienceMixinFields0[1].Descriptor() + // audience.DefaultUpdatedAt holds the default value on creation for the updated_at field. + audience.DefaultUpdatedAt = audienceDescUpdatedAt.Default.(func() time.Time) + // audience.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + audience.UpdateDefaultUpdatedAt = audienceDescUpdatedAt.UpdateDefault.(func() time.Time) + // audienceDescDisplayID is the schema descriptor for display_id field. + audienceDescDisplayID := audienceMixinFields4[1].Descriptor() + // audience.DisplayIDValidator is a validator for the "display_id" field. It is called by the builders before save. + audience.DisplayIDValidator = audienceDescDisplayID.Validators[0].(func(string) error) + // audienceDescTags is the schema descriptor for tags field. + audienceDescTags := audienceMixinFields5[0].Descriptor() + // audience.DefaultTags holds the default value on creation for the tags field. + audience.DefaultTags = audienceDescTags.Default.([]string) + // audienceDescOwnerID is the schema descriptor for owner_id field. + audienceDescOwnerID := audienceMixinFields7[0].Descriptor() + // audience.OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. + audience.OwnerIDValidator = audienceDescOwnerID.Validators[0].(func(string) error) + // audienceDescName is the schema descriptor for name field. + audienceDescName := audienceFields[0].Descriptor() + // audience.NameValidator is a validator for the "name" field. It is called by the builders before save. + audience.NameValidator = audienceDescName.Validators[0].(func(string) error) + // audienceDescID is the schema descriptor for id field. + audienceDescID := audienceMixinFields4[0].Descriptor() + // audience.DefaultID holds the default value on creation for the id field. + audience.DefaultID = audienceDescID.Default.(func() string) + audiencememberMixin := schema.AudienceMember{}.Mixin() + audiencemember.Policy = privacy.NewPolicies(schema.AudienceMember{}) + audiencemember.Hooks[0] = func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + if err := audiencemember.Policy.EvalMutation(ctx, m); err != nil { + return nil, err + } + return next.Mutate(ctx, m) + }) + } + audiencememberMixinHooks0 := audiencememberMixin[0].Hooks() + audiencememberMixinHooks1 := audiencememberMixin[1].Hooks() + audiencememberMixinHooks3 := audiencememberMixin[3].Hooks() + audiencememberMixinHooks4 := audiencememberMixin[4].Hooks() + audiencememberMixinHooks5 := audiencememberMixin[5].Hooks() + audiencememberMixinHooks7 := audiencememberMixin[7].Hooks() + + audiencemember.Hooks[1] = audiencememberMixinHooks0[0] + + audiencemember.Hooks[2] = audiencememberMixinHooks1[0] + + audiencemember.Hooks[3] = audiencememberMixinHooks3[0] + + audiencemember.Hooks[4] = audiencememberMixinHooks4[0] + + audiencemember.Hooks[5] = audiencememberMixinHooks5[0] + + audiencemember.Hooks[6] = audiencememberMixinHooks7[0] + audiencememberMixinInters3 := audiencememberMixin[3].Interceptors() + audiencememberMixinInters7 := audiencememberMixin[7].Interceptors() + audiencemember.Interceptors[0] = audiencememberMixinInters3[0] + audiencemember.Interceptors[1] = audiencememberMixinInters7[0] + audiencememberMixinFields0 := audiencememberMixin[0].Fields() + _ = audiencememberMixinFields0 + audiencememberMixinFields4 := audiencememberMixin[4].Fields() + _ = audiencememberMixinFields4 + audiencememberMixinFields5 := audiencememberMixin[5].Fields() + _ = audiencememberMixinFields5 + audiencememberMixinFields7 := audiencememberMixin[7].Fields() + _ = audiencememberMixinFields7 + audiencememberFields := schema.AudienceMember{}.Fields() + _ = audiencememberFields + // audiencememberDescCreatedAt is the schema descriptor for created_at field. + audiencememberDescCreatedAt := audiencememberMixinFields0[0].Descriptor() + // audiencemember.DefaultCreatedAt holds the default value on creation for the created_at field. + audiencemember.DefaultCreatedAt = audiencememberDescCreatedAt.Default.(func() time.Time) + // audiencememberDescUpdatedAt is the schema descriptor for updated_at field. + audiencememberDescUpdatedAt := audiencememberMixinFields0[1].Descriptor() + // audiencemember.DefaultUpdatedAt holds the default value on creation for the updated_at field. + audiencemember.DefaultUpdatedAt = audiencememberDescUpdatedAt.Default.(func() time.Time) + // audiencemember.UpdateDefaultUpdatedAt holds the default value on update for the updated_at field. + audiencemember.UpdateDefaultUpdatedAt = audiencememberDescUpdatedAt.UpdateDefault.(func() time.Time) + // audiencememberDescDisplayID is the schema descriptor for display_id field. + audiencememberDescDisplayID := audiencememberMixinFields4[1].Descriptor() + // audiencemember.DisplayIDValidator is a validator for the "display_id" field. It is called by the builders before save. + audiencemember.DisplayIDValidator = audiencememberDescDisplayID.Validators[0].(func(string) error) + // audiencememberDescTags is the schema descriptor for tags field. + audiencememberDescTags := audiencememberMixinFields5[0].Descriptor() + // audiencemember.DefaultTags holds the default value on creation for the tags field. + audiencemember.DefaultTags = audiencememberDescTags.Default.([]string) + // audiencememberDescOwnerID is the schema descriptor for owner_id field. + audiencememberDescOwnerID := audiencememberMixinFields7[0].Descriptor() + // audiencemember.OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. + audiencemember.OwnerIDValidator = audiencememberDescOwnerID.Validators[0].(func(string) error) + // audiencememberDescAudienceID is the schema descriptor for audience_id field. + audiencememberDescAudienceID := audiencememberFields[0].Descriptor() + // audiencemember.AudienceIDValidator is a validator for the "audience_id" field. It is called by the builders before save. + audiencemember.AudienceIDValidator = audiencememberDescAudienceID.Validators[0].(func(string) error) + // audiencememberDescEmail is the schema descriptor for email field. + audiencememberDescEmail := audiencememberFields[6].Descriptor() + // audiencemember.EmailValidator is a validator for the "email" field. It is called by the builders before save. + audiencemember.EmailValidator = func() func(string) error { + validators := audiencememberDescEmail.Validators + fns := [...]func(string) error{ + validators[0].(func(string) error), + validators[1].(func(string) error), + } + return func(email string) error { + for _, fn := range fns { + if err := fn(email); err != nil { + return err + } + } + return nil + } + }() + // audiencememberDescID is the schema descriptor for id field. + audiencememberDescID := audiencememberMixinFields4[0].Descriptor() + // audiencemember.DefaultID holds the default value on creation for the id field. + audiencemember.DefaultID = audiencememberDescID.Default.(func() string) campaignMixin := schema.Campaign{}.Mixin() campaign.Policy = privacy.NewPolicies(schema.Campaign{}) campaign.Hooks[0] = func(next ent.Mutator) ent.Mutator { @@ -5223,11 +5397,15 @@ func init() { organization.Hooks[79] = organizationMixinHooks7[74] - organization.Hooks[80] = organizationHooks[0] + organization.Hooks[80] = organizationMixinHooks7[75] + + organization.Hooks[81] = organizationMixinHooks7[76] + + organization.Hooks[82] = organizationHooks[0] - organization.Hooks[81] = organizationHooks[1] + organization.Hooks[83] = organizationHooks[1] - organization.Hooks[82] = organizationHooks[2] + organization.Hooks[84] = organizationHooks[2] organizationMixinInters3 := organizationMixin[3].Interceptors() organizationInters := schema.Organization{}.Interceptors() organization.Interceptors[0] = organizationMixinInters3[0] diff --git a/internal/ent/generated/subscriber.go b/internal/ent/generated/subscriber.go index 2ecfbd0f6d..b4d569a53a 100644 --- a/internal/ent/generated/subscriber.go +++ b/internal/ent/generated/subscriber.go @@ -86,14 +86,17 @@ type SubscriberEdges struct { Contact *Contact `json:"contact,omitempty"` // User holds the value of the user edge. User *User `json:"user,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [6]bool + loadedTypes [7]bool // totalCount holds the count of the edges above. - totalCount [6]map[string]int + totalCount [7]map[string]int namedEvents map[string][]*Event namedCampaignTargets map[string][]*CampaignTarget + namedAudienceMembers map[string][]*AudienceMember } // OwnerOrErr returns the Owner value or an error if the edge @@ -158,6 +161,15 @@ func (e SubscriberEdges) UserOrErr() (*User, error) { return nil, &NotLoadedError{edge: "user"} } +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e SubscriberEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[6] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // scanValues returns the types for scanning values from sql.Rows. func (*Subscriber) scanValues(columns []string) ([]any, error) { values := make([]any, len(columns)) @@ -374,6 +386,11 @@ func (_m *Subscriber) QueryUser() *UserQuery { return NewSubscriberClient(_m.config).QueryUser(_m) } +// QueryAudienceMembers queries the "audience_members" edge of the Subscriber entity. +func (_m *Subscriber) QueryAudienceMembers() *AudienceMemberQuery { + return NewSubscriberClient(_m.config).QueryAudienceMembers(_m) +} + // Update returns a builder for updating this Subscriber. // Note that you need to call Subscriber.Unwrap() before calling this method if this Subscriber // was returned from a transaction, and the transaction was committed or rolled back. @@ -522,5 +539,29 @@ func (_m *Subscriber) appendNamedCampaignTargets(name string, edges ...*Campaign } } +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *Subscriber) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *Subscriber) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // Subscribers is a parsable slice of Subscriber. type Subscribers []*Subscriber diff --git a/internal/ent/generated/subscriber/subscriber.go b/internal/ent/generated/subscriber/subscriber.go index 04bac46ccd..a355b5484b 100644 --- a/internal/ent/generated/subscriber/subscriber.go +++ b/internal/ent/generated/subscriber/subscriber.go @@ -71,6 +71,8 @@ const ( EdgeContact = "contact" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // Table holds the table name of the subscriber in the database. Table = "subscribers" // OwnerTable is the table that holds the owner relation/edge. @@ -113,6 +115,13 @@ const ( UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "subscriber_id" ) // Columns holds all SQL columns for subscriber fields. @@ -360,6 +369,20 @@ func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption { sqlgraph.OrderByNeighborTerms(s, newUserStep(), sql.OrderByField(field, opts...)) } } + +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} func newOwnerStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), @@ -402,3 +425,10 @@ func newUserStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.M2O, true, UserTable, UserColumn), ) } +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} diff --git a/internal/ent/generated/subscriber/where.go b/internal/ent/generated/subscriber/where.go index 4645e0b580..cef41e8ca1 100644 --- a/internal/ent/generated/subscriber/where.go +++ b/internal/ent/generated/subscriber/where.go @@ -1433,6 +1433,29 @@ func HasUserWith(preds ...predicate.User) predicate.Subscriber { }) } +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.Subscriber { + return predicate.Subscriber(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.Subscriber { + return predicate.Subscriber(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // And groups predicates with the AND operator between them. func And(predicates ...predicate.Subscriber) predicate.Subscriber { return predicate.Subscriber(sql.AndPredicates(predicates...)) diff --git a/internal/ent/generated/subscriber_create.go b/internal/ent/generated/subscriber_create.go index 773fa912d9..b19756b0f2 100644 --- a/internal/ent/generated/subscriber_create.go +++ b/internal/ent/generated/subscriber_create.go @@ -10,6 +10,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" "github.com/theopenlane/core/v2/internal/ent/generated/event" @@ -358,6 +359,21 @@ func (_c *SubscriberCreate) SetUser(v *User) *SubscriberCreate { return _c.SetUserID(v.ID) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *SubscriberCreate) AddAudienceMemberIDs(ids ...string) *SubscriberCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *SubscriberCreate) AddAudienceMembers(v ...*AudienceMember) *SubscriberCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + // Mutation returns the SubscriberMutation object of the builder. func (_c *SubscriberCreate) Mutation() *SubscriberMutation { return _c.mutation @@ -699,6 +715,22 @@ func (_c *SubscriberCreate) createSpec() (*Subscriber, *sqlgraph.CreateSpec) { _node.UserID = nodes[0] _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } return _node, _spec } diff --git a/internal/ent/generated/subscriber_query.go b/internal/ent/generated/subscriber_query.go index cc2bde3c4f..ca39c33086 100644 --- a/internal/ent/generated/subscriber_query.go +++ b/internal/ent/generated/subscriber_query.go @@ -13,6 +13,7 @@ import ( "entgo.io/ent/dialect/sql" "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" "github.com/theopenlane/core/v2/internal/ent/generated/event" @@ -38,10 +39,12 @@ type SubscriberQuery struct { withCampaignTargets *CampaignTargetQuery withContact *ContactQuery withUser *UserQuery + withAudienceMembers *AudienceMemberQuery loadTotal []func(context.Context, []*Subscriber) error modifiers []func(*sql.Selector) withNamedEvents map[string]*EventQuery withNamedCampaignTargets map[string]*CampaignTargetQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery // intermediate query (i.e. traversal path). sql *sql.Selector path func(context.Context) (*sql.Selector, error) @@ -210,6 +213,28 @@ func (_q *SubscriberQuery) QueryUser() *UserQuery { return query } +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *SubscriberQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(subscriber.Table, subscriber.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, subscriber.AudienceMembersTable, subscriber.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // First returns the first Subscriber entity from the query. // Returns a *NotFoundError when no Subscriber was found. func (_q *SubscriberQuery) First(ctx context.Context) (*Subscriber, error) { @@ -408,6 +433,7 @@ func (_q *SubscriberQuery) Clone() *SubscriberQuery { withCampaignTargets: _q.withCampaignTargets.Clone(), withContact: _q.withContact.Clone(), withUser: _q.withUser.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), // clone intermediate query. sql: _q.sql.Clone(), path: _q.path, @@ -481,6 +507,17 @@ func (_q *SubscriberQuery) WithUser(opts ...func(*UserQuery)) *SubscriberQuery { return _q } +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *SubscriberQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *SubscriberQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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. // @@ -565,13 +602,14 @@ func (_q *SubscriberQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*S var ( nodes = []*Subscriber{} _spec = _q.querySpec() - loadedTypes = [6]bool{ + loadedTypes = [7]bool{ _q.withOwner != nil, _q.withEvents != nil, _q.withTrustCenter != nil, _q.withCampaignTargets != nil, _q.withContact != nil, _q.withUser != nil, + _q.withAudienceMembers != nil, } ) _spec.ScanValues = func(columns []string) ([]any, error) { @@ -633,6 +671,13 @@ func (_q *SubscriberQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*S return nil, err } } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Subscriber) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *Subscriber, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedEvents { if err := _q.loadEvents(ctx, query, nodes, func(n *Subscriber) { n.appendNamedEvents(name) }, @@ -647,6 +692,13 @@ func (_q *SubscriberQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*S return nil, err } } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *Subscriber) { n.appendNamedAudienceMembers(name) }, + func(n *Subscriber, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } for i := range _q.loadTotal { if err := _q.loadTotal[i](ctx, nodes); err != nil { return nil, err @@ -865,6 +917,36 @@ func (_q *SubscriberQuery) loadUser(ctx context.Context, query *UserQuery, nodes } return nil } +func (_q *SubscriberQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*Subscriber, init func(*Subscriber), assign func(*Subscriber, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*Subscriber) + 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(audiencemember.FieldSubscriberID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(subscriber.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.SubscriberID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "subscriber_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} func (_q *SubscriberQuery) sqlCount(ctx context.Context) (int, error) { _spec := _q.querySpec() @@ -999,6 +1081,20 @@ func (_q *SubscriberQuery) WithNamedCampaignTargets(name string, opts ...func(*C return _q } +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *SubscriberQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *SubscriberQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // CountIDs returns the count of ids with FGA batch filtering applied func (sq *SubscriberQuery) CountIDs(ctx context.Context) (int, error) { logx.FromContext(ctx).Debug().Str("query_type", "Subscriber").Str("operation", "count_ids").Msg("CountIDs: starting") diff --git a/internal/ent/generated/subscriber_update.go b/internal/ent/generated/subscriber_update.go index 24e1bbdef5..de7f519815 100644 --- a/internal/ent/generated/subscriber_update.go +++ b/internal/ent/generated/subscriber_update.go @@ -12,6 +12,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/dialect/sql/sqljson" "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" "github.com/theopenlane/core/v2/internal/ent/generated/event" @@ -395,6 +396,21 @@ func (_u *SubscriberUpdate) SetUser(v *User) *SubscriberUpdate { return _u.SetUserID(v.ID) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *SubscriberUpdate) AddAudienceMemberIDs(ids ...string) *SubscriberUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *SubscriberUpdate) AddAudienceMembers(v ...*AudienceMember) *SubscriberUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // Mutation returns the SubscriberMutation object of the builder. func (_u *SubscriberUpdate) Mutation() *SubscriberMutation { return _u.mutation @@ -460,6 +476,27 @@ func (_u *SubscriberUpdate) ClearUser() *SubscriberUpdate { return _u } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *SubscriberUpdate) ClearAudienceMembers() *SubscriberUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *SubscriberUpdate) RemoveAudienceMemberIDs(ids ...string) *SubscriberUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *SubscriberUpdate) RemoveAudienceMembers(v ...*AudienceMember) *SubscriberUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // Save executes the query and returns the number of nodes affected by the update operation. func (_u *SubscriberUpdate) Save(ctx context.Context) (int, error) { if err := _u.defaults(); err != nil { @@ -805,6 +842,51 @@ func (_u *SubscriberUpdate) sqlSave(ctx context.Context) (_node int, err error) } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } _spec.AddModifiers(_u.modifiers...) if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { if _, ok := err.(*sqlgraph.NotFoundError); ok { @@ -1187,6 +1269,21 @@ func (_u *SubscriberUpdateOne) SetUser(v *User) *SubscriberUpdateOne { return _u.SetUserID(v.ID) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *SubscriberUpdateOne) AddAudienceMemberIDs(ids ...string) *SubscriberUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *SubscriberUpdateOne) AddAudienceMembers(v ...*AudienceMember) *SubscriberUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // Mutation returns the SubscriberMutation object of the builder. func (_u *SubscriberUpdateOne) Mutation() *SubscriberMutation { return _u.mutation @@ -1252,6 +1349,27 @@ func (_u *SubscriberUpdateOne) ClearUser() *SubscriberUpdateOne { return _u } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *SubscriberUpdateOne) ClearAudienceMembers() *SubscriberUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *SubscriberUpdateOne) RemoveAudienceMemberIDs(ids ...string) *SubscriberUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *SubscriberUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *SubscriberUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // Where appends a list predicates to the SubscriberUpdate builder. func (_u *SubscriberUpdateOne) Where(ps ...predicate.Subscriber) *SubscriberUpdateOne { _u.mutation.Where(ps...) @@ -1627,6 +1745,51 @@ func (_u *SubscriberUpdateOne) sqlSave(ctx context.Context) (_node *Subscriber, } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: subscriber.AudienceMembersTable, + Columns: []string{subscriber.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Add = append(_spec.Edges.Add, edge) + } _spec.AddModifiers(_u.modifiers...) _node = &Subscriber{config: _u.config} _spec.Assign = _node.assignValues diff --git a/internal/ent/generated/tx.go b/internal/ent/generated/tx.go index 23bd384a19..e2a56131cd 100644 --- a/internal/ent/generated/tx.go +++ b/internal/ent/generated/tx.go @@ -22,6 +22,10 @@ type Tx struct { AssessmentResponse *AssessmentResponseClient // Asset is the client for interacting with the Asset builders. Asset *AssetClient + // Audience is the client for interacting with the Audience builders. + Audience *AudienceClient + // AudienceMember is the client for interacting with the AudienceMember builders. + AudienceMember *AudienceMemberClient // Campaign is the client for interacting with the Campaign builders. Campaign *CampaignClient // CampaignTarget is the client for interacting with the CampaignTarget builders. @@ -348,6 +352,8 @@ func (tx *Tx) init() { tx.Assessment = NewAssessmentClient(tx.config) tx.AssessmentResponse = NewAssessmentResponseClient(tx.config) tx.Asset = NewAssetClient(tx.config) + tx.Audience = NewAudienceClient(tx.config) + tx.AudienceMember = NewAudienceMemberClient(tx.config) tx.Campaign = NewCampaignClient(tx.config) tx.CampaignTarget = NewCampaignTargetClient(tx.config) tx.CheckResult = NewCheckResultClient(tx.config) diff --git a/internal/ent/generated/user.go b/internal/ent/generated/user.go index c34095979c..d547594a4a 100644 --- a/internal/ent/generated/user.go +++ b/internal/ent/generated/user.go @@ -111,6 +111,8 @@ type UserEdges struct { Campaigns []*Campaign `json:"campaigns,omitempty"` // CampaignTargets holds the value of the campaign_targets edge. CampaignTargets []*CampaignTarget `json:"campaign_targets,omitempty"` + // AudienceMembers holds the value of the audience_members edge. + AudienceMembers []*AudienceMember `json:"audience_members,omitempty"` // Subcontrols holds the value of the subcontrols edge. Subcontrols []*Subcontrol `json:"subcontrols,omitempty"` // AssignerTasks holds the value of the assigner_tasks edge. @@ -137,9 +139,9 @@ type UserEdges struct { ProgramMemberships []*ProgramMembership `json:"program_memberships,omitempty"` // loadedTypes holds the information for reporting if a // type was loaded (or requested) in eager-loading or not. - loadedTypes [27]bool + loadedTypes [28]bool // totalCount holds the count of the edges above. - totalCount [22]map[string]int + totalCount [23]map[string]int namedPersonalAccessTokens map[string][]*PersonalAccessToken namedTfaSettings map[string][]*TFASetting @@ -154,6 +156,7 @@ type UserEdges struct { namedActionPlans map[string][]*ActionPlan namedCampaigns map[string][]*Campaign namedCampaignTargets map[string][]*CampaignTarget + namedAudienceMembers map[string][]*AudienceMember namedSubcontrols map[string][]*Subcontrol namedAssignerTasks map[string][]*Task namedAssigneeTasks map[string][]*Task @@ -307,10 +310,19 @@ func (e UserEdges) CampaignTargetsOrErr() ([]*CampaignTarget, error) { return nil, &NotLoadedError{edge: "campaign_targets"} } +// AudienceMembersOrErr returns the AudienceMembers value or an error if the edge +// was not loaded in eager-loading. +func (e UserEdges) AudienceMembersOrErr() ([]*AudienceMember, error) { + if e.loadedTypes[15] { + return e.AudienceMembers, nil + } + return nil, &NotLoadedError{edge: "audience_members"} +} + // SubcontrolsOrErr returns the Subcontrols value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { - if e.loadedTypes[15] { + if e.loadedTypes[16] { return e.Subcontrols, nil } return nil, &NotLoadedError{edge: "subcontrols"} @@ -319,7 +331,7 @@ func (e UserEdges) SubcontrolsOrErr() ([]*Subcontrol, error) { // AssignerTasksOrErr returns the AssignerTasks value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) AssignerTasksOrErr() ([]*Task, error) { - if e.loadedTypes[16] { + if e.loadedTypes[17] { return e.AssignerTasks, nil } return nil, &NotLoadedError{edge: "assigner_tasks"} @@ -328,7 +340,7 @@ func (e UserEdges) AssignerTasksOrErr() ([]*Task, error) { // AssigneeTasksOrErr returns the AssigneeTasks value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) AssigneeTasksOrErr() ([]*Task, error) { - if e.loadedTypes[17] { + if e.loadedTypes[18] { return e.AssigneeTasks, nil } return nil, &NotLoadedError{edge: "assignee_tasks"} @@ -337,7 +349,7 @@ func (e UserEdges) AssigneeTasksOrErr() ([]*Task, error) { // ProgramsOrErr returns the Programs value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) ProgramsOrErr() ([]*Program, error) { - if e.loadedTypes[18] { + if e.loadedTypes[19] { return e.Programs, nil } return nil, &NotLoadedError{edge: "programs"} @@ -346,7 +358,7 @@ func (e UserEdges) ProgramsOrErr() ([]*Program, error) { // ProgramsOwnedOrErr returns the ProgramsOwned value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) ProgramsOwnedOrErr() ([]*Program, error) { - if e.loadedTypes[19] { + if e.loadedTypes[20] { return e.ProgramsOwned, nil } return nil, &NotLoadedError{edge: "programs_owned"} @@ -355,7 +367,7 @@ func (e UserEdges) ProgramsOwnedOrErr() ([]*Program, error) { // PlatformsOwnedOrErr returns the PlatformsOwned value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) PlatformsOwnedOrErr() ([]*Platform, error) { - if e.loadedTypes[20] { + if e.loadedTypes[21] { return e.PlatformsOwned, nil } return nil, &NotLoadedError{edge: "platforms_owned"} @@ -364,7 +376,7 @@ func (e UserEdges) PlatformsOwnedOrErr() ([]*Platform, error) { // IdentityHolderProfilesOrErr returns the IdentityHolderProfiles value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) IdentityHolderProfilesOrErr() ([]*IdentityHolder, error) { - if e.loadedTypes[21] { + if e.loadedTypes[22] { return e.IdentityHolderProfiles, nil } return nil, &NotLoadedError{edge: "identity_holder_profiles"} @@ -373,7 +385,7 @@ func (e UserEdges) IdentityHolderProfilesOrErr() ([]*IdentityHolder, error) { // ImpersonationEventsOrErr returns the ImpersonationEvents value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) ImpersonationEventsOrErr() ([]*ImpersonationEvent, error) { - if e.loadedTypes[22] { + if e.loadedTypes[23] { return e.ImpersonationEvents, nil } return nil, &NotLoadedError{edge: "impersonation_events"} @@ -382,7 +394,7 @@ func (e UserEdges) ImpersonationEventsOrErr() ([]*ImpersonationEvent, error) { // TargetedImpersonationsOrErr returns the TargetedImpersonations value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) TargetedImpersonationsOrErr() ([]*ImpersonationEvent, error) { - if e.loadedTypes[23] { + if e.loadedTypes[24] { return e.TargetedImpersonations, nil } return nil, &NotLoadedError{edge: "targeted_impersonations"} @@ -391,7 +403,7 @@ func (e UserEdges) TargetedImpersonationsOrErr() ([]*ImpersonationEvent, error) // GroupMembershipsOrErr returns the GroupMemberships value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) GroupMembershipsOrErr() ([]*GroupMembership, error) { - if e.loadedTypes[24] { + if e.loadedTypes[25] { return e.GroupMemberships, nil } return nil, &NotLoadedError{edge: "group_memberships"} @@ -400,7 +412,7 @@ func (e UserEdges) GroupMembershipsOrErr() ([]*GroupMembership, error) { // OrgMembershipsOrErr returns the OrgMemberships value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) OrgMembershipsOrErr() ([]*OrgMembership, error) { - if e.loadedTypes[25] { + if e.loadedTypes[26] { return e.OrgMemberships, nil } return nil, &NotLoadedError{edge: "org_memberships"} @@ -409,7 +421,7 @@ func (e UserEdges) OrgMembershipsOrErr() ([]*OrgMembership, error) { // ProgramMembershipsOrErr returns the ProgramMemberships value or an error if the edge // was not loaded in eager-loading. func (e UserEdges) ProgramMembershipsOrErr() ([]*ProgramMembership, error) { - if e.loadedTypes[26] { + if e.loadedTypes[27] { return e.ProgramMemberships, nil } return nil, &NotLoadedError{edge: "program_memberships"} @@ -704,6 +716,11 @@ func (_m *User) QueryCampaignTargets() *CampaignTargetQuery { return NewUserClient(_m.config).QueryCampaignTargets(_m) } +// QueryAudienceMembers queries the "audience_members" edge of the User entity. +func (_m *User) QueryAudienceMembers() *AudienceMemberQuery { + return NewUserClient(_m.config).QueryAudienceMembers(_m) +} + // QuerySubcontrols queries the "subcontrols" edge of the User entity. func (_m *User) QuerySubcontrols() *SubcontrolQuery { return NewUserClient(_m.config).QuerySubcontrols(_m) @@ -1195,6 +1212,30 @@ func (_m *User) appendNamedCampaignTargets(name string, edges ...*CampaignTarget } } +// NamedAudienceMembers returns the AudienceMembers named value or an error if the edge was not +// loaded in eager-loading with this name. +func (_m *User) NamedAudienceMembers(name string) ([]*AudienceMember, error) { + if _m.Edges.namedAudienceMembers == nil { + return nil, &NotLoadedError{edge: name} + } + nodes, ok := _m.Edges.namedAudienceMembers[name] + if !ok { + return nil, &NotLoadedError{edge: name} + } + return nodes, nil +} + +func (_m *User) appendNamedAudienceMembers(name string, edges ...*AudienceMember) { + if _m.Edges.namedAudienceMembers == nil { + _m.Edges.namedAudienceMembers = make(map[string][]*AudienceMember) + } + if len(edges) == 0 { + _m.Edges.namedAudienceMembers[name] = []*AudienceMember{} + } else { + _m.Edges.namedAudienceMembers[name] = append(_m.Edges.namedAudienceMembers[name], edges...) + } +} + // NamedSubcontrols returns the Subcontrols named value or an error if the edge was not // loaded in eager-loading with this name. func (_m *User) NamedSubcontrols(name string) ([]*Subcontrol, error) { diff --git a/internal/ent/generated/user/user.go b/internal/ent/generated/user/user.go index 0fe5617b75..3c32839713 100644 --- a/internal/ent/generated/user/user.go +++ b/internal/ent/generated/user/user.go @@ -100,6 +100,8 @@ const ( EdgeCampaigns = "campaigns" // EdgeCampaignTargets holds the string denoting the campaign_targets edge name in mutations. EdgeCampaignTargets = "campaign_targets" + // EdgeAudienceMembers holds the string denoting the audience_members edge name in mutations. + EdgeAudienceMembers = "audience_members" // EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations. EdgeSubcontrols = "subcontrols" // EdgeAssignerTasks holds the string denoting the assigner_tasks edge name in mutations. @@ -223,6 +225,13 @@ const ( CampaignTargetsInverseTable = "campaign_targets" // CampaignTargetsColumn is the table column denoting the campaign_targets relation/edge. CampaignTargetsColumn = "user_id" + // AudienceMembersTable is the table that holds the audience_members relation/edge. + AudienceMembersTable = "audience_members" + // AudienceMembersInverseTable is the table name for the AudienceMember entity. + // It exists in this package in order to avoid circular dependency with the "audiencemember" package. + AudienceMembersInverseTable = "audience_members" + // AudienceMembersColumn is the table column denoting the audience_members relation/edge. + AudienceMembersColumn = "user_id" // SubcontrolsTable is the table that holds the subcontrols relation/edge. SubcontrolsTable = "subcontrols" // SubcontrolsInverseTable is the table name for the Subcontrol entity. @@ -768,6 +777,20 @@ func ByCampaignTargets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { } } +// ByAudienceMembersCount orders the results by audience_members count. +func ByAudienceMembersCount(opts ...sql.OrderTermOption) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborsCount(s, newAudienceMembersStep(), opts...) + } +} + +// ByAudienceMembers orders the results by audience_members terms. +func ByAudienceMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption { + return func(s *sql.Selector) { + sqlgraph.OrderByNeighborTerms(s, newAudienceMembersStep(), append([]sql.OrderTerm{term}, terms...)...) + } +} + // BySubcontrolsCount orders the results by subcontrols count. func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption { return func(s *sql.Selector) { @@ -1040,6 +1063,13 @@ func newCampaignTargetsStep() *sqlgraph.Step { sqlgraph.Edge(sqlgraph.O2M, false, CampaignTargetsTable, CampaignTargetsColumn), ) } +func newAudienceMembersStep() *sqlgraph.Step { + return sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.To(AudienceMembersInverseTable, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) +} func newSubcontrolsStep() *sqlgraph.Step { return sqlgraph.NewStep( sqlgraph.From(Table, FieldID), diff --git a/internal/ent/generated/user/where.go b/internal/ent/generated/user/where.go index 101fe1bdd7..65c4e6b3ab 100644 --- a/internal/ent/generated/user/where.go +++ b/internal/ent/generated/user/where.go @@ -2081,6 +2081,29 @@ func HasCampaignTargetsWith(preds ...predicate.CampaignTarget) predicate.User { }) } +// HasAudienceMembers applies the HasEdge predicate on the "audience_members" edge. +func HasAudienceMembers() predicate.User { + return predicate.User(func(s *sql.Selector) { + step := sqlgraph.NewStep( + sqlgraph.From(Table, FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, AudienceMembersTable, AudienceMembersColumn), + ) + sqlgraph.HasNeighbors(s, step) + }) +} + +// HasAudienceMembersWith applies the HasEdge predicate on the "audience_members" edge with a given conditions (other predicates). +func HasAudienceMembersWith(preds ...predicate.AudienceMember) predicate.User { + return predicate.User(func(s *sql.Selector) { + step := newAudienceMembersStep() + sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) { + for _, p := range preds { + p(s) + } + }) + }) +} + // HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge. func HasSubcontrols() predicate.User { return predicate.User(func(s *sql.Selector) { diff --git a/internal/ent/generated/user_create.go b/internal/ent/generated/user_create.go index 606c64350b..5df61a02bc 100644 --- a/internal/ent/generated/user_create.go +++ b/internal/ent/generated/user_create.go @@ -12,6 +12,7 @@ import ( "entgo.io/ent/schema/field" "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/emailverificationtoken" @@ -616,6 +617,21 @@ func (_c *UserCreate) AddCampaignTargets(v ...*CampaignTarget) *UserCreate { return _c.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_c *UserCreate) AddAudienceMemberIDs(ids ...string) *UserCreate { + _c.mutation.AddAudienceMemberIDs(ids...) + return _c +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_c *UserCreate) AddAudienceMembers(v ...*AudienceMember) *UserCreate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _c.AddAudienceMemberIDs(ids...) +} + // AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. func (_c *UserCreate) AddSubcontrolIDs(ids ...string) *UserCreate { _c.mutation.AddSubcontrolIDs(ids...) @@ -1332,6 +1348,22 @@ func (_c *UserCreate) createSpec() (*User, *sqlgraph.CreateSpec) { } _spec.Edges = append(_spec.Edges, edge) } + if nodes := _c.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges = append(_spec.Edges, edge) + } if nodes := _c.mutation.SubcontrolsIDs(); len(nodes) > 0 { edge := &sqlgraph.EdgeSpec{ Rel: sqlgraph.O2M, diff --git a/internal/ent/generated/user_query.go b/internal/ent/generated/user_query.go index b62e7ec81b..0ca02f86a9 100644 --- a/internal/ent/generated/user_query.go +++ b/internal/ent/generated/user_query.go @@ -14,6 +14,7 @@ import ( "entgo.io/ent/dialect/sql/sqlgraph" "entgo.io/ent/schema/field" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/emailverificationtoken" @@ -65,6 +66,7 @@ type UserQuery struct { withActionPlans *ActionPlanQuery withCampaigns *CampaignQuery withCampaignTargets *CampaignTargetQuery + withAudienceMembers *AudienceMemberQuery withSubcontrols *SubcontrolQuery withAssignerTasks *TaskQuery withAssigneeTasks *TaskQuery @@ -92,6 +94,7 @@ type UserQuery struct { withNamedActionPlans map[string]*ActionPlanQuery withNamedCampaigns map[string]*CampaignQuery withNamedCampaignTargets map[string]*CampaignTargetQuery + withNamedAudienceMembers map[string]*AudienceMemberQuery withNamedSubcontrols map[string]*SubcontrolQuery withNamedAssignerTasks map[string]*TaskQuery withNamedAssigneeTasks map[string]*TaskQuery @@ -470,6 +473,28 @@ func (_q *UserQuery) QueryCampaignTargets() *CampaignTargetQuery { return query } +// QueryAudienceMembers chains the current query on the "audience_members" edge. +func (_q *UserQuery) QueryAudienceMembers() *AudienceMemberQuery { + query := (&AudienceMemberClient{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(user.Table, user.FieldID, selector), + sqlgraph.To(audiencemember.Table, audiencemember.FieldID), + sqlgraph.Edge(sqlgraph.O2M, false, user.AudienceMembersTable, user.AudienceMembersColumn), + ) + fromU = sqlgraph.SetNeighbors(_q.driver.Dialect(), step) + return fromU, nil + } + return query +} + // QuerySubcontrols chains the current query on the "subcontrols" edge. func (_q *UserQuery) QuerySubcontrols() *SubcontrolQuery { query := (&SubcontrolClient{config: _q.config}).Query() @@ -941,6 +966,7 @@ func (_q *UserQuery) Clone() *UserQuery { withActionPlans: _q.withActionPlans.Clone(), withCampaigns: _q.withCampaigns.Clone(), withCampaignTargets: _q.withCampaignTargets.Clone(), + withAudienceMembers: _q.withAudienceMembers.Clone(), withSubcontrols: _q.withSubcontrols.Clone(), withAssignerTasks: _q.withAssignerTasks.Clone(), withAssigneeTasks: _q.withAssigneeTasks.Clone(), @@ -1125,6 +1151,17 @@ func (_q *UserQuery) WithCampaignTargets(opts ...func(*CampaignTargetQuery)) *Us return _q } +// WithAudienceMembers tells the query-builder to eager-load the nodes that are connected to +// the "audience_members" edge. The optional arguments are used to configure the query builder of the edge. +func (_q *UserQuery) WithAudienceMembers(opts ...func(*AudienceMemberQuery)) *UserQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + _q.withAudienceMembers = 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 *UserQuery) WithSubcontrols(opts ...func(*SubcontrolQuery)) *UserQuery { @@ -1341,7 +1378,7 @@ func (_q *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e var ( nodes = []*User{} _spec = _q.querySpec() - loadedTypes = [27]bool{ + loadedTypes = [28]bool{ _q.withPersonalAccessTokens != nil, _q.withTfaSettings != nil, _q.withSetting != nil, @@ -1357,6 +1394,7 @@ func (_q *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e _q.withActionPlans != nil, _q.withCampaigns != nil, _q.withCampaignTargets != nil, + _q.withAudienceMembers != nil, _q.withSubcontrols != nil, _q.withAssignerTasks != nil, _q.withAssigneeTasks != nil, @@ -1503,6 +1541,13 @@ func (_q *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return nil, err } } + if query := _q.withAudienceMembers; query != nil { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *User) { n.Edges.AudienceMembers = []*AudienceMember{} }, + func(n *User, e *AudienceMember) { n.Edges.AudienceMembers = append(n.Edges.AudienceMembers, e) }); err != nil { + return nil, err + } + } if query := _q.withSubcontrols; query != nil { if err := _q.loadSubcontrols(ctx, query, nodes, func(n *User) { n.Edges.Subcontrols = []*Subcontrol{} }, @@ -1686,6 +1731,13 @@ func (_q *UserQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*User, e return nil, err } } + for name, query := range _q.withNamedAudienceMembers { + if err := _q.loadAudienceMembers(ctx, query, nodes, + func(n *User) { n.appendNamedAudienceMembers(name) }, + func(n *User, e *AudienceMember) { n.appendNamedAudienceMembers(name, e) }); err != nil { + return nil, err + } + } for name, query := range _q.withNamedSubcontrols { if err := _q.loadSubcontrols(ctx, query, nodes, func(n *User) { n.appendNamedSubcontrols(name) }, @@ -2353,6 +2405,36 @@ func (_q *UserQuery) loadCampaignTargets(ctx context.Context, query *CampaignTar } return nil } +func (_q *UserQuery) loadAudienceMembers(ctx context.Context, query *AudienceMemberQuery, nodes []*User, init func(*User), assign func(*User, *AudienceMember)) error { + fks := make([]driver.Value, 0, len(nodes)) + nodeids := make(map[string]*User) + 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(audiencemember.FieldUserID) + } + query.Where(predicate.AudienceMember(func(s *sql.Selector) { + s.Where(sql.InValues(s.C(user.AudienceMembersColumn), fks...)) + })) + neighbors, err := query.All(ctx) + if err != nil { + return err + } + for _, n := range neighbors { + fk := n.UserID + node, ok := nodeids[fk] + if !ok { + return fmt.Errorf(`unexpected referenced foreign-key "user_id" returned %v for node %v`, fk, n.ID) + } + assign(node, n) + } + return nil +} func (_q *UserQuery) loadSubcontrols(ctx context.Context, query *SubcontrolQuery, nodes []*User, init func(*User), assign func(*User, *Subcontrol)) error { fks := make([]driver.Value, 0, len(nodes)) nodeids := make(map[string]*User) @@ -3030,6 +3112,20 @@ func (_q *UserQuery) WithNamedCampaignTargets(name string, opts ...func(*Campaig return _q } +// WithNamedAudienceMembers tells the query-builder to eager-load the nodes that are connected to the "audience_members" +// edge with the given name. The optional arguments are used to configure the query builder of the edge. +func (_q *UserQuery) WithNamedAudienceMembers(name string, opts ...func(*AudienceMemberQuery)) *UserQuery { + query := (&AudienceMemberClient{config: _q.config}).Query() + for _, opt := range opts { + opt(query) + } + if _q.withNamedAudienceMembers == nil { + _q.withNamedAudienceMembers = make(map[string]*AudienceMemberQuery) + } + _q.withNamedAudienceMembers[name] = query + return _q +} + // WithNamedSubcontrols tells the query-builder to eager-load the nodes that are connected to the "subcontrols" // edge with the given name. The optional arguments are used to configure the query builder of the edge. func (_q *UserQuery) WithNamedSubcontrols(name string, opts ...func(*SubcontrolQuery)) *UserQuery { diff --git a/internal/ent/generated/user_update.go b/internal/ent/generated/user_update.go index 7f572d1128..7de53f6de0 100644 --- a/internal/ent/generated/user_update.go +++ b/internal/ent/generated/user_update.go @@ -14,6 +14,7 @@ import ( "entgo.io/ent/schema/field" "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/v2/internal/ent/generated/actionplan" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/emailverificationtoken" @@ -704,6 +705,21 @@ func (_u *UserUpdate) AddCampaignTargets(v ...*CampaignTarget) *UserUpdate { return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *UserUpdate) AddAudienceMemberIDs(ids ...string) *UserUpdate { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *UserUpdate) AddAudienceMembers(v ...*AudienceMember) *UserUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. func (_u *UserUpdate) AddSubcontrolIDs(ids ...string) *UserUpdate { _u.mutation.AddSubcontrolIDs(ids...) @@ -1174,6 +1190,27 @@ func (_u *UserUpdate) RemoveCampaignTargets(v ...*CampaignTarget) *UserUpdate { return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *UserUpdate) ClearAudienceMembers() *UserUpdate { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *UserUpdate) RemoveAudienceMemberIDs(ids ...string) *UserUpdate { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *UserUpdate) RemoveAudienceMembers(v ...*AudienceMember) *UserUpdate { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. func (_u *UserUpdate) ClearSubcontrols() *UserUpdate { _u.mutation.ClearSubcontrols() @@ -2360,6 +2397,51 @@ func (_u *UserUpdate) sqlSave(ctx context.Context) (_node int, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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, @@ -3592,6 +3674,21 @@ func (_u *UserUpdateOne) AddCampaignTargets(v ...*CampaignTarget) *UserUpdateOne return _u.AddCampaignTargetIDs(ids...) } +// AddAudienceMemberIDs adds the "audience_members" edge to the AudienceMember entity by IDs. +func (_u *UserUpdateOne) AddAudienceMemberIDs(ids ...string) *UserUpdateOne { + _u.mutation.AddAudienceMemberIDs(ids...) + return _u +} + +// AddAudienceMembers adds the "audience_members" edges to the AudienceMember entity. +func (_u *UserUpdateOne) AddAudienceMembers(v ...*AudienceMember) *UserUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.AddAudienceMemberIDs(ids...) +} + // AddSubcontrolIDs adds the "subcontrols" edge to the Subcontrol entity by IDs. func (_u *UserUpdateOne) AddSubcontrolIDs(ids ...string) *UserUpdateOne { _u.mutation.AddSubcontrolIDs(ids...) @@ -4062,6 +4159,27 @@ func (_u *UserUpdateOne) RemoveCampaignTargets(v ...*CampaignTarget) *UserUpdate return _u.RemoveCampaignTargetIDs(ids...) } +// ClearAudienceMembers clears all "audience_members" edges to the AudienceMember entity. +func (_u *UserUpdateOne) ClearAudienceMembers() *UserUpdateOne { + _u.mutation.ClearAudienceMembers() + return _u +} + +// RemoveAudienceMemberIDs removes the "audience_members" edge to AudienceMember entities by IDs. +func (_u *UserUpdateOne) RemoveAudienceMemberIDs(ids ...string) *UserUpdateOne { + _u.mutation.RemoveAudienceMemberIDs(ids...) + return _u +} + +// RemoveAudienceMembers removes "audience_members" edges to AudienceMember entities. +func (_u *UserUpdateOne) RemoveAudienceMembers(v ...*AudienceMember) *UserUpdateOne { + ids := make([]string, len(v)) + for i := range v { + ids[i] = v[i].ID + } + return _u.RemoveAudienceMemberIDs(ids...) +} + // ClearSubcontrols clears all "subcontrols" edges to the Subcontrol entity. func (_u *UserUpdateOne) ClearSubcontrols() *UserUpdateOne { _u.mutation.ClearSubcontrols() @@ -5278,6 +5396,51 @@ func (_u *UserUpdateOne) sqlSave(ctx context.Context) (_node *User, err error) { } _spec.Edges.Add = append(_spec.Edges.Add, edge) } + if _u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.RemovedAudienceMembersIDs(); len(nodes) > 0 && !_u.mutation.AudienceMembersCleared() { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + for _, k := range nodes { + edge.Target.Nodes = append(edge.Target.Nodes, k) + } + _spec.Edges.Clear = append(_spec.Edges.Clear, edge) + } + if nodes := _u.mutation.AudienceMembersIDs(); len(nodes) > 0 { + edge := &sqlgraph.EdgeSpec{ + Rel: sqlgraph.O2M, + Inverse: false, + Table: user.AudienceMembersTable, + Columns: []string{user.AudienceMembersColumn}, + Bidi: false, + Target: &sqlgraph.EdgeTarget{ + IDSpec: sqlgraph.NewFieldSpec(audiencemember.FieldID, field.TypeString), + }, + } + 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, diff --git a/internal/ent/historygenerated/audiencehistory.go b/internal/ent/historygenerated/audiencehistory.go new file mode 100644 index 0000000000..d689ef7d95 --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory.go @@ -0,0 +1,309 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "encoding/json" + "fmt" + "strings" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/entx/history" +) + +// AudienceHistory is the model entity for the AudienceHistory schema. +type AudienceHistory struct { + config `json:"-"` + // ID of the ent. + ID string `json:"id,omitempty"` + // HistoryTime holds the value of the "history_time" field. + HistoryTime time.Time `json:"history_time,omitempty"` + // Ref holds the value of the "ref" field. + Ref string `json:"ref,omitempty"` + // Operation holds the value of the "operation" field. + Operation history.OpType `json:"operation,omitempty"` + // CreatedAt holds the value of the "created_at" field. + CreatedAt time.Time `json:"created_at,omitempty"` + // UpdatedAt holds the value of the "updated_at" field. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // CreatedBy holds the value of the "created_by" field. + CreatedBy string `json:"created_by,omitempty"` + // UpdatedBy holds the value of the "updated_by" field. + UpdatedBy string `json:"updated_by,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updated_by_impersonator,omitempty"` + // DeletedAt holds the value of the "deleted_at" field. + DeletedAt time.Time `json:"deleted_at,omitempty"` + // DeletedBy holds the value of the "deleted_by" field. + DeletedBy string `json:"deleted_by,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"display_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID string `json:"owner_id,omitempty"` + // the name of the audience + Name string `json:"name,omitempty"` + // the description of the audience + Description string `json:"description,omitempty"` + // the audience resolution type + AudienceType enums.AudienceType `json:"audience_type,omitempty"` + // selector filters for dynamic audiences + Filters map[string]interface{} `json:"filters,omitempty"` + // additional metadata about the audience + Metadata map[string]interface{} `json:"metadata,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*AudienceHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case audiencehistory.FieldTags, audiencehistory.FieldFilters, audiencehistory.FieldMetadata: + values[i] = new([]byte) + case audiencehistory.FieldOperation: + values[i] = new(history.OpType) + case audiencehistory.FieldID, audiencehistory.FieldRef, audiencehistory.FieldCreatedBy, audiencehistory.FieldUpdatedBy, audiencehistory.FieldUpdatedByImpersonator, audiencehistory.FieldDeletedBy, audiencehistory.FieldDisplayID, audiencehistory.FieldOwnerID, audiencehistory.FieldName, audiencehistory.FieldDescription, audiencehistory.FieldAudienceType: + values[i] = new(sql.NullString) + case audiencehistory.FieldHistoryTime, audiencehistory.FieldCreatedAt, audiencehistory.FieldUpdatedAt, audiencehistory.FieldDeletedAt: + 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 AudienceHistory fields. +func (_m *AudienceHistory) 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 audiencehistory.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 audiencehistory.FieldHistoryTime: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field history_time", values[i]) + } else if value.Valid { + _m.HistoryTime = value.Time + } + case audiencehistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + _m.Ref = value.String + } + case audiencehistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + _m.Operation = *value + } + case audiencehistory.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 audiencehistory.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 audiencehistory.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 audiencehistory.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 audiencehistory.FieldUpdatedByImpersonator: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field updated_by_impersonator", values[i]) + } else if value.Valid { + _m.UpdatedByImpersonator = new(string) + *_m.UpdatedByImpersonator = value.String + } + case audiencehistory.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 audiencehistory.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 audiencehistory.FieldDisplayID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field display_id", values[i]) + } else if value.Valid { + _m.DisplayID = value.String + } + case audiencehistory.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 audiencehistory.FieldOwnerID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field owner_id", values[i]) + } else if value.Valid { + _m.OwnerID = value.String + } + case audiencehistory.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 audiencehistory.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 audiencehistory.FieldAudienceType: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field audience_type", values[i]) + } else if value.Valid { + _m.AudienceType = enums.AudienceType(value.String) + } + case audiencehistory.FieldFilters: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field filters", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Filters); err != nil { + return fmt.Errorf("unmarshal field filters: %w", err) + } + } + case audiencehistory.FieldMetadata: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field metadata", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { + return fmt.Errorf("unmarshal field metadata: %w", err) + } + } + default: + _m.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the AudienceHistory. +// This includes values selected through modifiers, order, etc. +func (_m *AudienceHistory) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) +} + +// Update returns a builder for updating this AudienceHistory. +// Note that you need to call AudienceHistory.Unwrap() before calling this method if this AudienceHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (_m *AudienceHistory) Update() *AudienceHistoryUpdateOne { + return NewAudienceHistoryClient(_m.config).UpdateOne(_m) +} + +// Unwrap unwraps the AudienceHistory 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 *AudienceHistory) Unwrap() *AudienceHistory { + _tx, ok := _m.config.driver.(*txDriver) + if !ok { + panic("historygenerated: AudienceHistory is not a transactional entity") + } + _m.config.driver = _tx.drv + return _m +} + +// String implements the fmt.Stringer. +func (_m *AudienceHistory) String() string { + var builder strings.Builder + builder.WriteString("AudienceHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) + builder.WriteString("history_time=") + builder.WriteString(_m.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(_m.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", _m.Operation)) + builder.WriteString(", ") + 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(", ") + if v := _m.UpdatedByImpersonator; v != nil { + builder.WriteString("updated_by_impersonator=") + builder.WriteString(*v) + } + 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("display_id=") + builder.WriteString(_m.DisplayID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", _m.Tags)) + builder.WriteString(", ") + builder.WriteString("owner_id=") + builder.WriteString(_m.OwnerID) + builder.WriteString(", ") + builder.WriteString("name=") + builder.WriteString(_m.Name) + builder.WriteString(", ") + builder.WriteString("description=") + builder.WriteString(_m.Description) + builder.WriteString(", ") + builder.WriteString("audience_type=") + builder.WriteString(fmt.Sprintf("%v", _m.AudienceType)) + builder.WriteString(", ") + builder.WriteString("filters=") + builder.WriteString(fmt.Sprintf("%v", _m.Filters)) + builder.WriteString(", ") + builder.WriteString("metadata=") + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) + builder.WriteByte(')') + return builder.String() +} + +// AudienceHistories is a parsable slice of AudienceHistory. +type AudienceHistories []*AudienceHistory diff --git a/internal/ent/historygenerated/audiencehistory/audiencehistory.go b/internal/ent/historygenerated/audiencehistory/audiencehistory.go new file mode 100644 index 0000000000..9269c5dd0c --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory/audiencehistory.go @@ -0,0 +1,234 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package audiencehistory + +import ( + "fmt" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the audiencehistory type in the database. + Label = "audience_history" + // FieldID holds the string denoting the id field in the database. + FieldID = "id" + // FieldHistoryTime holds the string denoting the history_time field in the database. + FieldHistoryTime = "history_time" + // FieldRef holds the string denoting the ref field in the database. + FieldRef = "ref" + // FieldOperation holds the string denoting the operation field in the database. + FieldOperation = "operation" + // FieldCreatedAt holds the string denoting the created_at field in the database. + FieldCreatedAt = "created_at" + // FieldUpdatedAt holds the string denoting the updated_at field in the database. + FieldUpdatedAt = "updated_at" + // FieldCreatedBy holds the string denoting the created_by field in the database. + FieldCreatedBy = "created_by" + // FieldUpdatedBy holds the string denoting the updated_by field in the database. + FieldUpdatedBy = "updated_by" + // FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database. + FieldUpdatedByImpersonator = "updated_by_impersonator" + // FieldDeletedAt holds the string denoting the deleted_at field in the database. + FieldDeletedAt = "deleted_at" + // FieldDeletedBy holds the string denoting the deleted_by field in the database. + FieldDeletedBy = "deleted_by" + // FieldDisplayID holds the string denoting the display_id field in the database. + FieldDisplayID = "display_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // FieldOwnerID holds the string denoting the owner_id field in the database. + FieldOwnerID = "owner_id" + // FieldName holds the string denoting the name field in the database. + FieldName = "name" + // FieldDescription holds the string denoting the description field in the database. + FieldDescription = "description" + // FieldAudienceType holds the string denoting the audience_type field in the database. + FieldAudienceType = "audience_type" + // FieldFilters holds the string denoting the filters field in the database. + FieldFilters = "filters" + // FieldMetadata holds the string denoting the metadata field in the database. + FieldMetadata = "metadata" + // Table holds the table name of the audiencehistory in the database. + Table = "audience_history" +) + +// Columns holds all SQL columns for audiencehistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldUpdatedByImpersonator, + FieldDeletedAt, + FieldDeletedBy, + FieldDisplayID, + FieldTags, + FieldOwnerID, + FieldName, + FieldDescription, + FieldAudienceType, + FieldFilters, + FieldMetadata, +} + +// ValidColumn reports if the column name is valid (part of the table columns). +func ValidColumn(column string) bool { + for i := range Columns { + if column == Columns[i] { + return true + } + } + return false +} + +// Note that the variables below are initialized by the runtime +// package on the initialization of the application. Therefore, +// it should be imported in the main as follows: +// +// import _ "github.com/theopenlane/core/v2/internal/ent/historygenerated/runtime" +var ( + Hooks [1]ent.Hook + Interceptors [1]ent.Interceptor + Policy ent.Policy + // DefaultHistoryTime holds the default value on creation for the "history_time" field. + DefaultHistoryTime func() time.Time + // 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. + DefaultUpdatedAt func() time.Time + // DefaultTags holds the default value on creation for the "tags" field. + DefaultTags []string + // DefaultID holds the default value on creation for the "id" field. + DefaultID func() string +) + +// OperationValidator is a validator for the "operation" field enum values. It is called by the builders before save. +func OperationValidator(o history.OpType) error { + switch o.String() { + case "INSERT", "UPDATE", "DELETE": + return nil + default: + return fmt.Errorf("audiencehistory: invalid enum value for operation field: %q", o) + } +} + +const DefaultAudienceType enums.AudienceType = "MANUAL" + +// AudienceTypeValidator is a validator for the "audience_type" field enum values. It is called by the builders before save. +func AudienceTypeValidator(at enums.AudienceType) error { + switch at.String() { + case "MANUAL", "DYNAMIC": + return nil + default: + return fmt.Errorf("audiencehistory: invalid enum value for audience_type field: %q", at) + } +} + +// OrderOption defines the ordering options for the AudienceHistory queries. +type OrderOption func(*sql.Selector) + +// ByID orders the results by the id field. +func ByID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldID, opts...).ToFunc() +} + +// ByHistoryTime orders the results by the history_time field. +func ByHistoryTime(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldHistoryTime, opts...).ToFunc() +} + +// ByRef orders the results by the ref field. +func ByRef(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldRef, opts...).ToFunc() +} + +// ByOperation orders the results by the operation field. +func ByOperation(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOperation, opts...).ToFunc() +} + +// ByCreatedAt orders the results by the created_at field. +func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedAt, opts...).ToFunc() +} + +// ByUpdatedAt orders the results by the updated_at field. +func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc() +} + +// ByCreatedBy orders the results by the created_by field. +func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedBy, opts...).ToFunc() +} + +// ByUpdatedBy orders the results by the updated_by field. +func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedBy, opts...).ToFunc() +} + +// ByUpdatedByImpersonator orders the results by the updated_by_impersonator field. +func ByUpdatedByImpersonator(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedByImpersonator, opts...).ToFunc() +} + +// ByDeletedAt orders the results by the deleted_at field. +func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedAt, opts...).ToFunc() +} + +// ByDeletedBy orders the results by the deleted_by field. +func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedBy, opts...).ToFunc() +} + +// ByDisplayID orders the results by the display_id field. +func ByDisplayID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDisplayID, opts...).ToFunc() +} + +// ByOwnerID orders the results by the owner_id field. +func ByOwnerID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOwnerID, opts...).ToFunc() +} + +// ByName orders the results by the name field. +func ByName(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldName, opts...).ToFunc() +} + +// ByDescription orders the results by the description field. +func ByDescription(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDescription, opts...).ToFunc() +} + +// ByAudienceType orders the results by the audience_type field. +func ByAudienceType(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldAudienceType, opts...).ToFunc() +} + +var ( + // history.OpType must implement graphql.Marshaler. + _ graphql.Marshaler = (*history.OpType)(nil) + // history.OpType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*history.OpType)(nil) +) + +var ( + // enums.AudienceType must implement graphql.Marshaler. + _ graphql.Marshaler = (*enums.AudienceType)(nil) + // enums.AudienceType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*enums.AudienceType)(nil) +) diff --git a/internal/ent/historygenerated/audiencehistory/where.go b/internal/ent/historygenerated/audiencehistory/where.go new file mode 100644 index 0000000000..f934168e5c --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory/where.go @@ -0,0 +1,1074 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package audiencehistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldID, id)) +} + +// HistoryTime applies equality check predicate on the "history_time" field. It's identical to HistoryTimeEQ. +func HistoryTime(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldRef, v)) +} + +// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. +func CreatedAt(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. +func UpdatedAt(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ. +func UpdatedByImpersonator(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ. +func DisplayID(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDisplayID, v)) +} + +// OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ. +func OwnerID(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldOwnerID, v)) +} + +// Name applies equality check predicate on the "name" field. It's identical to NameEQ. +func Name(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldName, v)) +} + +// Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ. +func Description(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDescription, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldUpdatedByImpersonator, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// DisplayIDEQ applies the EQ predicate on the "display_id" field. +func DisplayIDEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDisplayID, v)) +} + +// DisplayIDNEQ applies the NEQ predicate on the "display_id" field. +func DisplayIDNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldDisplayID, v)) +} + +// DisplayIDIn applies the In predicate on the "display_id" field. +func DisplayIDIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldDisplayID, vs...)) +} + +// DisplayIDNotIn applies the NotIn predicate on the "display_id" field. +func DisplayIDNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldDisplayID, vs...)) +} + +// DisplayIDGT applies the GT predicate on the "display_id" field. +func DisplayIDGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldDisplayID, v)) +} + +// DisplayIDGTE applies the GTE predicate on the "display_id" field. +func DisplayIDGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldDisplayID, v)) +} + +// DisplayIDLT applies the LT predicate on the "display_id" field. +func DisplayIDLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldDisplayID, v)) +} + +// DisplayIDLTE applies the LTE predicate on the "display_id" field. +func DisplayIDLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldDisplayID, v)) +} + +// DisplayIDContains applies the Contains predicate on the "display_id" field. +func DisplayIDContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldDisplayID, v)) +} + +// DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field. +func DisplayIDHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldDisplayID, v)) +} + +// DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field. +func DisplayIDHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldDisplayID, v)) +} + +// DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field. +func DisplayIDEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldDisplayID, v)) +} + +// DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field. +func DisplayIDContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldDisplayID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldTags)) +} + +// OwnerIDEQ applies the EQ predicate on the "owner_id" field. +func OwnerIDEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldOwnerID, v)) +} + +// OwnerIDNEQ applies the NEQ predicate on the "owner_id" field. +func OwnerIDNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldOwnerID, v)) +} + +// OwnerIDIn applies the In predicate on the "owner_id" field. +func OwnerIDIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldOwnerID, vs...)) +} + +// OwnerIDNotIn applies the NotIn predicate on the "owner_id" field. +func OwnerIDNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldOwnerID, vs...)) +} + +// OwnerIDGT applies the GT predicate on the "owner_id" field. +func OwnerIDGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldOwnerID, v)) +} + +// OwnerIDGTE applies the GTE predicate on the "owner_id" field. +func OwnerIDGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldOwnerID, v)) +} + +// OwnerIDLT applies the LT predicate on the "owner_id" field. +func OwnerIDLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldOwnerID, v)) +} + +// OwnerIDLTE applies the LTE predicate on the "owner_id" field. +func OwnerIDLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldOwnerID, v)) +} + +// OwnerIDContains applies the Contains predicate on the "owner_id" field. +func OwnerIDContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldOwnerID, v)) +} + +// OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field. +func OwnerIDHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldOwnerID, v)) +} + +// OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field. +func OwnerIDHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldOwnerID, v)) +} + +// OwnerIDIsNil applies the IsNil predicate on the "owner_id" field. +func OwnerIDIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldOwnerID)) +} + +// OwnerIDNotNil applies the NotNil predicate on the "owner_id" field. +func OwnerIDNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldOwnerID)) +} + +// OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field. +func OwnerIDEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldOwnerID, v)) +} + +// OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field. +func OwnerIDContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldOwnerID, v)) +} + +// NameEQ applies the EQ predicate on the "name" field. +func NameEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldName, v)) +} + +// NameNEQ applies the NEQ predicate on the "name" field. +func NameNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldName, v)) +} + +// NameIn applies the In predicate on the "name" field. +func NameIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldName, vs...)) +} + +// NameNotIn applies the NotIn predicate on the "name" field. +func NameNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldName, vs...)) +} + +// NameGT applies the GT predicate on the "name" field. +func NameGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldName, v)) +} + +// NameGTE applies the GTE predicate on the "name" field. +func NameGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldName, v)) +} + +// NameLT applies the LT predicate on the "name" field. +func NameLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldName, v)) +} + +// NameLTE applies the LTE predicate on the "name" field. +func NameLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldName, v)) +} + +// NameContains applies the Contains predicate on the "name" field. +func NameContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldName, v)) +} + +// NameHasPrefix applies the HasPrefix predicate on the "name" field. +func NameHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldName, v)) +} + +// NameHasSuffix applies the HasSuffix predicate on the "name" field. +func NameHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldName, v)) +} + +// NameEqualFold applies the EqualFold predicate on the "name" field. +func NameEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldName, v)) +} + +// NameContainsFold applies the ContainsFold predicate on the "name" field. +func NameContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldName, v)) +} + +// DescriptionEQ applies the EQ predicate on the "description" field. +func DescriptionEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEQ(FieldDescription, v)) +} + +// DescriptionNEQ applies the NEQ predicate on the "description" field. +func DescriptionNEQ(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNEQ(FieldDescription, v)) +} + +// DescriptionIn applies the In predicate on the "description" field. +func DescriptionIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIn(FieldDescription, vs...)) +} + +// DescriptionNotIn applies the NotIn predicate on the "description" field. +func DescriptionNotIn(vs ...string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotIn(FieldDescription, vs...)) +} + +// DescriptionGT applies the GT predicate on the "description" field. +func DescriptionGT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGT(FieldDescription, v)) +} + +// DescriptionGTE applies the GTE predicate on the "description" field. +func DescriptionGTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldGTE(FieldDescription, v)) +} + +// DescriptionLT applies the LT predicate on the "description" field. +func DescriptionLT(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLT(FieldDescription, v)) +} + +// DescriptionLTE applies the LTE predicate on the "description" field. +func DescriptionLTE(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldLTE(FieldDescription, v)) +} + +// DescriptionContains applies the Contains predicate on the "description" field. +func DescriptionContains(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContains(FieldDescription, v)) +} + +// DescriptionHasPrefix applies the HasPrefix predicate on the "description" field. +func DescriptionHasPrefix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasPrefix(FieldDescription, v)) +} + +// DescriptionHasSuffix applies the HasSuffix predicate on the "description" field. +func DescriptionHasSuffix(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldHasSuffix(FieldDescription, v)) +} + +// DescriptionIsNil applies the IsNil predicate on the "description" field. +func DescriptionIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldDescription)) +} + +// DescriptionNotNil applies the NotNil predicate on the "description" field. +func DescriptionNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldDescription)) +} + +// DescriptionEqualFold applies the EqualFold predicate on the "description" field. +func DescriptionEqualFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldEqualFold(FieldDescription, v)) +} + +// DescriptionContainsFold applies the ContainsFold predicate on the "description" field. +func DescriptionContainsFold(v string) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldContainsFold(FieldDescription, v)) +} + +// AudienceTypeEQ applies the EQ predicate on the "audience_type" field. +func AudienceTypeEQ(v enums.AudienceType) predicate.AudienceHistory { + vc := v + return predicate.AudienceHistory(sql.FieldEQ(FieldAudienceType, vc)) +} + +// AudienceTypeNEQ applies the NEQ predicate on the "audience_type" field. +func AudienceTypeNEQ(v enums.AudienceType) predicate.AudienceHistory { + vc := v + return predicate.AudienceHistory(sql.FieldNEQ(FieldAudienceType, vc)) +} + +// AudienceTypeIn applies the In predicate on the "audience_type" field. +func AudienceTypeIn(vs ...enums.AudienceType) predicate.AudienceHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.AudienceHistory(sql.FieldIn(FieldAudienceType, v...)) +} + +// AudienceTypeNotIn applies the NotIn predicate on the "audience_type" field. +func AudienceTypeNotIn(vs ...enums.AudienceType) predicate.AudienceHistory { + v := make([]any, len(vs)) + for i := range v { + v[i] = vs[i] + } + return predicate.AudienceHistory(sql.FieldNotIn(FieldAudienceType, v...)) +} + +// FiltersIsNil applies the IsNil predicate on the "filters" field. +func FiltersIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldFilters)) +} + +// FiltersNotNil applies the NotNil predicate on the "filters" field. +func FiltersNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldFilters)) +} + +// MetadataIsNil applies the IsNil predicate on the "metadata" field. +func MetadataIsNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldIsNull(FieldMetadata)) +} + +// MetadataNotNil applies the NotNil predicate on the "metadata" field. +func MetadataNotNil() predicate.AudienceHistory { + return predicate.AudienceHistory(sql.FieldNotNull(FieldMetadata)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.AudienceHistory) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.AudienceHistory) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.AudienceHistory) predicate.AudienceHistory { + return predicate.AudienceHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/historygenerated/audiencehistory_create.go b/internal/ent/historygenerated/audiencehistory_create.go new file mode 100644 index 0000000000..f9d7e6356b --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory_create.go @@ -0,0 +1,540 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/entx/history" +) + +// AudienceHistoryCreate is the builder for creating a AudienceHistory entity. +type AudienceHistoryCreate struct { + config + mutation *AudienceHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (_c *AudienceHistoryCreate) SetHistoryTime(v time.Time) *AudienceHistoryCreate { + _c.mutation.SetHistoryTime(v) + return _c +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableHistoryTime(v *time.Time) *AudienceHistoryCreate { + if v != nil { + _c.SetHistoryTime(*v) + } + return _c +} + +// SetRef sets the "ref" field. +func (_c *AudienceHistoryCreate) SetRef(v string) *AudienceHistoryCreate { + _c.mutation.SetRef(v) + return _c +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableRef(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetRef(*v) + } + return _c +} + +// SetOperation sets the "operation" field. +func (_c *AudienceHistoryCreate) SetOperation(v history.OpType) *AudienceHistoryCreate { + _c.mutation.SetOperation(v) + return _c +} + +// SetCreatedAt sets the "created_at" field. +func (_c *AudienceHistoryCreate) SetCreatedAt(v time.Time) *AudienceHistoryCreate { + _c.mutation.SetCreatedAt(v) + return _c +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableCreatedAt(v *time.Time) *AudienceHistoryCreate { + if v != nil { + _c.SetCreatedAt(*v) + } + return _c +} + +// SetUpdatedAt sets the "updated_at" field. +func (_c *AudienceHistoryCreate) SetUpdatedAt(v time.Time) *AudienceHistoryCreate { + _c.mutation.SetUpdatedAt(v) + return _c +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableUpdatedAt(v *time.Time) *AudienceHistoryCreate { + if v != nil { + _c.SetUpdatedAt(*v) + } + return _c +} + +// SetCreatedBy sets the "created_by" field. +func (_c *AudienceHistoryCreate) SetCreatedBy(v string) *AudienceHistoryCreate { + _c.mutation.SetCreatedBy(v) + return _c +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableCreatedBy(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetCreatedBy(*v) + } + return _c +} + +// SetUpdatedBy sets the "updated_by" field. +func (_c *AudienceHistoryCreate) SetUpdatedBy(v string) *AudienceHistoryCreate { + _c.mutation.SetUpdatedBy(v) + return _c +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableUpdatedBy(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetUpdatedBy(*v) + } + return _c +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_c *AudienceHistoryCreate) SetUpdatedByImpersonator(v string) *AudienceHistoryCreate { + _c.mutation.SetUpdatedByImpersonator(v) + return _c +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableUpdatedByImpersonator(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetUpdatedByImpersonator(*v) + } + return _c +} + +// SetDeletedAt sets the "deleted_at" field. +func (_c *AudienceHistoryCreate) SetDeletedAt(v time.Time) *AudienceHistoryCreate { + _c.mutation.SetDeletedAt(v) + return _c +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableDeletedAt(v *time.Time) *AudienceHistoryCreate { + if v != nil { + _c.SetDeletedAt(*v) + } + return _c +} + +// SetDeletedBy sets the "deleted_by" field. +func (_c *AudienceHistoryCreate) SetDeletedBy(v string) *AudienceHistoryCreate { + _c.mutation.SetDeletedBy(v) + return _c +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableDeletedBy(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetDeletedBy(*v) + } + return _c +} + +// SetDisplayID sets the "display_id" field. +func (_c *AudienceHistoryCreate) SetDisplayID(v string) *AudienceHistoryCreate { + _c.mutation.SetDisplayID(v) + return _c +} + +// SetTags sets the "tags" field. +func (_c *AudienceHistoryCreate) SetTags(v []string) *AudienceHistoryCreate { + _c.mutation.SetTags(v) + return _c +} + +// SetOwnerID sets the "owner_id" field. +func (_c *AudienceHistoryCreate) SetOwnerID(v string) *AudienceHistoryCreate { + _c.mutation.SetOwnerID(v) + return _c +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableOwnerID(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetOwnerID(*v) + } + return _c +} + +// SetName sets the "name" field. +func (_c *AudienceHistoryCreate) SetName(v string) *AudienceHistoryCreate { + _c.mutation.SetName(v) + return _c +} + +// SetDescription sets the "description" field. +func (_c *AudienceHistoryCreate) SetDescription(v string) *AudienceHistoryCreate { + _c.mutation.SetDescription(v) + return _c +} + +// SetNillableDescription sets the "description" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableDescription(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetDescription(*v) + } + return _c +} + +// SetAudienceType sets the "audience_type" field. +func (_c *AudienceHistoryCreate) SetAudienceType(v enums.AudienceType) *AudienceHistoryCreate { + _c.mutation.SetAudienceType(v) + return _c +} + +// SetNillableAudienceType sets the "audience_type" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableAudienceType(v *enums.AudienceType) *AudienceHistoryCreate { + if v != nil { + _c.SetAudienceType(*v) + } + return _c +} + +// SetFilters sets the "filters" field. +func (_c *AudienceHistoryCreate) SetFilters(v map[string]interface{}) *AudienceHistoryCreate { + _c.mutation.SetFilters(v) + return _c +} + +// SetMetadata sets the "metadata" field. +func (_c *AudienceHistoryCreate) SetMetadata(v map[string]interface{}) *AudienceHistoryCreate { + _c.mutation.SetMetadata(v) + return _c +} + +// SetID sets the "id" field. +func (_c *AudienceHistoryCreate) SetID(v string) *AudienceHistoryCreate { + _c.mutation.SetID(v) + return _c +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (_c *AudienceHistoryCreate) SetNillableID(v *string) *AudienceHistoryCreate { + if v != nil { + _c.SetID(*v) + } + return _c +} + +// Mutation returns the AudienceHistoryMutation object of the builder. +func (_c *AudienceHistoryCreate) Mutation() *AudienceHistoryMutation { + return _c.mutation +} + +// Save creates the AudienceHistory in the database. +func (_c *AudienceHistoryCreate) Save(ctx context.Context) (*AudienceHistory, 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 *AudienceHistoryCreate) SaveX(ctx context.Context) *AudienceHistory { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceHistoryCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceHistoryCreate) 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 *AudienceHistoryCreate) defaults() error { + if _, ok := _c.mutation.HistoryTime(); !ok { + if audiencehistory.DefaultHistoryTime == nil { + return fmt.Errorf("historygenerated: uninitialized audiencehistory.DefaultHistoryTime (forgotten import historygenerated/runtime?)") + } + v := audiencehistory.DefaultHistoryTime() + _c.mutation.SetHistoryTime(v) + } + if _, ok := _c.mutation.CreatedAt(); !ok { + if audiencehistory.DefaultCreatedAt == nil { + return fmt.Errorf("historygenerated: uninitialized audiencehistory.DefaultCreatedAt (forgotten import historygenerated/runtime?)") + } + v := audiencehistory.DefaultCreatedAt() + _c.mutation.SetCreatedAt(v) + } + if _, ok := _c.mutation.UpdatedAt(); !ok { + if audiencehistory.DefaultUpdatedAt == nil { + return fmt.Errorf("historygenerated: uninitialized audiencehistory.DefaultUpdatedAt (forgotten import historygenerated/runtime?)") + } + v := audiencehistory.DefaultUpdatedAt() + _c.mutation.SetUpdatedAt(v) + } + if _, ok := _c.mutation.Tags(); !ok { + v := audiencehistory.DefaultTags + _c.mutation.SetTags(v) + } + if _, ok := _c.mutation.AudienceType(); !ok { + v := audiencehistory.DefaultAudienceType + _c.mutation.SetAudienceType(v) + } + if _, ok := _c.mutation.ID(); !ok { + if audiencehistory.DefaultID == nil { + return fmt.Errorf("historygenerated: uninitialized audiencehistory.DefaultID (forgotten import historygenerated/runtime?)") + } + v := audiencehistory.DefaultID() + _c.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_c *AudienceHistoryCreate) check() error { + if _, ok := _c.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`historygenerated: missing required field "AudienceHistory.history_time"`)} + } + if _, ok := _c.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`historygenerated: missing required field "AudienceHistory.operation"`)} + } + if v, ok := _c.mutation.Operation(); ok { + if err := audiencehistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`historygenerated: validator failed for field "AudienceHistory.operation": %w`, err)} + } + } + if _, ok := _c.mutation.DisplayID(); !ok { + return &ValidationError{Name: "display_id", err: errors.New(`historygenerated: missing required field "AudienceHistory.display_id"`)} + } + if _, ok := _c.mutation.Name(); !ok { + return &ValidationError{Name: "name", err: errors.New(`historygenerated: missing required field "AudienceHistory.name"`)} + } + if _, ok := _c.mutation.AudienceType(); !ok { + return &ValidationError{Name: "audience_type", err: errors.New(`historygenerated: missing required field "AudienceHistory.audience_type"`)} + } + if v, ok := _c.mutation.AudienceType(); ok { + if err := audiencehistory.AudienceTypeValidator(v); err != nil { + return &ValidationError{Name: "audience_type", err: fmt.Errorf(`historygenerated: validator failed for field "AudienceHistory.audience_type": %w`, err)} + } + } + return nil +} + +func (_c *AudienceHistoryCreate) sqlSave(ctx context.Context) (*AudienceHistory, 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 AudienceHistory.ID type: %T", _spec.ID.Value) + } + } + _c.mutation.id = &_node.ID + _c.mutation.done = true + return _node, nil +} + +func (_c *AudienceHistoryCreate) createSpec() (*AudienceHistory, *sqlgraph.CreateSpec) { + var ( + _node = &AudienceHistory{config: _c.config} + _spec = sqlgraph.NewCreateSpec(audiencehistory.Table, sqlgraph.NewFieldSpec(audiencehistory.FieldID, field.TypeString)) + ) + if id, ok := _c.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := _c.mutation.HistoryTime(); ok { + _spec.SetField(audiencehistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := _c.mutation.Ref(); ok { + _spec.SetField(audiencehistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := _c.mutation.Operation(); ok { + _spec.SetField(audiencehistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := _c.mutation.CreatedAt(); ok { + _spec.SetField(audiencehistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := _c.mutation.UpdatedAt(); ok { + _spec.SetField(audiencehistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := _c.mutation.CreatedBy(); ok { + _spec.SetField(audiencehistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := _c.mutation.UpdatedBy(); ok { + _spec.SetField(audiencehistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := _c.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audiencehistory.FieldUpdatedByImpersonator, field.TypeString, value) + _node.UpdatedByImpersonator = &value + } + if value, ok := _c.mutation.DeletedAt(); ok { + _spec.SetField(audiencehistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := _c.mutation.DeletedBy(); ok { + _spec.SetField(audiencehistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := _c.mutation.DisplayID(); ok { + _spec.SetField(audiencehistory.FieldDisplayID, field.TypeString, value) + _node.DisplayID = value + } + if value, ok := _c.mutation.Tags(); ok { + _spec.SetField(audiencehistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := _c.mutation.OwnerID(); ok { + _spec.SetField(audiencehistory.FieldOwnerID, field.TypeString, value) + _node.OwnerID = value + } + if value, ok := _c.mutation.Name(); ok { + _spec.SetField(audiencehistory.FieldName, field.TypeString, value) + _node.Name = value + } + if value, ok := _c.mutation.Description(); ok { + _spec.SetField(audiencehistory.FieldDescription, field.TypeString, value) + _node.Description = value + } + if value, ok := _c.mutation.AudienceType(); ok { + _spec.SetField(audiencehistory.FieldAudienceType, field.TypeEnum, value) + _node.AudienceType = value + } + if value, ok := _c.mutation.Filters(); ok { + _spec.SetField(audiencehistory.FieldFilters, field.TypeJSON, value) + _node.Filters = value + } + if value, ok := _c.mutation.Metadata(); ok { + _spec.SetField(audiencehistory.FieldMetadata, field.TypeJSON, value) + _node.Metadata = value + } + return _node, _spec +} + +// AudienceHistoryCreateBulk is the builder for creating many AudienceHistory entities in bulk. +type AudienceHistoryCreateBulk struct { + config + err error + builders []*AudienceHistoryCreate +} + +// Save creates the AudienceHistory entities in the database. +func (_c *AudienceHistoryCreateBulk) Save(ctx context.Context) ([]*AudienceHistory, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*AudienceHistory, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { + func(i int, root context.Context) { + builder := _c.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*AudienceHistoryMutation) + if !ok { + return nil, fmt.Errorf("unexpected mutation type %T", m) + } + if err := builder.check(); err != nil { + return nil, err + } + builder.mutation = mutation + var err error + nodes[i], specs[i] = builder.createSpec() + if i < len(mutators)-1 { + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) + } else { + spec := &sqlgraph.BatchCreateSpec{Nodes: specs} + // Invoke the actual operation on the latest mutation in the chain. + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + } + } + if err != nil { + return nil, err + } + mutation.id = &nodes[i].ID + mutation.done = true + return nodes[i], nil + }) + for i := len(builder.hooks) - 1; i >= 0; i-- { + mut = builder.hooks[i](mut) + } + mutators[i] = mut + }(i, ctx) + } + if len(mutators) > 0 { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (_c *AudienceHistoryCreateBulk) SaveX(ctx context.Context) []*AudienceHistory { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceHistoryCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/historygenerated/audiencehistory_delete.go b/internal/ent/historygenerated/audiencehistory_delete.go new file mode 100644 index 0000000000..e1f422eb32 --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory_delete.go @@ -0,0 +1,90 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" +) + +// AudienceHistoryDelete is the builder for deleting a AudienceHistory entity. +type AudienceHistoryDelete struct { + config + hooks []Hook + mutation *AudienceHistoryMutation +} + +// Where appends a list predicates to the AudienceHistoryDelete builder. +func (_d *AudienceHistoryDelete) Where(ps ...predicate.AudienceHistory) *AudienceHistoryDelete { + _d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (_d *AudienceHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceHistoryDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (_d *AudienceHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(audiencehistory.Table, sqlgraph.NewFieldSpec(audiencehistory.FieldID, field.TypeString)) + if ps := _d.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + _d.mutation.done = true + return affected, err +} + +// AudienceHistoryDeleteOne is the builder for deleting a single AudienceHistory entity. +type AudienceHistoryDeleteOne struct { + _d *AudienceHistoryDelete +} + +// Where appends a list predicates to the AudienceHistoryDelete builder. +func (_d *AudienceHistoryDeleteOne) Where(ps ...predicate.AudienceHistory) *AudienceHistoryDeleteOne { + _d._d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query. +func (_d *AudienceHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{audiencehistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceHistoryDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/historygenerated/audiencehistory_query.go b/internal/ent/historygenerated/audiencehistory_query.go new file mode 100644 index 0000000000..d3b72d874f --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory_query.go @@ -0,0 +1,569 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + "math" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" + + "github.com/theopenlane/core/v2/pkg/logx" +) + +// AudienceHistoryQuery is the builder for querying AudienceHistory entities. +type AudienceHistoryQuery struct { + config + ctx *QueryContext + order []audiencehistory.OrderOption + inters []Interceptor + predicates []predicate.AudienceHistory + modifiers []func(*sql.Selector) + loadTotal []func(context.Context, []*AudienceHistory) error + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the AudienceHistoryQuery builder. +func (_q *AudienceHistoryQuery) Where(ps ...predicate.AudienceHistory) *AudienceHistoryQuery { + _q.predicates = append(_q.predicates, ps...) + return _q +} + +// Limit the number of records to be returned by this query. +func (_q *AudienceHistoryQuery) Limit(limit int) *AudienceHistoryQuery { + _q.ctx.Limit = &limit + return _q +} + +// Offset to start from. +func (_q *AudienceHistoryQuery) Offset(offset int) *AudienceHistoryQuery { + _q.ctx.Offset = &offset + return _q +} + +// Unique configures the query builder to filter duplicate records on query. +// By default, unique is set to true, and can be disabled using this method. +func (_q *AudienceHistoryQuery) Unique(unique bool) *AudienceHistoryQuery { + _q.ctx.Unique = &unique + return _q +} + +// Order specifies how the records should be ordered. +func (_q *AudienceHistoryQuery) Order(o ...audiencehistory.OrderOption) *AudienceHistoryQuery { + _q.order = append(_q.order, o...) + return _q +} + +// First returns the first AudienceHistory entity from the query. +// Returns a *NotFoundError when no AudienceHistory was found. +func (_q *AudienceHistoryQuery) First(ctx context.Context) (*AudienceHistory, 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{audiencehistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (_q *AudienceHistoryQuery) FirstX(ctx context.Context) *AudienceHistory { + node, err := _q.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first AudienceHistory ID from the query. +// Returns a *NotFoundError when no AudienceHistory ID was found. +func (_q *AudienceHistoryQuery) 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{audiencehistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (_q *AudienceHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := _q.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single AudienceHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one AudienceHistory entity is found. +// Returns a *NotFoundError when no AudienceHistory entities are found. +func (_q *AudienceHistoryQuery) Only(ctx context.Context) (*AudienceHistory, 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{audiencehistory.Label} + default: + return nil, &NotSingularError{audiencehistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (_q *AudienceHistoryQuery) OnlyX(ctx context.Context) *AudienceHistory { + node, err := _q.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only AudienceHistory ID in the query. +// Returns a *NotSingularError when more than one AudienceHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (_q *AudienceHistoryQuery) 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{audiencehistory.Label} + default: + err = &NotSingularError{audiencehistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (_q *AudienceHistoryQuery) 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 AudienceHistories. +func (_q *AudienceHistoryQuery) All(ctx context.Context) ([]*AudienceHistory, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*AudienceHistory, *AudienceHistoryQuery]() + return withInterceptors[[]*AudienceHistory](ctx, _q, qr, _q.inters) +} + +// AllX is like All, but panics if an error occurs. +func (_q *AudienceHistoryQuery) AllX(ctx context.Context) []*AudienceHistory { + nodes, err := _q.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of AudienceHistory IDs. +func (_q *AudienceHistoryQuery) 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(audiencehistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (_q *AudienceHistoryQuery) 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 *AudienceHistoryQuery) 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[*AudienceHistoryQuery](), _q.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (_q *AudienceHistoryQuery) 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 *AudienceHistoryQuery) 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("historygenerated: check existence: %w", err) + default: + return true, nil + } +} + +// ExistX is like Exist, but panics if an error occurs. +func (_q *AudienceHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the AudienceHistoryQuery 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 *AudienceHistoryQuery) Clone() *AudienceHistoryQuery { + if _q == nil { + return nil + } + return &AudienceHistoryQuery{ + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]audiencehistory.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.AudienceHistory{}, _q.predicates...), + // clone intermediate query. + sql: _q.sql.Clone(), + path: _q.path, + } +} + +// 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 { +// HistoryTime time.Time `json:"history_time,omitempty"` +// Count int `json:"count,omitempty"` +// } +// +// client.AudienceHistory.Query(). +// GroupBy(audiencehistory.FieldHistoryTime). +// Aggregate(historygenerated.Count()). +// Scan(ctx, &v) +func (_q *AudienceHistoryQuery) GroupBy(field string, fields ...string) *AudienceHistoryGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &AudienceHistoryGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields + grbuild.label = audiencehistory.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 { +// HistoryTime time.Time `json:"history_time,omitempty"` +// } +// +// client.AudienceHistory.Query(). +// Select(audiencehistory.FieldHistoryTime). +// Scan(ctx, &v) +func (_q *AudienceHistoryQuery) Select(fields ...string) *AudienceHistorySelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &AudienceHistorySelect{AudienceHistoryQuery: _q} + sbuild.label = audiencehistory.Label + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a AudienceHistorySelect configured with the given aggregations. +func (_q *AudienceHistoryQuery) Aggregate(fns ...AggregateFunc) *AudienceHistorySelect { + return _q.Select().Aggregate(fns...) +} + +func (_q *AudienceHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { + if inter == nil { + return fmt.Errorf("historygenerated: uninitialized interceptor (forgotten import historygenerated/runtime?)") + } + if trv, ok := inter.(Traverser); ok { + if err := trv.Traverse(ctx, _q); err != nil { + return err + } + } + } + for _, f := range _q.ctx.Fields { + if !audiencehistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("historygenerated: invalid field %q for query", f)} + } + } + if _q.path != nil { + prev, err := _q.path(ctx) + if err != nil { + return err + } + _q.sql = prev + } + if audiencehistory.Policy == nil { + return errors.New("historygenerated: uninitialized audiencehistory.Policy (forgotten import historygenerated/runtime?)") + } + if err := audiencehistory.Policy.EvalQuery(ctx, _q); err != nil { + return err + } + return nil +} + +func (_q *AudienceHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*AudienceHistory, error) { + var ( + nodes = []*AudienceHistory{} + _spec = _q.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*AudienceHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &AudienceHistory{config: _q.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + 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 + } + for i := range _q.loadTotal { + if err := _q.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (_q *AudienceHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + 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 *AudienceHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(audiencehistory.Table, audiencehistory.Columns, sqlgraph.NewFieldSpec(audiencehistory.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, audiencehistory.FieldID) + for i := range fields { + if fields[i] != audiencehistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + 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 *AudienceHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) + t1 := builder.Table(audiencehistory.Table) + columns := _q.ctx.Fields + if len(columns) == 0 { + columns = audiencehistory.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() + } + 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 +} + +// CountIDs returns the count of ids with FGA batch filtering applied +func (ahq *AudienceHistoryQuery) CountIDs(ctx context.Context) (int, error) { + logx.FromContext(ctx).Debug().Str("query_type", "AudienceHistory").Str("operation", "count_ids").Msg("CountIDs: starting") + + ctx = setContextOp(ctx, ahq.ctx, ent.OpQueryIDs) + + ids, err := ahq.IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("query_type", "AudienceHistory").Str("operation", "count_ids").Msg("CountIDs: IDs() failed") + + return 0, err + } + + logx.FromContext(ctx).Debug().Str("query_type", "AudienceHistory").Str("operation", "count_ids").Int("count", len(ids)).Msg("CountIDs: completed") + + return len(ids), nil +} + +// AudienceHistoryGroupBy is the group-by builder for AudienceHistory entities. +type AudienceHistoryGroupBy struct { + selector + build *AudienceHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (_g *AudienceHistoryGroupBy) Aggregate(fns ...AggregateFunc) *AudienceHistoryGroupBy { + _g.fns = append(_g.fns, fns...) + return _g +} + +// Scan applies the selector query and scans the result into the given value. +func (_g *AudienceHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceHistoryQuery, *AudienceHistoryGroupBy](ctx, _g.build, _g, _g.build.inters, v) +} + +func (_g *AudienceHistoryGroupBy) sqlScan(ctx context.Context, root *AudienceHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*_g.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// AudienceHistorySelect is the builder for selecting fields of AudienceHistory entities. +type AudienceHistorySelect struct { + *AudienceHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (_s *AudienceHistorySelect) Aggregate(fns ...AggregateFunc) *AudienceHistorySelect { + _s.fns = append(_s.fns, fns...) + return _s +} + +// Scan applies the selector query and scans the result into the given value. +func (_s *AudienceHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceHistoryQuery, *AudienceHistorySelect](ctx, _s.AudienceHistoryQuery, _s, _s.inters, v) +} + +func (_s *AudienceHistorySelect) sqlScan(ctx context.Context, root *AudienceHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*_s.selector.flds); { + case n == 0 && len(aggregation) > 0: + selector.Select(aggregation...) + case n != 0 && len(aggregation) > 0: + selector.AppendSelect(aggregation...) + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _s.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} diff --git a/internal/ent/historygenerated/audiencehistory_update.go b/internal/ent/historygenerated/audiencehistory_update.go new file mode 100644 index 0000000000..d952e05506 --- /dev/null +++ b/internal/ent/historygenerated/audiencehistory_update.go @@ -0,0 +1,255 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" +) + +// AudienceHistoryUpdate is the builder for updating AudienceHistory entities. +type AudienceHistoryUpdate struct { + config + hooks []Hook + mutation *AudienceHistoryMutation +} + +// Where appends a list predicates to the AudienceHistoryUpdate builder. +func (_u *AudienceHistoryUpdate) Where(ps ...predicate.AudienceHistory) *AudienceHistoryUpdate { + _u.mutation.Where(ps...) + return _u +} + +// Mutation returns the AudienceHistoryMutation object of the builder. +func (_u *AudienceHistoryUpdate) Mutation() *AudienceHistoryMutation { + return _u.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (_u *AudienceHistoryUpdate) Save(ctx context.Context) (int, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (_u *AudienceHistoryUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceHistoryUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) + } +} + +func (_u *AudienceHistoryUpdate) sqlSave(ctx context.Context) (_node int, err error) { + _spec := sqlgraph.NewUpdateSpec(audiencehistory.Table, audiencehistory.Columns, sqlgraph.NewFieldSpec(audiencehistory.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.RefCleared() { + _spec.ClearField(audiencehistory.FieldRef, field.TypeString) + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(audiencehistory.FieldCreatedAt, field.TypeTime) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencehistory.FieldCreatedBy, field.TypeString) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedBy, field.TypeString) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedByImpersonator, field.TypeString) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencehistory.FieldDeletedAt, field.TypeTime) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencehistory.FieldDeletedBy, field.TypeString) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencehistory.FieldTags, field.TypeJSON) + } + if _u.mutation.OwnerIDCleared() { + _spec.ClearField(audiencehistory.FieldOwnerID, field.TypeString) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(audiencehistory.FieldDescription, field.TypeString) + } + if _u.mutation.FiltersCleared() { + _spec.ClearField(audiencehistory.FieldFilters, field.TypeJSON) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencehistory.FieldMetadata, field.TypeJSON) + } + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + _u.mutation.done = true + return _node, nil +} + +// AudienceHistoryUpdateOne is the builder for updating a single AudienceHistory entity. +type AudienceHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *AudienceHistoryMutation +} + +// Mutation returns the AudienceHistoryMutation object of the builder. +func (_u *AudienceHistoryUpdateOne) Mutation() *AudienceHistoryMutation { + return _u.mutation +} + +// Where appends a list predicates to the AudienceHistoryUpdate builder. +func (_u *AudienceHistoryUpdateOne) Where(ps ...predicate.AudienceHistory) *AudienceHistoryUpdateOne { + _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 *AudienceHistoryUpdateOne) Select(field string, fields ...string) *AudienceHistoryUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u +} + +// Save executes the query and returns the updated AudienceHistory entity. +func (_u *AudienceHistoryUpdateOne) Save(ctx context.Context) (*AudienceHistory, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceHistoryUpdateOne) SaveX(ctx context.Context) *AudienceHistory { + node, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (_u *AudienceHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceHistoryUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) + } +} + +func (_u *AudienceHistoryUpdateOne) sqlSave(ctx context.Context) (_node *AudienceHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(audiencehistory.Table, audiencehistory.Columns, sqlgraph.NewFieldSpec(audiencehistory.FieldID, field.TypeString)) + id, ok := _u.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`historygenerated: missing "AudienceHistory.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, audiencehistory.FieldID) + for _, f := range fields { + if !audiencehistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("historygenerated: invalid field %q for query", f)} + } + if f != audiencehistory.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.RefCleared() { + _spec.ClearField(audiencehistory.FieldRef, field.TypeString) + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(audiencehistory.FieldCreatedAt, field.TypeTime) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencehistory.FieldCreatedBy, field.TypeString) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedBy, field.TypeString) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencehistory.FieldUpdatedByImpersonator, field.TypeString) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencehistory.FieldDeletedAt, field.TypeTime) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencehistory.FieldDeletedBy, field.TypeString) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencehistory.FieldTags, field.TypeJSON) + } + if _u.mutation.OwnerIDCleared() { + _spec.ClearField(audiencehistory.FieldOwnerID, field.TypeString) + } + if _u.mutation.DescriptionCleared() { + _spec.ClearField(audiencehistory.FieldDescription, field.TypeString) + } + if _u.mutation.FiltersCleared() { + _spec.ClearField(audiencehistory.FieldFilters, field.TypeJSON) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencehistory.FieldMetadata, field.TypeJSON) + } + _node = &AudienceHistory{config: _u.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencehistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + _u.mutation.done = true + return _node, nil +} diff --git a/internal/ent/historygenerated/audiencememberhistory.go b/internal/ent/historygenerated/audiencememberhistory.go new file mode 100644 index 0000000000..ef2ce7481a --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory.go @@ -0,0 +1,350 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "encoding/json" + "fmt" + "strings" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" + "github.com/theopenlane/entx/history" +) + +// AudienceMemberHistory is the model entity for the AudienceMemberHistory schema. +type AudienceMemberHistory struct { + config `json:"-"` + // ID of the ent. + ID string `json:"id,omitempty"` + // HistoryTime holds the value of the "history_time" field. + HistoryTime time.Time `json:"history_time,omitempty"` + // Ref holds the value of the "ref" field. + Ref string `json:"ref,omitempty"` + // Operation holds the value of the "operation" field. + Operation history.OpType `json:"operation,omitempty"` + // CreatedAt holds the value of the "created_at" field. + CreatedAt time.Time `json:"created_at,omitempty"` + // UpdatedAt holds the value of the "updated_at" field. + UpdatedAt time.Time `json:"updated_at,omitempty"` + // CreatedBy holds the value of the "created_by" field. + CreatedBy string `json:"created_by,omitempty"` + // UpdatedBy holds the value of the "updated_by" field. + UpdatedBy string `json:"updated_by,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updated_by_impersonator,omitempty"` + // DeletedAt holds the value of the "deleted_at" field. + DeletedAt time.Time `json:"deleted_at,omitempty"` + // DeletedBy holds the value of the "deleted_by" field. + DeletedBy string `json:"deleted_by,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"display_id,omitempty"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID string `json:"owner_id,omitempty"` + // the audience this member belongs to + AudienceID string `json:"audience_id,omitempty"` + // the contact associated with this audience member + ContactID string `json:"contact_id,omitempty"` + // the user associated with this audience member + UserID string `json:"user_id,omitempty"` + // the group associated with this audience member + GroupID string `json:"group_id,omitempty"` + // the identity holder associated with this audience member + IdentityHolderID string `json:"identity_holder_id,omitempty"` + // the subscriber associated with this audience member + SubscriberID string `json:"subscriber_id,omitempty"` + // the email address for this audience member + Email string `json:"email,omitempty"` + // the name of this audience member, if known + FullName string `json:"full_name,omitempty"` + // additional metadata about the audience member + Metadata map[string]interface{} `json:"metadata,omitempty"` + selectValues sql.SelectValues +} + +// scanValues returns the types for scanning values from sql.Rows. +func (*AudienceMemberHistory) scanValues(columns []string) ([]any, error) { + values := make([]any, len(columns)) + for i := range columns { + switch columns[i] { + case audiencememberhistory.FieldTags, audiencememberhistory.FieldMetadata: + values[i] = new([]byte) + case audiencememberhistory.FieldOperation: + values[i] = new(history.OpType) + case audiencememberhistory.FieldID, audiencememberhistory.FieldRef, audiencememberhistory.FieldCreatedBy, audiencememberhistory.FieldUpdatedBy, audiencememberhistory.FieldUpdatedByImpersonator, audiencememberhistory.FieldDeletedBy, audiencememberhistory.FieldDisplayID, audiencememberhistory.FieldOwnerID, audiencememberhistory.FieldAudienceID, audiencememberhistory.FieldContactID, audiencememberhistory.FieldUserID, audiencememberhistory.FieldGroupID, audiencememberhistory.FieldIdentityHolderID, audiencememberhistory.FieldSubscriberID, audiencememberhistory.FieldEmail, audiencememberhistory.FieldFullName: + values[i] = new(sql.NullString) + case audiencememberhistory.FieldHistoryTime, audiencememberhistory.FieldCreatedAt, audiencememberhistory.FieldUpdatedAt, audiencememberhistory.FieldDeletedAt: + 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 AudienceMemberHistory fields. +func (_m *AudienceMemberHistory) 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 audiencememberhistory.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 audiencememberhistory.FieldHistoryTime: + if value, ok := values[i].(*sql.NullTime); !ok { + return fmt.Errorf("unexpected type %T for field history_time", values[i]) + } else if value.Valid { + _m.HistoryTime = value.Time + } + case audiencememberhistory.FieldRef: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field ref", values[i]) + } else if value.Valid { + _m.Ref = value.String + } + case audiencememberhistory.FieldOperation: + if value, ok := values[i].(*history.OpType); !ok { + return fmt.Errorf("unexpected type %T for field operation", values[i]) + } else if value != nil { + _m.Operation = *value + } + case audiencememberhistory.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 audiencememberhistory.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 audiencememberhistory.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 audiencememberhistory.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 audiencememberhistory.FieldUpdatedByImpersonator: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field updated_by_impersonator", values[i]) + } else if value.Valid { + _m.UpdatedByImpersonator = new(string) + *_m.UpdatedByImpersonator = value.String + } + case audiencememberhistory.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 audiencememberhistory.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 audiencememberhistory.FieldDisplayID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field display_id", values[i]) + } else if value.Valid { + _m.DisplayID = value.String + } + case audiencememberhistory.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 audiencememberhistory.FieldOwnerID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field owner_id", values[i]) + } else if value.Valid { + _m.OwnerID = value.String + } + case audiencememberhistory.FieldAudienceID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field audience_id", values[i]) + } else if value.Valid { + _m.AudienceID = value.String + } + case audiencememberhistory.FieldContactID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field contact_id", values[i]) + } else if value.Valid { + _m.ContactID = value.String + } + case audiencememberhistory.FieldUserID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field user_id", values[i]) + } else if value.Valid { + _m.UserID = value.String + } + case audiencememberhistory.FieldGroupID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field group_id", values[i]) + } else if value.Valid { + _m.GroupID = value.String + } + case audiencememberhistory.FieldIdentityHolderID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field identity_holder_id", values[i]) + } else if value.Valid { + _m.IdentityHolderID = value.String + } + case audiencememberhistory.FieldSubscriberID: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field subscriber_id", values[i]) + } else if value.Valid { + _m.SubscriberID = value.String + } + case audiencememberhistory.FieldEmail: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field email", values[i]) + } else if value.Valid { + _m.Email = value.String + } + case audiencememberhistory.FieldFullName: + if value, ok := values[i].(*sql.NullString); !ok { + return fmt.Errorf("unexpected type %T for field full_name", values[i]) + } else if value.Valid { + _m.FullName = value.String + } + case audiencememberhistory.FieldMetadata: + if value, ok := values[i].(*[]byte); !ok { + return fmt.Errorf("unexpected type %T for field metadata", values[i]) + } else if value != nil && len(*value) > 0 { + if err := json.Unmarshal(*value, &_m.Metadata); err != nil { + return fmt.Errorf("unmarshal field metadata: %w", err) + } + } + default: + _m.selectValues.Set(columns[i], values[i]) + } + } + return nil +} + +// Value returns the ent.Value that was dynamically selected and assigned to the AudienceMemberHistory. +// This includes values selected through modifiers, order, etc. +func (_m *AudienceMemberHistory) Value(name string) (ent.Value, error) { + return _m.selectValues.Get(name) +} + +// Update returns a builder for updating this AudienceMemberHistory. +// Note that you need to call AudienceMemberHistory.Unwrap() before calling this method if this AudienceMemberHistory +// was returned from a transaction, and the transaction was committed or rolled back. +func (_m *AudienceMemberHistory) Update() *AudienceMemberHistoryUpdateOne { + return NewAudienceMemberHistoryClient(_m.config).UpdateOne(_m) +} + +// Unwrap unwraps the AudienceMemberHistory 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 *AudienceMemberHistory) Unwrap() *AudienceMemberHistory { + _tx, ok := _m.config.driver.(*txDriver) + if !ok { + panic("historygenerated: AudienceMemberHistory is not a transactional entity") + } + _m.config.driver = _tx.drv + return _m +} + +// String implements the fmt.Stringer. +func (_m *AudienceMemberHistory) String() string { + var builder strings.Builder + builder.WriteString("AudienceMemberHistory(") + builder.WriteString(fmt.Sprintf("id=%v, ", _m.ID)) + builder.WriteString("history_time=") + builder.WriteString(_m.HistoryTime.Format(time.ANSIC)) + builder.WriteString(", ") + builder.WriteString("ref=") + builder.WriteString(_m.Ref) + builder.WriteString(", ") + builder.WriteString("operation=") + builder.WriteString(fmt.Sprintf("%v", _m.Operation)) + builder.WriteString(", ") + 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(", ") + if v := _m.UpdatedByImpersonator; v != nil { + builder.WriteString("updated_by_impersonator=") + builder.WriteString(*v) + } + 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("display_id=") + builder.WriteString(_m.DisplayID) + builder.WriteString(", ") + builder.WriteString("tags=") + builder.WriteString(fmt.Sprintf("%v", _m.Tags)) + builder.WriteString(", ") + builder.WriteString("owner_id=") + builder.WriteString(_m.OwnerID) + builder.WriteString(", ") + builder.WriteString("audience_id=") + builder.WriteString(_m.AudienceID) + builder.WriteString(", ") + builder.WriteString("contact_id=") + builder.WriteString(_m.ContactID) + builder.WriteString(", ") + builder.WriteString("user_id=") + builder.WriteString(_m.UserID) + builder.WriteString(", ") + builder.WriteString("group_id=") + builder.WriteString(_m.GroupID) + builder.WriteString(", ") + builder.WriteString("identity_holder_id=") + builder.WriteString(_m.IdentityHolderID) + builder.WriteString(", ") + builder.WriteString("subscriber_id=") + builder.WriteString(_m.SubscriberID) + builder.WriteString(", ") + builder.WriteString("email=") + builder.WriteString(_m.Email) + builder.WriteString(", ") + builder.WriteString("full_name=") + builder.WriteString(_m.FullName) + builder.WriteString(", ") + builder.WriteString("metadata=") + builder.WriteString(fmt.Sprintf("%v", _m.Metadata)) + builder.WriteByte(')') + return builder.String() +} + +// AudienceMemberHistories is a parsable slice of AudienceMemberHistory. +type AudienceMemberHistories []*AudienceMemberHistory diff --git a/internal/ent/historygenerated/audiencememberhistory/audiencememberhistory.go b/internal/ent/historygenerated/audiencememberhistory/audiencememberhistory.go new file mode 100644 index 0000000000..6ffb324737 --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory/audiencememberhistory.go @@ -0,0 +1,251 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package audiencememberhistory + +import ( + "fmt" + "time" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/entx/history" +) + +const ( + // Label holds the string label denoting the audiencememberhistory type in the database. + Label = "audience_member_history" + // FieldID holds the string denoting the id field in the database. + FieldID = "id" + // FieldHistoryTime holds the string denoting the history_time field in the database. + FieldHistoryTime = "history_time" + // FieldRef holds the string denoting the ref field in the database. + FieldRef = "ref" + // FieldOperation holds the string denoting the operation field in the database. + FieldOperation = "operation" + // FieldCreatedAt holds the string denoting the created_at field in the database. + FieldCreatedAt = "created_at" + // FieldUpdatedAt holds the string denoting the updated_at field in the database. + FieldUpdatedAt = "updated_at" + // FieldCreatedBy holds the string denoting the created_by field in the database. + FieldCreatedBy = "created_by" + // FieldUpdatedBy holds the string denoting the updated_by field in the database. + FieldUpdatedBy = "updated_by" + // FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database. + FieldUpdatedByImpersonator = "updated_by_impersonator" + // FieldDeletedAt holds the string denoting the deleted_at field in the database. + FieldDeletedAt = "deleted_at" + // FieldDeletedBy holds the string denoting the deleted_by field in the database. + FieldDeletedBy = "deleted_by" + // FieldDisplayID holds the string denoting the display_id field in the database. + FieldDisplayID = "display_id" + // FieldTags holds the string denoting the tags field in the database. + FieldTags = "tags" + // FieldOwnerID holds the string denoting the owner_id field in the database. + FieldOwnerID = "owner_id" + // FieldAudienceID holds the string denoting the audience_id field in the database. + FieldAudienceID = "audience_id" + // FieldContactID holds the string denoting the contact_id field in the database. + FieldContactID = "contact_id" + // FieldUserID holds the string denoting the user_id field in the database. + FieldUserID = "user_id" + // FieldGroupID holds the string denoting the group_id field in the database. + FieldGroupID = "group_id" + // FieldIdentityHolderID holds the string denoting the identity_holder_id field in the database. + FieldIdentityHolderID = "identity_holder_id" + // FieldSubscriberID holds the string denoting the subscriber_id field in the database. + FieldSubscriberID = "subscriber_id" + // FieldEmail holds the string denoting the email field in the database. + FieldEmail = "email" + // FieldFullName holds the string denoting the full_name field in the database. + FieldFullName = "full_name" + // FieldMetadata holds the string denoting the metadata field in the database. + FieldMetadata = "metadata" + // Table holds the table name of the audiencememberhistory in the database. + Table = "audience_member_history" +) + +// Columns holds all SQL columns for audiencememberhistory fields. +var Columns = []string{ + FieldID, + FieldHistoryTime, + FieldRef, + FieldOperation, + FieldCreatedAt, + FieldUpdatedAt, + FieldCreatedBy, + FieldUpdatedBy, + FieldUpdatedByImpersonator, + FieldDeletedAt, + FieldDeletedBy, + FieldDisplayID, + FieldTags, + FieldOwnerID, + FieldAudienceID, + FieldContactID, + FieldUserID, + FieldGroupID, + FieldIdentityHolderID, + FieldSubscriberID, + FieldEmail, + FieldFullName, + FieldMetadata, +} + +// ValidColumn reports if the column name is valid (part of the table columns). +func ValidColumn(column string) bool { + for i := range Columns { + if column == Columns[i] { + return true + } + } + return false +} + +// Note that the variables below are initialized by the runtime +// package on the initialization of the application. Therefore, +// it should be imported in the main as follows: +// +// import _ "github.com/theopenlane/core/v2/internal/ent/historygenerated/runtime" +var ( + Hooks [1]ent.Hook + Interceptors [1]ent.Interceptor + Policy ent.Policy + // DefaultHistoryTime holds the default value on creation for the "history_time" field. + DefaultHistoryTime func() time.Time + // 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. + DefaultUpdatedAt func() time.Time + // DefaultTags holds the default value on creation for the "tags" field. + DefaultTags []string + // DefaultID holds the default value on creation for the "id" field. + DefaultID func() string +) + +// OperationValidator is a validator for the "operation" field enum values. It is called by the builders before save. +func OperationValidator(o history.OpType) error { + switch o.String() { + case "INSERT", "UPDATE", "DELETE": + return nil + default: + return fmt.Errorf("audiencememberhistory: invalid enum value for operation field: %q", o) + } +} + +// OrderOption defines the ordering options for the AudienceMemberHistory queries. +type OrderOption func(*sql.Selector) + +// ByID orders the results by the id field. +func ByID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldID, opts...).ToFunc() +} + +// ByHistoryTime orders the results by the history_time field. +func ByHistoryTime(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldHistoryTime, opts...).ToFunc() +} + +// ByRef orders the results by the ref field. +func ByRef(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldRef, opts...).ToFunc() +} + +// ByOperation orders the results by the operation field. +func ByOperation(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOperation, opts...).ToFunc() +} + +// ByCreatedAt orders the results by the created_at field. +func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedAt, opts...).ToFunc() +} + +// ByUpdatedAt orders the results by the updated_at field. +func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedAt, opts...).ToFunc() +} + +// ByCreatedBy orders the results by the created_by field. +func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldCreatedBy, opts...).ToFunc() +} + +// ByUpdatedBy orders the results by the updated_by field. +func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedBy, opts...).ToFunc() +} + +// ByUpdatedByImpersonator orders the results by the updated_by_impersonator field. +func ByUpdatedByImpersonator(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUpdatedByImpersonator, opts...).ToFunc() +} + +// ByDeletedAt orders the results by the deleted_at field. +func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedAt, opts...).ToFunc() +} + +// ByDeletedBy orders the results by the deleted_by field. +func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDeletedBy, opts...).ToFunc() +} + +// ByDisplayID orders the results by the display_id field. +func ByDisplayID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldDisplayID, opts...).ToFunc() +} + +// ByOwnerID orders the results by the owner_id field. +func ByOwnerID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldOwnerID, opts...).ToFunc() +} + +// ByAudienceID orders the results by the audience_id field. +func ByAudienceID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldAudienceID, opts...).ToFunc() +} + +// ByContactID orders the results by the contact_id field. +func ByContactID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldContactID, opts...).ToFunc() +} + +// ByUserID orders the results by the user_id field. +func ByUserID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldUserID, opts...).ToFunc() +} + +// ByGroupID orders the results by the group_id field. +func ByGroupID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldGroupID, opts...).ToFunc() +} + +// ByIdentityHolderID orders the results by the identity_holder_id field. +func ByIdentityHolderID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldIdentityHolderID, opts...).ToFunc() +} + +// BySubscriberID orders the results by the subscriber_id field. +func BySubscriberID(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldSubscriberID, opts...).ToFunc() +} + +// ByEmail orders the results by the email field. +func ByEmail(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldEmail, opts...).ToFunc() +} + +// ByFullName orders the results by the full_name field. +func ByFullName(opts ...sql.OrderTermOption) OrderOption { + return sql.OrderByField(FieldFullName, opts...).ToFunc() +} + +var ( + // history.OpType must implement graphql.Marshaler. + _ graphql.Marshaler = (*history.OpType)(nil) + // history.OpType must implement graphql.Unmarshaler. + _ graphql.Unmarshaler = (*history.OpType)(nil) +) diff --git a/internal/ent/historygenerated/audiencememberhistory/where.go b/internal/ent/historygenerated/audiencememberhistory/where.go new file mode 100644 index 0000000000..159f07fdef --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory/where.go @@ -0,0 +1,1503 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package audiencememberhistory + +import ( + "time" + + "entgo.io/ent/dialect/sql" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" + "github.com/theopenlane/entx/history" +) + +// ID filters vertices based on their ID field. +func ID(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldID, id)) +} + +// IDEQ applies the EQ predicate on the ID field. +func IDEQ(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldID, id)) +} + +// IDNEQ applies the NEQ predicate on the ID field. +func IDNEQ(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldID, id)) +} + +// IDIn applies the In predicate on the ID field. +func IDIn(ids ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldID, ids...)) +} + +// IDNotIn applies the NotIn predicate on the ID field. +func IDNotIn(ids ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldID, ids...)) +} + +// IDGT applies the GT predicate on the ID field. +func IDGT(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldID, id)) +} + +// IDGTE applies the GTE predicate on the ID field. +func IDGTE(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldID, id)) +} + +// IDLT applies the LT predicate on the ID field. +func IDLT(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldID, id)) +} + +// IDLTE applies the LTE predicate on the ID field. +func IDLTE(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldID, id)) +} + +// IDEqualFold applies the EqualFold predicate on the ID field. +func IDEqualFold(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldID, id)) +} + +// IDContainsFold applies the ContainsFold predicate on the ID field. +func IDContainsFold(id string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldID, id)) +} + +// HistoryTime applies equality check predicate on the "history_time" field. It's identical to HistoryTimeEQ. +func HistoryTime(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// Ref applies equality check predicate on the "ref" field. It's identical to RefEQ. +func Ref(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldRef, v)) +} + +// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ. +func CreatedAt(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ. +func UpdatedAt(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ. +func CreatedBy(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ. +func UpdatedBy(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ. +func UpdatedByImpersonator(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ. +func DeletedAt(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ. +func DeletedBy(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ. +func DisplayID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDisplayID, v)) +} + +// OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ. +func OwnerID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldOwnerID, v)) +} + +// AudienceID applies equality check predicate on the "audience_id" field. It's identical to AudienceIDEQ. +func AudienceID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldAudienceID, v)) +} + +// ContactID applies equality check predicate on the "contact_id" field. It's identical to ContactIDEQ. +func ContactID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldContactID, v)) +} + +// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ. +func UserID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUserID, v)) +} + +// GroupID applies equality check predicate on the "group_id" field. It's identical to GroupIDEQ. +func GroupID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldGroupID, v)) +} + +// IdentityHolderID applies equality check predicate on the "identity_holder_id" field. It's identical to IdentityHolderIDEQ. +func IdentityHolderID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldIdentityHolderID, v)) +} + +// SubscriberID applies equality check predicate on the "subscriber_id" field. It's identical to SubscriberIDEQ. +func SubscriberID(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldSubscriberID, v)) +} + +// Email applies equality check predicate on the "email" field. It's identical to EmailEQ. +func Email(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldEmail, v)) +} + +// FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ. +func FullName(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldFullName, v)) +} + +// HistoryTimeEQ applies the EQ predicate on the "history_time" field. +func HistoryTimeEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldHistoryTime, v)) +} + +// HistoryTimeNEQ applies the NEQ predicate on the "history_time" field. +func HistoryTimeNEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldHistoryTime, v)) +} + +// HistoryTimeIn applies the In predicate on the "history_time" field. +func HistoryTimeIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeNotIn applies the NotIn predicate on the "history_time" field. +func HistoryTimeNotIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldHistoryTime, vs...)) +} + +// HistoryTimeGT applies the GT predicate on the "history_time" field. +func HistoryTimeGT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldHistoryTime, v)) +} + +// HistoryTimeGTE applies the GTE predicate on the "history_time" field. +func HistoryTimeGTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldHistoryTime, v)) +} + +// HistoryTimeLT applies the LT predicate on the "history_time" field. +func HistoryTimeLT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldHistoryTime, v)) +} + +// HistoryTimeLTE applies the LTE predicate on the "history_time" field. +func HistoryTimeLTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldHistoryTime, v)) +} + +// RefEQ applies the EQ predicate on the "ref" field. +func RefEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldRef, v)) +} + +// RefNEQ applies the NEQ predicate on the "ref" field. +func RefNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldRef, v)) +} + +// RefIn applies the In predicate on the "ref" field. +func RefIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldRef, vs...)) +} + +// RefNotIn applies the NotIn predicate on the "ref" field. +func RefNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldRef, vs...)) +} + +// RefGT applies the GT predicate on the "ref" field. +func RefGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldRef, v)) +} + +// RefGTE applies the GTE predicate on the "ref" field. +func RefGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldRef, v)) +} + +// RefLT applies the LT predicate on the "ref" field. +func RefLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldRef, v)) +} + +// RefLTE applies the LTE predicate on the "ref" field. +func RefLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldRef, v)) +} + +// RefContains applies the Contains predicate on the "ref" field. +func RefContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldRef, v)) +} + +// RefHasPrefix applies the HasPrefix predicate on the "ref" field. +func RefHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldRef, v)) +} + +// RefHasSuffix applies the HasSuffix predicate on the "ref" field. +func RefHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldRef, v)) +} + +// RefIsNil applies the IsNil predicate on the "ref" field. +func RefIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldRef)) +} + +// RefNotNil applies the NotNil predicate on the "ref" field. +func RefNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldRef)) +} + +// RefEqualFold applies the EqualFold predicate on the "ref" field. +func RefEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldRef, v)) +} + +// RefContainsFold applies the ContainsFold predicate on the "ref" field. +func RefContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldRef, v)) +} + +// OperationEQ applies the EQ predicate on the "operation" field. +func OperationEQ(v history.OpType) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldOperation, v)) +} + +// OperationNEQ applies the NEQ predicate on the "operation" field. +func OperationNEQ(v history.OpType) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldOperation, v)) +} + +// OperationIn applies the In predicate on the "operation" field. +func OperationIn(vs ...history.OpType) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldOperation, vs...)) +} + +// OperationNotIn applies the NotIn predicate on the "operation" field. +func OperationNotIn(vs ...history.OpType) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldOperation, vs...)) +} + +// CreatedAtEQ applies the EQ predicate on the "created_at" field. +func CreatedAtEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldCreatedAt, v)) +} + +// CreatedAtNEQ applies the NEQ predicate on the "created_at" field. +func CreatedAtNEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldCreatedAt, v)) +} + +// CreatedAtIn applies the In predicate on the "created_at" field. +func CreatedAtIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldCreatedAt, vs...)) +} + +// CreatedAtNotIn applies the NotIn predicate on the "created_at" field. +func CreatedAtNotIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldCreatedAt, vs...)) +} + +// CreatedAtGT applies the GT predicate on the "created_at" field. +func CreatedAtGT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldCreatedAt, v)) +} + +// CreatedAtGTE applies the GTE predicate on the "created_at" field. +func CreatedAtGTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldCreatedAt, v)) +} + +// CreatedAtLT applies the LT predicate on the "created_at" field. +func CreatedAtLT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldCreatedAt, v)) +} + +// CreatedAtLTE applies the LTE predicate on the "created_at" field. +func CreatedAtLTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldCreatedAt, v)) +} + +// CreatedAtIsNil applies the IsNil predicate on the "created_at" field. +func CreatedAtIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldCreatedAt)) +} + +// CreatedAtNotNil applies the NotNil predicate on the "created_at" field. +func CreatedAtNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldCreatedAt)) +} + +// UpdatedAtEQ applies the EQ predicate on the "updated_at" field. +func UpdatedAtEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field. +func UpdatedAtNEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldUpdatedAt, v)) +} + +// UpdatedAtIn applies the In predicate on the "updated_at" field. +func UpdatedAtIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field. +func UpdatedAtNotIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldUpdatedAt, vs...)) +} + +// UpdatedAtGT applies the GT predicate on the "updated_at" field. +func UpdatedAtGT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldUpdatedAt, v)) +} + +// UpdatedAtGTE applies the GTE predicate on the "updated_at" field. +func UpdatedAtGTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldUpdatedAt, v)) +} + +// UpdatedAtLT applies the LT predicate on the "updated_at" field. +func UpdatedAtLT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldUpdatedAt, v)) +} + +// UpdatedAtLTE applies the LTE predicate on the "updated_at" field. +func UpdatedAtLTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldUpdatedAt, v)) +} + +// UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field. +func UpdatedAtIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldUpdatedAt)) +} + +// UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field. +func UpdatedAtNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldUpdatedAt)) +} + +// CreatedByEQ applies the EQ predicate on the "created_by" field. +func CreatedByEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldCreatedBy, v)) +} + +// CreatedByNEQ applies the NEQ predicate on the "created_by" field. +func CreatedByNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldCreatedBy, v)) +} + +// CreatedByIn applies the In predicate on the "created_by" field. +func CreatedByIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldCreatedBy, vs...)) +} + +// CreatedByNotIn applies the NotIn predicate on the "created_by" field. +func CreatedByNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldCreatedBy, vs...)) +} + +// CreatedByGT applies the GT predicate on the "created_by" field. +func CreatedByGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldCreatedBy, v)) +} + +// CreatedByGTE applies the GTE predicate on the "created_by" field. +func CreatedByGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldCreatedBy, v)) +} + +// CreatedByLT applies the LT predicate on the "created_by" field. +func CreatedByLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldCreatedBy, v)) +} + +// CreatedByLTE applies the LTE predicate on the "created_by" field. +func CreatedByLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldCreatedBy, v)) +} + +// CreatedByContains applies the Contains predicate on the "created_by" field. +func CreatedByContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldCreatedBy, v)) +} + +// CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field. +func CreatedByHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldCreatedBy, v)) +} + +// CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field. +func CreatedByHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldCreatedBy, v)) +} + +// CreatedByIsNil applies the IsNil predicate on the "created_by" field. +func CreatedByIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldCreatedBy)) +} + +// CreatedByNotNil applies the NotNil predicate on the "created_by" field. +func CreatedByNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldCreatedBy)) +} + +// CreatedByEqualFold applies the EqualFold predicate on the "created_by" field. +func CreatedByEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldCreatedBy, v)) +} + +// CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field. +func CreatedByContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldCreatedBy, v)) +} + +// UpdatedByEQ applies the EQ predicate on the "updated_by" field. +func UpdatedByEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedBy, v)) +} + +// UpdatedByNEQ applies the NEQ predicate on the "updated_by" field. +func UpdatedByNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldUpdatedBy, v)) +} + +// UpdatedByIn applies the In predicate on the "updated_by" field. +func UpdatedByIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByNotIn applies the NotIn predicate on the "updated_by" field. +func UpdatedByNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldUpdatedBy, vs...)) +} + +// UpdatedByGT applies the GT predicate on the "updated_by" field. +func UpdatedByGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldUpdatedBy, v)) +} + +// UpdatedByGTE applies the GTE predicate on the "updated_by" field. +func UpdatedByGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldUpdatedBy, v)) +} + +// UpdatedByLT applies the LT predicate on the "updated_by" field. +func UpdatedByLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldUpdatedBy, v)) +} + +// UpdatedByLTE applies the LTE predicate on the "updated_by" field. +func UpdatedByLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldUpdatedBy, v)) +} + +// UpdatedByContains applies the Contains predicate on the "updated_by" field. +func UpdatedByContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldUpdatedBy, v)) +} + +// UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field. +func UpdatedByHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldUpdatedBy, v)) +} + +// UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field. +func UpdatedByHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldUpdatedBy, v)) +} + +// UpdatedByIsNil applies the IsNil predicate on the "updated_by" field. +func UpdatedByIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldUpdatedBy)) +} + +// UpdatedByNotNil applies the NotNil predicate on the "updated_by" field. +func UpdatedByNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldUpdatedBy)) +} + +// UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field. +func UpdatedByEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldUpdatedBy, v)) +} + +// UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field. +func UpdatedByContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldUpdatedBy, v)) +} + +// UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldUpdatedByImpersonator, vs...)) +} + +// UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldUpdatedByImpersonator)) +} + +// UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldUpdatedByImpersonator, v)) +} + +// UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field. +func UpdatedByImpersonatorContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldUpdatedByImpersonator, v)) +} + +// DeletedAtEQ applies the EQ predicate on the "deleted_at" field. +func DeletedAtEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDeletedAt, v)) +} + +// DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field. +func DeletedAtNEQ(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldDeletedAt, v)) +} + +// DeletedAtIn applies the In predicate on the "deleted_at" field. +func DeletedAtIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldDeletedAt, vs...)) +} + +// DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field. +func DeletedAtNotIn(vs ...time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldDeletedAt, vs...)) +} + +// DeletedAtGT applies the GT predicate on the "deleted_at" field. +func DeletedAtGT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldDeletedAt, v)) +} + +// DeletedAtGTE applies the GTE predicate on the "deleted_at" field. +func DeletedAtGTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldDeletedAt, v)) +} + +// DeletedAtLT applies the LT predicate on the "deleted_at" field. +func DeletedAtLT(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldDeletedAt, v)) +} + +// DeletedAtLTE applies the LTE predicate on the "deleted_at" field. +func DeletedAtLTE(v time.Time) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldDeletedAt, v)) +} + +// DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field. +func DeletedAtIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldDeletedAt)) +} + +// DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field. +func DeletedAtNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldDeletedAt)) +} + +// DeletedByEQ applies the EQ predicate on the "deleted_by" field. +func DeletedByEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDeletedBy, v)) +} + +// DeletedByNEQ applies the NEQ predicate on the "deleted_by" field. +func DeletedByNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldDeletedBy, v)) +} + +// DeletedByIn applies the In predicate on the "deleted_by" field. +func DeletedByIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldDeletedBy, vs...)) +} + +// DeletedByNotIn applies the NotIn predicate on the "deleted_by" field. +func DeletedByNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldDeletedBy, vs...)) +} + +// DeletedByGT applies the GT predicate on the "deleted_by" field. +func DeletedByGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldDeletedBy, v)) +} + +// DeletedByGTE applies the GTE predicate on the "deleted_by" field. +func DeletedByGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldDeletedBy, v)) +} + +// DeletedByLT applies the LT predicate on the "deleted_by" field. +func DeletedByLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldDeletedBy, v)) +} + +// DeletedByLTE applies the LTE predicate on the "deleted_by" field. +func DeletedByLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldDeletedBy, v)) +} + +// DeletedByContains applies the Contains predicate on the "deleted_by" field. +func DeletedByContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldDeletedBy, v)) +} + +// DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field. +func DeletedByHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldDeletedBy, v)) +} + +// DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field. +func DeletedByHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldDeletedBy, v)) +} + +// DeletedByIsNil applies the IsNil predicate on the "deleted_by" field. +func DeletedByIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldDeletedBy)) +} + +// DeletedByNotNil applies the NotNil predicate on the "deleted_by" field. +func DeletedByNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldDeletedBy)) +} + +// DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field. +func DeletedByEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldDeletedBy, v)) +} + +// DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field. +func DeletedByContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldDeletedBy, v)) +} + +// DisplayIDEQ applies the EQ predicate on the "display_id" field. +func DisplayIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldDisplayID, v)) +} + +// DisplayIDNEQ applies the NEQ predicate on the "display_id" field. +func DisplayIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldDisplayID, v)) +} + +// DisplayIDIn applies the In predicate on the "display_id" field. +func DisplayIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldDisplayID, vs...)) +} + +// DisplayIDNotIn applies the NotIn predicate on the "display_id" field. +func DisplayIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldDisplayID, vs...)) +} + +// DisplayIDGT applies the GT predicate on the "display_id" field. +func DisplayIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldDisplayID, v)) +} + +// DisplayIDGTE applies the GTE predicate on the "display_id" field. +func DisplayIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldDisplayID, v)) +} + +// DisplayIDLT applies the LT predicate on the "display_id" field. +func DisplayIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldDisplayID, v)) +} + +// DisplayIDLTE applies the LTE predicate on the "display_id" field. +func DisplayIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldDisplayID, v)) +} + +// DisplayIDContains applies the Contains predicate on the "display_id" field. +func DisplayIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldDisplayID, v)) +} + +// DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field. +func DisplayIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldDisplayID, v)) +} + +// DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field. +func DisplayIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldDisplayID, v)) +} + +// DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field. +func DisplayIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldDisplayID, v)) +} + +// DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field. +func DisplayIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldDisplayID, v)) +} + +// TagsIsNil applies the IsNil predicate on the "tags" field. +func TagsIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldTags)) +} + +// TagsNotNil applies the NotNil predicate on the "tags" field. +func TagsNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldTags)) +} + +// OwnerIDEQ applies the EQ predicate on the "owner_id" field. +func OwnerIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldOwnerID, v)) +} + +// OwnerIDNEQ applies the NEQ predicate on the "owner_id" field. +func OwnerIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldOwnerID, v)) +} + +// OwnerIDIn applies the In predicate on the "owner_id" field. +func OwnerIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldOwnerID, vs...)) +} + +// OwnerIDNotIn applies the NotIn predicate on the "owner_id" field. +func OwnerIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldOwnerID, vs...)) +} + +// OwnerIDGT applies the GT predicate on the "owner_id" field. +func OwnerIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldOwnerID, v)) +} + +// OwnerIDGTE applies the GTE predicate on the "owner_id" field. +func OwnerIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldOwnerID, v)) +} + +// OwnerIDLT applies the LT predicate on the "owner_id" field. +func OwnerIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldOwnerID, v)) +} + +// OwnerIDLTE applies the LTE predicate on the "owner_id" field. +func OwnerIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldOwnerID, v)) +} + +// OwnerIDContains applies the Contains predicate on the "owner_id" field. +func OwnerIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldOwnerID, v)) +} + +// OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field. +func OwnerIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldOwnerID, v)) +} + +// OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field. +func OwnerIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldOwnerID, v)) +} + +// OwnerIDIsNil applies the IsNil predicate on the "owner_id" field. +func OwnerIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldOwnerID)) +} + +// OwnerIDNotNil applies the NotNil predicate on the "owner_id" field. +func OwnerIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldOwnerID)) +} + +// OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field. +func OwnerIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldOwnerID, v)) +} + +// OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field. +func OwnerIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldOwnerID, v)) +} + +// AudienceIDEQ applies the EQ predicate on the "audience_id" field. +func AudienceIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldAudienceID, v)) +} + +// AudienceIDNEQ applies the NEQ predicate on the "audience_id" field. +func AudienceIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldAudienceID, v)) +} + +// AudienceIDIn applies the In predicate on the "audience_id" field. +func AudienceIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldAudienceID, vs...)) +} + +// AudienceIDNotIn applies the NotIn predicate on the "audience_id" field. +func AudienceIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldAudienceID, vs...)) +} + +// AudienceIDGT applies the GT predicate on the "audience_id" field. +func AudienceIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldAudienceID, v)) +} + +// AudienceIDGTE applies the GTE predicate on the "audience_id" field. +func AudienceIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldAudienceID, v)) +} + +// AudienceIDLT applies the LT predicate on the "audience_id" field. +func AudienceIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldAudienceID, v)) +} + +// AudienceIDLTE applies the LTE predicate on the "audience_id" field. +func AudienceIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldAudienceID, v)) +} + +// AudienceIDContains applies the Contains predicate on the "audience_id" field. +func AudienceIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldAudienceID, v)) +} + +// AudienceIDHasPrefix applies the HasPrefix predicate on the "audience_id" field. +func AudienceIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldAudienceID, v)) +} + +// AudienceIDHasSuffix applies the HasSuffix predicate on the "audience_id" field. +func AudienceIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldAudienceID, v)) +} + +// AudienceIDEqualFold applies the EqualFold predicate on the "audience_id" field. +func AudienceIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldAudienceID, v)) +} + +// AudienceIDContainsFold applies the ContainsFold predicate on the "audience_id" field. +func AudienceIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldAudienceID, v)) +} + +// ContactIDEQ applies the EQ predicate on the "contact_id" field. +func ContactIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldContactID, v)) +} + +// ContactIDNEQ applies the NEQ predicate on the "contact_id" field. +func ContactIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldContactID, v)) +} + +// ContactIDIn applies the In predicate on the "contact_id" field. +func ContactIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldContactID, vs...)) +} + +// ContactIDNotIn applies the NotIn predicate on the "contact_id" field. +func ContactIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldContactID, vs...)) +} + +// ContactIDGT applies the GT predicate on the "contact_id" field. +func ContactIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldContactID, v)) +} + +// ContactIDGTE applies the GTE predicate on the "contact_id" field. +func ContactIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldContactID, v)) +} + +// ContactIDLT applies the LT predicate on the "contact_id" field. +func ContactIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldContactID, v)) +} + +// ContactIDLTE applies the LTE predicate on the "contact_id" field. +func ContactIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldContactID, v)) +} + +// ContactIDContains applies the Contains predicate on the "contact_id" field. +func ContactIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldContactID, v)) +} + +// ContactIDHasPrefix applies the HasPrefix predicate on the "contact_id" field. +func ContactIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldContactID, v)) +} + +// ContactIDHasSuffix applies the HasSuffix predicate on the "contact_id" field. +func ContactIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldContactID, v)) +} + +// ContactIDIsNil applies the IsNil predicate on the "contact_id" field. +func ContactIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldContactID)) +} + +// ContactIDNotNil applies the NotNil predicate on the "contact_id" field. +func ContactIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldContactID)) +} + +// ContactIDEqualFold applies the EqualFold predicate on the "contact_id" field. +func ContactIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldContactID, v)) +} + +// ContactIDContainsFold applies the ContainsFold predicate on the "contact_id" field. +func ContactIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldContactID, v)) +} + +// UserIDEQ applies the EQ predicate on the "user_id" field. +func UserIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldUserID, v)) +} + +// UserIDNEQ applies the NEQ predicate on the "user_id" field. +func UserIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldUserID, v)) +} + +// UserIDIn applies the In predicate on the "user_id" field. +func UserIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldUserID, vs...)) +} + +// UserIDNotIn applies the NotIn predicate on the "user_id" field. +func UserIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldUserID, vs...)) +} + +// UserIDGT applies the GT predicate on the "user_id" field. +func UserIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldUserID, v)) +} + +// UserIDGTE applies the GTE predicate on the "user_id" field. +func UserIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldUserID, v)) +} + +// UserIDLT applies the LT predicate on the "user_id" field. +func UserIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldUserID, v)) +} + +// UserIDLTE applies the LTE predicate on the "user_id" field. +func UserIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldUserID, v)) +} + +// UserIDContains applies the Contains predicate on the "user_id" field. +func UserIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldUserID, v)) +} + +// UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field. +func UserIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldUserID, v)) +} + +// UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field. +func UserIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldUserID, v)) +} + +// UserIDIsNil applies the IsNil predicate on the "user_id" field. +func UserIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldUserID)) +} + +// UserIDNotNil applies the NotNil predicate on the "user_id" field. +func UserIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldUserID)) +} + +// UserIDEqualFold applies the EqualFold predicate on the "user_id" field. +func UserIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldUserID, v)) +} + +// UserIDContainsFold applies the ContainsFold predicate on the "user_id" field. +func UserIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldUserID, v)) +} + +// GroupIDEQ applies the EQ predicate on the "group_id" field. +func GroupIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldGroupID, v)) +} + +// GroupIDNEQ applies the NEQ predicate on the "group_id" field. +func GroupIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldGroupID, v)) +} + +// GroupIDIn applies the In predicate on the "group_id" field. +func GroupIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldGroupID, vs...)) +} + +// GroupIDNotIn applies the NotIn predicate on the "group_id" field. +func GroupIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldGroupID, vs...)) +} + +// GroupIDGT applies the GT predicate on the "group_id" field. +func GroupIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldGroupID, v)) +} + +// GroupIDGTE applies the GTE predicate on the "group_id" field. +func GroupIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldGroupID, v)) +} + +// GroupIDLT applies the LT predicate on the "group_id" field. +func GroupIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldGroupID, v)) +} + +// GroupIDLTE applies the LTE predicate on the "group_id" field. +func GroupIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldGroupID, v)) +} + +// GroupIDContains applies the Contains predicate on the "group_id" field. +func GroupIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldGroupID, v)) +} + +// GroupIDHasPrefix applies the HasPrefix predicate on the "group_id" field. +func GroupIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldGroupID, v)) +} + +// GroupIDHasSuffix applies the HasSuffix predicate on the "group_id" field. +func GroupIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldGroupID, v)) +} + +// GroupIDIsNil applies the IsNil predicate on the "group_id" field. +func GroupIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldGroupID)) +} + +// GroupIDNotNil applies the NotNil predicate on the "group_id" field. +func GroupIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldGroupID)) +} + +// GroupIDEqualFold applies the EqualFold predicate on the "group_id" field. +func GroupIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldGroupID, v)) +} + +// GroupIDContainsFold applies the ContainsFold predicate on the "group_id" field. +func GroupIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldGroupID, v)) +} + +// IdentityHolderIDEQ applies the EQ predicate on the "identity_holder_id" field. +func IdentityHolderIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDNEQ applies the NEQ predicate on the "identity_holder_id" field. +func IdentityHolderIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDIn applies the In predicate on the "identity_holder_id" field. +func IdentityHolderIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldIdentityHolderID, vs...)) +} + +// IdentityHolderIDNotIn applies the NotIn predicate on the "identity_holder_id" field. +func IdentityHolderIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldIdentityHolderID, vs...)) +} + +// IdentityHolderIDGT applies the GT predicate on the "identity_holder_id" field. +func IdentityHolderIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDGTE applies the GTE predicate on the "identity_holder_id" field. +func IdentityHolderIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDLT applies the LT predicate on the "identity_holder_id" field. +func IdentityHolderIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDLTE applies the LTE predicate on the "identity_holder_id" field. +func IdentityHolderIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDContains applies the Contains predicate on the "identity_holder_id" field. +func IdentityHolderIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDHasPrefix applies the HasPrefix predicate on the "identity_holder_id" field. +func IdentityHolderIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDHasSuffix applies the HasSuffix predicate on the "identity_holder_id" field. +func IdentityHolderIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDIsNil applies the IsNil predicate on the "identity_holder_id" field. +func IdentityHolderIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldIdentityHolderID)) +} + +// IdentityHolderIDNotNil applies the NotNil predicate on the "identity_holder_id" field. +func IdentityHolderIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldIdentityHolderID)) +} + +// IdentityHolderIDEqualFold applies the EqualFold predicate on the "identity_holder_id" field. +func IdentityHolderIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldIdentityHolderID, v)) +} + +// IdentityHolderIDContainsFold applies the ContainsFold predicate on the "identity_holder_id" field. +func IdentityHolderIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldIdentityHolderID, v)) +} + +// SubscriberIDEQ applies the EQ predicate on the "subscriber_id" field. +func SubscriberIDEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldSubscriberID, v)) +} + +// SubscriberIDNEQ applies the NEQ predicate on the "subscriber_id" field. +func SubscriberIDNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldSubscriberID, v)) +} + +// SubscriberIDIn applies the In predicate on the "subscriber_id" field. +func SubscriberIDIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldSubscriberID, vs...)) +} + +// SubscriberIDNotIn applies the NotIn predicate on the "subscriber_id" field. +func SubscriberIDNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldSubscriberID, vs...)) +} + +// SubscriberIDGT applies the GT predicate on the "subscriber_id" field. +func SubscriberIDGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldSubscriberID, v)) +} + +// SubscriberIDGTE applies the GTE predicate on the "subscriber_id" field. +func SubscriberIDGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldSubscriberID, v)) +} + +// SubscriberIDLT applies the LT predicate on the "subscriber_id" field. +func SubscriberIDLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldSubscriberID, v)) +} + +// SubscriberIDLTE applies the LTE predicate on the "subscriber_id" field. +func SubscriberIDLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldSubscriberID, v)) +} + +// SubscriberIDContains applies the Contains predicate on the "subscriber_id" field. +func SubscriberIDContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldSubscriberID, v)) +} + +// SubscriberIDHasPrefix applies the HasPrefix predicate on the "subscriber_id" field. +func SubscriberIDHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldSubscriberID, v)) +} + +// SubscriberIDHasSuffix applies the HasSuffix predicate on the "subscriber_id" field. +func SubscriberIDHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldSubscriberID, v)) +} + +// SubscriberIDIsNil applies the IsNil predicate on the "subscriber_id" field. +func SubscriberIDIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldSubscriberID)) +} + +// SubscriberIDNotNil applies the NotNil predicate on the "subscriber_id" field. +func SubscriberIDNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldSubscriberID)) +} + +// SubscriberIDEqualFold applies the EqualFold predicate on the "subscriber_id" field. +func SubscriberIDEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldSubscriberID, v)) +} + +// SubscriberIDContainsFold applies the ContainsFold predicate on the "subscriber_id" field. +func SubscriberIDContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldSubscriberID, v)) +} + +// EmailEQ applies the EQ predicate on the "email" field. +func EmailEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldEmail, v)) +} + +// EmailNEQ applies the NEQ predicate on the "email" field. +func EmailNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldEmail, v)) +} + +// EmailIn applies the In predicate on the "email" field. +func EmailIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldEmail, vs...)) +} + +// EmailNotIn applies the NotIn predicate on the "email" field. +func EmailNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldEmail, vs...)) +} + +// EmailGT applies the GT predicate on the "email" field. +func EmailGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldEmail, v)) +} + +// EmailGTE applies the GTE predicate on the "email" field. +func EmailGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldEmail, v)) +} + +// EmailLT applies the LT predicate on the "email" field. +func EmailLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldEmail, v)) +} + +// EmailLTE applies the LTE predicate on the "email" field. +func EmailLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldEmail, v)) +} + +// EmailContains applies the Contains predicate on the "email" field. +func EmailContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldEmail, v)) +} + +// EmailHasPrefix applies the HasPrefix predicate on the "email" field. +func EmailHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldEmail, v)) +} + +// EmailHasSuffix applies the HasSuffix predicate on the "email" field. +func EmailHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldEmail, v)) +} + +// EmailEqualFold applies the EqualFold predicate on the "email" field. +func EmailEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldEmail, v)) +} + +// EmailContainsFold applies the ContainsFold predicate on the "email" field. +func EmailContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldEmail, v)) +} + +// FullNameEQ applies the EQ predicate on the "full_name" field. +func FullNameEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEQ(FieldFullName, v)) +} + +// FullNameNEQ applies the NEQ predicate on the "full_name" field. +func FullNameNEQ(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNEQ(FieldFullName, v)) +} + +// FullNameIn applies the In predicate on the "full_name" field. +func FullNameIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIn(FieldFullName, vs...)) +} + +// FullNameNotIn applies the NotIn predicate on the "full_name" field. +func FullNameNotIn(vs ...string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotIn(FieldFullName, vs...)) +} + +// FullNameGT applies the GT predicate on the "full_name" field. +func FullNameGT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGT(FieldFullName, v)) +} + +// FullNameGTE applies the GTE predicate on the "full_name" field. +func FullNameGTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldGTE(FieldFullName, v)) +} + +// FullNameLT applies the LT predicate on the "full_name" field. +func FullNameLT(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLT(FieldFullName, v)) +} + +// FullNameLTE applies the LTE predicate on the "full_name" field. +func FullNameLTE(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldLTE(FieldFullName, v)) +} + +// FullNameContains applies the Contains predicate on the "full_name" field. +func FullNameContains(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContains(FieldFullName, v)) +} + +// FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field. +func FullNameHasPrefix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasPrefix(FieldFullName, v)) +} + +// FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field. +func FullNameHasSuffix(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldHasSuffix(FieldFullName, v)) +} + +// FullNameIsNil applies the IsNil predicate on the "full_name" field. +func FullNameIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldFullName)) +} + +// FullNameNotNil applies the NotNil predicate on the "full_name" field. +func FullNameNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldFullName)) +} + +// FullNameEqualFold applies the EqualFold predicate on the "full_name" field. +func FullNameEqualFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldEqualFold(FieldFullName, v)) +} + +// FullNameContainsFold applies the ContainsFold predicate on the "full_name" field. +func FullNameContainsFold(v string) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldContainsFold(FieldFullName, v)) +} + +// MetadataIsNil applies the IsNil predicate on the "metadata" field. +func MetadataIsNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldIsNull(FieldMetadata)) +} + +// MetadataNotNil applies the NotNil predicate on the "metadata" field. +func MetadataNotNil() predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.FieldNotNull(FieldMetadata)) +} + +// And groups predicates with the AND operator between them. +func And(predicates ...predicate.AudienceMemberHistory) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.AndPredicates(predicates...)) +} + +// Or groups predicates with the OR operator between them. +func Or(predicates ...predicate.AudienceMemberHistory) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.OrPredicates(predicates...)) +} + +// Not applies the not operator on the given predicate. +func Not(p predicate.AudienceMemberHistory) predicate.AudienceMemberHistory { + return predicate.AudienceMemberHistory(sql.NotPredicates(p)) +} diff --git a/internal/ent/historygenerated/audiencememberhistory_create.go b/internal/ent/historygenerated/audiencememberhistory_create.go new file mode 100644 index 0000000000..6c73d9f142 --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory_create.go @@ -0,0 +1,602 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + "time" + + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" + "github.com/theopenlane/entx/history" +) + +// AudienceMemberHistoryCreate is the builder for creating a AudienceMemberHistory entity. +type AudienceMemberHistoryCreate struct { + config + mutation *AudienceMemberHistoryMutation + hooks []Hook +} + +// SetHistoryTime sets the "history_time" field. +func (_c *AudienceMemberHistoryCreate) SetHistoryTime(v time.Time) *AudienceMemberHistoryCreate { + _c.mutation.SetHistoryTime(v) + return _c +} + +// SetNillableHistoryTime sets the "history_time" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableHistoryTime(v *time.Time) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetHistoryTime(*v) + } + return _c +} + +// SetRef sets the "ref" field. +func (_c *AudienceMemberHistoryCreate) SetRef(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetRef(v) + return _c +} + +// SetNillableRef sets the "ref" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableRef(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetRef(*v) + } + return _c +} + +// SetOperation sets the "operation" field. +func (_c *AudienceMemberHistoryCreate) SetOperation(v history.OpType) *AudienceMemberHistoryCreate { + _c.mutation.SetOperation(v) + return _c +} + +// SetCreatedAt sets the "created_at" field. +func (_c *AudienceMemberHistoryCreate) SetCreatedAt(v time.Time) *AudienceMemberHistoryCreate { + _c.mutation.SetCreatedAt(v) + return _c +} + +// SetNillableCreatedAt sets the "created_at" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableCreatedAt(v *time.Time) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetCreatedAt(*v) + } + return _c +} + +// SetUpdatedAt sets the "updated_at" field. +func (_c *AudienceMemberHistoryCreate) SetUpdatedAt(v time.Time) *AudienceMemberHistoryCreate { + _c.mutation.SetUpdatedAt(v) + return _c +} + +// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableUpdatedAt(v *time.Time) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetUpdatedAt(*v) + } + return _c +} + +// SetCreatedBy sets the "created_by" field. +func (_c *AudienceMemberHistoryCreate) SetCreatedBy(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetCreatedBy(v) + return _c +} + +// SetNillableCreatedBy sets the "created_by" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableCreatedBy(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetCreatedBy(*v) + } + return _c +} + +// SetUpdatedBy sets the "updated_by" field. +func (_c *AudienceMemberHistoryCreate) SetUpdatedBy(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetUpdatedBy(v) + return _c +} + +// SetNillableUpdatedBy sets the "updated_by" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableUpdatedBy(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetUpdatedBy(*v) + } + return _c +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (_c *AudienceMemberHistoryCreate) SetUpdatedByImpersonator(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetUpdatedByImpersonator(v) + return _c +} + +// SetNillableUpdatedByImpersonator sets the "updated_by_impersonator" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableUpdatedByImpersonator(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetUpdatedByImpersonator(*v) + } + return _c +} + +// SetDeletedAt sets the "deleted_at" field. +func (_c *AudienceMemberHistoryCreate) SetDeletedAt(v time.Time) *AudienceMemberHistoryCreate { + _c.mutation.SetDeletedAt(v) + return _c +} + +// SetNillableDeletedAt sets the "deleted_at" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableDeletedAt(v *time.Time) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetDeletedAt(*v) + } + return _c +} + +// SetDeletedBy sets the "deleted_by" field. +func (_c *AudienceMemberHistoryCreate) SetDeletedBy(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetDeletedBy(v) + return _c +} + +// SetNillableDeletedBy sets the "deleted_by" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableDeletedBy(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetDeletedBy(*v) + } + return _c +} + +// SetDisplayID sets the "display_id" field. +func (_c *AudienceMemberHistoryCreate) SetDisplayID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetDisplayID(v) + return _c +} + +// SetTags sets the "tags" field. +func (_c *AudienceMemberHistoryCreate) SetTags(v []string) *AudienceMemberHistoryCreate { + _c.mutation.SetTags(v) + return _c +} + +// SetOwnerID sets the "owner_id" field. +func (_c *AudienceMemberHistoryCreate) SetOwnerID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetOwnerID(v) + return _c +} + +// SetNillableOwnerID sets the "owner_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableOwnerID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetOwnerID(*v) + } + return _c +} + +// SetAudienceID sets the "audience_id" field. +func (_c *AudienceMemberHistoryCreate) SetAudienceID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetAudienceID(v) + return _c +} + +// SetContactID sets the "contact_id" field. +func (_c *AudienceMemberHistoryCreate) SetContactID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetContactID(v) + return _c +} + +// SetNillableContactID sets the "contact_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableContactID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetContactID(*v) + } + return _c +} + +// SetUserID sets the "user_id" field. +func (_c *AudienceMemberHistoryCreate) SetUserID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetUserID(v) + return _c +} + +// SetNillableUserID sets the "user_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableUserID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetUserID(*v) + } + return _c +} + +// SetGroupID sets the "group_id" field. +func (_c *AudienceMemberHistoryCreate) SetGroupID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetGroupID(v) + return _c +} + +// SetNillableGroupID sets the "group_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableGroupID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetGroupID(*v) + } + return _c +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (_c *AudienceMemberHistoryCreate) SetIdentityHolderID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetIdentityHolderID(v) + return _c +} + +// SetNillableIdentityHolderID sets the "identity_holder_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableIdentityHolderID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetIdentityHolderID(*v) + } + return _c +} + +// SetSubscriberID sets the "subscriber_id" field. +func (_c *AudienceMemberHistoryCreate) SetSubscriberID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetSubscriberID(v) + return _c +} + +// SetNillableSubscriberID sets the "subscriber_id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableSubscriberID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetSubscriberID(*v) + } + return _c +} + +// SetEmail sets the "email" field. +func (_c *AudienceMemberHistoryCreate) SetEmail(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetEmail(v) + return _c +} + +// SetFullName sets the "full_name" field. +func (_c *AudienceMemberHistoryCreate) SetFullName(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetFullName(v) + return _c +} + +// SetNillableFullName sets the "full_name" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableFullName(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetFullName(*v) + } + return _c +} + +// SetMetadata sets the "metadata" field. +func (_c *AudienceMemberHistoryCreate) SetMetadata(v map[string]interface{}) *AudienceMemberHistoryCreate { + _c.mutation.SetMetadata(v) + return _c +} + +// SetID sets the "id" field. +func (_c *AudienceMemberHistoryCreate) SetID(v string) *AudienceMemberHistoryCreate { + _c.mutation.SetID(v) + return _c +} + +// SetNillableID sets the "id" field if the given value is not nil. +func (_c *AudienceMemberHistoryCreate) SetNillableID(v *string) *AudienceMemberHistoryCreate { + if v != nil { + _c.SetID(*v) + } + return _c +} + +// Mutation returns the AudienceMemberHistoryMutation object of the builder. +func (_c *AudienceMemberHistoryCreate) Mutation() *AudienceMemberHistoryMutation { + return _c.mutation +} + +// Save creates the AudienceMemberHistory in the database. +func (_c *AudienceMemberHistoryCreate) Save(ctx context.Context) (*AudienceMemberHistory, 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 *AudienceMemberHistoryCreate) SaveX(ctx context.Context) *AudienceMemberHistory { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceMemberHistoryCreate) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceMemberHistoryCreate) 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 *AudienceMemberHistoryCreate) defaults() error { + if _, ok := _c.mutation.HistoryTime(); !ok { + if audiencememberhistory.DefaultHistoryTime == nil { + return fmt.Errorf("historygenerated: uninitialized audiencememberhistory.DefaultHistoryTime (forgotten import historygenerated/runtime?)") + } + v := audiencememberhistory.DefaultHistoryTime() + _c.mutation.SetHistoryTime(v) + } + if _, ok := _c.mutation.CreatedAt(); !ok { + if audiencememberhistory.DefaultCreatedAt == nil { + return fmt.Errorf("historygenerated: uninitialized audiencememberhistory.DefaultCreatedAt (forgotten import historygenerated/runtime?)") + } + v := audiencememberhistory.DefaultCreatedAt() + _c.mutation.SetCreatedAt(v) + } + if _, ok := _c.mutation.UpdatedAt(); !ok { + if audiencememberhistory.DefaultUpdatedAt == nil { + return fmt.Errorf("historygenerated: uninitialized audiencememberhistory.DefaultUpdatedAt (forgotten import historygenerated/runtime?)") + } + v := audiencememberhistory.DefaultUpdatedAt() + _c.mutation.SetUpdatedAt(v) + } + if _, ok := _c.mutation.Tags(); !ok { + v := audiencememberhistory.DefaultTags + _c.mutation.SetTags(v) + } + if _, ok := _c.mutation.ID(); !ok { + if audiencememberhistory.DefaultID == nil { + return fmt.Errorf("historygenerated: uninitialized audiencememberhistory.DefaultID (forgotten import historygenerated/runtime?)") + } + v := audiencememberhistory.DefaultID() + _c.mutation.SetID(v) + } + return nil +} + +// check runs all checks and user-defined validators on the builder. +func (_c *AudienceMemberHistoryCreate) check() error { + if _, ok := _c.mutation.HistoryTime(); !ok { + return &ValidationError{Name: "history_time", err: errors.New(`historygenerated: missing required field "AudienceMemberHistory.history_time"`)} + } + if _, ok := _c.mutation.Operation(); !ok { + return &ValidationError{Name: "operation", err: errors.New(`historygenerated: missing required field "AudienceMemberHistory.operation"`)} + } + if v, ok := _c.mutation.Operation(); ok { + if err := audiencememberhistory.OperationValidator(v); err != nil { + return &ValidationError{Name: "operation", err: fmt.Errorf(`historygenerated: validator failed for field "AudienceMemberHistory.operation": %w`, err)} + } + } + if _, ok := _c.mutation.DisplayID(); !ok { + return &ValidationError{Name: "display_id", err: errors.New(`historygenerated: missing required field "AudienceMemberHistory.display_id"`)} + } + if _, ok := _c.mutation.AudienceID(); !ok { + return &ValidationError{Name: "audience_id", err: errors.New(`historygenerated: missing required field "AudienceMemberHistory.audience_id"`)} + } + if _, ok := _c.mutation.Email(); !ok { + return &ValidationError{Name: "email", err: errors.New(`historygenerated: missing required field "AudienceMemberHistory.email"`)} + } + return nil +} + +func (_c *AudienceMemberHistoryCreate) sqlSave(ctx context.Context) (*AudienceMemberHistory, 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 AudienceMemberHistory.ID type: %T", _spec.ID.Value) + } + } + _c.mutation.id = &_node.ID + _c.mutation.done = true + return _node, nil +} + +func (_c *AudienceMemberHistoryCreate) createSpec() (*AudienceMemberHistory, *sqlgraph.CreateSpec) { + var ( + _node = &AudienceMemberHistory{config: _c.config} + _spec = sqlgraph.NewCreateSpec(audiencememberhistory.Table, sqlgraph.NewFieldSpec(audiencememberhistory.FieldID, field.TypeString)) + ) + if id, ok := _c.mutation.ID(); ok { + _node.ID = id + _spec.ID.Value = id + } + if value, ok := _c.mutation.HistoryTime(); ok { + _spec.SetField(audiencememberhistory.FieldHistoryTime, field.TypeTime, value) + _node.HistoryTime = value + } + if value, ok := _c.mutation.Ref(); ok { + _spec.SetField(audiencememberhistory.FieldRef, field.TypeString, value) + _node.Ref = value + } + if value, ok := _c.mutation.Operation(); ok { + _spec.SetField(audiencememberhistory.FieldOperation, field.TypeEnum, value) + _node.Operation = value + } + if value, ok := _c.mutation.CreatedAt(); ok { + _spec.SetField(audiencememberhistory.FieldCreatedAt, field.TypeTime, value) + _node.CreatedAt = value + } + if value, ok := _c.mutation.UpdatedAt(); ok { + _spec.SetField(audiencememberhistory.FieldUpdatedAt, field.TypeTime, value) + _node.UpdatedAt = value + } + if value, ok := _c.mutation.CreatedBy(); ok { + _spec.SetField(audiencememberhistory.FieldCreatedBy, field.TypeString, value) + _node.CreatedBy = value + } + if value, ok := _c.mutation.UpdatedBy(); ok { + _spec.SetField(audiencememberhistory.FieldUpdatedBy, field.TypeString, value) + _node.UpdatedBy = value + } + if value, ok := _c.mutation.UpdatedByImpersonator(); ok { + _spec.SetField(audiencememberhistory.FieldUpdatedByImpersonator, field.TypeString, value) + _node.UpdatedByImpersonator = &value + } + if value, ok := _c.mutation.DeletedAt(); ok { + _spec.SetField(audiencememberhistory.FieldDeletedAt, field.TypeTime, value) + _node.DeletedAt = value + } + if value, ok := _c.mutation.DeletedBy(); ok { + _spec.SetField(audiencememberhistory.FieldDeletedBy, field.TypeString, value) + _node.DeletedBy = value + } + if value, ok := _c.mutation.DisplayID(); ok { + _spec.SetField(audiencememberhistory.FieldDisplayID, field.TypeString, value) + _node.DisplayID = value + } + if value, ok := _c.mutation.Tags(); ok { + _spec.SetField(audiencememberhistory.FieldTags, field.TypeJSON, value) + _node.Tags = value + } + if value, ok := _c.mutation.OwnerID(); ok { + _spec.SetField(audiencememberhistory.FieldOwnerID, field.TypeString, value) + _node.OwnerID = value + } + if value, ok := _c.mutation.AudienceID(); ok { + _spec.SetField(audiencememberhistory.FieldAudienceID, field.TypeString, value) + _node.AudienceID = value + } + if value, ok := _c.mutation.ContactID(); ok { + _spec.SetField(audiencememberhistory.FieldContactID, field.TypeString, value) + _node.ContactID = value + } + if value, ok := _c.mutation.UserID(); ok { + _spec.SetField(audiencememberhistory.FieldUserID, field.TypeString, value) + _node.UserID = value + } + if value, ok := _c.mutation.GroupID(); ok { + _spec.SetField(audiencememberhistory.FieldGroupID, field.TypeString, value) + _node.GroupID = value + } + if value, ok := _c.mutation.IdentityHolderID(); ok { + _spec.SetField(audiencememberhistory.FieldIdentityHolderID, field.TypeString, value) + _node.IdentityHolderID = value + } + if value, ok := _c.mutation.SubscriberID(); ok { + _spec.SetField(audiencememberhistory.FieldSubscriberID, field.TypeString, value) + _node.SubscriberID = value + } + if value, ok := _c.mutation.Email(); ok { + _spec.SetField(audiencememberhistory.FieldEmail, field.TypeString, value) + _node.Email = value + } + if value, ok := _c.mutation.FullName(); ok { + _spec.SetField(audiencememberhistory.FieldFullName, field.TypeString, value) + _node.FullName = value + } + if value, ok := _c.mutation.Metadata(); ok { + _spec.SetField(audiencememberhistory.FieldMetadata, field.TypeJSON, value) + _node.Metadata = value + } + return _node, _spec +} + +// AudienceMemberHistoryCreateBulk is the builder for creating many AudienceMemberHistory entities in bulk. +type AudienceMemberHistoryCreateBulk struct { + config + err error + builders []*AudienceMemberHistoryCreate +} + +// Save creates the AudienceMemberHistory entities in the database. +func (_c *AudienceMemberHistoryCreateBulk) Save(ctx context.Context) ([]*AudienceMemberHistory, error) { + if _c.err != nil { + return nil, _c.err + } + specs := make([]*sqlgraph.CreateSpec, len(_c.builders)) + nodes := make([]*AudienceMemberHistory, len(_c.builders)) + mutators := make([]Mutator, len(_c.builders)) + for i := range _c.builders { + func(i int, root context.Context) { + builder := _c.builders[i] + builder.defaults() + var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) { + mutation, ok := m.(*AudienceMemberHistoryMutation) + if !ok { + return nil, fmt.Errorf("unexpected mutation type %T", m) + } + if err := builder.check(); err != nil { + return nil, err + } + builder.mutation = mutation + var err error + nodes[i], specs[i] = builder.createSpec() + if i < len(mutators)-1 { + _, err = mutators[i+1].Mutate(root, _c.builders[i+1].mutation) + } else { + spec := &sqlgraph.BatchCreateSpec{Nodes: specs} + // Invoke the actual operation on the latest mutation in the chain. + if err = sqlgraph.BatchCreate(ctx, _c.driver, spec); err != nil { + if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + } + } + if err != nil { + return nil, err + } + mutation.id = &nodes[i].ID + mutation.done = true + return nodes[i], nil + }) + for i := len(builder.hooks) - 1; i >= 0; i-- { + mut = builder.hooks[i](mut) + } + mutators[i] = mut + }(i, ctx) + } + if len(mutators) > 0 { + if _, err := mutators[0].Mutate(ctx, _c.builders[0].mutation); err != nil { + return nil, err + } + } + return nodes, nil +} + +// SaveX is like Save, but panics if an error occurs. +func (_c *AudienceMemberHistoryCreateBulk) SaveX(ctx context.Context) []*AudienceMemberHistory { + v, err := _c.Save(ctx) + if err != nil { + panic(err) + } + return v +} + +// Exec executes the query. +func (_c *AudienceMemberHistoryCreateBulk) Exec(ctx context.Context) error { + _, err := _c.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_c *AudienceMemberHistoryCreateBulk) ExecX(ctx context.Context) { + if err := _c.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/historygenerated/audiencememberhistory_delete.go b/internal/ent/historygenerated/audiencememberhistory_delete.go new file mode 100644 index 0000000000..9d674646c1 --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory_delete.go @@ -0,0 +1,90 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" +) + +// AudienceMemberHistoryDelete is the builder for deleting a AudienceMemberHistory entity. +type AudienceMemberHistoryDelete struct { + config + hooks []Hook + mutation *AudienceMemberHistoryMutation +} + +// Where appends a list predicates to the AudienceMemberHistoryDelete builder. +func (_d *AudienceMemberHistoryDelete) Where(ps ...predicate.AudienceMemberHistory) *AudienceMemberHistoryDelete { + _d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query and returns how many vertices were deleted. +func (_d *AudienceMemberHistoryDelete) Exec(ctx context.Context) (int, error) { + return withHooks(ctx, _d.sqlExec, _d.mutation, _d.hooks) +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceMemberHistoryDelete) ExecX(ctx context.Context) int { + n, err := _d.Exec(ctx) + if err != nil { + panic(err) + } + return n +} + +func (_d *AudienceMemberHistoryDelete) sqlExec(ctx context.Context) (int, error) { + _spec := sqlgraph.NewDeleteSpec(audiencememberhistory.Table, sqlgraph.NewFieldSpec(audiencememberhistory.FieldID, field.TypeString)) + if ps := _d.mutation.predicates; len(ps) > 0 { + _spec.Predicate = func(selector *sql.Selector) { + for i := range ps { + ps[i](selector) + } + } + } + affected, err := sqlgraph.DeleteNodes(ctx, _d.driver, _spec) + if err != nil && sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + _d.mutation.done = true + return affected, err +} + +// AudienceMemberHistoryDeleteOne is the builder for deleting a single AudienceMemberHistory entity. +type AudienceMemberHistoryDeleteOne struct { + _d *AudienceMemberHistoryDelete +} + +// Where appends a list predicates to the AudienceMemberHistoryDelete builder. +func (_d *AudienceMemberHistoryDeleteOne) Where(ps ...predicate.AudienceMemberHistory) *AudienceMemberHistoryDeleteOne { + _d._d.mutation.Where(ps...) + return _d +} + +// Exec executes the deletion query. +func (_d *AudienceMemberHistoryDeleteOne) Exec(ctx context.Context) error { + n, err := _d._d.Exec(ctx) + switch { + case err != nil: + return err + case n == 0: + return &NotFoundError{audiencememberhistory.Label} + default: + return nil + } +} + +// ExecX is like Exec, but panics if an error occurs. +func (_d *AudienceMemberHistoryDeleteOne) ExecX(ctx context.Context) { + if err := _d.Exec(ctx); err != nil { + panic(err) + } +} diff --git a/internal/ent/historygenerated/audiencememberhistory_query.go b/internal/ent/historygenerated/audiencememberhistory_query.go new file mode 100644 index 0000000000..4a20e1b35e --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory_query.go @@ -0,0 +1,569 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + "math" + + "entgo.io/ent" + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" + + "github.com/theopenlane/core/v2/pkg/logx" +) + +// AudienceMemberHistoryQuery is the builder for querying AudienceMemberHistory entities. +type AudienceMemberHistoryQuery struct { + config + ctx *QueryContext + order []audiencememberhistory.OrderOption + inters []Interceptor + predicates []predicate.AudienceMemberHistory + modifiers []func(*sql.Selector) + loadTotal []func(context.Context, []*AudienceMemberHistory) error + // intermediate query (i.e. traversal path). + sql *sql.Selector + path func(context.Context) (*sql.Selector, error) +} + +// Where adds a new predicate for the AudienceMemberHistoryQuery builder. +func (_q *AudienceMemberHistoryQuery) Where(ps ...predicate.AudienceMemberHistory) *AudienceMemberHistoryQuery { + _q.predicates = append(_q.predicates, ps...) + return _q +} + +// Limit the number of records to be returned by this query. +func (_q *AudienceMemberHistoryQuery) Limit(limit int) *AudienceMemberHistoryQuery { + _q.ctx.Limit = &limit + return _q +} + +// Offset to start from. +func (_q *AudienceMemberHistoryQuery) Offset(offset int) *AudienceMemberHistoryQuery { + _q.ctx.Offset = &offset + return _q +} + +// Unique configures the query builder to filter duplicate records on query. +// By default, unique is set to true, and can be disabled using this method. +func (_q *AudienceMemberHistoryQuery) Unique(unique bool) *AudienceMemberHistoryQuery { + _q.ctx.Unique = &unique + return _q +} + +// Order specifies how the records should be ordered. +func (_q *AudienceMemberHistoryQuery) Order(o ...audiencememberhistory.OrderOption) *AudienceMemberHistoryQuery { + _q.order = append(_q.order, o...) + return _q +} + +// First returns the first AudienceMemberHistory entity from the query. +// Returns a *NotFoundError when no AudienceMemberHistory was found. +func (_q *AudienceMemberHistoryQuery) First(ctx context.Context) (*AudienceMemberHistory, 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{audiencememberhistory.Label} + } + return nodes[0], nil +} + +// FirstX is like First, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) FirstX(ctx context.Context) *AudienceMemberHistory { + node, err := _q.First(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return node +} + +// FirstID returns the first AudienceMemberHistory ID from the query. +// Returns a *NotFoundError when no AudienceMemberHistory ID was found. +func (_q *AudienceMemberHistoryQuery) 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{audiencememberhistory.Label} + return + } + return ids[0], nil +} + +// FirstIDX is like FirstID, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) FirstIDX(ctx context.Context) string { + id, err := _q.FirstID(ctx) + if err != nil && !IsNotFound(err) { + panic(err) + } + return id +} + +// Only returns a single AudienceMemberHistory entity found by the query, ensuring it only returns one. +// Returns a *NotSingularError when more than one AudienceMemberHistory entity is found. +// Returns a *NotFoundError when no AudienceMemberHistory entities are found. +func (_q *AudienceMemberHistoryQuery) Only(ctx context.Context) (*AudienceMemberHistory, 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{audiencememberhistory.Label} + default: + return nil, &NotSingularError{audiencememberhistory.Label} + } +} + +// OnlyX is like Only, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) OnlyX(ctx context.Context) *AudienceMemberHistory { + node, err := _q.Only(ctx) + if err != nil { + panic(err) + } + return node +} + +// OnlyID is like Only, but returns the only AudienceMemberHistory ID in the query. +// Returns a *NotSingularError when more than one AudienceMemberHistory ID is found. +// Returns a *NotFoundError when no entities are found. +func (_q *AudienceMemberHistoryQuery) 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{audiencememberhistory.Label} + default: + err = &NotSingularError{audiencememberhistory.Label} + } + return +} + +// OnlyIDX is like OnlyID, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) 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 AudienceMemberHistories. +func (_q *AudienceMemberHistoryQuery) All(ctx context.Context) ([]*AudienceMemberHistory, error) { + ctx = setContextOp(ctx, _q.ctx, ent.OpQueryAll) + if err := _q.prepareQuery(ctx); err != nil { + return nil, err + } + qr := querierAll[[]*AudienceMemberHistory, *AudienceMemberHistoryQuery]() + return withInterceptors[[]*AudienceMemberHistory](ctx, _q, qr, _q.inters) +} + +// AllX is like All, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) AllX(ctx context.Context) []*AudienceMemberHistory { + nodes, err := _q.All(ctx) + if err != nil { + panic(err) + } + return nodes +} + +// IDs executes the query and returns a list of AudienceMemberHistory IDs. +func (_q *AudienceMemberHistoryQuery) 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(audiencememberhistory.FieldID).Scan(ctx, &ids); err != nil { + return nil, err + } + return ids, nil +} + +// IDsX is like IDs, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) 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 *AudienceMemberHistoryQuery) 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[*AudienceMemberHistoryQuery](), _q.inters) +} + +// CountX is like Count, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) 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 *AudienceMemberHistoryQuery) 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("historygenerated: check existence: %w", err) + default: + return true, nil + } +} + +// ExistX is like Exist, but panics if an error occurs. +func (_q *AudienceMemberHistoryQuery) ExistX(ctx context.Context) bool { + exist, err := _q.Exist(ctx) + if err != nil { + panic(err) + } + return exist +} + +// Clone returns a duplicate of the AudienceMemberHistoryQuery 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 *AudienceMemberHistoryQuery) Clone() *AudienceMemberHistoryQuery { + if _q == nil { + return nil + } + return &AudienceMemberHistoryQuery{ + config: _q.config, + ctx: _q.ctx.Clone(), + order: append([]audiencememberhistory.OrderOption{}, _q.order...), + inters: append([]Interceptor{}, _q.inters...), + predicates: append([]predicate.AudienceMemberHistory{}, _q.predicates...), + // clone intermediate query. + sql: _q.sql.Clone(), + path: _q.path, + } +} + +// 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 { +// HistoryTime time.Time `json:"history_time,omitempty"` +// Count int `json:"count,omitempty"` +// } +// +// client.AudienceMemberHistory.Query(). +// GroupBy(audiencememberhistory.FieldHistoryTime). +// Aggregate(historygenerated.Count()). +// Scan(ctx, &v) +func (_q *AudienceMemberHistoryQuery) GroupBy(field string, fields ...string) *AudienceMemberHistoryGroupBy { + _q.ctx.Fields = append([]string{field}, fields...) + grbuild := &AudienceMemberHistoryGroupBy{build: _q} + grbuild.flds = &_q.ctx.Fields + grbuild.label = audiencememberhistory.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 { +// HistoryTime time.Time `json:"history_time,omitempty"` +// } +// +// client.AudienceMemberHistory.Query(). +// Select(audiencememberhistory.FieldHistoryTime). +// Scan(ctx, &v) +func (_q *AudienceMemberHistoryQuery) Select(fields ...string) *AudienceMemberHistorySelect { + _q.ctx.Fields = append(_q.ctx.Fields, fields...) + sbuild := &AudienceMemberHistorySelect{AudienceMemberHistoryQuery: _q} + sbuild.label = audiencememberhistory.Label + sbuild.flds, sbuild.scan = &_q.ctx.Fields, sbuild.Scan + return sbuild +} + +// Aggregate returns a AudienceMemberHistorySelect configured with the given aggregations. +func (_q *AudienceMemberHistoryQuery) Aggregate(fns ...AggregateFunc) *AudienceMemberHistorySelect { + return _q.Select().Aggregate(fns...) +} + +func (_q *AudienceMemberHistoryQuery) prepareQuery(ctx context.Context) error { + for _, inter := range _q.inters { + if inter == nil { + return fmt.Errorf("historygenerated: uninitialized interceptor (forgotten import historygenerated/runtime?)") + } + if trv, ok := inter.(Traverser); ok { + if err := trv.Traverse(ctx, _q); err != nil { + return err + } + } + } + for _, f := range _q.ctx.Fields { + if !audiencememberhistory.ValidColumn(f) { + return &ValidationError{Name: f, err: fmt.Errorf("historygenerated: invalid field %q for query", f)} + } + } + if _q.path != nil { + prev, err := _q.path(ctx) + if err != nil { + return err + } + _q.sql = prev + } + if audiencememberhistory.Policy == nil { + return errors.New("historygenerated: uninitialized audiencememberhistory.Policy (forgotten import historygenerated/runtime?)") + } + if err := audiencememberhistory.Policy.EvalQuery(ctx, _q); err != nil { + return err + } + return nil +} + +func (_q *AudienceMemberHistoryQuery) sqlAll(ctx context.Context, hooks ...queryHook) ([]*AudienceMemberHistory, error) { + var ( + nodes = []*AudienceMemberHistory{} + _spec = _q.querySpec() + ) + _spec.ScanValues = func(columns []string) ([]any, error) { + return (*AudienceMemberHistory).scanValues(nil, columns) + } + _spec.Assign = func(columns []string, values []any) error { + node := &AudienceMemberHistory{config: _q.config} + nodes = append(nodes, node) + return node.assignValues(columns, values) + } + 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 + } + for i := range _q.loadTotal { + if err := _q.loadTotal[i](ctx, nodes); err != nil { + return nil, err + } + } + return nodes, nil +} + +func (_q *AudienceMemberHistoryQuery) sqlCount(ctx context.Context) (int, error) { + _spec := _q.querySpec() + 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 *AudienceMemberHistoryQuery) querySpec() *sqlgraph.QuerySpec { + _spec := sqlgraph.NewQuerySpec(audiencememberhistory.Table, audiencememberhistory.Columns, sqlgraph.NewFieldSpec(audiencememberhistory.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, audiencememberhistory.FieldID) + for i := range fields { + if fields[i] != audiencememberhistory.FieldID { + _spec.Node.Columns = append(_spec.Node.Columns, fields[i]) + } + } + } + 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 *AudienceMemberHistoryQuery) sqlQuery(ctx context.Context) *sql.Selector { + builder := sql.Dialect(_q.driver.Dialect()) + t1 := builder.Table(audiencememberhistory.Table) + columns := _q.ctx.Fields + if len(columns) == 0 { + columns = audiencememberhistory.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() + } + 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 +} + +// CountIDs returns the count of ids with FGA batch filtering applied +func (amhq *AudienceMemberHistoryQuery) CountIDs(ctx context.Context) (int, error) { + logx.FromContext(ctx).Debug().Str("query_type", "AudienceMemberHistory").Str("operation", "count_ids").Msg("CountIDs: starting") + + ctx = setContextOp(ctx, amhq.ctx, ent.OpQueryIDs) + + ids, err := amhq.IDs(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("query_type", "AudienceMemberHistory").Str("operation", "count_ids").Msg("CountIDs: IDs() failed") + + return 0, err + } + + logx.FromContext(ctx).Debug().Str("query_type", "AudienceMemberHistory").Str("operation", "count_ids").Int("count", len(ids)).Msg("CountIDs: completed") + + return len(ids), nil +} + +// AudienceMemberHistoryGroupBy is the group-by builder for AudienceMemberHistory entities. +type AudienceMemberHistoryGroupBy struct { + selector + build *AudienceMemberHistoryQuery +} + +// Aggregate adds the given aggregation functions to the group-by query. +func (_g *AudienceMemberHistoryGroupBy) Aggregate(fns ...AggregateFunc) *AudienceMemberHistoryGroupBy { + _g.fns = append(_g.fns, fns...) + return _g +} + +// Scan applies the selector query and scans the result into the given value. +func (_g *AudienceMemberHistoryGroupBy) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _g.build.ctx, ent.OpQueryGroupBy) + if err := _g.build.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceMemberHistoryQuery, *AudienceMemberHistoryGroupBy](ctx, _g.build, _g, _g.build.inters, v) +} + +func (_g *AudienceMemberHistoryGroupBy) sqlScan(ctx context.Context, root *AudienceMemberHistoryQuery, v any) error { + selector := root.sqlQuery(ctx).Select() + aggregation := make([]string, 0, len(_g.fns)) + for _, fn := range _g.fns { + aggregation = append(aggregation, fn(selector)) + } + if len(selector.SelectedColumns()) == 0 { + columns := make([]string, 0, len(*_g.flds)+len(_g.fns)) + for _, f := range *_g.flds { + columns = append(columns, selector.C(f)) + } + columns = append(columns, aggregation...) + selector.Select(columns...) + } + selector.GroupBy(selector.Columns(*_g.flds...)...) + if err := selector.Err(); err != nil { + return err + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _g.build.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} + +// AudienceMemberHistorySelect is the builder for selecting fields of AudienceMemberHistory entities. +type AudienceMemberHistorySelect struct { + *AudienceMemberHistoryQuery + selector +} + +// Aggregate adds the given aggregation functions to the selector query. +func (_s *AudienceMemberHistorySelect) Aggregate(fns ...AggregateFunc) *AudienceMemberHistorySelect { + _s.fns = append(_s.fns, fns...) + return _s +} + +// Scan applies the selector query and scans the result into the given value. +func (_s *AudienceMemberHistorySelect) Scan(ctx context.Context, v any) error { + ctx = setContextOp(ctx, _s.ctx, ent.OpQuerySelect) + if err := _s.prepareQuery(ctx); err != nil { + return err + } + return scanWithInterceptors[*AudienceMemberHistoryQuery, *AudienceMemberHistorySelect](ctx, _s.AudienceMemberHistoryQuery, _s, _s.inters, v) +} + +func (_s *AudienceMemberHistorySelect) sqlScan(ctx context.Context, root *AudienceMemberHistoryQuery, v any) error { + selector := root.sqlQuery(ctx) + aggregation := make([]string, 0, len(_s.fns)) + for _, fn := range _s.fns { + aggregation = append(aggregation, fn(selector)) + } + switch n := len(*_s.selector.flds); { + case n == 0 && len(aggregation) > 0: + selector.Select(aggregation...) + case n != 0 && len(aggregation) > 0: + selector.AppendSelect(aggregation...) + } + rows := &sql.Rows{} + query, args := selector.Query() + if err := _s.driver.Query(ctx, query, args, rows); err != nil { + return err + } + defer rows.Close() + return sql.ScanSlice(rows, v) +} diff --git a/internal/ent/historygenerated/audiencememberhistory_update.go b/internal/ent/historygenerated/audiencememberhistory_update.go new file mode 100644 index 0000000000..e89496c7da --- /dev/null +++ b/internal/ent/historygenerated/audiencememberhistory_update.go @@ -0,0 +1,279 @@ +//go:build !enthistorycodegen + +// Code generated by ent, DO NOT EDIT. + +package historygenerated + +import ( + "context" + "errors" + "fmt" + + "entgo.io/ent/dialect/sql" + "entgo.io/ent/dialect/sql/sqlgraph" + "entgo.io/ent/schema/field" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/predicate" +) + +// AudienceMemberHistoryUpdate is the builder for updating AudienceMemberHistory entities. +type AudienceMemberHistoryUpdate struct { + config + hooks []Hook + mutation *AudienceMemberHistoryMutation +} + +// Where appends a list predicates to the AudienceMemberHistoryUpdate builder. +func (_u *AudienceMemberHistoryUpdate) Where(ps ...predicate.AudienceMemberHistory) *AudienceMemberHistoryUpdate { + _u.mutation.Where(ps...) + return _u +} + +// Mutation returns the AudienceMemberHistoryMutation object of the builder. +func (_u *AudienceMemberHistoryUpdate) Mutation() *AudienceMemberHistoryMutation { + return _u.mutation +} + +// Save executes the query and returns the number of nodes affected by the update operation. +func (_u *AudienceMemberHistoryUpdate) Save(ctx context.Context) (int, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceMemberHistoryUpdate) SaveX(ctx context.Context) int { + affected, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return affected +} + +// Exec executes the query. +func (_u *AudienceMemberHistoryUpdate) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceMemberHistoryUpdate) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) + } +} + +func (_u *AudienceMemberHistoryUpdate) sqlSave(ctx context.Context) (_node int, err error) { + _spec := sqlgraph.NewUpdateSpec(audiencememberhistory.Table, audiencememberhistory.Columns, sqlgraph.NewFieldSpec(audiencememberhistory.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.RefCleared() { + _spec.ClearField(audiencememberhistory.FieldRef, field.TypeString) + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldCreatedAt, field.TypeTime) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencememberhistory.FieldCreatedBy, field.TypeString) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedBy, field.TypeString) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedByImpersonator, field.TypeString) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldDeletedAt, field.TypeTime) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencememberhistory.FieldDeletedBy, field.TypeString) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencememberhistory.FieldTags, field.TypeJSON) + } + if _u.mutation.OwnerIDCleared() { + _spec.ClearField(audiencememberhistory.FieldOwnerID, field.TypeString) + } + if _u.mutation.ContactIDCleared() { + _spec.ClearField(audiencememberhistory.FieldContactID, field.TypeString) + } + if _u.mutation.UserIDCleared() { + _spec.ClearField(audiencememberhistory.FieldUserID, field.TypeString) + } + if _u.mutation.GroupIDCleared() { + _spec.ClearField(audiencememberhistory.FieldGroupID, field.TypeString) + } + if _u.mutation.IdentityHolderIDCleared() { + _spec.ClearField(audiencememberhistory.FieldIdentityHolderID, field.TypeString) + } + if _u.mutation.SubscriberIDCleared() { + _spec.ClearField(audiencememberhistory.FieldSubscriberID, field.TypeString) + } + if _u.mutation.FullNameCleared() { + _spec.ClearField(audiencememberhistory.FieldFullName, field.TypeString) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencememberhistory.FieldMetadata, field.TypeJSON) + } + if _node, err = sqlgraph.UpdateNodes(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencememberhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return 0, err + } + _u.mutation.done = true + return _node, nil +} + +// AudienceMemberHistoryUpdateOne is the builder for updating a single AudienceMemberHistory entity. +type AudienceMemberHistoryUpdateOne struct { + config + fields []string + hooks []Hook + mutation *AudienceMemberHistoryMutation +} + +// Mutation returns the AudienceMemberHistoryMutation object of the builder. +func (_u *AudienceMemberHistoryUpdateOne) Mutation() *AudienceMemberHistoryMutation { + return _u.mutation +} + +// Where appends a list predicates to the AudienceMemberHistoryUpdate builder. +func (_u *AudienceMemberHistoryUpdateOne) Where(ps ...predicate.AudienceMemberHistory) *AudienceMemberHistoryUpdateOne { + _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 *AudienceMemberHistoryUpdateOne) Select(field string, fields ...string) *AudienceMemberHistoryUpdateOne { + _u.fields = append([]string{field}, fields...) + return _u +} + +// Save executes the query and returns the updated AudienceMemberHistory entity. +func (_u *AudienceMemberHistoryUpdateOne) Save(ctx context.Context) (*AudienceMemberHistory, error) { + return withHooks(ctx, _u.sqlSave, _u.mutation, _u.hooks) +} + +// SaveX is like Save, but panics if an error occurs. +func (_u *AudienceMemberHistoryUpdateOne) SaveX(ctx context.Context) *AudienceMemberHistory { + node, err := _u.Save(ctx) + if err != nil { + panic(err) + } + return node +} + +// Exec executes the query on the entity. +func (_u *AudienceMemberHistoryUpdateOne) Exec(ctx context.Context) error { + _, err := _u.Save(ctx) + return err +} + +// ExecX is like Exec, but panics if an error occurs. +func (_u *AudienceMemberHistoryUpdateOne) ExecX(ctx context.Context) { + if err := _u.Exec(ctx); err != nil { + panic(err) + } +} + +func (_u *AudienceMemberHistoryUpdateOne) sqlSave(ctx context.Context) (_node *AudienceMemberHistory, err error) { + _spec := sqlgraph.NewUpdateSpec(audiencememberhistory.Table, audiencememberhistory.Columns, sqlgraph.NewFieldSpec(audiencememberhistory.FieldID, field.TypeString)) + id, ok := _u.mutation.ID() + if !ok { + return nil, &ValidationError{Name: "id", err: errors.New(`historygenerated: missing "AudienceMemberHistory.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, audiencememberhistory.FieldID) + for _, f := range fields { + if !audiencememberhistory.ValidColumn(f) { + return nil, &ValidationError{Name: f, err: fmt.Errorf("historygenerated: invalid field %q for query", f)} + } + if f != audiencememberhistory.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.RefCleared() { + _spec.ClearField(audiencememberhistory.FieldRef, field.TypeString) + } + if _u.mutation.CreatedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldCreatedAt, field.TypeTime) + } + if _u.mutation.UpdatedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedAt, field.TypeTime) + } + if _u.mutation.CreatedByCleared() { + _spec.ClearField(audiencememberhistory.FieldCreatedBy, field.TypeString) + } + if _u.mutation.UpdatedByCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedBy, field.TypeString) + } + if _u.mutation.UpdatedByImpersonatorCleared() { + _spec.ClearField(audiencememberhistory.FieldUpdatedByImpersonator, field.TypeString) + } + if _u.mutation.DeletedAtCleared() { + _spec.ClearField(audiencememberhistory.FieldDeletedAt, field.TypeTime) + } + if _u.mutation.DeletedByCleared() { + _spec.ClearField(audiencememberhistory.FieldDeletedBy, field.TypeString) + } + if _u.mutation.TagsCleared() { + _spec.ClearField(audiencememberhistory.FieldTags, field.TypeJSON) + } + if _u.mutation.OwnerIDCleared() { + _spec.ClearField(audiencememberhistory.FieldOwnerID, field.TypeString) + } + if _u.mutation.ContactIDCleared() { + _spec.ClearField(audiencememberhistory.FieldContactID, field.TypeString) + } + if _u.mutation.UserIDCleared() { + _spec.ClearField(audiencememberhistory.FieldUserID, field.TypeString) + } + if _u.mutation.GroupIDCleared() { + _spec.ClearField(audiencememberhistory.FieldGroupID, field.TypeString) + } + if _u.mutation.IdentityHolderIDCleared() { + _spec.ClearField(audiencememberhistory.FieldIdentityHolderID, field.TypeString) + } + if _u.mutation.SubscriberIDCleared() { + _spec.ClearField(audiencememberhistory.FieldSubscriberID, field.TypeString) + } + if _u.mutation.FullNameCleared() { + _spec.ClearField(audiencememberhistory.FieldFullName, field.TypeString) + } + if _u.mutation.MetadataCleared() { + _spec.ClearField(audiencememberhistory.FieldMetadata, field.TypeJSON) + } + _node = &AudienceMemberHistory{config: _u.config} + _spec.Assign = _node.assignValues + _spec.ScanValues = _node.scanValues + if err = sqlgraph.UpdateNode(ctx, _u.driver, _spec); err != nil { + if _, ok := err.(*sqlgraph.NotFoundError); ok { + err = &NotFoundError{audiencememberhistory.Label} + } else if sqlgraph.IsConstraintError(err) { + err = &ConstraintError{msg: err.Error(), wrap: err} + } + return nil, err + } + _u.mutation.done = true + return _node, nil +} diff --git a/internal/ent/historygenerated/client.go b/internal/ent/historygenerated/client.go index cdc841971b..33809ab9ae 100644 --- a/internal/ent/historygenerated/client.go +++ b/internal/ent/historygenerated/client.go @@ -24,6 +24,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -104,6 +106,10 @@ type Client struct { AssessmentResponseHistory *AssessmentResponseHistoryClient // AssetHistory is the client for interacting with the AssetHistory builders. AssetHistory *AssetHistoryClient + // AudienceHistory is the client for interacting with the AudienceHistory builders. + AudienceHistory *AudienceHistoryClient + // AudienceMemberHistory is the client for interacting with the AudienceMemberHistory builders. + AudienceMemberHistory *AudienceMemberHistoryClient // CampaignHistory is the client for interacting with the CampaignHistory builders. CampaignHistory *CampaignHistoryClient // CampaignTargetHistory is the client for interacting with the CampaignTargetHistory builders. @@ -249,6 +255,8 @@ func (c *Client) init() { c.AssessmentHistory = NewAssessmentHistoryClient(c.config) c.AssessmentResponseHistory = NewAssessmentResponseHistoryClient(c.config) c.AssetHistory = NewAssetHistoryClient(c.config) + c.AudienceHistory = NewAudienceHistoryClient(c.config) + c.AudienceMemberHistory = NewAudienceMemberHistoryClient(c.config) c.CampaignHistory = NewCampaignHistoryClient(c.config) c.CampaignTargetHistory = NewCampaignTargetHistoryClient(c.config) c.ContactHistory = NewContactHistoryClient(c.config) @@ -425,6 +433,8 @@ func (c *Client) Tx(ctx context.Context) (*Tx, error) { AssessmentHistory: NewAssessmentHistoryClient(cfg), AssessmentResponseHistory: NewAssessmentResponseHistoryClient(cfg), AssetHistory: NewAssetHistoryClient(cfg), + AudienceHistory: NewAudienceHistoryClient(cfg), + AudienceMemberHistory: NewAudienceMemberHistoryClient(cfg), CampaignHistory: NewCampaignHistoryClient(cfg), CampaignTargetHistory: NewCampaignTargetHistoryClient(cfg), ContactHistory: NewContactHistoryClient(cfg), @@ -510,6 +520,8 @@ func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) AssessmentHistory: NewAssessmentHistoryClient(cfg), AssessmentResponseHistory: NewAssessmentResponseHistoryClient(cfg), AssetHistory: NewAssetHistoryClient(cfg), + AudienceHistory: NewAudienceHistoryClient(cfg), + AudienceMemberHistory: NewAudienceMemberHistoryClient(cfg), CampaignHistory: NewCampaignHistoryClient(cfg), CampaignTargetHistory: NewCampaignTargetHistoryClient(cfg), ContactHistory: NewContactHistoryClient(cfg), @@ -602,8 +614,9 @@ func (c *Client) Close() error { func (c *Client) Use(hooks ...Hook) { for _, n := range []interface{ Use(...Hook) }{ c.ActionPlanHistory, c.AssessmentHistory, c.AssessmentResponseHistory, - c.AssetHistory, c.CampaignHistory, c.CampaignTargetHistory, c.ContactHistory, - c.ControlHistory, c.ControlImplementationHistory, c.ControlObjectiveHistory, + c.AssetHistory, c.AudienceHistory, c.AudienceMemberHistory, c.CampaignHistory, + c.CampaignTargetHistory, c.ContactHistory, c.ControlHistory, + c.ControlImplementationHistory, c.ControlObjectiveHistory, c.CustomDomainHistory, c.DiscussionHistory, c.DocumentDataHistory, c.EmailTemplateHistory, c.EntityHistory, c.EntityTypeHistory, c.EvidenceHistory, c.FileHistory, c.FindingControlHistory, c.FindingHistory, @@ -634,8 +647,9 @@ func (c *Client) Use(hooks ...Hook) { func (c *Client) Intercept(interceptors ...Interceptor) { for _, n := range []interface{ Intercept(...Interceptor) }{ c.ActionPlanHistory, c.AssessmentHistory, c.AssessmentResponseHistory, - c.AssetHistory, c.CampaignHistory, c.CampaignTargetHistory, c.ContactHistory, - c.ControlHistory, c.ControlImplementationHistory, c.ControlObjectiveHistory, + c.AssetHistory, c.AudienceHistory, c.AudienceMemberHistory, c.CampaignHistory, + c.CampaignTargetHistory, c.ContactHistory, c.ControlHistory, + c.ControlImplementationHistory, c.ControlObjectiveHistory, c.CustomDomainHistory, c.DiscussionHistory, c.DocumentDataHistory, c.EmailTemplateHistory, c.EntityHistory, c.EntityTypeHistory, c.EvidenceHistory, c.FileHistory, c.FindingControlHistory, c.FindingHistory, @@ -724,6 +738,10 @@ func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error) { return c.AssessmentResponseHistory.mutate(ctx, m) case *AssetHistoryMutation: return c.AssetHistory.mutate(ctx, m) + case *AudienceHistoryMutation: + return c.AudienceHistory.mutate(ctx, m) + case *AudienceMemberHistoryMutation: + return c.AudienceMemberHistory.mutate(ctx, m) case *CampaignHistoryMutation: return c.CampaignHistory.mutate(ctx, m) case *CampaignTargetHistoryMutation: @@ -1393,6 +1411,276 @@ func (c *AssetHistoryClient) mutate(ctx context.Context, m *AssetHistoryMutation } } +// AudienceHistoryClient is a client for the AudienceHistory schema. +type AudienceHistoryClient struct { + config +} + +// NewAudienceHistoryClient returns a client for the AudienceHistory from the given config. +func NewAudienceHistoryClient(c config) *AudienceHistoryClient { + return &AudienceHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `audiencehistory.Hooks(f(g(h())))`. +func (c *AudienceHistoryClient) Use(hooks ...Hook) { + c.hooks.AudienceHistory = append(c.hooks.AudienceHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `audiencehistory.Intercept(f(g(h())))`. +func (c *AudienceHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.AudienceHistory = append(c.inters.AudienceHistory, interceptors...) +} + +// Create returns a builder for creating a AudienceHistory entity. +func (c *AudienceHistoryClient) Create() *AudienceHistoryCreate { + mutation := newAudienceHistoryMutation(c.config, OpCreate) + return &AudienceHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of AudienceHistory entities. +func (c *AudienceHistoryClient) CreateBulk(builders ...*AudienceHistoryCreate) *AudienceHistoryCreateBulk { + return &AudienceHistoryCreateBulk{config: c.config, builders: builders} +} + +// MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates +// a builder and applies setFunc on it. +func (c *AudienceHistoryClient) MapCreateBulk(slice any, setFunc func(*AudienceHistoryCreate, int)) *AudienceHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &AudienceHistoryCreateBulk{err: fmt.Errorf("calling to AudienceHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*AudienceHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &AudienceHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for AudienceHistory. +func (c *AudienceHistoryClient) Update() *AudienceHistoryUpdate { + mutation := newAudienceHistoryMutation(c.config, OpUpdate) + return &AudienceHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *AudienceHistoryClient) UpdateOne(_m *AudienceHistory) *AudienceHistoryUpdateOne { + mutation := newAudienceHistoryMutation(c.config, OpUpdateOne, withAudienceHistory(_m)) + return &AudienceHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *AudienceHistoryClient) UpdateOneID(id string) *AudienceHistoryUpdateOne { + mutation := newAudienceHistoryMutation(c.config, OpUpdateOne, withAudienceHistoryID(id)) + return &AudienceHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for AudienceHistory. +func (c *AudienceHistoryClient) Delete() *AudienceHistoryDelete { + mutation := newAudienceHistoryMutation(c.config, OpDelete) + return &AudienceHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *AudienceHistoryClient) DeleteOne(_m *AudienceHistory) *AudienceHistoryDeleteOne { + return c.DeleteOneID(_m.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *AudienceHistoryClient) DeleteOneID(id string) *AudienceHistoryDeleteOne { + builder := c.Delete().Where(audiencehistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &AudienceHistoryDeleteOne{builder} +} + +// Query returns a query builder for AudienceHistory. +func (c *AudienceHistoryClient) Query() *AudienceHistoryQuery { + return &AudienceHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeAudienceHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a AudienceHistory entity by its id. +func (c *AudienceHistoryClient) Get(ctx context.Context, id string) (*AudienceHistory, error) { + return c.Query().Where(audiencehistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *AudienceHistoryClient) GetX(ctx context.Context, id string) *AudienceHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *AudienceHistoryClient) Hooks() []Hook { + hooks := c.hooks.AudienceHistory + return append(hooks[:len(hooks):len(hooks)], audiencehistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *AudienceHistoryClient) Interceptors() []Interceptor { + inters := c.inters.AudienceHistory + return append(inters[:len(inters):len(inters)], audiencehistory.Interceptors[:]...) +} + +func (c *AudienceHistoryClient) mutate(ctx context.Context, m *AudienceHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&AudienceHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&AudienceHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&AudienceHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&AudienceHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("historygenerated: unknown AudienceHistory mutation op: %q", m.Op()) + } +} + +// AudienceMemberHistoryClient is a client for the AudienceMemberHistory schema. +type AudienceMemberHistoryClient struct { + config +} + +// NewAudienceMemberHistoryClient returns a client for the AudienceMemberHistory from the given config. +func NewAudienceMemberHistoryClient(c config) *AudienceMemberHistoryClient { + return &AudienceMemberHistoryClient{config: c} +} + +// Use adds a list of mutation hooks to the hooks stack. +// A call to `Use(f, g, h)` equals to `audiencememberhistory.Hooks(f(g(h())))`. +func (c *AudienceMemberHistoryClient) Use(hooks ...Hook) { + c.hooks.AudienceMemberHistory = append(c.hooks.AudienceMemberHistory, hooks...) +} + +// Intercept adds a list of query interceptors to the interceptors stack. +// A call to `Intercept(f, g, h)` equals to `audiencememberhistory.Intercept(f(g(h())))`. +func (c *AudienceMemberHistoryClient) Intercept(interceptors ...Interceptor) { + c.inters.AudienceMemberHistory = append(c.inters.AudienceMemberHistory, interceptors...) +} + +// Create returns a builder for creating a AudienceMemberHistory entity. +func (c *AudienceMemberHistoryClient) Create() *AudienceMemberHistoryCreate { + mutation := newAudienceMemberHistoryMutation(c.config, OpCreate) + return &AudienceMemberHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// CreateBulk returns a builder for creating a bulk of AudienceMemberHistory entities. +func (c *AudienceMemberHistoryClient) CreateBulk(builders ...*AudienceMemberHistoryCreate) *AudienceMemberHistoryCreateBulk { + return &AudienceMemberHistoryCreateBulk{config: c.config, builders: builders} +} + +// MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates +// a builder and applies setFunc on it. +func (c *AudienceMemberHistoryClient) MapCreateBulk(slice any, setFunc func(*AudienceMemberHistoryCreate, int)) *AudienceMemberHistoryCreateBulk { + rv := reflect.ValueOf(slice) + if rv.Kind() != reflect.Slice { + return &AudienceMemberHistoryCreateBulk{err: fmt.Errorf("calling to AudienceMemberHistoryClient.MapCreateBulk with wrong type %T, need slice", slice)} + } + builders := make([]*AudienceMemberHistoryCreate, rv.Len()) + for i := 0; i < rv.Len(); i++ { + builders[i] = c.Create() + setFunc(builders[i], i) + } + return &AudienceMemberHistoryCreateBulk{config: c.config, builders: builders} +} + +// Update returns an update builder for AudienceMemberHistory. +func (c *AudienceMemberHistoryClient) Update() *AudienceMemberHistoryUpdate { + mutation := newAudienceMemberHistoryMutation(c.config, OpUpdate) + return &AudienceMemberHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOne returns an update builder for the given entity. +func (c *AudienceMemberHistoryClient) UpdateOne(_m *AudienceMemberHistory) *AudienceMemberHistoryUpdateOne { + mutation := newAudienceMemberHistoryMutation(c.config, OpUpdateOne, withAudienceMemberHistory(_m)) + return &AudienceMemberHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// UpdateOneID returns an update builder for the given id. +func (c *AudienceMemberHistoryClient) UpdateOneID(id string) *AudienceMemberHistoryUpdateOne { + mutation := newAudienceMemberHistoryMutation(c.config, OpUpdateOne, withAudienceMemberHistoryID(id)) + return &AudienceMemberHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// Delete returns a delete builder for AudienceMemberHistory. +func (c *AudienceMemberHistoryClient) Delete() *AudienceMemberHistoryDelete { + mutation := newAudienceMemberHistoryMutation(c.config, OpDelete) + return &AudienceMemberHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: mutation} +} + +// DeleteOne returns a builder for deleting the given entity. +func (c *AudienceMemberHistoryClient) DeleteOne(_m *AudienceMemberHistory) *AudienceMemberHistoryDeleteOne { + return c.DeleteOneID(_m.ID) +} + +// DeleteOneID returns a builder for deleting the given entity by its id. +func (c *AudienceMemberHistoryClient) DeleteOneID(id string) *AudienceMemberHistoryDeleteOne { + builder := c.Delete().Where(audiencememberhistory.ID(id)) + builder.mutation.id = &id + builder.mutation.op = OpDeleteOne + return &AudienceMemberHistoryDeleteOne{builder} +} + +// Query returns a query builder for AudienceMemberHistory. +func (c *AudienceMemberHistoryClient) Query() *AudienceMemberHistoryQuery { + return &AudienceMemberHistoryQuery{ + config: c.config, + ctx: &QueryContext{Type: TypeAudienceMemberHistory}, + inters: c.Interceptors(), + } +} + +// Get returns a AudienceMemberHistory entity by its id. +func (c *AudienceMemberHistoryClient) Get(ctx context.Context, id string) (*AudienceMemberHistory, error) { + return c.Query().Where(audiencememberhistory.ID(id)).Only(ctx) +} + +// GetX is like Get, but panics if an error occurs. +func (c *AudienceMemberHistoryClient) GetX(ctx context.Context, id string) *AudienceMemberHistory { + obj, err := c.Get(ctx, id) + if err != nil { + panic(err) + } + return obj +} + +// Hooks returns the client hooks. +func (c *AudienceMemberHistoryClient) Hooks() []Hook { + hooks := c.hooks.AudienceMemberHistory + return append(hooks[:len(hooks):len(hooks)], audiencememberhistory.Hooks[:]...) +} + +// Interceptors returns the client interceptors. +func (c *AudienceMemberHistoryClient) Interceptors() []Interceptor { + inters := c.inters.AudienceMemberHistory + return append(inters[:len(inters):len(inters)], audiencememberhistory.Interceptors[:]...) +} + +func (c *AudienceMemberHistoryClient) mutate(ctx context.Context, m *AudienceMemberHistoryMutation) (Value, error) { + switch m.Op() { + case OpCreate: + return (&AudienceMemberHistoryCreate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdate: + return (&AudienceMemberHistoryUpdate{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpUpdateOne: + return (&AudienceMemberHistoryUpdateOne{config: c.config, hooks: c.Hooks(), mutation: m}).Save(ctx) + case OpDelete, OpDeleteOne: + return (&AudienceMemberHistoryDelete{config: c.config, hooks: c.Hooks(), mutation: m}).Exec(ctx) + default: + return nil, fmt.Errorf("historygenerated: unknown AudienceMemberHistory mutation op: %q", m.Op()) + } +} + // CampaignHistoryClient is a client for the CampaignHistory schema. type CampaignHistoryClient struct { config @@ -9767,13 +10055,14 @@ func (c *WorkflowDefinitionHistoryClient) mutate(ctx context.Context, m *Workflo type ( hooks struct { ActionPlanHistory, AssessmentHistory, AssessmentResponseHistory, AssetHistory, - CampaignHistory, CampaignTargetHistory, ContactHistory, ControlHistory, - ControlImplementationHistory, ControlObjectiveHistory, CustomDomainHistory, - DiscussionHistory, DocumentDataHistory, EmailTemplateHistory, EntityHistory, - EntityTypeHistory, EvidenceHistory, FileHistory, FindingControlHistory, - FindingHistory, GroupHistory, GroupMembershipHistory, GroupSettingHistory, - HushHistory, IdentityHolderHistory, InternalPolicyHistory, - MappableDomainHistory, MappedControlHistory, NarrativeHistory, NoteHistory, + AudienceHistory, AudienceMemberHistory, CampaignHistory, CampaignTargetHistory, + ContactHistory, ControlHistory, ControlImplementationHistory, + ControlObjectiveHistory, CustomDomainHistory, DiscussionHistory, + DocumentDataHistory, EmailTemplateHistory, EntityHistory, EntityTypeHistory, + EvidenceHistory, FileHistory, FindingControlHistory, FindingHistory, + GroupHistory, GroupMembershipHistory, GroupSettingHistory, HushHistory, + IdentityHolderHistory, InternalPolicyHistory, MappableDomainHistory, + MappedControlHistory, NarrativeHistory, NoteHistory, NotificationPreferenceHistory, NotificationTemplateHistory, OrgMembershipHistory, OrganizationHistory, OrganizationSettingHistory, PlatformHistory, ProcedureHistory, ProgramHistory, ProgramMembershipHistory, @@ -9789,13 +10078,14 @@ type ( } inters struct { ActionPlanHistory, AssessmentHistory, AssessmentResponseHistory, AssetHistory, - CampaignHistory, CampaignTargetHistory, ContactHistory, ControlHistory, - ControlImplementationHistory, ControlObjectiveHistory, CustomDomainHistory, - DiscussionHistory, DocumentDataHistory, EmailTemplateHistory, EntityHistory, - EntityTypeHistory, EvidenceHistory, FileHistory, FindingControlHistory, - FindingHistory, GroupHistory, GroupMembershipHistory, GroupSettingHistory, - HushHistory, IdentityHolderHistory, InternalPolicyHistory, - MappableDomainHistory, MappedControlHistory, NarrativeHistory, NoteHistory, + AudienceHistory, AudienceMemberHistory, CampaignHistory, CampaignTargetHistory, + ContactHistory, ControlHistory, ControlImplementationHistory, + ControlObjectiveHistory, CustomDomainHistory, DiscussionHistory, + DocumentDataHistory, EmailTemplateHistory, EntityHistory, EntityTypeHistory, + EvidenceHistory, FileHistory, FindingControlHistory, FindingHistory, + GroupHistory, GroupMembershipHistory, GroupSettingHistory, HushHistory, + IdentityHolderHistory, InternalPolicyHistory, MappableDomainHistory, + MappedControlHistory, NarrativeHistory, NoteHistory, NotificationPreferenceHistory, NotificationTemplateHistory, OrgMembershipHistory, OrganizationHistory, OrganizationSettingHistory, PlatformHistory, ProcedureHistory, ProgramHistory, ProgramMembershipHistory, diff --git a/internal/ent/historygenerated/ent.go b/internal/ent/historygenerated/ent.go index e34733bc34..4097c21c3b 100644 --- a/internal/ent/historygenerated/ent.go +++ b/internal/ent/historygenerated/ent.go @@ -18,6 +18,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -144,6 +146,8 @@ func checkColumn(t, c string) error { assessmenthistory.Table: assessmenthistory.ValidColumn, assessmentresponsehistory.Table: assessmentresponsehistory.ValidColumn, assethistory.Table: assethistory.ValidColumn, + audiencehistory.Table: audiencehistory.ValidColumn, + audiencememberhistory.Table: audiencememberhistory.ValidColumn, campaignhistory.Table: campaignhistory.ValidColumn, campaigntargethistory.Table: campaigntargethistory.ValidColumn, contacthistory.Table: contacthistory.ValidColumn, diff --git a/internal/ent/historygenerated/entql.go b/internal/ent/historygenerated/entql.go index 69bfb13894..8254fac845 100644 --- a/internal/ent/historygenerated/entql.go +++ b/internal/ent/historygenerated/entql.go @@ -9,6 +9,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -80,7 +82,7 @@ import ( // schemaGraph holds a representation of ent/schema at runtime. var schemaGraph = func() *sqlgraph.Schema { - graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 66)} + graph := &sqlgraph.Schema{Nodes: make([]*sqlgraph.Node, 68)} graph.Nodes[0] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: actionplanhistory.Table, @@ -294,6 +296,72 @@ var schemaGraph = func() *sqlgraph.Schema { }, } graph.Nodes[4] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: audiencehistory.Table, + Columns: audiencehistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: audiencehistory.FieldID, + }, + }, + Type: "AudienceHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + audiencehistory.FieldHistoryTime: {Type: field.TypeTime, Column: audiencehistory.FieldHistoryTime}, + audiencehistory.FieldRef: {Type: field.TypeString, Column: audiencehistory.FieldRef}, + audiencehistory.FieldOperation: {Type: field.TypeEnum, Column: audiencehistory.FieldOperation}, + audiencehistory.FieldCreatedAt: {Type: field.TypeTime, Column: audiencehistory.FieldCreatedAt}, + audiencehistory.FieldUpdatedAt: {Type: field.TypeTime, Column: audiencehistory.FieldUpdatedAt}, + audiencehistory.FieldCreatedBy: {Type: field.TypeString, Column: audiencehistory.FieldCreatedBy}, + audiencehistory.FieldUpdatedBy: {Type: field.TypeString, Column: audiencehistory.FieldUpdatedBy}, + audiencehistory.FieldUpdatedByImpersonator: {Type: field.TypeString, Column: audiencehistory.FieldUpdatedByImpersonator}, + audiencehistory.FieldDeletedAt: {Type: field.TypeTime, Column: audiencehistory.FieldDeletedAt}, + audiencehistory.FieldDeletedBy: {Type: field.TypeString, Column: audiencehistory.FieldDeletedBy}, + audiencehistory.FieldDisplayID: {Type: field.TypeString, Column: audiencehistory.FieldDisplayID}, + audiencehistory.FieldTags: {Type: field.TypeJSON, Column: audiencehistory.FieldTags}, + audiencehistory.FieldOwnerID: {Type: field.TypeString, Column: audiencehistory.FieldOwnerID}, + audiencehistory.FieldName: {Type: field.TypeString, Column: audiencehistory.FieldName}, + audiencehistory.FieldDescription: {Type: field.TypeString, Column: audiencehistory.FieldDescription}, + audiencehistory.FieldAudienceType: {Type: field.TypeEnum, Column: audiencehistory.FieldAudienceType}, + audiencehistory.FieldFilters: {Type: field.TypeJSON, Column: audiencehistory.FieldFilters}, + audiencehistory.FieldMetadata: {Type: field.TypeJSON, Column: audiencehistory.FieldMetadata}, + }, + } + graph.Nodes[5] = &sqlgraph.Node{ + NodeSpec: sqlgraph.NodeSpec{ + Table: audiencememberhistory.Table, + Columns: audiencememberhistory.Columns, + ID: &sqlgraph.FieldSpec{ + Type: field.TypeString, + Column: audiencememberhistory.FieldID, + }, + }, + Type: "AudienceMemberHistory", + Fields: map[string]*sqlgraph.FieldSpec{ + audiencememberhistory.FieldHistoryTime: {Type: field.TypeTime, Column: audiencememberhistory.FieldHistoryTime}, + audiencememberhistory.FieldRef: {Type: field.TypeString, Column: audiencememberhistory.FieldRef}, + audiencememberhistory.FieldOperation: {Type: field.TypeEnum, Column: audiencememberhistory.FieldOperation}, + audiencememberhistory.FieldCreatedAt: {Type: field.TypeTime, Column: audiencememberhistory.FieldCreatedAt}, + audiencememberhistory.FieldUpdatedAt: {Type: field.TypeTime, Column: audiencememberhistory.FieldUpdatedAt}, + audiencememberhistory.FieldCreatedBy: {Type: field.TypeString, Column: audiencememberhistory.FieldCreatedBy}, + audiencememberhistory.FieldUpdatedBy: {Type: field.TypeString, Column: audiencememberhistory.FieldUpdatedBy}, + audiencememberhistory.FieldUpdatedByImpersonator: {Type: field.TypeString, Column: audiencememberhistory.FieldUpdatedByImpersonator}, + audiencememberhistory.FieldDeletedAt: {Type: field.TypeTime, Column: audiencememberhistory.FieldDeletedAt}, + audiencememberhistory.FieldDeletedBy: {Type: field.TypeString, Column: audiencememberhistory.FieldDeletedBy}, + audiencememberhistory.FieldDisplayID: {Type: field.TypeString, Column: audiencememberhistory.FieldDisplayID}, + audiencememberhistory.FieldTags: {Type: field.TypeJSON, Column: audiencememberhistory.FieldTags}, + audiencememberhistory.FieldOwnerID: {Type: field.TypeString, Column: audiencememberhistory.FieldOwnerID}, + audiencememberhistory.FieldAudienceID: {Type: field.TypeString, Column: audiencememberhistory.FieldAudienceID}, + audiencememberhistory.FieldContactID: {Type: field.TypeString, Column: audiencememberhistory.FieldContactID}, + audiencememberhistory.FieldUserID: {Type: field.TypeString, Column: audiencememberhistory.FieldUserID}, + audiencememberhistory.FieldGroupID: {Type: field.TypeString, Column: audiencememberhistory.FieldGroupID}, + audiencememberhistory.FieldIdentityHolderID: {Type: field.TypeString, Column: audiencememberhistory.FieldIdentityHolderID}, + audiencememberhistory.FieldSubscriberID: {Type: field.TypeString, Column: audiencememberhistory.FieldSubscriberID}, + audiencememberhistory.FieldEmail: {Type: field.TypeString, Column: audiencememberhistory.FieldEmail}, + audiencememberhistory.FieldFullName: {Type: field.TypeString, Column: audiencememberhistory.FieldFullName}, + audiencememberhistory.FieldMetadata: {Type: field.TypeJSON, Column: audiencememberhistory.FieldMetadata}, + }, + } + graph.Nodes[6] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: campaignhistory.Table, Columns: campaignhistory.Columns, @@ -351,7 +419,7 @@ var schemaGraph = func() *sqlgraph.Schema { campaignhistory.FieldTrustCenterID: {Type: field.TypeString, Column: campaignhistory.FieldTrustCenterID}, }, } - graph.Nodes[5] = &sqlgraph.Node{ + graph.Nodes[7] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: campaigntargethistory.Table, Columns: campaigntargethistory.Columns, @@ -387,7 +455,7 @@ var schemaGraph = func() *sqlgraph.Schema { campaigntargethistory.FieldMetadata: {Type: field.TypeJSON, Column: campaigntargethistory.FieldMetadata}, }, } - graph.Nodes[6] = &sqlgraph.Node{ + graph.Nodes[8] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: contacthistory.Table, Columns: contacthistory.Columns, @@ -422,7 +490,7 @@ var schemaGraph = func() *sqlgraph.Schema { contacthistory.FieldObservedAt: {Type: field.TypeTime, Column: contacthistory.FieldObservedAt}, }, } - graph.Nodes[7] = &sqlgraph.Node{ + graph.Nodes[9] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: controlhistory.Table, Columns: controlhistory.Columns, @@ -492,7 +560,7 @@ var schemaGraph = func() *sqlgraph.Schema { controlhistory.FieldIsTrustCenterControl: {Type: field.TypeBool, Column: controlhistory.FieldIsTrustCenterControl}, }, } - graph.Nodes[8] = &sqlgraph.Node{ + graph.Nodes[10] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: controlimplementationhistory.Table, Columns: controlimplementationhistory.Columns, @@ -526,7 +594,7 @@ var schemaGraph = func() *sqlgraph.Schema { controlimplementationhistory.FieldDetailsJSON: {Type: field.TypeJSON, Column: controlimplementationhistory.FieldDetailsJSON}, }, } - graph.Nodes[9] = &sqlgraph.Node{ + graph.Nodes[11] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: controlobjectivehistory.Table, Columns: controlobjectivehistory.Columns, @@ -564,7 +632,7 @@ var schemaGraph = func() *sqlgraph.Schema { controlobjectivehistory.FieldSubcategory: {Type: field.TypeString, Column: controlobjectivehistory.FieldSubcategory}, }, } - graph.Nodes[10] = &sqlgraph.Node{ + graph.Nodes[12] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: customdomainhistory.Table, Columns: customdomainhistory.Columns, @@ -597,7 +665,7 @@ var schemaGraph = func() *sqlgraph.Schema { customdomainhistory.FieldDomainType: {Type: field.TypeEnum, Column: customdomainhistory.FieldDomainType}, }, } - graph.Nodes[11] = &sqlgraph.Node{ + graph.Nodes[13] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: discussionhistory.Table, Columns: discussionhistory.Columns, @@ -623,7 +691,7 @@ var schemaGraph = func() *sqlgraph.Schema { discussionhistory.FieldIsResolved: {Type: field.TypeBool, Column: discussionhistory.FieldIsResolved}, }, } - graph.Nodes[12] = &sqlgraph.Node{ + graph.Nodes[14] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: documentdatahistory.Table, Columns: documentdatahistory.Columns, @@ -654,7 +722,7 @@ var schemaGraph = func() *sqlgraph.Schema { documentdatahistory.FieldData: {Type: field.TypeJSON, Column: documentdatahistory.FieldData}, }, } - graph.Nodes[13] = &sqlgraph.Node{ + graph.Nodes[15] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: emailtemplatehistory.Table, Columns: emailtemplatehistory.Columns, @@ -702,7 +770,7 @@ var schemaGraph = func() *sqlgraph.Schema { emailtemplatehistory.FieldTrustCenterID: {Type: field.TypeString, Column: emailtemplatehistory.FieldTrustCenterID}, }, } - graph.Nodes[14] = &sqlgraph.Node{ + graph.Nodes[16] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entityhistory.Table, Columns: entityhistory.Columns, @@ -784,7 +852,7 @@ var schemaGraph = func() *sqlgraph.Schema { entityhistory.FieldObservedAt: {Type: field.TypeTime, Column: entityhistory.FieldObservedAt}, }, } - graph.Nodes[15] = &sqlgraph.Node{ + graph.Nodes[17] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: entitytypehistory.Table, Columns: entitytypehistory.Columns, @@ -813,7 +881,7 @@ var schemaGraph = func() *sqlgraph.Schema { entitytypehistory.FieldName: {Type: field.TypeString, Column: entitytypehistory.FieldName}, }, } - graph.Nodes[16] = &sqlgraph.Node{ + graph.Nodes[18] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: evidencehistory.Table, Columns: evidencehistory.Columns, @@ -856,7 +924,7 @@ var schemaGraph = func() *sqlgraph.Schema { evidencehistory.FieldAuditorReferenceID: {Type: field.TypeString, Column: evidencehistory.FieldAuditorReferenceID}, }, } - graph.Nodes[17] = &sqlgraph.Node{ + graph.Nodes[19] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: filehistory.Table, Columns: filehistory.Columns, @@ -908,7 +976,7 @@ var schemaGraph = func() *sqlgraph.Schema { filehistory.FieldLastAccessedAt: {Type: field.TypeTime, Column: filehistory.FieldLastAccessedAt}, }, } - graph.Nodes[18] = &sqlgraph.Node{ + graph.Nodes[20] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: findingcontrolhistory.Table, Columns: findingcontrolhistory.Columns, @@ -939,7 +1007,7 @@ var schemaGraph = func() *sqlgraph.Schema { findingcontrolhistory.FieldDiscoveredAt: {Type: field.TypeTime, Column: findingcontrolhistory.FieldDiscoveredAt}, }, } - graph.Nodes[19] = &sqlgraph.Node{ + graph.Nodes[21] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: findinghistory.Table, Columns: findinghistory.Columns, @@ -1018,7 +1086,7 @@ var schemaGraph = func() *sqlgraph.Schema { findinghistory.FieldRawPayload: {Type: field.TypeJSON, Column: findinghistory.FieldRawPayload}, }, } - graph.Nodes[20] = &sqlgraph.Node{ + graph.Nodes[22] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: grouphistory.Table, Columns: grouphistory.Columns, @@ -1058,7 +1126,7 @@ var schemaGraph = func() *sqlgraph.Schema { grouphistory.FieldScimGroupMailing: {Type: field.TypeString, Column: grouphistory.FieldScimGroupMailing}, }, } - graph.Nodes[21] = &sqlgraph.Node{ + graph.Nodes[23] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupmembershiphistory.Table, Columns: groupmembershiphistory.Columns, @@ -1082,7 +1150,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupmembershiphistory.FieldUserID: {Type: field.TypeString, Column: groupmembershiphistory.FieldUserID}, }, } - graph.Nodes[22] = &sqlgraph.Node{ + graph.Nodes[24] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: groupsettinghistory.Table, Columns: groupsettinghistory.Columns, @@ -1110,7 +1178,7 @@ var schemaGraph = func() *sqlgraph.Schema { groupsettinghistory.FieldGroupID: {Type: field.TypeString, Column: groupsettinghistory.FieldGroupID}, }, } - graph.Nodes[23] = &sqlgraph.Node{ + graph.Nodes[25] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: hushhistory.Table, Columns: hushhistory.Columns, @@ -1146,7 +1214,7 @@ var schemaGraph = func() *sqlgraph.Schema { hushhistory.FieldExpiresAt: {Type: field.TypeTime, Column: hushhistory.FieldExpiresAt}, }, } - graph.Nodes[24] = &sqlgraph.Node{ + graph.Nodes[26] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: identityholderhistory.Table, Columns: identityholderhistory.Columns, @@ -1201,7 +1269,7 @@ var schemaGraph = func() *sqlgraph.Schema { identityholderhistory.FieldAvatarRemoteURL: {Type: field.TypeString, Column: identityholderhistory.FieldAvatarRemoteURL}, }, } - graph.Nodes[25] = &sqlgraph.Node{ + graph.Nodes[27] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: internalpolicyhistory.Table, Columns: internalpolicyhistory.Columns, @@ -1260,7 +1328,7 @@ var schemaGraph = func() *sqlgraph.Schema { internalpolicyhistory.FieldExternalUUID: {Type: field.TypeString, Column: internalpolicyhistory.FieldExternalUUID}, }, } - graph.Nodes[26] = &sqlgraph.Node{ + graph.Nodes[28] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: mappabledomainhistory.Table, Columns: mappabledomainhistory.Columns, @@ -1286,7 +1354,7 @@ var schemaGraph = func() *sqlgraph.Schema { mappabledomainhistory.FieldZoneID: {Type: field.TypeString, Column: mappabledomainhistory.FieldZoneID}, }, } - graph.Nodes[27] = &sqlgraph.Node{ + graph.Nodes[29] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: mappedcontrolhistory.Table, Columns: mappedcontrolhistory.Columns, @@ -1318,7 +1386,7 @@ var schemaGraph = func() *sqlgraph.Schema { mappedcontrolhistory.FieldSource: {Type: field.TypeEnum, Column: mappedcontrolhistory.FieldSource}, }, } - graph.Nodes[28] = &sqlgraph.Node{ + graph.Nodes[30] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: narrativehistory.Table, Columns: narrativehistory.Columns, @@ -1350,7 +1418,7 @@ var schemaGraph = func() *sqlgraph.Schema { narrativehistory.FieldDetails: {Type: field.TypeString, Column: narrativehistory.FieldDetails}, }, } - graph.Nodes[29] = &sqlgraph.Node{ + graph.Nodes[31] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notehistory.Table, Columns: notehistory.Columns, @@ -1384,7 +1452,7 @@ var schemaGraph = func() *sqlgraph.Schema { notehistory.FieldNotifiedAt: {Type: field.TypeTime, Column: notehistory.FieldNotifiedAt}, }, } - graph.Nodes[30] = &sqlgraph.Node{ + graph.Nodes[32] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notificationpreferencehistory.Table, Columns: notificationpreferencehistory.Columns, @@ -1429,7 +1497,7 @@ var schemaGraph = func() *sqlgraph.Schema { notificationpreferencehistory.FieldMetadata: {Type: field.TypeJSON, Column: notificationpreferencehistory.FieldMetadata}, }, } - graph.Nodes[31] = &sqlgraph.Node{ + graph.Nodes[33] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: notificationtemplatehistory.Table, Columns: notificationtemplatehistory.Columns, @@ -1479,7 +1547,7 @@ var schemaGraph = func() *sqlgraph.Schema { notificationtemplatehistory.FieldDefaults: {Type: field.TypeJSON, Column: notificationtemplatehistory.FieldDefaults}, }, } - graph.Nodes[32] = &sqlgraph.Node{ + graph.Nodes[34] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: orgmembershiphistory.Table, Columns: orgmembershiphistory.Columns, @@ -1511,7 +1579,7 @@ var schemaGraph = func() *sqlgraph.Schema { orgmembershiphistory.FieldTfaEnforcedAt: {Type: field.TypeTime, Column: orgmembershiphistory.FieldTfaEnforcedAt}, }, } - graph.Nodes[33] = &sqlgraph.Node{ + graph.Nodes[35] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationhistory.Table, Columns: organizationhistory.Columns, @@ -1545,7 +1613,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationhistory.FieldSlugName: {Type: field.TypeString, Column: organizationhistory.FieldSlugName}, }, } - graph.Nodes[34] = &sqlgraph.Node{ + graph.Nodes[36] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: organizationsettinghistory.Table, Columns: organizationsettinghistory.Columns, @@ -1599,7 +1667,7 @@ var schemaGraph = func() *sqlgraph.Schema { organizationsettinghistory.FieldPendingDeletionAt: {Type: field.TypeTime, Column: organizationsettinghistory.FieldPendingDeletionAt}, }, } - graph.Nodes[35] = &sqlgraph.Node{ + graph.Nodes[37] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: platformhistory.Table, Columns: platformhistory.Columns, @@ -1673,7 +1741,7 @@ var schemaGraph = func() *sqlgraph.Schema { platformhistory.FieldMetadata: {Type: field.TypeJSON, Column: platformhistory.FieldMetadata}, }, } - graph.Nodes[36] = &sqlgraph.Node{ + graph.Nodes[38] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: procedurehistory.Table, Columns: procedurehistory.Columns, @@ -1731,7 +1799,7 @@ var schemaGraph = func() *sqlgraph.Schema { procedurehistory.FieldWorkflowEligibleMarker: {Type: field.TypeBool, Column: procedurehistory.FieldWorkflowEligibleMarker}, }, } - graph.Nodes[37] = &sqlgraph.Node{ + graph.Nodes[39] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: programhistory.Table, Columns: programhistory.Columns, @@ -1777,7 +1845,7 @@ var schemaGraph = func() *sqlgraph.Schema { programhistory.FieldProgramOwnerID: {Type: field.TypeString, Column: programhistory.FieldProgramOwnerID}, }, } - graph.Nodes[38] = &sqlgraph.Node{ + graph.Nodes[40] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: programmembershiphistory.Table, Columns: programmembershiphistory.Columns, @@ -1801,7 +1869,7 @@ var schemaGraph = func() *sqlgraph.Schema { programmembershiphistory.FieldUserID: {Type: field.TypeString, Column: programmembershiphistory.FieldUserID}, }, } - graph.Nodes[39] = &sqlgraph.Node{ + graph.Nodes[41] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: remediationhistory.Table, Columns: remediationhistory.Columns, @@ -1855,7 +1923,7 @@ var schemaGraph = func() *sqlgraph.Schema { remediationhistory.FieldMetadata: {Type: field.TypeJSON, Column: remediationhistory.FieldMetadata}, }, } - graph.Nodes[40] = &sqlgraph.Node{ + graph.Nodes[42] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: reviewhistory.Table, Columns: reviewhistory.Columns, @@ -1906,7 +1974,7 @@ var schemaGraph = func() *sqlgraph.Schema { reviewhistory.FieldRawPayload: {Type: field.TypeJSON, Column: reviewhistory.FieldRawPayload}, }, } - graph.Nodes[41] = &sqlgraph.Node{ + graph.Nodes[43] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: riskhistory.Table, Columns: riskhistory.Columns, @@ -1966,7 +2034,7 @@ var schemaGraph = func() *sqlgraph.Schema { riskhistory.FieldRiskDecision: {Type: field.TypeEnum, Column: riskhistory.FieldRiskDecision}, }, } - graph.Nodes[42] = &sqlgraph.Node{ + graph.Nodes[44] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: sladefinitionhistory.Table, Columns: sladefinitionhistory.Columns, @@ -1994,7 +2062,7 @@ var schemaGraph = func() *sqlgraph.Schema { sladefinitionhistory.FieldSecurityLevel: {Type: field.TypeEnum, Column: sladefinitionhistory.FieldSecurityLevel}, }, } - graph.Nodes[43] = &sqlgraph.Node{ + graph.Nodes[45] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: standardhistory.Table, Columns: standardhistory.Columns, @@ -2037,7 +2105,7 @@ var schemaGraph = func() *sqlgraph.Schema { standardhistory.FieldLogoFileID: {Type: field.TypeString, Column: standardhistory.FieldLogoFileID}, }, } - graph.Nodes[44] = &sqlgraph.Node{ + graph.Nodes[46] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subcontrolhistory.Table, Columns: subcontrolhistory.Columns, @@ -2101,7 +2169,7 @@ var schemaGraph = func() *sqlgraph.Schema { subcontrolhistory.FieldControlID: {Type: field.TypeString, Column: subcontrolhistory.FieldControlID}, }, } - graph.Nodes[45] = &sqlgraph.Node{ + graph.Nodes[47] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: subprocessorhistory.Table, Columns: subprocessorhistory.Columns, @@ -2133,7 +2201,7 @@ var schemaGraph = func() *sqlgraph.Schema { subprocessorhistory.FieldLogoFileID: {Type: field.TypeString, Column: subprocessorhistory.FieldLogoFileID}, }, } - graph.Nodes[46] = &sqlgraph.Node{ + graph.Nodes[48] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: systemdetailhistory.Table, Columns: systemdetailhistory.Columns, @@ -2167,7 +2235,7 @@ var schemaGraph = func() *sqlgraph.Schema { systemdetailhistory.FieldOscalMetadataJSON: {Type: field.TypeJSON, Column: systemdetailhistory.FieldOscalMetadataJSON}, }, } - graph.Nodes[47] = &sqlgraph.Node{ + graph.Nodes[49] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: taskhistory.Table, Columns: taskhistory.Columns, @@ -2219,7 +2287,7 @@ var schemaGraph = func() *sqlgraph.Schema { taskhistory.FieldParentTaskID: {Type: field.TypeString, Column: taskhistory.FieldParentTaskID}, }, } - graph.Nodes[48] = &sqlgraph.Node{ + graph.Nodes[50] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: templatehistory.Table, Columns: templatehistory.Columns, @@ -2259,7 +2327,7 @@ var schemaGraph = func() *sqlgraph.Schema { templatehistory.FieldTransformConfiguration: {Type: field.TypeJSON, Column: templatehistory.FieldTransformConfiguration}, }, } - graph.Nodes[49] = &sqlgraph.Node{ + graph.Nodes[51] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentercompliancehistory.Table, Columns: trustcentercompliancehistory.Columns, @@ -2285,7 +2353,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentercompliancehistory.FieldTrustCenterID: {Type: field.TypeString, Column: trustcentercompliancehistory.FieldTrustCenterID}, }, } - graph.Nodes[50] = &sqlgraph.Node{ + graph.Nodes[52] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterdochistory.Table, Columns: trustcenterdochistory.Columns, @@ -2319,7 +2387,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterdochistory.FieldStandardID: {Type: field.TypeString, Column: trustcenterdochistory.FieldStandardID}, }, } - graph.Nodes[51] = &sqlgraph.Node{ + graph.Nodes[53] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterentityhistory.Table, Columns: trustcenterentityhistory.Columns, @@ -2347,7 +2415,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterentityhistory.FieldEntityTypeID: {Type: field.TypeString, Column: trustcenterentityhistory.FieldEntityTypeID}, }, } - graph.Nodes[52] = &sqlgraph.Node{ + graph.Nodes[54] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterfaqhistory.Table, Columns: trustcenterfaqhistory.Columns, @@ -2376,7 +2444,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterfaqhistory.FieldDisplayOrder: {Type: field.TypeInt, Column: trustcenterfaqhistory.FieldDisplayOrder}, }, } - graph.Nodes[53] = &sqlgraph.Node{ + graph.Nodes[55] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterhistory.Table, Columns: trustcenterhistory.Columns, @@ -2409,7 +2477,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterhistory.FieldSubprocessorURL: {Type: field.TypeString, Column: trustcenterhistory.FieldSubprocessorURL}, }, } - graph.Nodes[54] = &sqlgraph.Node{ + graph.Nodes[56] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterndarequesthistory.Table, Columns: trustcenterndarequesthistory.Columns, @@ -2446,7 +2514,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterndarequesthistory.FieldFileID: {Type: field.TypeString, Column: trustcenterndarequesthistory.FieldFileID}, }, } - graph.Nodes[55] = &sqlgraph.Node{ + graph.Nodes[57] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentersettinghistory.Table, Columns: trustcentersettinghistory.Columns, @@ -2497,7 +2565,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentersettinghistory.FieldStatusPageURL: {Type: field.TypeString, Column: trustcentersettinghistory.FieldStatusPageURL}, }, } - graph.Nodes[56] = &sqlgraph.Node{ + graph.Nodes[58] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcentersubprocessorhistory.Table, Columns: trustcentersubprocessorhistory.Columns, @@ -2525,7 +2593,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcentersubprocessorhistory.FieldCountries: {Type: field.TypeJSON, Column: trustcentersubprocessorhistory.FieldCountries}, }, } - graph.Nodes[57] = &sqlgraph.Node{ + graph.Nodes[59] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: trustcenterwatermarkconfighistory.Table, Columns: trustcenterwatermarkconfighistory.Columns, @@ -2558,7 +2626,7 @@ var schemaGraph = func() *sqlgraph.Schema { trustcenterwatermarkconfighistory.FieldFont: {Type: field.TypeEnum, Column: trustcenterwatermarkconfighistory.FieldFont}, }, } - graph.Nodes[58] = &sqlgraph.Node{ + graph.Nodes[60] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: userhistory.Table, Columns: userhistory.Columns, @@ -2600,7 +2668,7 @@ var schemaGraph = func() *sqlgraph.Schema { userhistory.FieldScimLocale: {Type: field.TypeString, Column: userhistory.FieldScimLocale}, }, } - graph.Nodes[59] = &sqlgraph.Node{ + graph.Nodes[61] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: usersettinghistory.Table, Columns: usersettinghistory.Columns, @@ -2636,7 +2704,7 @@ var schemaGraph = func() *sqlgraph.Schema { usersettinghistory.FieldPhoneNumber: {Type: field.TypeString, Column: usersettinghistory.FieldPhoneNumber}, }, } - graph.Nodes[60] = &sqlgraph.Node{ + graph.Nodes[62] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vendorriskscorehistory.Table, Columns: vendorriskscorehistory.Columns, @@ -2674,7 +2742,7 @@ var schemaGraph = func() *sqlgraph.Schema { vendorriskscorehistory.FieldAssessmentResponseID: {Type: field.TypeString, Column: vendorriskscorehistory.FieldAssessmentResponseID}, }, } - graph.Nodes[61] = &sqlgraph.Node{ + graph.Nodes[63] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vendorscoringconfighistory.Table, Columns: vendorscoringconfighistory.Columns, @@ -2702,7 +2770,7 @@ var schemaGraph = func() *sqlgraph.Schema { vendorscoringconfighistory.FieldRiskThresholds: {Type: field.TypeJSON, Column: vendorscoringconfighistory.FieldRiskThresholds}, }, } - graph.Nodes[62] = &sqlgraph.Node{ + graph.Nodes[64] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: vulnerabilityhistory.Table, Columns: vulnerabilityhistory.Columns, @@ -2786,7 +2854,7 @@ var schemaGraph = func() *sqlgraph.Schema { vulnerabilityhistory.FieldRawPayload: {Type: field.TypeJSON, Column: vulnerabilityhistory.FieldRawPayload}, }, } - graph.Nodes[63] = &sqlgraph.Node{ + graph.Nodes[65] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowassignmenthistory.Table, Columns: workflowassignmenthistory.Columns, @@ -2828,7 +2896,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowassignmenthistory.FieldDueAt: {Type: field.TypeTime, Column: workflowassignmenthistory.FieldDueAt}, }, } - graph.Nodes[64] = &sqlgraph.Node{ + graph.Nodes[66] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowassignmenttargethistory.Table, Columns: workflowassignmenttargethistory.Columns, @@ -2859,7 +2927,7 @@ var schemaGraph = func() *sqlgraph.Schema { workflowassignmenttargethistory.FieldResolverKey: {Type: field.TypeString, Column: workflowassignmenttargethistory.FieldResolverKey}, }, } - graph.Nodes[65] = &sqlgraph.Node{ + graph.Nodes[67] = &sqlgraph.Node{ NodeSpec: sqlgraph.NodeSpec{ Table: workflowdefinitionhistory.Table, Columns: workflowdefinitionhistory.Columns, @@ -3874,6 +3942,286 @@ func (f *AssetHistoryFilter) WhereObservedAt(p entql.TimeP) { f.Where(p.Field(assethistory.FieldObservedAt)) } +// addPredicate implements the predicateAdder interface. +func (_q *AudienceHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AudienceHistoryQuery builder. +func (_q *AudienceHistoryQuery) Filter() *AudienceHistoryFilter { + return &AudienceHistoryFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AudienceHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AudienceHistoryMutation builder. +func (m *AudienceHistoryMutation) Filter() *AudienceHistoryFilter { + return &AudienceHistoryFilter{config: m.config, predicateAdder: m} +} + +// AudienceHistoryFilter provides a generic filtering capability at runtime for AudienceHistoryQuery. +type AudienceHistoryFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AudienceHistoryFilter) 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) + } + }) +} + +// WhereID applies the entql string predicate on the id field. +func (f *AudienceHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *AudienceHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(audiencehistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *AudienceHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *AudienceHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AudienceHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(audiencehistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AudienceHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(audiencehistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AudienceHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AudienceHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldUpdatedBy)) +} + +// WhereUpdatedByImpersonator applies the entql string predicate on the updated_by_impersonator field. +func (f *AudienceHistoryFilter) WhereUpdatedByImpersonator(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldUpdatedByImpersonator)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AudienceHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(audiencehistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AudienceHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *AudienceHistoryFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AudienceHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(audiencehistory.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AudienceHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldOwnerID)) +} + +// WhereName applies the entql string predicate on the name field. +func (f *AudienceHistoryFilter) WhereName(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldName)) +} + +// WhereDescription applies the entql string predicate on the description field. +func (f *AudienceHistoryFilter) WhereDescription(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldDescription)) +} + +// WhereAudienceType applies the entql string predicate on the audience_type field. +func (f *AudienceHistoryFilter) WhereAudienceType(p entql.StringP) { + f.Where(p.Field(audiencehistory.FieldAudienceType)) +} + +// WhereFilters applies the entql json.RawMessage predicate on the filters field. +func (f *AudienceHistoryFilter) WhereFilters(p entql.BytesP) { + f.Where(p.Field(audiencehistory.FieldFilters)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *AudienceHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(audiencehistory.FieldMetadata)) +} + +// addPredicate implements the predicateAdder interface. +func (_q *AudienceMemberHistoryQuery) addPredicate(pred func(s *sql.Selector)) { + _q.predicates = append(_q.predicates, pred) +} + +// Filter returns a Filter implementation to apply filters on the AudienceMemberHistoryQuery builder. +func (_q *AudienceMemberHistoryQuery) Filter() *AudienceMemberHistoryFilter { + return &AudienceMemberHistoryFilter{config: _q.config, predicateAdder: _q} +} + +// addPredicate implements the predicateAdder interface. +func (m *AudienceMemberHistoryMutation) addPredicate(pred func(s *sql.Selector)) { + m.predicates = append(m.predicates, pred) +} + +// Filter returns an entql.Where implementation to apply filters on the AudienceMemberHistoryMutation builder. +func (m *AudienceMemberHistoryMutation) Filter() *AudienceMemberHistoryFilter { + return &AudienceMemberHistoryFilter{config: m.config, predicateAdder: m} +} + +// AudienceMemberHistoryFilter provides a generic filtering capability at runtime for AudienceMemberHistoryQuery. +type AudienceMemberHistoryFilter struct { + predicateAdder + config +} + +// Where applies the entql predicate on the query filter. +func (f *AudienceMemberHistoryFilter) Where(p entql.P) { + f.addPredicate(func(s *sql.Selector) { + 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 *AudienceMemberHistoryFilter) WhereID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldID)) +} + +// WhereHistoryTime applies the entql time.Time predicate on the history_time field. +func (f *AudienceMemberHistoryFilter) WhereHistoryTime(p entql.TimeP) { + f.Where(p.Field(audiencememberhistory.FieldHistoryTime)) +} + +// WhereRef applies the entql string predicate on the ref field. +func (f *AudienceMemberHistoryFilter) WhereRef(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldRef)) +} + +// WhereOperation applies the entql string predicate on the operation field. +func (f *AudienceMemberHistoryFilter) WhereOperation(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldOperation)) +} + +// WhereCreatedAt applies the entql time.Time predicate on the created_at field. +func (f *AudienceMemberHistoryFilter) WhereCreatedAt(p entql.TimeP) { + f.Where(p.Field(audiencememberhistory.FieldCreatedAt)) +} + +// WhereUpdatedAt applies the entql time.Time predicate on the updated_at field. +func (f *AudienceMemberHistoryFilter) WhereUpdatedAt(p entql.TimeP) { + f.Where(p.Field(audiencememberhistory.FieldUpdatedAt)) +} + +// WhereCreatedBy applies the entql string predicate on the created_by field. +func (f *AudienceMemberHistoryFilter) WhereCreatedBy(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldCreatedBy)) +} + +// WhereUpdatedBy applies the entql string predicate on the updated_by field. +func (f *AudienceMemberHistoryFilter) WhereUpdatedBy(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldUpdatedBy)) +} + +// WhereUpdatedByImpersonator applies the entql string predicate on the updated_by_impersonator field. +func (f *AudienceMemberHistoryFilter) WhereUpdatedByImpersonator(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldUpdatedByImpersonator)) +} + +// WhereDeletedAt applies the entql time.Time predicate on the deleted_at field. +func (f *AudienceMemberHistoryFilter) WhereDeletedAt(p entql.TimeP) { + f.Where(p.Field(audiencememberhistory.FieldDeletedAt)) +} + +// WhereDeletedBy applies the entql string predicate on the deleted_by field. +func (f *AudienceMemberHistoryFilter) WhereDeletedBy(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldDeletedBy)) +} + +// WhereDisplayID applies the entql string predicate on the display_id field. +func (f *AudienceMemberHistoryFilter) WhereDisplayID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldDisplayID)) +} + +// WhereTags applies the entql json.RawMessage predicate on the tags field. +func (f *AudienceMemberHistoryFilter) WhereTags(p entql.BytesP) { + f.Where(p.Field(audiencememberhistory.FieldTags)) +} + +// WhereOwnerID applies the entql string predicate on the owner_id field. +func (f *AudienceMemberHistoryFilter) WhereOwnerID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldOwnerID)) +} + +// WhereAudienceID applies the entql string predicate on the audience_id field. +func (f *AudienceMemberHistoryFilter) WhereAudienceID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldAudienceID)) +} + +// WhereContactID applies the entql string predicate on the contact_id field. +func (f *AudienceMemberHistoryFilter) WhereContactID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldContactID)) +} + +// WhereUserID applies the entql string predicate on the user_id field. +func (f *AudienceMemberHistoryFilter) WhereUserID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldUserID)) +} + +// WhereGroupID applies the entql string predicate on the group_id field. +func (f *AudienceMemberHistoryFilter) WhereGroupID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldGroupID)) +} + +// WhereIdentityHolderID applies the entql string predicate on the identity_holder_id field. +func (f *AudienceMemberHistoryFilter) WhereIdentityHolderID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldIdentityHolderID)) +} + +// WhereSubscriberID applies the entql string predicate on the subscriber_id field. +func (f *AudienceMemberHistoryFilter) WhereSubscriberID(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldSubscriberID)) +} + +// WhereEmail applies the entql string predicate on the email field. +func (f *AudienceMemberHistoryFilter) WhereEmail(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldEmail)) +} + +// WhereFullName applies the entql string predicate on the full_name field. +func (f *AudienceMemberHistoryFilter) WhereFullName(p entql.StringP) { + f.Where(p.Field(audiencememberhistory.FieldFullName)) +} + +// WhereMetadata applies the entql json.RawMessage predicate on the metadata field. +func (f *AudienceMemberHistoryFilter) WhereMetadata(p entql.BytesP) { + f.Where(p.Field(audiencememberhistory.FieldMetadata)) +} + // addPredicate implements the predicateAdder interface. func (_q *CampaignHistoryQuery) addPredicate(pred func(s *sql.Selector)) { _q.predicates = append(_q.predicates, pred) @@ -3903,7 +4251,7 @@ type CampaignHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *CampaignHistoryFilter) 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) } }) @@ -4168,7 +4516,7 @@ type CampaignTargetHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *CampaignTargetHistoryFilter) 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[7].Type, p, s); err != nil { s.AddError(err) } }) @@ -4323,7 +4671,7 @@ type ContactHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ContactHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[6].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[8].Type, p, s); err != nil { s.AddError(err) } }) @@ -4473,7 +4821,7 @@ type ControlHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ControlHistoryFilter) 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[9].Type, p, s); err != nil { s.AddError(err) } }) @@ -4798,7 +5146,7 @@ type ControlImplementationHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ControlImplementationHistoryFilter) 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[10].Type, p, s); err != nil { s.AddError(err) } }) @@ -4943,7 +5291,7 @@ type ControlObjectiveHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ControlObjectiveHistoryFilter) 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[11].Type, p, s); err != nil { s.AddError(err) } }) @@ -5108,7 +5456,7 @@ type CustomDomainHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *CustomDomainHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[10].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { s.AddError(err) } }) @@ -5248,7 +5596,7 @@ type DiscussionHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *DiscussionHistoryFilter) 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[13].Type, p, s); err != nil { s.AddError(err) } }) @@ -5353,7 +5701,7 @@ type DocumentDataHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *DocumentDataHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[12].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { s.AddError(err) } }) @@ -5483,7 +5831,7 @@ type EmailTemplateHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *EmailTemplateHistoryFilter) 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[15].Type, p, s); err != nil { s.AddError(err) } }) @@ -5698,7 +6046,7 @@ type EntityHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *EntityHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[14].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { s.AddError(err) } }) @@ -6083,7 +6431,7 @@ type EntityTypeHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *EntityTypeHistoryFilter) 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[17].Type, p, s); err != nil { s.AddError(err) } }) @@ -6203,7 +6551,7 @@ type EvidenceHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *EvidenceHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[16].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { s.AddError(err) } }) @@ -6393,7 +6741,7 @@ type FileHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *FileHistoryFilter) 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[19].Type, p, s); err != nil { s.AddError(err) } }) @@ -6628,7 +6976,7 @@ type FindingControlHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *FindingControlHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[18].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[20].Type, p, s); err != nil { s.AddError(err) } }) @@ -6758,7 +7106,7 @@ type FindingHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *FindingHistoryFilter) 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[21].Type, p, s); err != nil { s.AddError(err) } }) @@ -7128,7 +7476,7 @@ type GroupHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *GroupHistoryFilter) 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[22].Type, p, s); err != nil { s.AddError(err) } }) @@ -7303,7 +7651,7 @@ type GroupMembershipHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *GroupMembershipHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[21].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[23].Type, p, s); err != nil { s.AddError(err) } }) @@ -7398,7 +7746,7 @@ type GroupSettingHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *GroupSettingHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[22].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[24].Type, p, s); err != nil { s.AddError(err) } }) @@ -7513,7 +7861,7 @@ type HushHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *HushHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[23].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { s.AddError(err) } }) @@ -7668,7 +8016,7 @@ type IdentityHolderHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *IdentityHolderHistoryFilter) 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[26].Type, p, s); err != nil { s.AddError(err) } }) @@ -7918,7 +8266,7 @@ type InternalPolicyHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *InternalPolicyHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[25].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[27].Type, p, s); err != nil { s.AddError(err) } }) @@ -8188,7 +8536,7 @@ type MappableDomainHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *MappableDomainHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[26].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { s.AddError(err) } }) @@ -8293,7 +8641,7 @@ type MappedControlHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *MappedControlHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[27].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[29].Type, p, s); err != nil { s.AddError(err) } }) @@ -8428,7 +8776,7 @@ type NarrativeHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *NarrativeHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[28].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[30].Type, p, s); err != nil { s.AddError(err) } }) @@ -8563,7 +8911,7 @@ type NoteHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *NoteHistoryFilter) 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[31].Type, p, s); err != nil { s.AddError(err) } }) @@ -8708,7 +9056,7 @@ type NotificationPreferenceHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *NotificationPreferenceHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[30].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[32].Type, p, s); err != nil { s.AddError(err) } }) @@ -8908,7 +9256,7 @@ type NotificationTemplateHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *NotificationTemplateHistoryFilter) 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[33].Type, p, s); err != nil { s.AddError(err) } }) @@ -9133,7 +9481,7 @@ type OrgMembershipHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *OrgMembershipHistoryFilter) 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[34].Type, p, s); err != nil { s.AddError(err) } }) @@ -9268,7 +9616,7 @@ type OrganizationHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *OrganizationHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[33].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[35].Type, p, s); err != nil { s.AddError(err) } }) @@ -9413,7 +9761,7 @@ type OrganizationSettingHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *OrganizationSettingHistoryFilter) 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[36].Type, p, s); err != nil { s.AddError(err) } }) @@ -9658,7 +10006,7 @@ type PlatformHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *PlatformHistoryFilter) 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[37].Type, p, s); err != nil { s.AddError(err) } }) @@ -10003,7 +10351,7 @@ type ProcedureHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ProcedureHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[36].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[38].Type, p, s); err != nil { s.AddError(err) } }) @@ -10268,7 +10616,7 @@ type ProgramHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ProgramHistoryFilter) 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[39].Type, p, s); err != nil { s.AddError(err) } }) @@ -10473,7 +10821,7 @@ type ProgramMembershipHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ProgramMembershipHistoryFilter) 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[40].Type, p, s); err != nil { s.AddError(err) } }) @@ -10568,7 +10916,7 @@ type RemediationHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *RemediationHistoryFilter) 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[41].Type, p, s); err != nil { s.AddError(err) } }) @@ -10813,7 +11161,7 @@ type ReviewHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *ReviewHistoryFilter) 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[42].Type, p, s); err != nil { s.AddError(err) } }) @@ -11043,7 +11391,7 @@ type RiskHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *RiskHistoryFilter) 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[43].Type, p, s); err != nil { s.AddError(err) } }) @@ -11318,7 +11666,7 @@ type SLADefinitionHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *SLADefinitionHistoryFilter) 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[44].Type, p, s); err != nil { s.AddError(err) } }) @@ -11433,7 +11781,7 @@ type StandardHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *StandardHistoryFilter) 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[45].Type, p, s); err != nil { s.AddError(err) } }) @@ -11623,7 +11971,7 @@ type SubcontrolHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *SubcontrolHistoryFilter) 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[46].Type, p, s); err != nil { s.AddError(err) } }) @@ -11918,7 +12266,7 @@ type SubprocessorHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *SubprocessorHistoryFilter) 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[47].Type, p, s); err != nil { s.AddError(err) } }) @@ -12053,7 +12401,7 @@ type SystemDetailHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *SystemDetailHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[46].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { s.AddError(err) } }) @@ -12198,7 +12546,7 @@ type TaskHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TaskHistoryFilter) 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[49].Type, p, s); err != nil { s.AddError(err) } }) @@ -12433,7 +12781,7 @@ type TemplateHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TemplateHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[48].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[50].Type, p, s); err != nil { s.AddError(err) } }) @@ -12608,7 +12956,7 @@ type TrustCenterComplianceHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterComplianceHistoryFilter) 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[51].Type, p, s); err != nil { s.AddError(err) } }) @@ -12713,7 +13061,7 @@ type TrustCenterDocHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterDocHistoryFilter) 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[52].Type, p, s); err != nil { s.AddError(err) } }) @@ -12858,7 +13206,7 @@ type TrustCenterEntityHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterEntityHistoryFilter) 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[53].Type, p, s); err != nil { s.AddError(err) } }) @@ -12973,7 +13321,7 @@ type TrustCenterFAQHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterFAQHistoryFilter) 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[54].Type, p, s); err != nil { s.AddError(err) } }) @@ -13093,7 +13441,7 @@ type TrustCenterHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterHistoryFilter) 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[55].Type, p, s); err != nil { s.AddError(err) } }) @@ -13233,7 +13581,7 @@ type TrustCenterNDARequestHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterNDARequestHistoryFilter) 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[56].Type, p, s); err != nil { s.AddError(err) } }) @@ -13393,7 +13741,7 @@ type TrustCenterSettingHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterSettingHistoryFilter) 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[57].Type, p, s); err != nil { s.AddError(err) } }) @@ -13623,7 +13971,7 @@ type TrustCenterSubprocessorHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterSubprocessorHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[56].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { s.AddError(err) } }) @@ -13738,7 +14086,7 @@ type TrustCenterWatermarkConfigHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *TrustCenterWatermarkConfigHistoryFilter) 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[59].Type, p, s); err != nil { s.AddError(err) } }) @@ -13878,7 +14226,7 @@ type UserHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *UserHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[58].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { s.AddError(err) } }) @@ -14063,7 +14411,7 @@ type UserSettingHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *UserSettingHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[59].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { s.AddError(err) } }) @@ -14218,7 +14566,7 @@ type VendorRiskScoreHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *VendorRiskScoreHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[60].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[62].Type, p, s); err != nil { s.AddError(err) } }) @@ -14383,7 +14731,7 @@ type VendorScoringConfigHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *VendorScoringConfigHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[61].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[63].Type, p, s); err != nil { s.AddError(err) } }) @@ -14498,7 +14846,7 @@ type VulnerabilityHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *VulnerabilityHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[62].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[64].Type, p, s); err != nil { s.AddError(err) } }) @@ -14893,7 +15241,7 @@ type WorkflowAssignmentHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowAssignmentHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[63].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[65].Type, p, s); err != nil { s.AddError(err) } }) @@ -15078,7 +15426,7 @@ type WorkflowAssignmentTargetHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowAssignmentTargetHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[64].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[66].Type, p, s); err != nil { s.AddError(err) } }) @@ -15208,7 +15556,7 @@ type WorkflowDefinitionHistoryFilter struct { // Where applies the entql predicate on the query filter. func (f *WorkflowDefinitionHistoryFilter) Where(p entql.P) { f.addPredicate(func(s *sql.Selector) { - if err := schemaGraph.EvalP(schemaGraph.Nodes[65].Type, p, s); err != nil { + if err := schemaGraph.EvalP(schemaGraph.Nodes[67].Type, p, s); err != nil { s.AddError(err) } }) diff --git a/internal/ent/historygenerated/gql_collection.go b/internal/ent/historygenerated/gql_collection.go index 60599fafd9..8c8d4a4085 100644 --- a/internal/ent/historygenerated/gql_collection.go +++ b/internal/ent/historygenerated/gql_collection.go @@ -13,6 +13,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -1173,6 +1175,354 @@ func newAssetHistoryPaginateArgs(rv map[string]any) *assethistoryPaginateArgs { return args } +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (_q *AudienceHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*AudienceHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return _q, nil + } + if err := _q.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return _q, nil +} + +func (_q *AudienceHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { + path = append([]string(nil), path...) + var ( + unknownSeen bool + fieldSeen = make(map[string]struct{}, len(audiencehistory.Columns)) + selectedFields = []string{audiencehistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[audiencehistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldHistoryTime) + fieldSeen[audiencehistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[audiencehistory.FieldRef]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldRef) + fieldSeen[audiencehistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[audiencehistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldOperation) + fieldSeen[audiencehistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[audiencehistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldCreatedAt) + fieldSeen[audiencehistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[audiencehistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldUpdatedAt) + fieldSeen[audiencehistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[audiencehistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldCreatedBy) + fieldSeen[audiencehistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[audiencehistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldUpdatedBy) + fieldSeen[audiencehistory.FieldUpdatedBy] = struct{}{} + } + case "updatedByImpersonator": + if _, ok := fieldSeen[audiencehistory.FieldUpdatedByImpersonator]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldUpdatedByImpersonator) + fieldSeen[audiencehistory.FieldUpdatedByImpersonator] = struct{}{} + } + case "displayID": + if _, ok := fieldSeen[audiencehistory.FieldDisplayID]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldDisplayID) + fieldSeen[audiencehistory.FieldDisplayID] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[audiencehistory.FieldTags]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldTags) + fieldSeen[audiencehistory.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[audiencehistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldOwnerID) + fieldSeen[audiencehistory.FieldOwnerID] = struct{}{} + } + case "name": + if _, ok := fieldSeen[audiencehistory.FieldName]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldName) + fieldSeen[audiencehistory.FieldName] = struct{}{} + } + case "description": + if _, ok := fieldSeen[audiencehistory.FieldDescription]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldDescription) + fieldSeen[audiencehistory.FieldDescription] = struct{}{} + } + case "audienceType": + if _, ok := fieldSeen[audiencehistory.FieldAudienceType]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldAudienceType) + fieldSeen[audiencehistory.FieldAudienceType] = struct{}{} + } + case "filters": + if _, ok := fieldSeen[audiencehistory.FieldFilters]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldFilters) + fieldSeen[audiencehistory.FieldFilters] = struct{}{} + } + case "metadata": + if _, ok := fieldSeen[audiencehistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, audiencehistory.FieldMetadata) + fieldSeen[audiencehistory.FieldMetadata] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + _q.Select(selectedFields...) + } + return nil +} + +type audiencehistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []AudienceHistoryPaginateOption +} + +func newAudienceHistoryPaginateArgs(rv map[string]any) *audiencehistoryPaginateArgs { + args := &audiencehistoryPaginateArgs{} + if rv == nil { + return args + } + if v := rv[firstField]; v != nil { + args.first = v.(*int) + } + if v := rv[lastField]; v != nil { + args.last = v.(*int) + } + if v := rv[afterField]; v != nil { + args.after = v.(*Cursor) + } + if v := rv[beforeField]; v != nil { + args.before = v.(*Cursor) + } + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &AudienceHistoryOrder{Field: &AudienceHistoryOrderField{}, Direction: entgql.OrderDirectionAsc} + ) + if d, ok := v[directionField]; ok { + err1 = order.Direction.UnmarshalGQL(d) + } + if f, ok := v[fieldField]; ok { + err2 = order.Field.UnmarshalGQL(f) + } + if err1 == nil && err2 == nil { + args.opts = append(args.opts, WithAudienceHistoryOrder(order)) + } + case *AudienceHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithAudienceHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*AudienceHistoryWhereInput); ok { + args.opts = append(args.opts, WithAudienceHistoryFilter(v.Filter)) + } + return args +} + +// CollectFields tells the query-builder to eagerly load connected nodes by resolver context. +func (_q *AudienceMemberHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*AudienceMemberHistoryQuery, error) { + fc := graphql.GetFieldContext(ctx) + if fc == nil { + return _q, nil + } + if err := _q.collectField(ctx, false, graphql.GetOperationContext(ctx), fc.Field, nil, satisfies...); err != nil { + return nil, err + } + return _q, nil +} + +func (_q *AudienceMemberHistoryQuery) collectField(ctx context.Context, oneNode bool, opCtx *graphql.OperationContext, collected graphql.CollectedField, path []string, satisfies ...string) error { + path = append([]string(nil), path...) + var ( + unknownSeen bool + fieldSeen = make(map[string]struct{}, len(audiencememberhistory.Columns)) + selectedFields = []string{audiencememberhistory.FieldID} + ) + for _, field := range graphql.CollectFields(opCtx, collected.Selections, satisfies) { + switch field.Name { + case "historyTime": + if _, ok := fieldSeen[audiencememberhistory.FieldHistoryTime]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldHistoryTime) + fieldSeen[audiencememberhistory.FieldHistoryTime] = struct{}{} + } + case "ref": + if _, ok := fieldSeen[audiencememberhistory.FieldRef]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldRef) + fieldSeen[audiencememberhistory.FieldRef] = struct{}{} + } + case "operation": + if _, ok := fieldSeen[audiencememberhistory.FieldOperation]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldOperation) + fieldSeen[audiencememberhistory.FieldOperation] = struct{}{} + } + case "createdAt": + if _, ok := fieldSeen[audiencememberhistory.FieldCreatedAt]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldCreatedAt) + fieldSeen[audiencememberhistory.FieldCreatedAt] = struct{}{} + } + case "updatedAt": + if _, ok := fieldSeen[audiencememberhistory.FieldUpdatedAt]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldUpdatedAt) + fieldSeen[audiencememberhistory.FieldUpdatedAt] = struct{}{} + } + case "createdBy": + if _, ok := fieldSeen[audiencememberhistory.FieldCreatedBy]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldCreatedBy) + fieldSeen[audiencememberhistory.FieldCreatedBy] = struct{}{} + } + case "updatedBy": + if _, ok := fieldSeen[audiencememberhistory.FieldUpdatedBy]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldUpdatedBy) + fieldSeen[audiencememberhistory.FieldUpdatedBy] = struct{}{} + } + case "updatedByImpersonator": + if _, ok := fieldSeen[audiencememberhistory.FieldUpdatedByImpersonator]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldUpdatedByImpersonator) + fieldSeen[audiencememberhistory.FieldUpdatedByImpersonator] = struct{}{} + } + case "displayID": + if _, ok := fieldSeen[audiencememberhistory.FieldDisplayID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldDisplayID) + fieldSeen[audiencememberhistory.FieldDisplayID] = struct{}{} + } + case "tags": + if _, ok := fieldSeen[audiencememberhistory.FieldTags]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldTags) + fieldSeen[audiencememberhistory.FieldTags] = struct{}{} + } + case "ownerID": + if _, ok := fieldSeen[audiencememberhistory.FieldOwnerID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldOwnerID) + fieldSeen[audiencememberhistory.FieldOwnerID] = struct{}{} + } + case "audienceID": + if _, ok := fieldSeen[audiencememberhistory.FieldAudienceID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldAudienceID) + fieldSeen[audiencememberhistory.FieldAudienceID] = struct{}{} + } + case "contactID": + if _, ok := fieldSeen[audiencememberhistory.FieldContactID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldContactID) + fieldSeen[audiencememberhistory.FieldContactID] = struct{}{} + } + case "userID": + if _, ok := fieldSeen[audiencememberhistory.FieldUserID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldUserID) + fieldSeen[audiencememberhistory.FieldUserID] = struct{}{} + } + case "groupID": + if _, ok := fieldSeen[audiencememberhistory.FieldGroupID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldGroupID) + fieldSeen[audiencememberhistory.FieldGroupID] = struct{}{} + } + case "identityHolderID": + if _, ok := fieldSeen[audiencememberhistory.FieldIdentityHolderID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldIdentityHolderID) + fieldSeen[audiencememberhistory.FieldIdentityHolderID] = struct{}{} + } + case "subscriberID": + if _, ok := fieldSeen[audiencememberhistory.FieldSubscriberID]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldSubscriberID) + fieldSeen[audiencememberhistory.FieldSubscriberID] = struct{}{} + } + case "email": + if _, ok := fieldSeen[audiencememberhistory.FieldEmail]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldEmail) + fieldSeen[audiencememberhistory.FieldEmail] = struct{}{} + } + case "fullName": + if _, ok := fieldSeen[audiencememberhistory.FieldFullName]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldFullName) + fieldSeen[audiencememberhistory.FieldFullName] = struct{}{} + } + case "metadata": + if _, ok := fieldSeen[audiencememberhistory.FieldMetadata]; !ok { + selectedFields = append(selectedFields, audiencememberhistory.FieldMetadata) + fieldSeen[audiencememberhistory.FieldMetadata] = struct{}{} + } + case "id": + case "__typename": + default: + unknownSeen = true + } + } + if !unknownSeen { + _q.Select(selectedFields...) + } + return nil +} + +type audiencememberhistoryPaginateArgs struct { + first, last *int + after, before *Cursor + opts []AudienceMemberHistoryPaginateOption +} + +func newAudienceMemberHistoryPaginateArgs(rv map[string]any) *audiencememberhistoryPaginateArgs { + args := &audiencememberhistoryPaginateArgs{} + if rv == nil { + return args + } + if v := rv[firstField]; v != nil { + args.first = v.(*int) + } + if v := rv[lastField]; v != nil { + args.last = v.(*int) + } + if v := rv[afterField]; v != nil { + args.after = v.(*Cursor) + } + if v := rv[beforeField]; v != nil { + args.before = v.(*Cursor) + } + if v, ok := rv[orderByField]; ok { + switch v := v.(type) { + case map[string]any: + var ( + err1, err2 error + order = &AudienceMemberHistoryOrder{Field: &AudienceMemberHistoryOrderField{}, Direction: entgql.OrderDirectionAsc} + ) + if d, ok := v[directionField]; ok { + err1 = order.Direction.UnmarshalGQL(d) + } + if f, ok := v[fieldField]; ok { + err2 = order.Field.UnmarshalGQL(f) + } + if err1 == nil && err2 == nil { + args.opts = append(args.opts, WithAudienceMemberHistoryOrder(order)) + } + case *AudienceMemberHistoryOrder: + if v != nil { + args.opts = append(args.opts, WithAudienceMemberHistoryOrder(v)) + } + } + } + if v, ok := rv[whereField].(*AudienceMemberHistoryWhereInput); ok { + args.opts = append(args.opts, WithAudienceMemberHistoryFilter(v.Filter)) + } + return args +} + // CollectFields tells the query-builder to eagerly load connected nodes by resolver context. func (_q *CampaignHistoryQuery) CollectFields(ctx context.Context, satisfies ...string) (*CampaignHistoryQuery, error) { fc := graphql.GetFieldContext(ctx) diff --git a/internal/ent/historygenerated/gql_node.go b/internal/ent/historygenerated/gql_node.go index db7e4de411..016dc85c06 100644 --- a/internal/ent/historygenerated/gql_node.go +++ b/internal/ent/historygenerated/gql_node.go @@ -15,6 +15,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -104,6 +106,16 @@ var assethistoryImplementors = []string{"AssetHistory", "Node"} // IsNode implements the Node interface check for GQLGen. func (*AssetHistory) IsNode() {} +var audiencehistoryImplementors = []string{"AudienceHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*AudienceHistory) IsNode() {} + +var audiencememberhistoryImplementors = []string{"AudienceMemberHistory", "Node"} + +// IsNode implements the Node interface check for GQLGen. +func (*AudienceMemberHistory) IsNode() {} + var campaignhistoryImplementors = []string{"CampaignHistory", "Node"} // IsNode implements the Node interface check for GQLGen. @@ -508,6 +520,24 @@ func (c *Client) noder(ctx context.Context, table string, id string) (Noder, err } } return query.Only(ctx) + case audiencehistory.Table: + query := c.AudienceHistory.Query(). + Where(audiencehistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, audiencehistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) + case audiencememberhistory.Table: + query := c.AudienceMemberHistory.Query(). + Where(audiencememberhistory.ID(id)) + if fc := graphql.GetFieldContext(ctx); fc != nil { + if err := query.collectField(ctx, true, graphql.GetOperationContext(ctx), fc.Field, nil, audiencememberhistoryImplementors...); err != nil { + return nil, err + } + } + return query.Only(ctx) case campaignhistory.Table: query := c.CampaignHistory.Query(). Where(campaignhistory.ID(id)) @@ -1203,6 +1233,38 @@ func (c *Client) noders(ctx context.Context, table string, ids []string) ([]Node *noder = node } } + case audiencehistory.Table: + query := c.AudienceHistory.Query(). + Where(audiencehistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, audiencehistoryImplementors...) + if err != nil { + return nil, err + } + nodes, err := query.All(ctx) + if err != nil { + return nil, err + } + for _, node := range nodes { + for _, noder := range idmap[node.ID] { + *noder = node + } + } + case audiencememberhistory.Table: + query := c.AudienceMemberHistory.Query(). + Where(audiencememberhistory.IDIn(ids...)) + query, err := query.CollectFields(ctx, audiencememberhistoryImplementors...) + if err != nil { + return nil, err + } + nodes, err := query.All(ctx) + if err != nil { + return nil, err + } + for _, node := range nodes { + for _, noder := range idmap[node.ID] { + *noder = node + } + } case campaignhistory.Table: query := c.CampaignHistory.Query(). Where(campaignhistory.IDIn(ids...)) diff --git a/internal/ent/historygenerated/gql_pagination.go b/internal/ent/historygenerated/gql_pagination.go index 2f2c469123..168c6c5a43 100644 --- a/internal/ent/historygenerated/gql_pagination.go +++ b/internal/ent/historygenerated/gql_pagination.go @@ -20,6 +20,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -2277,6 +2279,742 @@ func (_m *AssetHistory) ToEdge(order *AssetHistoryOrder) *AssetHistoryEdge { } } +// AudienceHistoryEdge is the edge representation of AudienceHistory. +type AudienceHistoryEdge struct { + Node *AudienceHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// AudienceHistoryConnection is the connection containing edges to AudienceHistory. +type AudienceHistoryConnection struct { + Edges []*AudienceHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *AudienceHistoryConnection) build(nodes []*AudienceHistory, pager *audiencehistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && len(nodes) >= *first+1 { + c.PageInfo.HasNextPage = true + nodes = nodes[:*first] + } else if last != nil && len(nodes) >= *last+1 { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:*last] + } + var nodeAt func(int) *AudienceHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *AudienceHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *AudienceHistory { + return nodes[i] + } + } + c.Edges = make([]*AudienceHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &AudienceHistoryEdge{ + Node: node, + Cursor: pager.toCursor(node), + } + } + if l := len(c.Edges); l > 0 { + c.PageInfo.StartCursor = &c.Edges[0].Cursor + c.PageInfo.EndCursor = &c.Edges[l-1].Cursor + } + if c.TotalCount == 0 { + c.TotalCount = len(nodes) + } +} + +// AudienceHistoryPaginateOption enables pagination customization. +type AudienceHistoryPaginateOption func(*audiencehistoryPager) error + +// WithAudienceHistoryOrder configures pagination ordering. +func WithAudienceHistoryOrder(order *AudienceHistoryOrder) AudienceHistoryPaginateOption { + if order == nil { + order = DefaultAudienceHistoryOrder + } + o := *order + return func(pager *audiencehistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultAudienceHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithAudienceHistoryFilter configures pagination filter. +func WithAudienceHistoryFilter(filter func(*AudienceHistoryQuery) (*AudienceHistoryQuery, error)) AudienceHistoryPaginateOption { + return func(pager *audiencehistoryPager) error { + if filter == nil { + return errors.New("AudienceHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type audiencehistoryPager struct { + reverse bool + order *AudienceHistoryOrder + filter func(*AudienceHistoryQuery) (*AudienceHistoryQuery, error) +} + +func newAudienceHistoryPager(opts []AudienceHistoryPaginateOption, reverse bool) (*audiencehistoryPager, error) { + pager := &audiencehistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultAudienceHistoryOrder + } + return pager, nil +} + +func (p *audiencehistoryPager) applyFilter(query *AudienceHistoryQuery) (*AudienceHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *audiencehistoryPager) toCursor(_m *AudienceHistory) Cursor { + return p.order.Field.toCursor(_m) +} + +func (p *audiencehistoryPager) applyCursors(query *AudienceHistoryQuery, after, before *Cursor) (*AudienceHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultAudienceHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *audiencehistoryPager) applyOrder(query *AudienceHistoryQuery) *AudienceHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultAudienceHistoryOrder.Field { + query = query.Order(DefaultAudienceHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *audiencehistoryPager) orderExpr(query *AudienceHistoryQuery) sql.Querier { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return sql.ExprFunc(func(b *sql.Builder) { + b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultAudienceHistoryOrder.Field { + b.Comma().Ident(DefaultAudienceHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to AudienceHistory. +func (_m *AudienceHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...AudienceHistoryPaginateOption, +) (*AudienceHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newAudienceHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if _m, err = pager.applyFilter(_m); err != nil { + return nil, err + } + conn := &AudienceHistoryConnection{Edges: []*AudienceHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := _m.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.CountIDs(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if _m, err = pager.applyCursors(_m, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + _m.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := _m.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + _m = pager.applyOrder(_m) + nodes, err := _m.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // AudienceHistoryOrderFieldHistoryTime orders AudienceHistory by history_time. + AudienceHistoryOrderFieldHistoryTime = &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.HistoryTime, nil + }, + column: audiencehistory.FieldHistoryTime, + toTerm: audiencehistory.ByHistoryTime, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.HistoryTime, + } + }, + } + // AudienceHistoryOrderFieldCreatedAt orders AudienceHistory by created_at. + AudienceHistoryOrderFieldCreatedAt = &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.CreatedAt, nil + }, + column: audiencehistory.FieldCreatedAt, + toTerm: audiencehistory.ByCreatedAt, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.CreatedAt, + } + }, + } + // AudienceHistoryOrderFieldUpdatedAt orders AudienceHistory by updated_at. + AudienceHistoryOrderFieldUpdatedAt = &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.UpdatedAt, nil + }, + column: audiencehistory.FieldUpdatedAt, + toTerm: audiencehistory.ByUpdatedAt, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.UpdatedAt, + } + }, + } + // AudienceHistoryOrderFieldName orders AudienceHistory by name. + AudienceHistoryOrderFieldName = &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.Name, nil + }, + column: audiencehistory.FieldName, + toTerm: audiencehistory.ByName, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.Name, + } + }, + } + // AudienceHistoryOrderFieldAudienceType orders AudienceHistory by audience_type. + AudienceHistoryOrderFieldAudienceType = &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.AudienceType, nil + }, + column: audiencehistory.FieldAudienceType, + toTerm: audiencehistory.ByAudienceType, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.AudienceType, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f AudienceHistoryOrderField) String() string { + var str string + switch f.column { + case AudienceHistoryOrderFieldHistoryTime.column: + str = "history_time" + case AudienceHistoryOrderFieldCreatedAt.column: + str = "created_at" + case AudienceHistoryOrderFieldUpdatedAt.column: + str = "updated_at" + case AudienceHistoryOrderFieldName.column: + str = "name" + case AudienceHistoryOrderFieldAudienceType.column: + str = "AUDIENCE_TYPE" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f AudienceHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *AudienceHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("AudienceHistoryOrderField %T must be a string", v) + } + switch str { + case "history_time": + *f = *AudienceHistoryOrderFieldHistoryTime + case "created_at": + *f = *AudienceHistoryOrderFieldCreatedAt + case "updated_at": + *f = *AudienceHistoryOrderFieldUpdatedAt + case "name": + *f = *AudienceHistoryOrderFieldName + case "AUDIENCE_TYPE": + *f = *AudienceHistoryOrderFieldAudienceType + default: + return fmt.Errorf("%s is not a valid AudienceHistoryOrderField", str) + } + return nil +} + +// AudienceHistoryOrderField defines the ordering field of AudienceHistory. +type AudienceHistoryOrderField struct { + // Value extracts the ordering value from the given AudienceHistory. + Value func(*AudienceHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) audiencehistory.OrderOption + toCursor func(*AudienceHistory) Cursor +} + +// AudienceHistoryOrder defines the ordering of AudienceHistory. +type AudienceHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *AudienceHistoryOrderField `json:"field"` +} + +// DefaultAudienceHistoryOrder is the default ordering of AudienceHistory. +var DefaultAudienceHistoryOrder = &AudienceHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &AudienceHistoryOrderField{ + Value: func(_m *AudienceHistory) (ent.Value, error) { + return _m.ID, nil + }, + column: audiencehistory.FieldID, + toTerm: audiencehistory.ByID, + toCursor: func(_m *AudienceHistory) Cursor { + return Cursor{ID: _m.ID} + }, + }, +} + +// ToEdge converts AudienceHistory into AudienceHistoryEdge. +func (_m *AudienceHistory) ToEdge(order *AudienceHistoryOrder) *AudienceHistoryEdge { + if order == nil { + order = DefaultAudienceHistoryOrder + } + return &AudienceHistoryEdge{ + Node: _m, + Cursor: order.Field.toCursor(_m), + } +} + +// AudienceMemberHistoryEdge is the edge representation of AudienceMemberHistory. +type AudienceMemberHistoryEdge struct { + Node *AudienceMemberHistory `json:"node"` + Cursor Cursor `json:"cursor"` +} + +// AudienceMemberHistoryConnection is the connection containing edges to AudienceMemberHistory. +type AudienceMemberHistoryConnection struct { + Edges []*AudienceMemberHistoryEdge `json:"edges"` + PageInfo PageInfo `json:"pageInfo"` + TotalCount int `json:"totalCount"` +} + +func (c *AudienceMemberHistoryConnection) build(nodes []*AudienceMemberHistory, pager *audiencememberhistoryPager, after *Cursor, first *int, before *Cursor, last *int) { + c.PageInfo.HasNextPage = before != nil + c.PageInfo.HasPreviousPage = after != nil + if first != nil && len(nodes) >= *first+1 { + c.PageInfo.HasNextPage = true + nodes = nodes[:*first] + } else if last != nil && len(nodes) >= *last+1 { + c.PageInfo.HasPreviousPage = true + nodes = nodes[:*last] + } + var nodeAt func(int) *AudienceMemberHistory + if last != nil { + n := len(nodes) - 1 + nodeAt = func(i int) *AudienceMemberHistory { + return nodes[n-i] + } + } else { + nodeAt = func(i int) *AudienceMemberHistory { + return nodes[i] + } + } + c.Edges = make([]*AudienceMemberHistoryEdge, len(nodes)) + for i := range nodes { + node := nodeAt(i) + c.Edges[i] = &AudienceMemberHistoryEdge{ + Node: node, + Cursor: pager.toCursor(node), + } + } + if l := len(c.Edges); l > 0 { + c.PageInfo.StartCursor = &c.Edges[0].Cursor + c.PageInfo.EndCursor = &c.Edges[l-1].Cursor + } + if c.TotalCount == 0 { + c.TotalCount = len(nodes) + } +} + +// AudienceMemberHistoryPaginateOption enables pagination customization. +type AudienceMemberHistoryPaginateOption func(*audiencememberhistoryPager) error + +// WithAudienceMemberHistoryOrder configures pagination ordering. +func WithAudienceMemberHistoryOrder(order *AudienceMemberHistoryOrder) AudienceMemberHistoryPaginateOption { + if order == nil { + order = DefaultAudienceMemberHistoryOrder + } + o := *order + return func(pager *audiencememberhistoryPager) error { + if err := o.Direction.Validate(); err != nil { + return err + } + if o.Field == nil { + o.Field = DefaultAudienceMemberHistoryOrder.Field + } + pager.order = &o + return nil + } +} + +// WithAudienceMemberHistoryFilter configures pagination filter. +func WithAudienceMemberHistoryFilter(filter func(*AudienceMemberHistoryQuery) (*AudienceMemberHistoryQuery, error)) AudienceMemberHistoryPaginateOption { + return func(pager *audiencememberhistoryPager) error { + if filter == nil { + return errors.New("AudienceMemberHistoryQuery filter cannot be nil") + } + pager.filter = filter + return nil + } +} + +type audiencememberhistoryPager struct { + reverse bool + order *AudienceMemberHistoryOrder + filter func(*AudienceMemberHistoryQuery) (*AudienceMemberHistoryQuery, error) +} + +func newAudienceMemberHistoryPager(opts []AudienceMemberHistoryPaginateOption, reverse bool) (*audiencememberhistoryPager, error) { + pager := &audiencememberhistoryPager{reverse: reverse} + for _, opt := range opts { + if err := opt(pager); err != nil { + return nil, err + } + } + if pager.order == nil { + pager.order = DefaultAudienceMemberHistoryOrder + } + return pager, nil +} + +func (p *audiencememberhistoryPager) applyFilter(query *AudienceMemberHistoryQuery) (*AudienceMemberHistoryQuery, error) { + if p.filter != nil { + return p.filter(query) + } + return query, nil +} + +func (p *audiencememberhistoryPager) toCursor(_m *AudienceMemberHistory) Cursor { + return p.order.Field.toCursor(_m) +} + +func (p *audiencememberhistoryPager) applyCursors(query *AudienceMemberHistoryQuery, after, before *Cursor) (*AudienceMemberHistoryQuery, error) { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + for _, predicate := range entgql.CursorsPredicate(after, before, DefaultAudienceMemberHistoryOrder.Field.column, p.order.Field.column, direction) { + query = query.Where(predicate) + } + return query, nil +} + +func (p *audiencememberhistoryPager) applyOrder(query *AudienceMemberHistoryQuery) *AudienceMemberHistoryQuery { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + query = query.Order(p.order.Field.toTerm(direction.OrderTermOption())) + if p.order.Field != DefaultAudienceMemberHistoryOrder.Field { + query = query.Order(DefaultAudienceMemberHistoryOrder.Field.toTerm(direction.OrderTermOption())) + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return query +} + +func (p *audiencememberhistoryPager) orderExpr(query *AudienceMemberHistoryQuery) sql.Querier { + direction := p.order.Direction + if p.reverse { + direction = direction.Reverse() + } + if len(query.ctx.Fields) > 0 { + query.ctx.AppendFieldOnce(p.order.Field.column) + } + return sql.ExprFunc(func(b *sql.Builder) { + b.Ident(p.order.Field.column).Pad().WriteString(string(direction)) + if p.order.Field != DefaultAudienceMemberHistoryOrder.Field { + b.Comma().Ident(DefaultAudienceMemberHistoryOrder.Field.column).Pad().WriteString(string(direction)) + } + }) +} + +// Paginate executes the query and returns a relay based cursor connection to AudienceMemberHistory. +func (_m *AudienceMemberHistoryQuery) Paginate( + ctx context.Context, after *Cursor, first *int, + before *Cursor, last *int, opts ...AudienceMemberHistoryPaginateOption, +) (*AudienceMemberHistoryConnection, error) { + if err := validateFirstLast(first, last); err != nil { + return nil, err + } + pager, err := newAudienceMemberHistoryPager(opts, last != nil) + if err != nil { + return nil, err + } + if _m, err = pager.applyFilter(_m); err != nil { + return nil, err + } + conn := &AudienceMemberHistoryConnection{Edges: []*AudienceMemberHistoryEdge{}} + ignoredEdges := !hasCollectedField(ctx, edgesField) + if hasCollectedField(ctx, totalCountField) || hasCollectedField(ctx, pageInfoField) { + hasPagination := after != nil || first != nil || before != nil || last != nil + if hasPagination || ignoredEdges { + c := _m.Clone() + c.ctx.Fields = nil + if conn.TotalCount, err = c.CountIDs(ctx); err != nil { + return nil, err + } + conn.PageInfo.HasNextPage = first != nil && conn.TotalCount > 0 + conn.PageInfo.HasPreviousPage = last != nil && conn.TotalCount > 0 + } + } + if (first != nil && *first == 0) || (last != nil && *last == 0) { + return conn, nil + } + if _m, err = pager.applyCursors(_m, after, before); err != nil { + return nil, err + } + limit := paginateLimit(first, last) + if limit != 0 { + _m.Limit(limit) + } + if field := collectedField(ctx, edgesField, nodeField); field != nil { + if err := _m.collectField(ctx, limit == 1, graphql.GetOperationContext(ctx), *field, []string{edgesField, nodeField}); err != nil { + return nil, err + } + } + _m = pager.applyOrder(_m) + nodes, err := _m.All(ctx) + if err != nil { + return nil, err + } + conn.build(nodes, pager, after, first, before, last) + return conn, nil +} + +var ( + // AudienceMemberHistoryOrderFieldHistoryTime orders AudienceMemberHistory by history_time. + AudienceMemberHistoryOrderFieldHistoryTime = &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.HistoryTime, nil + }, + column: audiencememberhistory.FieldHistoryTime, + toTerm: audiencememberhistory.ByHistoryTime, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.HistoryTime, + } + }, + } + // AudienceMemberHistoryOrderFieldCreatedAt orders AudienceMemberHistory by created_at. + AudienceMemberHistoryOrderFieldCreatedAt = &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.CreatedAt, nil + }, + column: audiencememberhistory.FieldCreatedAt, + toTerm: audiencememberhistory.ByCreatedAt, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.CreatedAt, + } + }, + } + // AudienceMemberHistoryOrderFieldUpdatedAt orders AudienceMemberHistory by updated_at. + AudienceMemberHistoryOrderFieldUpdatedAt = &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.UpdatedAt, nil + }, + column: audiencememberhistory.FieldUpdatedAt, + toTerm: audiencememberhistory.ByUpdatedAt, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.UpdatedAt, + } + }, + } + // AudienceMemberHistoryOrderFieldEmail orders AudienceMemberHistory by email. + AudienceMemberHistoryOrderFieldEmail = &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.Email, nil + }, + column: audiencememberhistory.FieldEmail, + toTerm: audiencememberhistory.ByEmail, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.Email, + } + }, + } + // AudienceMemberHistoryOrderFieldFullName orders AudienceMemberHistory by full_name. + AudienceMemberHistoryOrderFieldFullName = &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.FullName, nil + }, + column: audiencememberhistory.FieldFullName, + toTerm: audiencememberhistory.ByFullName, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ + ID: _m.ID, + Value: _m.FullName, + } + }, + } +) + +// String implement fmt.Stringer interface. +func (f AudienceMemberHistoryOrderField) String() string { + var str string + switch f.column { + case AudienceMemberHistoryOrderFieldHistoryTime.column: + str = "history_time" + case AudienceMemberHistoryOrderFieldCreatedAt.column: + str = "created_at" + case AudienceMemberHistoryOrderFieldUpdatedAt.column: + str = "updated_at" + case AudienceMemberHistoryOrderFieldEmail.column: + str = "email" + case AudienceMemberHistoryOrderFieldFullName.column: + str = "full_name" + } + return str +} + +// MarshalGQL implements graphql.Marshaler interface. +func (f AudienceMemberHistoryOrderField) MarshalGQL(w io.Writer) { + io.WriteString(w, strconv.Quote(f.String())) +} + +// UnmarshalGQL implements graphql.Unmarshaler interface. +func (f *AudienceMemberHistoryOrderField) UnmarshalGQL(v interface{}) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("AudienceMemberHistoryOrderField %T must be a string", v) + } + switch str { + case "history_time": + *f = *AudienceMemberHistoryOrderFieldHistoryTime + case "created_at": + *f = *AudienceMemberHistoryOrderFieldCreatedAt + case "updated_at": + *f = *AudienceMemberHistoryOrderFieldUpdatedAt + case "email": + *f = *AudienceMemberHistoryOrderFieldEmail + case "full_name": + *f = *AudienceMemberHistoryOrderFieldFullName + default: + return fmt.Errorf("%s is not a valid AudienceMemberHistoryOrderField", str) + } + return nil +} + +// AudienceMemberHistoryOrderField defines the ordering field of AudienceMemberHistory. +type AudienceMemberHistoryOrderField struct { + // Value extracts the ordering value from the given AudienceMemberHistory. + Value func(*AudienceMemberHistory) (ent.Value, error) + column string // field or computed. + toTerm func(...sql.OrderTermOption) audiencememberhistory.OrderOption + toCursor func(*AudienceMemberHistory) Cursor +} + +// AudienceMemberHistoryOrder defines the ordering of AudienceMemberHistory. +type AudienceMemberHistoryOrder struct { + Direction OrderDirection `json:"direction"` + Field *AudienceMemberHistoryOrderField `json:"field"` +} + +// DefaultAudienceMemberHistoryOrder is the default ordering of AudienceMemberHistory. +var DefaultAudienceMemberHistoryOrder = &AudienceMemberHistoryOrder{ + Direction: entgql.OrderDirectionAsc, + Field: &AudienceMemberHistoryOrderField{ + Value: func(_m *AudienceMemberHistory) (ent.Value, error) { + return _m.ID, nil + }, + column: audiencememberhistory.FieldID, + toTerm: audiencememberhistory.ByID, + toCursor: func(_m *AudienceMemberHistory) Cursor { + return Cursor{ID: _m.ID} + }, + }, +} + +// ToEdge converts AudienceMemberHistory into AudienceMemberHistoryEdge. +func (_m *AudienceMemberHistory) ToEdge(order *AudienceMemberHistoryOrder) *AudienceMemberHistoryEdge { + if order == nil { + order = DefaultAudienceMemberHistoryOrder + } + return &AudienceMemberHistoryEdge{ + Node: _m, + Cursor: order.Field.toCursor(_m), + } +} + // CampaignHistoryEdge is the edge representation of CampaignHistory. type CampaignHistoryEdge struct { Node *CampaignHistory `json:"node"` diff --git a/internal/ent/historygenerated/gql_where_input.go b/internal/ent/historygenerated/gql_where_input.go index 37506a5bac..9d999d8e2a 100644 --- a/internal/ent/historygenerated/gql_where_input.go +++ b/internal/ent/historygenerated/gql_where_input.go @@ -17,6 +17,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -5545,6 +5547,1448 @@ func (i *AssetHistoryWhereInput) P() (predicate.AssetHistory, error) { } } +// AudienceHistoryWhereInput represents a where input for filtering AudienceHistory queries. +type AudienceHistoryWhereInput struct { + Predicates []predicate.AudienceHistory `json:"-"` + Not *AudienceHistoryWhereInput `json:"not,omitempty"` + Or []*AudienceHistoryWhereInput `json:"or,omitempty"` + And []*AudienceHistoryWhereInput `json:"and,omitempty"` + + // "id" field predicates. + ID *string `json:"id,omitempty"` + IDNEQ *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeGT *time.Time `json:"historyTimeGT,omitempty"` + HistoryTimeGTE *time.Time `json:"historyTimeGTE,omitempty"` + HistoryTimeLT *time.Time `json:"historyTimeLT,omitempty"` + HistoryTimeLTE *time.Time `json:"historyTimeLTE,omitempty"` + + // "ref" field predicates. + Ref *string `json:"ref,omitempty"` + RefNEQ *string `json:"refNEQ,omitempty"` + RefIn []string `json:"refIn,omitempty"` + RefNotIn []string `json:"refNotIn,omitempty"` + RefContains *string `json:"refContains,omitempty"` + RefHasPrefix *string `json:"refHasPrefix,omitempty"` + RefHasSuffix *string `json:"refHasSuffix,omitempty"` + RefIsNil bool `json:"refIsNil,omitempty"` + RefNotNil bool `json:"refNotNil,omitempty"` + RefEqualFold *string `json:"refEqualFold,omitempty"` + RefContainsFold *string `json:"refContainsFold,omitempty"` + + // "operation" field predicates. + Operation *history.OpType `json:"operation,omitempty"` + OperationNEQ *history.OpType `json:"operationNEQ,omitempty"` + OperationIn []history.OpType `json:"operationIn,omitempty"` + OperationNotIn []history.OpType `json:"operationNotIn,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil bool `json:"createdAtNotNil,omitempty"` + + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil bool `json:"updatedAtNotNil,omitempty"` + + // "created_by" field predicates. + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNEQ *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + + // "updated_by" field predicates. + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + + // "updated_by_impersonator" field predicates. + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNEQ *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + + // "display_id" field predicates. + DisplayID *string `json:"displayID,omitempty"` + DisplayIDNEQ *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + + // "owner_id" field predicates. + OwnerID *string `json:"ownerID,omitempty"` + OwnerIDNEQ *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + + // "name" field predicates. + Name *string `json:"name,omitempty"` + NameNEQ *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameContains *string `json:"nameContains,omitempty"` + NameHasPrefix *string `json:"nameHasPrefix,omitempty"` + NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameEqualFold *string `json:"nameEqualFold,omitempty"` + NameContainsFold *string `json:"nameContainsFold,omitempty"` + + // "description" field predicates. + Description *string `json:"description,omitempty"` + DescriptionNEQ *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionIsNil bool `json:"descriptionIsNil,omitempty"` + DescriptionNotNil bool `json:"descriptionNotNil,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + + // "audience_type" field predicates. + AudienceType *enums.AudienceType `json:"audienceType,omitempty"` + AudienceTypeNEQ *enums.AudienceType `json:"audienceTypeNEQ,omitempty"` + AudienceTypeIn []enums.AudienceType `json:"audienceTypeIn,omitempty"` + AudienceTypeNotIn []enums.AudienceType `json:"audienceTypeNotIn,omitempty"` + + // "tags" JSON-string-array predicates. + TagsHas *string `json:"tagsHas,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *AudienceHistoryWhereInput) AddPredicates(predicates ...predicate.AudienceHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the AudienceHistoryWhereInput filter on the AudienceHistoryQuery builder. +func (i *AudienceHistoryWhereInput) Filter(q *AudienceHistoryQuery) (*AudienceHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyAudienceHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyAudienceHistoryWhereInput is returned in case the AudienceHistoryWhereInput is empty. +var ErrEmptyAudienceHistoryWhereInput = errors.New("historygenerated: empty predicate AudienceHistoryWhereInput") + +// P returns a predicate for filtering audiencehistories. +// An error is returned if the input is empty or invalid. +func (i *AudienceHistoryWhereInput) P() (predicate.AudienceHistory, error) { + var predicates []predicate.AudienceHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, audiencehistory.Not(p)) + } + switch n := len(i.Or); { + case n == 1: + p, err := i.Or[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + predicates = append(predicates, p) + case n > 1: + or := make([]predicate.AudienceHistory, 0, n) + for _, w := range i.Or { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + or = append(or, p) + } + predicates = append(predicates, audiencehistory.Or(or...)) + } + switch n := len(i.And); { + case n == 1: + p, err := i.And[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + predicates = append(predicates, p) + case n > 1: + and := make([]predicate.AudienceHistory, 0, n) + for _, w := range i.And { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + and = append(and, p) + } + predicates = append(predicates, audiencehistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, audiencehistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, audiencehistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, audiencehistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, audiencehistory.IDNotIn(i.IDNotIn...)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, audiencehistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, audiencehistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, audiencehistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, audiencehistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, audiencehistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, audiencehistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, audiencehistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, audiencehistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, audiencehistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, audiencehistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, audiencehistory.RefNotIn(i.RefNotIn...)) + } + if i.RefContains != nil { + predicates = append(predicates, audiencehistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, audiencehistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, audiencehistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, audiencehistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, audiencehistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, audiencehistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, audiencehistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, audiencehistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, audiencehistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, audiencehistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, audiencehistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, audiencehistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, audiencehistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, audiencehistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, audiencehistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, audiencehistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, audiencehistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, audiencehistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, audiencehistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, audiencehistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, audiencehistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, audiencehistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, audiencehistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, audiencehistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, audiencehistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, audiencehistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, audiencehistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, audiencehistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, audiencehistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, audiencehistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, audiencehistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, audiencehistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, audiencehistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, audiencehistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, audiencehistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, audiencehistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, audiencehistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, audiencehistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, audiencehistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, audiencehistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, audiencehistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, audiencehistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, audiencehistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, audiencehistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, audiencehistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, audiencehistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, audiencehistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.UpdatedByImpersonator != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorEQ(*i.UpdatedByImpersonator)) + } + if i.UpdatedByImpersonatorNEQ != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorNEQ(*i.UpdatedByImpersonatorNEQ)) + } + if len(i.UpdatedByImpersonatorIn) > 0 { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorIn(i.UpdatedByImpersonatorIn...)) + } + if len(i.UpdatedByImpersonatorNotIn) > 0 { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorNotIn(i.UpdatedByImpersonatorNotIn...)) + } + if i.UpdatedByImpersonatorContains != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorContains(*i.UpdatedByImpersonatorContains)) + } + if i.UpdatedByImpersonatorHasPrefix != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorHasPrefix(*i.UpdatedByImpersonatorHasPrefix)) + } + if i.UpdatedByImpersonatorHasSuffix != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorHasSuffix(*i.UpdatedByImpersonatorHasSuffix)) + } + if i.UpdatedByImpersonatorIsNil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorIsNil()) + } + if i.UpdatedByImpersonatorNotNil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorNotNil()) + } + if i.UpdatedByImpersonatorEqualFold != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorEqualFold(*i.UpdatedByImpersonatorEqualFold)) + } + if i.UpdatedByImpersonatorContainsFold != nil { + predicates = append(predicates, audiencehistory.UpdatedByImpersonatorContainsFold(*i.UpdatedByImpersonatorContainsFold)) + } + if i.DisplayID != nil { + predicates = append(predicates, audiencehistory.DisplayIDEQ(*i.DisplayID)) + } + if i.DisplayIDNEQ != nil { + predicates = append(predicates, audiencehistory.DisplayIDNEQ(*i.DisplayIDNEQ)) + } + if len(i.DisplayIDIn) > 0 { + predicates = append(predicates, audiencehistory.DisplayIDIn(i.DisplayIDIn...)) + } + if len(i.DisplayIDNotIn) > 0 { + predicates = append(predicates, audiencehistory.DisplayIDNotIn(i.DisplayIDNotIn...)) + } + if i.DisplayIDContains != nil { + predicates = append(predicates, audiencehistory.DisplayIDContains(*i.DisplayIDContains)) + } + if i.DisplayIDHasPrefix != nil { + predicates = append(predicates, audiencehistory.DisplayIDHasPrefix(*i.DisplayIDHasPrefix)) + } + if i.DisplayIDHasSuffix != nil { + predicates = append(predicates, audiencehistory.DisplayIDHasSuffix(*i.DisplayIDHasSuffix)) + } + if i.DisplayIDEqualFold != nil { + predicates = append(predicates, audiencehistory.DisplayIDEqualFold(*i.DisplayIDEqualFold)) + } + if i.DisplayIDContainsFold != nil { + predicates = append(predicates, audiencehistory.DisplayIDContainsFold(*i.DisplayIDContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, audiencehistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, audiencehistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, audiencehistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, audiencehistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, audiencehistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, audiencehistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, audiencehistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, audiencehistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, audiencehistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, audiencehistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, audiencehistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.Name != nil { + predicates = append(predicates, audiencehistory.NameEQ(*i.Name)) + } + if i.NameNEQ != nil { + predicates = append(predicates, audiencehistory.NameNEQ(*i.NameNEQ)) + } + if len(i.NameIn) > 0 { + predicates = append(predicates, audiencehistory.NameIn(i.NameIn...)) + } + if len(i.NameNotIn) > 0 { + predicates = append(predicates, audiencehistory.NameNotIn(i.NameNotIn...)) + } + if i.NameContains != nil { + predicates = append(predicates, audiencehistory.NameContains(*i.NameContains)) + } + if i.NameHasPrefix != nil { + predicates = append(predicates, audiencehistory.NameHasPrefix(*i.NameHasPrefix)) + } + if i.NameHasSuffix != nil { + predicates = append(predicates, audiencehistory.NameHasSuffix(*i.NameHasSuffix)) + } + if i.NameEqualFold != nil { + predicates = append(predicates, audiencehistory.NameEqualFold(*i.NameEqualFold)) + } + if i.NameContainsFold != nil { + predicates = append(predicates, audiencehistory.NameContainsFold(*i.NameContainsFold)) + } + if i.Description != nil { + predicates = append(predicates, audiencehistory.DescriptionEQ(*i.Description)) + } + if i.DescriptionNEQ != nil { + predicates = append(predicates, audiencehistory.DescriptionNEQ(*i.DescriptionNEQ)) + } + if len(i.DescriptionIn) > 0 { + predicates = append(predicates, audiencehistory.DescriptionIn(i.DescriptionIn...)) + } + if len(i.DescriptionNotIn) > 0 { + predicates = append(predicates, audiencehistory.DescriptionNotIn(i.DescriptionNotIn...)) + } + if i.DescriptionContains != nil { + predicates = append(predicates, audiencehistory.DescriptionContains(*i.DescriptionContains)) + } + if i.DescriptionHasPrefix != nil { + predicates = append(predicates, audiencehistory.DescriptionHasPrefix(*i.DescriptionHasPrefix)) + } + if i.DescriptionHasSuffix != nil { + predicates = append(predicates, audiencehistory.DescriptionHasSuffix(*i.DescriptionHasSuffix)) + } + if i.DescriptionIsNil { + predicates = append(predicates, audiencehistory.DescriptionIsNil()) + } + if i.DescriptionNotNil { + predicates = append(predicates, audiencehistory.DescriptionNotNil()) + } + if i.DescriptionEqualFold != nil { + predicates = append(predicates, audiencehistory.DescriptionEqualFold(*i.DescriptionEqualFold)) + } + if i.DescriptionContainsFold != nil { + predicates = append(predicates, audiencehistory.DescriptionContainsFold(*i.DescriptionContainsFold)) + } + if i.AudienceType != nil { + predicates = append(predicates, audiencehistory.AudienceTypeEQ(*i.AudienceType)) + } + if i.AudienceTypeNEQ != nil { + predicates = append(predicates, audiencehistory.AudienceTypeNEQ(*i.AudienceTypeNEQ)) + } + if len(i.AudienceTypeIn) > 0 { + predicates = append(predicates, audiencehistory.AudienceTypeIn(i.AudienceTypeIn...)) + } + if len(i.AudienceTypeNotIn) > 0 { + predicates = append(predicates, audiencehistory.AudienceTypeNotIn(i.AudienceTypeNotIn...)) + } + + if i.TagsHas != nil { + v := *i.TagsHas + predicates = append(predicates, func(s *sql.Selector) { + s.Where(sqljson.ValueContains(audiencehistory.FieldTags, v)) + }) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyAudienceHistoryWhereInput + case 1: + return predicates[0], nil + default: + return audiencehistory.And(predicates...), nil + } +} + +// AudienceMemberHistoryWhereInput represents a where input for filtering AudienceMemberHistory queries. +type AudienceMemberHistoryWhereInput struct { + Predicates []predicate.AudienceMemberHistory `json:"-"` + Not *AudienceMemberHistoryWhereInput `json:"not,omitempty"` + Or []*AudienceMemberHistoryWhereInput `json:"or,omitempty"` + And []*AudienceMemberHistoryWhereInput `json:"and,omitempty"` + + // "id" field predicates. + ID *string `json:"id,omitempty"` + IDNEQ *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + + // "history_time" field predicates. + HistoryTime *time.Time `json:"historyTime,omitempty"` + HistoryTimeGT *time.Time `json:"historyTimeGT,omitempty"` + HistoryTimeGTE *time.Time `json:"historyTimeGTE,omitempty"` + HistoryTimeLT *time.Time `json:"historyTimeLT,omitempty"` + HistoryTimeLTE *time.Time `json:"historyTimeLTE,omitempty"` + + // "ref" field predicates. + Ref *string `json:"ref,omitempty"` + RefNEQ *string `json:"refNEQ,omitempty"` + RefIn []string `json:"refIn,omitempty"` + RefNotIn []string `json:"refNotIn,omitempty"` + RefContains *string `json:"refContains,omitempty"` + RefHasPrefix *string `json:"refHasPrefix,omitempty"` + RefHasSuffix *string `json:"refHasSuffix,omitempty"` + RefIsNil bool `json:"refIsNil,omitempty"` + RefNotNil bool `json:"refNotNil,omitempty"` + RefEqualFold *string `json:"refEqualFold,omitempty"` + RefContainsFold *string `json:"refContainsFold,omitempty"` + + // "operation" field predicates. + Operation *history.OpType `json:"operation,omitempty"` + OperationNEQ *history.OpType `json:"operationNEQ,omitempty"` + OperationIn []history.OpType `json:"operationIn,omitempty"` + OperationNotIn []history.OpType `json:"operationNotIn,omitempty"` + + // "created_at" field predicates. + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGT *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGTE *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLT *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLTE *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil bool `json:"createdAtNotNil,omitempty"` + + // "updated_at" field predicates. + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGT *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGTE *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLT *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLTE *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil bool `json:"updatedAtNotNil,omitempty"` + + // "created_by" field predicates. + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNEQ *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + + // "updated_by" field predicates. + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNEQ *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + + // "updated_by_impersonator" field predicates. + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNEQ *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + + // "display_id" field predicates. + DisplayID *string `json:"displayID,omitempty"` + DisplayIDNEQ *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + + // "owner_id" field predicates. + OwnerID *string `json:"ownerID,omitempty"` + OwnerIDNEQ *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + + // "audience_id" field predicates. + AudienceID *string `json:"audienceID,omitempty"` + AudienceIDNEQ *string `json:"audienceIDNEQ,omitempty"` + AudienceIDIn []string `json:"audienceIDIn,omitempty"` + AudienceIDNotIn []string `json:"audienceIDNotIn,omitempty"` + AudienceIDContains *string `json:"audienceIDContains,omitempty"` + AudienceIDHasPrefix *string `json:"audienceIDHasPrefix,omitempty"` + AudienceIDHasSuffix *string `json:"audienceIDHasSuffix,omitempty"` + AudienceIDEqualFold *string `json:"audienceIDEqualFold,omitempty"` + AudienceIDContainsFold *string `json:"audienceIDContainsFold,omitempty"` + + // "contact_id" field predicates. + ContactID *string `json:"contactID,omitempty"` + ContactIDNEQ *string `json:"contactIDNEQ,omitempty"` + ContactIDIn []string `json:"contactIDIn,omitempty"` + ContactIDNotIn []string `json:"contactIDNotIn,omitempty"` + ContactIDContains *string `json:"contactIDContains,omitempty"` + ContactIDHasPrefix *string `json:"contactIDHasPrefix,omitempty"` + ContactIDHasSuffix *string `json:"contactIDHasSuffix,omitempty"` + ContactIDIsNil bool `json:"contactIDIsNil,omitempty"` + ContactIDNotNil bool `json:"contactIDNotNil,omitempty"` + ContactIDEqualFold *string `json:"contactIDEqualFold,omitempty"` + ContactIDContainsFold *string `json:"contactIDContainsFold,omitempty"` + + // "user_id" field predicates. + UserID *string `json:"userID,omitempty"` + UserIDNEQ *string `json:"userIDNEQ,omitempty"` + UserIDIn []string `json:"userIDIn,omitempty"` + UserIDNotIn []string `json:"userIDNotIn,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDIsNil bool `json:"userIDIsNil,omitempty"` + UserIDNotNil bool `json:"userIDNotNil,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + + // "group_id" field predicates. + GroupID *string `json:"groupID,omitempty"` + GroupIDNEQ *string `json:"groupIDNEQ,omitempty"` + GroupIDIn []string `json:"groupIDIn,omitempty"` + GroupIDNotIn []string `json:"groupIDNotIn,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDIsNil bool `json:"groupIDIsNil,omitempty"` + GroupIDNotNil bool `json:"groupIDNotNil,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,omitempty"` + + // "identity_holder_id" field predicates. + IdentityHolderID *string `json:"identityHolderID,omitempty"` + IdentityHolderIDNEQ *string `json:"identityHolderIDNEQ,omitempty"` + IdentityHolderIDIn []string `json:"identityHolderIDIn,omitempty"` + IdentityHolderIDNotIn []string `json:"identityHolderIDNotIn,omitempty"` + IdentityHolderIDContains *string `json:"identityHolderIDContains,omitempty"` + IdentityHolderIDHasPrefix *string `json:"identityHolderIDHasPrefix,omitempty"` + IdentityHolderIDHasSuffix *string `json:"identityHolderIDHasSuffix,omitempty"` + IdentityHolderIDIsNil bool `json:"identityHolderIDIsNil,omitempty"` + IdentityHolderIDNotNil bool `json:"identityHolderIDNotNil,omitempty"` + IdentityHolderIDEqualFold *string `json:"identityHolderIDEqualFold,omitempty"` + IdentityHolderIDContainsFold *string `json:"identityHolderIDContainsFold,omitempty"` + + // "subscriber_id" field predicates. + SubscriberID *string `json:"subscriberID,omitempty"` + SubscriberIDNEQ *string `json:"subscriberIDNEQ,omitempty"` + SubscriberIDIn []string `json:"subscriberIDIn,omitempty"` + SubscriberIDNotIn []string `json:"subscriberIDNotIn,omitempty"` + SubscriberIDContains *string `json:"subscriberIDContains,omitempty"` + SubscriberIDHasPrefix *string `json:"subscriberIDHasPrefix,omitempty"` + SubscriberIDHasSuffix *string `json:"subscriberIDHasSuffix,omitempty"` + SubscriberIDIsNil bool `json:"subscriberIDIsNil,omitempty"` + SubscriberIDNotNil bool `json:"subscriberIDNotNil,omitempty"` + SubscriberIDEqualFold *string `json:"subscriberIDEqualFold,omitempty"` + SubscriberIDContainsFold *string `json:"subscriberIDContainsFold,omitempty"` + + // "email" field predicates. + Email *string `json:"email,omitempty"` + EmailNEQ *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + + // "full_name" field predicates. + FullName *string `json:"fullName,omitempty"` + FullNameNEQ *string `json:"fullNameNEQ,omitempty"` + FullNameIn []string `json:"fullNameIn,omitempty"` + FullNameNotIn []string `json:"fullNameNotIn,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameIsNil bool `json:"fullNameIsNil,omitempty"` + FullNameNotNil bool `json:"fullNameNotNil,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + + // "tags" JSON-string-array predicates. + TagsHas *string `json:"tagsHas,omitempty"` +} + +// AddPredicates adds custom predicates to the where input to be used during the filtering phase. +func (i *AudienceMemberHistoryWhereInput) AddPredicates(predicates ...predicate.AudienceMemberHistory) { + i.Predicates = append(i.Predicates, predicates...) +} + +// Filter applies the AudienceMemberHistoryWhereInput filter on the AudienceMemberHistoryQuery builder. +func (i *AudienceMemberHistoryWhereInput) Filter(q *AudienceMemberHistoryQuery) (*AudienceMemberHistoryQuery, error) { + if i == nil { + return q, nil + } + p, err := i.P() + if err != nil { + if err == ErrEmptyAudienceMemberHistoryWhereInput { + return q, nil + } + return nil, err + } + return q.Where(p), nil +} + +// ErrEmptyAudienceMemberHistoryWhereInput is returned in case the AudienceMemberHistoryWhereInput is empty. +var ErrEmptyAudienceMemberHistoryWhereInput = errors.New("historygenerated: empty predicate AudienceMemberHistoryWhereInput") + +// P returns a predicate for filtering audiencememberhistories. +// An error is returned if the input is empty or invalid. +func (i *AudienceMemberHistoryWhereInput) P() (predicate.AudienceMemberHistory, error) { + var predicates []predicate.AudienceMemberHistory + if i.Not != nil { + p, err := i.Not.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'not'", err) + } + predicates = append(predicates, audiencememberhistory.Not(p)) + } + switch n := len(i.Or); { + case n == 1: + p, err := i.Or[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + predicates = append(predicates, p) + case n > 1: + or := make([]predicate.AudienceMemberHistory, 0, n) + for _, w := range i.Or { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'or'", err) + } + or = append(or, p) + } + predicates = append(predicates, audiencememberhistory.Or(or...)) + } + switch n := len(i.And); { + case n == 1: + p, err := i.And[0].P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + predicates = append(predicates, p) + case n > 1: + and := make([]predicate.AudienceMemberHistory, 0, n) + for _, w := range i.And { + p, err := w.P() + if err != nil { + return nil, fmt.Errorf("%w: field 'and'", err) + } + and = append(and, p) + } + predicates = append(predicates, audiencememberhistory.And(and...)) + } + predicates = append(predicates, i.Predicates...) + if i.ID != nil { + predicates = append(predicates, audiencememberhistory.IDEQ(*i.ID)) + } + if i.IDNEQ != nil { + predicates = append(predicates, audiencememberhistory.IDNEQ(*i.IDNEQ)) + } + if len(i.IDIn) > 0 { + predicates = append(predicates, audiencememberhistory.IDIn(i.IDIn...)) + } + if len(i.IDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.IDNotIn(i.IDNotIn...)) + } + if i.IDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.IDEqualFold(*i.IDEqualFold)) + } + if i.IDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.IDContainsFold(*i.IDContainsFold)) + } + if i.HistoryTime != nil { + predicates = append(predicates, audiencememberhistory.HistoryTimeEQ(*i.HistoryTime)) + } + if i.HistoryTimeGT != nil { + predicates = append(predicates, audiencememberhistory.HistoryTimeGT(*i.HistoryTimeGT)) + } + if i.HistoryTimeGTE != nil { + predicates = append(predicates, audiencememberhistory.HistoryTimeGTE(*i.HistoryTimeGTE)) + } + if i.HistoryTimeLT != nil { + predicates = append(predicates, audiencememberhistory.HistoryTimeLT(*i.HistoryTimeLT)) + } + if i.HistoryTimeLTE != nil { + predicates = append(predicates, audiencememberhistory.HistoryTimeLTE(*i.HistoryTimeLTE)) + } + if i.Ref != nil { + predicates = append(predicates, audiencememberhistory.RefEQ(*i.Ref)) + } + if i.RefNEQ != nil { + predicates = append(predicates, audiencememberhistory.RefNEQ(*i.RefNEQ)) + } + if len(i.RefIn) > 0 { + predicates = append(predicates, audiencememberhistory.RefIn(i.RefIn...)) + } + if len(i.RefNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.RefNotIn(i.RefNotIn...)) + } + if i.RefContains != nil { + predicates = append(predicates, audiencememberhistory.RefContains(*i.RefContains)) + } + if i.RefHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.RefHasPrefix(*i.RefHasPrefix)) + } + if i.RefHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.RefHasSuffix(*i.RefHasSuffix)) + } + if i.RefIsNil { + predicates = append(predicates, audiencememberhistory.RefIsNil()) + } + if i.RefNotNil { + predicates = append(predicates, audiencememberhistory.RefNotNil()) + } + if i.RefEqualFold != nil { + predicates = append(predicates, audiencememberhistory.RefEqualFold(*i.RefEqualFold)) + } + if i.RefContainsFold != nil { + predicates = append(predicates, audiencememberhistory.RefContainsFold(*i.RefContainsFold)) + } + if i.Operation != nil { + predicates = append(predicates, audiencememberhistory.OperationEQ(*i.Operation)) + } + if i.OperationNEQ != nil { + predicates = append(predicates, audiencememberhistory.OperationNEQ(*i.OperationNEQ)) + } + if len(i.OperationIn) > 0 { + predicates = append(predicates, audiencememberhistory.OperationIn(i.OperationIn...)) + } + if len(i.OperationNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.OperationNotIn(i.OperationNotIn...)) + } + if i.CreatedAt != nil { + predicates = append(predicates, audiencememberhistory.CreatedAtEQ(*i.CreatedAt)) + } + if i.CreatedAtGT != nil { + predicates = append(predicates, audiencememberhistory.CreatedAtGT(*i.CreatedAtGT)) + } + if i.CreatedAtGTE != nil { + predicates = append(predicates, audiencememberhistory.CreatedAtGTE(*i.CreatedAtGTE)) + } + if i.CreatedAtLT != nil { + predicates = append(predicates, audiencememberhistory.CreatedAtLT(*i.CreatedAtLT)) + } + if i.CreatedAtLTE != nil { + predicates = append(predicates, audiencememberhistory.CreatedAtLTE(*i.CreatedAtLTE)) + } + if i.CreatedAtIsNil { + predicates = append(predicates, audiencememberhistory.CreatedAtIsNil()) + } + if i.CreatedAtNotNil { + predicates = append(predicates, audiencememberhistory.CreatedAtNotNil()) + } + if i.UpdatedAt != nil { + predicates = append(predicates, audiencememberhistory.UpdatedAtEQ(*i.UpdatedAt)) + } + if i.UpdatedAtGT != nil { + predicates = append(predicates, audiencememberhistory.UpdatedAtGT(*i.UpdatedAtGT)) + } + if i.UpdatedAtGTE != nil { + predicates = append(predicates, audiencememberhistory.UpdatedAtGTE(*i.UpdatedAtGTE)) + } + if i.UpdatedAtLT != nil { + predicates = append(predicates, audiencememberhistory.UpdatedAtLT(*i.UpdatedAtLT)) + } + if i.UpdatedAtLTE != nil { + predicates = append(predicates, audiencememberhistory.UpdatedAtLTE(*i.UpdatedAtLTE)) + } + if i.UpdatedAtIsNil { + predicates = append(predicates, audiencememberhistory.UpdatedAtIsNil()) + } + if i.UpdatedAtNotNil { + predicates = append(predicates, audiencememberhistory.UpdatedAtNotNil()) + } + if i.CreatedBy != nil { + predicates = append(predicates, audiencememberhistory.CreatedByEQ(*i.CreatedBy)) + } + if i.CreatedByNEQ != nil { + predicates = append(predicates, audiencememberhistory.CreatedByNEQ(*i.CreatedByNEQ)) + } + if len(i.CreatedByIn) > 0 { + predicates = append(predicates, audiencememberhistory.CreatedByIn(i.CreatedByIn...)) + } + if len(i.CreatedByNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.CreatedByNotIn(i.CreatedByNotIn...)) + } + if i.CreatedByContains != nil { + predicates = append(predicates, audiencememberhistory.CreatedByContains(*i.CreatedByContains)) + } + if i.CreatedByHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.CreatedByHasPrefix(*i.CreatedByHasPrefix)) + } + if i.CreatedByHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.CreatedByHasSuffix(*i.CreatedByHasSuffix)) + } + if i.CreatedByIsNil { + predicates = append(predicates, audiencememberhistory.CreatedByIsNil()) + } + if i.CreatedByNotNil { + predicates = append(predicates, audiencememberhistory.CreatedByNotNil()) + } + if i.CreatedByEqualFold != nil { + predicates = append(predicates, audiencememberhistory.CreatedByEqualFold(*i.CreatedByEqualFold)) + } + if i.CreatedByContainsFold != nil { + predicates = append(predicates, audiencememberhistory.CreatedByContainsFold(*i.CreatedByContainsFold)) + } + if i.UpdatedBy != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByEQ(*i.UpdatedBy)) + } + if i.UpdatedByNEQ != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByNEQ(*i.UpdatedByNEQ)) + } + if len(i.UpdatedByIn) > 0 { + predicates = append(predicates, audiencememberhistory.UpdatedByIn(i.UpdatedByIn...)) + } + if len(i.UpdatedByNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.UpdatedByNotIn(i.UpdatedByNotIn...)) + } + if i.UpdatedByContains != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByContains(*i.UpdatedByContains)) + } + if i.UpdatedByHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByHasPrefix(*i.UpdatedByHasPrefix)) + } + if i.UpdatedByHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByHasSuffix(*i.UpdatedByHasSuffix)) + } + if i.UpdatedByIsNil { + predicates = append(predicates, audiencememberhistory.UpdatedByIsNil()) + } + if i.UpdatedByNotNil { + predicates = append(predicates, audiencememberhistory.UpdatedByNotNil()) + } + if i.UpdatedByEqualFold != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByEqualFold(*i.UpdatedByEqualFold)) + } + if i.UpdatedByContainsFold != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByContainsFold(*i.UpdatedByContainsFold)) + } + if i.UpdatedByImpersonator != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorEQ(*i.UpdatedByImpersonator)) + } + if i.UpdatedByImpersonatorNEQ != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorNEQ(*i.UpdatedByImpersonatorNEQ)) + } + if len(i.UpdatedByImpersonatorIn) > 0 { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorIn(i.UpdatedByImpersonatorIn...)) + } + if len(i.UpdatedByImpersonatorNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorNotIn(i.UpdatedByImpersonatorNotIn...)) + } + if i.UpdatedByImpersonatorContains != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorContains(*i.UpdatedByImpersonatorContains)) + } + if i.UpdatedByImpersonatorHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorHasPrefix(*i.UpdatedByImpersonatorHasPrefix)) + } + if i.UpdatedByImpersonatorHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorHasSuffix(*i.UpdatedByImpersonatorHasSuffix)) + } + if i.UpdatedByImpersonatorIsNil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorIsNil()) + } + if i.UpdatedByImpersonatorNotNil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorNotNil()) + } + if i.UpdatedByImpersonatorEqualFold != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorEqualFold(*i.UpdatedByImpersonatorEqualFold)) + } + if i.UpdatedByImpersonatorContainsFold != nil { + predicates = append(predicates, audiencememberhistory.UpdatedByImpersonatorContainsFold(*i.UpdatedByImpersonatorContainsFold)) + } + if i.DisplayID != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDEQ(*i.DisplayID)) + } + if i.DisplayIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDNEQ(*i.DisplayIDNEQ)) + } + if len(i.DisplayIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.DisplayIDIn(i.DisplayIDIn...)) + } + if len(i.DisplayIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.DisplayIDNotIn(i.DisplayIDNotIn...)) + } + if i.DisplayIDContains != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDContains(*i.DisplayIDContains)) + } + if i.DisplayIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDHasPrefix(*i.DisplayIDHasPrefix)) + } + if i.DisplayIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDHasSuffix(*i.DisplayIDHasSuffix)) + } + if i.DisplayIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDEqualFold(*i.DisplayIDEqualFold)) + } + if i.DisplayIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.DisplayIDContainsFold(*i.DisplayIDContainsFold)) + } + if i.OwnerID != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDEQ(*i.OwnerID)) + } + if i.OwnerIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDNEQ(*i.OwnerIDNEQ)) + } + if len(i.OwnerIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.OwnerIDIn(i.OwnerIDIn...)) + } + if len(i.OwnerIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.OwnerIDNotIn(i.OwnerIDNotIn...)) + } + if i.OwnerIDContains != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDContains(*i.OwnerIDContains)) + } + if i.OwnerIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDHasPrefix(*i.OwnerIDHasPrefix)) + } + if i.OwnerIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDHasSuffix(*i.OwnerIDHasSuffix)) + } + if i.OwnerIDIsNil { + predicates = append(predicates, audiencememberhistory.OwnerIDIsNil()) + } + if i.OwnerIDNotNil { + predicates = append(predicates, audiencememberhistory.OwnerIDNotNil()) + } + if i.OwnerIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDEqualFold(*i.OwnerIDEqualFold)) + } + if i.OwnerIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.OwnerIDContainsFold(*i.OwnerIDContainsFold)) + } + if i.AudienceID != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDEQ(*i.AudienceID)) + } + if i.AudienceIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDNEQ(*i.AudienceIDNEQ)) + } + if len(i.AudienceIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.AudienceIDIn(i.AudienceIDIn...)) + } + if len(i.AudienceIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.AudienceIDNotIn(i.AudienceIDNotIn...)) + } + if i.AudienceIDContains != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDContains(*i.AudienceIDContains)) + } + if i.AudienceIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDHasPrefix(*i.AudienceIDHasPrefix)) + } + if i.AudienceIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDHasSuffix(*i.AudienceIDHasSuffix)) + } + if i.AudienceIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDEqualFold(*i.AudienceIDEqualFold)) + } + if i.AudienceIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.AudienceIDContainsFold(*i.AudienceIDContainsFold)) + } + if i.ContactID != nil { + predicates = append(predicates, audiencememberhistory.ContactIDEQ(*i.ContactID)) + } + if i.ContactIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.ContactIDNEQ(*i.ContactIDNEQ)) + } + if len(i.ContactIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.ContactIDIn(i.ContactIDIn...)) + } + if len(i.ContactIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.ContactIDNotIn(i.ContactIDNotIn...)) + } + if i.ContactIDContains != nil { + predicates = append(predicates, audiencememberhistory.ContactIDContains(*i.ContactIDContains)) + } + if i.ContactIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.ContactIDHasPrefix(*i.ContactIDHasPrefix)) + } + if i.ContactIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.ContactIDHasSuffix(*i.ContactIDHasSuffix)) + } + if i.ContactIDIsNil { + predicates = append(predicates, audiencememberhistory.ContactIDIsNil()) + } + if i.ContactIDNotNil { + predicates = append(predicates, audiencememberhistory.ContactIDNotNil()) + } + if i.ContactIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.ContactIDEqualFold(*i.ContactIDEqualFold)) + } + if i.ContactIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.ContactIDContainsFold(*i.ContactIDContainsFold)) + } + if i.UserID != nil { + predicates = append(predicates, audiencememberhistory.UserIDEQ(*i.UserID)) + } + if i.UserIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.UserIDNEQ(*i.UserIDNEQ)) + } + if len(i.UserIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.UserIDIn(i.UserIDIn...)) + } + if len(i.UserIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.UserIDNotIn(i.UserIDNotIn...)) + } + if i.UserIDContains != nil { + predicates = append(predicates, audiencememberhistory.UserIDContains(*i.UserIDContains)) + } + if i.UserIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.UserIDHasPrefix(*i.UserIDHasPrefix)) + } + if i.UserIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.UserIDHasSuffix(*i.UserIDHasSuffix)) + } + if i.UserIDIsNil { + predicates = append(predicates, audiencememberhistory.UserIDIsNil()) + } + if i.UserIDNotNil { + predicates = append(predicates, audiencememberhistory.UserIDNotNil()) + } + if i.UserIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.UserIDEqualFold(*i.UserIDEqualFold)) + } + if i.UserIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.UserIDContainsFold(*i.UserIDContainsFold)) + } + if i.GroupID != nil { + predicates = append(predicates, audiencememberhistory.GroupIDEQ(*i.GroupID)) + } + if i.GroupIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.GroupIDNEQ(*i.GroupIDNEQ)) + } + if len(i.GroupIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.GroupIDIn(i.GroupIDIn...)) + } + if len(i.GroupIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.GroupIDNotIn(i.GroupIDNotIn...)) + } + if i.GroupIDContains != nil { + predicates = append(predicates, audiencememberhistory.GroupIDContains(*i.GroupIDContains)) + } + if i.GroupIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.GroupIDHasPrefix(*i.GroupIDHasPrefix)) + } + if i.GroupIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.GroupIDHasSuffix(*i.GroupIDHasSuffix)) + } + if i.GroupIDIsNil { + predicates = append(predicates, audiencememberhistory.GroupIDIsNil()) + } + if i.GroupIDNotNil { + predicates = append(predicates, audiencememberhistory.GroupIDNotNil()) + } + if i.GroupIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.GroupIDEqualFold(*i.GroupIDEqualFold)) + } + if i.GroupIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.GroupIDContainsFold(*i.GroupIDContainsFold)) + } + if i.IdentityHolderID != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDEQ(*i.IdentityHolderID)) + } + if i.IdentityHolderIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDNEQ(*i.IdentityHolderIDNEQ)) + } + if len(i.IdentityHolderIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDIn(i.IdentityHolderIDIn...)) + } + if len(i.IdentityHolderIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDNotIn(i.IdentityHolderIDNotIn...)) + } + if i.IdentityHolderIDContains != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDContains(*i.IdentityHolderIDContains)) + } + if i.IdentityHolderIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDHasPrefix(*i.IdentityHolderIDHasPrefix)) + } + if i.IdentityHolderIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDHasSuffix(*i.IdentityHolderIDHasSuffix)) + } + if i.IdentityHolderIDIsNil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDIsNil()) + } + if i.IdentityHolderIDNotNil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDNotNil()) + } + if i.IdentityHolderIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDEqualFold(*i.IdentityHolderIDEqualFold)) + } + if i.IdentityHolderIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.IdentityHolderIDContainsFold(*i.IdentityHolderIDContainsFold)) + } + if i.SubscriberID != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDEQ(*i.SubscriberID)) + } + if i.SubscriberIDNEQ != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDNEQ(*i.SubscriberIDNEQ)) + } + if len(i.SubscriberIDIn) > 0 { + predicates = append(predicates, audiencememberhistory.SubscriberIDIn(i.SubscriberIDIn...)) + } + if len(i.SubscriberIDNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.SubscriberIDNotIn(i.SubscriberIDNotIn...)) + } + if i.SubscriberIDContains != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDContains(*i.SubscriberIDContains)) + } + if i.SubscriberIDHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDHasPrefix(*i.SubscriberIDHasPrefix)) + } + if i.SubscriberIDHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDHasSuffix(*i.SubscriberIDHasSuffix)) + } + if i.SubscriberIDIsNil { + predicates = append(predicates, audiencememberhistory.SubscriberIDIsNil()) + } + if i.SubscriberIDNotNil { + predicates = append(predicates, audiencememberhistory.SubscriberIDNotNil()) + } + if i.SubscriberIDEqualFold != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDEqualFold(*i.SubscriberIDEqualFold)) + } + if i.SubscriberIDContainsFold != nil { + predicates = append(predicates, audiencememberhistory.SubscriberIDContainsFold(*i.SubscriberIDContainsFold)) + } + if i.Email != nil { + predicates = append(predicates, audiencememberhistory.EmailEQ(*i.Email)) + } + if i.EmailNEQ != nil { + predicates = append(predicates, audiencememberhistory.EmailNEQ(*i.EmailNEQ)) + } + if len(i.EmailIn) > 0 { + predicates = append(predicates, audiencememberhistory.EmailIn(i.EmailIn...)) + } + if len(i.EmailNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.EmailNotIn(i.EmailNotIn...)) + } + if i.EmailContains != nil { + predicates = append(predicates, audiencememberhistory.EmailContains(*i.EmailContains)) + } + if i.EmailHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.EmailHasPrefix(*i.EmailHasPrefix)) + } + if i.EmailHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.EmailHasSuffix(*i.EmailHasSuffix)) + } + if i.EmailEqualFold != nil { + predicates = append(predicates, audiencememberhistory.EmailEqualFold(*i.EmailEqualFold)) + } + if i.EmailContainsFold != nil { + predicates = append(predicates, audiencememberhistory.EmailContainsFold(*i.EmailContainsFold)) + } + if i.FullName != nil { + predicates = append(predicates, audiencememberhistory.FullNameEQ(*i.FullName)) + } + if i.FullNameNEQ != nil { + predicates = append(predicates, audiencememberhistory.FullNameNEQ(*i.FullNameNEQ)) + } + if len(i.FullNameIn) > 0 { + predicates = append(predicates, audiencememberhistory.FullNameIn(i.FullNameIn...)) + } + if len(i.FullNameNotIn) > 0 { + predicates = append(predicates, audiencememberhistory.FullNameNotIn(i.FullNameNotIn...)) + } + if i.FullNameContains != nil { + predicates = append(predicates, audiencememberhistory.FullNameContains(*i.FullNameContains)) + } + if i.FullNameHasPrefix != nil { + predicates = append(predicates, audiencememberhistory.FullNameHasPrefix(*i.FullNameHasPrefix)) + } + if i.FullNameHasSuffix != nil { + predicates = append(predicates, audiencememberhistory.FullNameHasSuffix(*i.FullNameHasSuffix)) + } + if i.FullNameIsNil { + predicates = append(predicates, audiencememberhistory.FullNameIsNil()) + } + if i.FullNameNotNil { + predicates = append(predicates, audiencememberhistory.FullNameNotNil()) + } + if i.FullNameEqualFold != nil { + predicates = append(predicates, audiencememberhistory.FullNameEqualFold(*i.FullNameEqualFold)) + } + if i.FullNameContainsFold != nil { + predicates = append(predicates, audiencememberhistory.FullNameContainsFold(*i.FullNameContainsFold)) + } + + if i.TagsHas != nil { + v := *i.TagsHas + predicates = append(predicates, func(s *sql.Selector) { + s.Where(sqljson.ValueContains(audiencememberhistory.FieldTags, v)) + }) + } + + switch len(predicates) { + case 0: + return nil, ErrEmptyAudienceMemberHistoryWhereInput + case 1: + return predicates[0], nil + default: + return audiencememberhistory.And(predicates...), nil + } +} + // CampaignHistoryWhereInput represents a where input for filtering CampaignHistory queries. type CampaignHistoryWhereInput struct { Predicates []predicate.CampaignHistory `json:"-"` diff --git a/internal/ent/historygenerated/hook/hook.go b/internal/ent/historygenerated/hook/hook.go index ffa1475fe5..b3349e6b8f 100644 --- a/internal/ent/historygenerated/hook/hook.go +++ b/internal/ent/historygenerated/hook/hook.go @@ -59,6 +59,30 @@ func (f AssetHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutatio return nil, fmt.Errorf("unexpected mutation type %T. expect *historygenerated.AssetHistoryMutation", m) } +// The AudienceHistoryFunc type is an adapter to allow the use of ordinary +// function as AudienceHistory mutator. +type AudienceHistoryFunc func(context.Context, *historygenerated.AudienceHistoryMutation) (historygenerated.Value, error) + +// Mutate calls f(ctx, m). +func (f AudienceHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error) { + if mv, ok := m.(*historygenerated.AudienceHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *historygenerated.AudienceHistoryMutation", m) +} + +// The AudienceMemberHistoryFunc type is an adapter to allow the use of ordinary +// function as AudienceMemberHistory mutator. +type AudienceMemberHistoryFunc func(context.Context, *historygenerated.AudienceMemberHistoryMutation) (historygenerated.Value, error) + +// Mutate calls f(ctx, m). +func (f AudienceMemberHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error) { + if mv, ok := m.(*historygenerated.AudienceMemberHistoryMutation); ok { + return f(ctx, mv) + } + return nil, fmt.Errorf("unexpected mutation type %T. expect *historygenerated.AudienceMemberHistoryMutation", m) +} + // The CampaignHistoryFunc type is an adapter to allow the use of ordinary // function as CampaignHistory mutator. type CampaignHistoryFunc func(context.Context, *historygenerated.CampaignHistoryMutation) (historygenerated.Value, error) diff --git a/internal/ent/historygenerated/intercept/intercept.go b/internal/ent/historygenerated/intercept/intercept.go index 3a273df4b9..df543b9be2 100644 --- a/internal/ent/historygenerated/intercept/intercept.go +++ b/internal/ent/historygenerated/intercept/intercept.go @@ -14,6 +14,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -243,6 +245,60 @@ func (f TraverseAssetHistory) Traverse(ctx context.Context, q historygenerated.Q return fmt.Errorf("unexpected query type %T. expect *historygenerated.AssetHistoryQuery", q) } +// The AudienceHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type AudienceHistoryFunc func(context.Context, *historygenerated.AudienceHistoryQuery) (historygenerated.Value, error) + +// Query calls f(ctx, q). +func (f AudienceHistoryFunc) Query(ctx context.Context, q historygenerated.Query) (historygenerated.Value, error) { + if q, ok := q.(*historygenerated.AudienceHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *historygenerated.AudienceHistoryQuery", q) +} + +// The TraverseAudienceHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseAudienceHistory func(context.Context, *historygenerated.AudienceHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseAudienceHistory) Intercept(next historygenerated.Querier) historygenerated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseAudienceHistory) Traverse(ctx context.Context, q historygenerated.Query) error { + if q, ok := q.(*historygenerated.AudienceHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *historygenerated.AudienceHistoryQuery", q) +} + +// The AudienceMemberHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. +type AudienceMemberHistoryFunc func(context.Context, *historygenerated.AudienceMemberHistoryQuery) (historygenerated.Value, error) + +// Query calls f(ctx, q). +func (f AudienceMemberHistoryFunc) Query(ctx context.Context, q historygenerated.Query) (historygenerated.Value, error) { + if q, ok := q.(*historygenerated.AudienceMemberHistoryQuery); ok { + return f(ctx, q) + } + return nil, fmt.Errorf("unexpected query type %T. expect *historygenerated.AudienceMemberHistoryQuery", q) +} + +// The TraverseAudienceMemberHistory type is an adapter to allow the use of ordinary function as Traverser. +type TraverseAudienceMemberHistory func(context.Context, *historygenerated.AudienceMemberHistoryQuery) error + +// Intercept is a dummy implementation of Intercept that returns the next Querier in the pipeline. +func (f TraverseAudienceMemberHistory) Intercept(next historygenerated.Querier) historygenerated.Querier { + return next +} + +// Traverse calls f(ctx, q). +func (f TraverseAudienceMemberHistory) Traverse(ctx context.Context, q historygenerated.Query) error { + if q, ok := q.(*historygenerated.AudienceMemberHistoryQuery); ok { + return f(ctx, q) + } + return fmt.Errorf("unexpected query type %T. expect *historygenerated.AudienceMemberHistoryQuery", q) +} + // The CampaignHistoryFunc type is an adapter to allow the use of ordinary function as a Querier. type CampaignHistoryFunc func(context.Context, *historygenerated.CampaignHistoryQuery) (historygenerated.Value, error) @@ -1928,6 +1984,10 @@ func NewQuery(q historygenerated.Query) (Query, error) { return &query[*historygenerated.AssessmentResponseHistoryQuery, predicate.AssessmentResponseHistory, assessmentresponsehistory.OrderOption]{typ: historygenerated.TypeAssessmentResponseHistory, tq: q}, nil case *historygenerated.AssetHistoryQuery: return &query[*historygenerated.AssetHistoryQuery, predicate.AssetHistory, assethistory.OrderOption]{typ: historygenerated.TypeAssetHistory, tq: q}, nil + case *historygenerated.AudienceHistoryQuery: + return &query[*historygenerated.AudienceHistoryQuery, predicate.AudienceHistory, audiencehistory.OrderOption]{typ: historygenerated.TypeAudienceHistory, tq: q}, nil + case *historygenerated.AudienceMemberHistoryQuery: + return &query[*historygenerated.AudienceMemberHistoryQuery, predicate.AudienceMemberHistory, audiencememberhistory.OrderOption]{typ: historygenerated.TypeAudienceMemberHistory, tq: q}, nil case *historygenerated.CampaignHistoryQuery: return &query[*historygenerated.CampaignHistoryQuery, predicate.CampaignHistory, campaignhistory.OrderOption]{typ: historygenerated.TypeCampaignHistory, tq: q}, nil case *historygenerated.CampaignTargetHistoryQuery: diff --git a/internal/ent/historygenerated/migrate/schema.go b/internal/ent/historygenerated/migrate/schema.go index 7d5f2cf5fb..c2767ab4d8 100644 --- a/internal/ent/historygenerated/migrate/schema.go +++ b/internal/ent/historygenerated/migrate/schema.go @@ -239,6 +239,80 @@ var ( }, }, } + // AudienceHistoryColumns holds the columns for the "audience_history" table. + AudienceHistoryColumns = []*schema.Column{ + {Name: "id", Type: field.TypeString}, + {Name: "history_time", Type: field.TypeTime}, + {Name: "ref", Type: field.TypeString, Nullable: true}, + {Name: "operation", Type: field.TypeEnum, Enums: []string{"INSERT", "UPDATE", "DELETE"}}, + {Name: "created_at", Type: field.TypeTime, Nullable: true}, + {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: "updated_by_impersonator", Type: field.TypeString, Nullable: true}, + {Name: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "display_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "owner_id", Type: field.TypeString, Nullable: true}, + {Name: "name", Type: field.TypeString}, + {Name: "description", Type: field.TypeString, Nullable: true}, + {Name: "audience_type", Type: field.TypeEnum, Enums: []string{"MANUAL", "DYNAMIC"}, Default: "MANUAL"}, + {Name: "filters", Type: field.TypeJSON, Nullable: true}, + {Name: "metadata", Type: field.TypeJSON, Nullable: true}, + } + // AudienceHistoryTable holds the schema information for the "audience_history" table. + AudienceHistoryTable = &schema.Table{ + Name: "audience_history", + Columns: AudienceHistoryColumns, + PrimaryKey: []*schema.Column{AudienceHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "audiencehistory_history_time", + Unique: false, + Columns: []*schema.Column{AudienceHistoryColumns[1]}, + }, + }, + } + // AudienceMemberHistoryColumns holds the columns for the "audience_member_history" table. + AudienceMemberHistoryColumns = []*schema.Column{ + {Name: "id", Type: field.TypeString}, + {Name: "history_time", Type: field.TypeTime}, + {Name: "ref", Type: field.TypeString, Nullable: true}, + {Name: "operation", Type: field.TypeEnum, Enums: []string{"INSERT", "UPDATE", "DELETE"}}, + {Name: "created_at", Type: field.TypeTime, Nullable: true}, + {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: "updated_by_impersonator", Type: field.TypeString, Nullable: true}, + {Name: "deleted_at", Type: field.TypeTime, Nullable: true}, + {Name: "deleted_by", Type: field.TypeString, Nullable: true}, + {Name: "display_id", Type: field.TypeString}, + {Name: "tags", Type: field.TypeJSON, Nullable: true}, + {Name: "owner_id", Type: field.TypeString, Nullable: true}, + {Name: "audience_id", Type: field.TypeString}, + {Name: "contact_id", Type: field.TypeString, Nullable: true}, + {Name: "user_id", Type: field.TypeString, Nullable: true}, + {Name: "group_id", Type: field.TypeString, Nullable: true}, + {Name: "identity_holder_id", Type: field.TypeString, Nullable: true}, + {Name: "subscriber_id", Type: field.TypeString, Nullable: true}, + {Name: "email", Type: field.TypeString}, + {Name: "full_name", Type: field.TypeString, Nullable: true}, + {Name: "metadata", Type: field.TypeJSON, Nullable: true}, + } + // AudienceMemberHistoryTable holds the schema information for the "audience_member_history" table. + AudienceMemberHistoryTable = &schema.Table{ + Name: "audience_member_history", + Columns: AudienceMemberHistoryColumns, + PrimaryKey: []*schema.Column{AudienceMemberHistoryColumns[0]}, + Indexes: []*schema.Index{ + { + Name: "audiencememberhistory_history_time", + Unique: false, + Columns: []*schema.Column{AudienceMemberHistoryColumns[1]}, + }, + }, + } // CampaignHistoryColumns holds the columns for the "campaign_history" table. CampaignHistoryColumns = []*schema.Column{ {Name: "id", Type: field.TypeString}, @@ -3105,6 +3179,8 @@ var ( AssessmentHistoryTable, AssessmentResponseHistoryTable, AssetHistoryTable, + AudienceHistoryTable, + AudienceMemberHistoryTable, CampaignHistoryTable, CampaignTargetHistoryTable, ContactHistoryTable, @@ -3183,6 +3259,12 @@ func init() { AssetHistoryTable.Annotation = &entsql.Annotation{ Table: "asset_history", } + AudienceHistoryTable.Annotation = &entsql.Annotation{ + Table: "audience_history", + } + AudienceMemberHistoryTable.Annotation = &entsql.Annotation{ + Table: "audience_member_history", + } CampaignHistoryTable.Annotation = &entsql.Annotation{ Table: "campaign_history", } diff --git a/internal/ent/historygenerated/mutation.go b/internal/ent/historygenerated/mutation.go index dc2523c4f3..9c7ff5ffe4 100644 --- a/internal/ent/historygenerated/mutation.go +++ b/internal/ent/historygenerated/mutation.go @@ -19,6 +19,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -98,6 +100,8 @@ const ( TypeAssessmentHistory = "AssessmentHistory" TypeAssessmentResponseHistory = "AssessmentResponseHistory" TypeAssetHistory = "AssetHistory" + TypeAudienceHistory = "AudienceHistory" + TypeAudienceMemberHistory = "AudienceMemberHistory" TypeCampaignHistory = "CampaignHistory" TypeCampaignTargetHistory = "CampaignTargetHistory" TypeContactHistory = "ContactHistory" @@ -12875,6 +12879,3332 @@ func (m *AssetHistoryMutation) ResetEdge(name string) error { return fmt.Errorf("unknown AssetHistory edge %s", name) } +// AudienceHistoryMutation represents an operation that mutates the AudienceHistory nodes in the graph. +type AudienceHistoryMutation struct { + config + op Op + typ string + id *string + history_time *time.Time + ref *string + operation *history.OpType + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + updated_by_impersonator *string + deleted_at *time.Time + deleted_by *string + display_id *string + tags *[]string + appendtags []string + owner_id *string + name *string + description *string + audience_type *enums.AudienceType + filters *map[string]interface{} + metadata *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*AudienceHistory, error) + predicates []predicate.AudienceHistory +} + +var _ ent.Mutation = (*AudienceHistoryMutation)(nil) + +// audiencehistoryOption allows management of the mutation configuration using functional options. +type audiencehistoryOption func(*AudienceHistoryMutation) + +// newAudienceHistoryMutation creates new mutation for the AudienceHistory entity. +func newAudienceHistoryMutation(c config, op Op, opts ...audiencehistoryOption) *AudienceHistoryMutation { + m := &AudienceHistoryMutation{ + config: c, + op: op, + typ: TypeAudienceHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withAudienceHistoryID sets the ID field of the mutation. +func withAudienceHistoryID(id string) audiencehistoryOption { + return func(m *AudienceHistoryMutation) { + var ( + err error + once sync.Once + value *AudienceHistory + ) + m.oldValue = func(ctx context.Context) (*AudienceHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().AudienceHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withAudienceHistory sets the old AudienceHistory of the mutation. +func withAudienceHistory(node *AudienceHistory) audiencehistoryOption { + return func(m *AudienceHistoryMutation) { + m.oldValue = func(context.Context) (*AudienceHistory, error) { + return node, nil + } + m.id = &node.ID + } +} + +// Client returns a new `ent.Client` from the mutation. If the mutation was +// executed in a transaction (ent.Tx), a transactional client is returned. +func (m AudienceHistoryMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client +} + +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m AudienceHistoryMutation) Tx() (*Tx, error) { + if _, ok := m.driver.(*txDriver); !ok { + return nil, errors.New("historygenerated: mutation is not running in a transaction") + } + tx := &Tx{config: m.config} + tx.init() + return tx, nil +} + +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of AudienceHistory entities. +func (m *AudienceHistoryMutation) SetID(id string) { + m.id = &id +} + +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. +func (m *AudienceHistoryMutation) ID() (id string, exists bool) { + if m.id == nil { + return + } + return *m.id, true +} + +// IDs queries the database and returns the entity ids that match the mutation's predicate. +// That means, if the mutation is applied within a transaction with an isolation level such +// as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated +// or updated by the mutation. +func (m *AudienceHistoryMutation) IDs(ctx context.Context) ([]string, error) { + switch { + case m.op.Is(OpUpdateOne | OpDeleteOne): + id, exists := m.ID() + if exists { + return []string{id}, nil + } + fallthrough + case m.op.Is(OpUpdate | OpDelete): + return m.Client().AudienceHistory.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) + } +} + +// SetHistoryTime sets the "history_time" field. +func (m *AudienceHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *AudienceHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time + if v == nil { + return + } + return *v, true +} + +// OldHistoryTime returns the old "history_time" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldHistoryTime is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldHistoryTime requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) + } + return oldValue.HistoryTime, nil +} + +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *AudienceHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *AudienceHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *AudienceHistoryMutation) Ref() (r string, exists bool) { + v := m.ref + if v == nil { + return + } + return *v, true +} + +// OldRef returns the old "ref" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldRef(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRef is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRef requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRef: %w", err) + } + return oldValue.Ref, nil +} + +// ClearRef clears the value of the "ref" field. +func (m *AudienceHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[audiencehistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *AudienceHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *AudienceHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, audiencehistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *AudienceHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *AudienceHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation + if v == nil { + return + } + return *v, true +} + +// OldOperation returns the old "operation" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOperation is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOperation requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOperation: %w", err) + } + return oldValue.Operation, nil +} + +// ResetOperation resets all changes to the "operation" field. +func (m *AudienceHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *AudienceHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *AudienceHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true +} + +// OldCreatedAt returns the old "created_at" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + } + return oldValue.CreatedAt, nil +} + +// ClearCreatedAt clears the value of the "created_at" field. +func (m *AudienceHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[audiencehistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *AudienceHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *AudienceHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, audiencehistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *AudienceHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *AudienceHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return + } + return *v, true +} + +// OldUpdatedAt returns the old "updated_at" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + } + return oldValue.UpdatedAt, nil +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *AudienceHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[audiencehistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *AudienceHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *AudienceHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, audiencehistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *AudienceHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *AudienceHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return + } + return *v, true +} + +// OldCreatedBy returns the old "created_by" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) + } + return oldValue.CreatedBy, nil +} + +// ClearCreatedBy clears the value of the "created_by" field. +func (m *AudienceHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[audiencehistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *AudienceHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *AudienceHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, audiencehistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *AudienceHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *AudienceHistoryMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return + } + return *v, true +} + +// OldUpdatedBy returns the old "updated_by" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) + } + return oldValue.UpdatedBy, nil +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *AudienceHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[audiencehistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *AudienceHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *AudienceHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, audiencehistory.FieldUpdatedBy) +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (m *AudienceHistoryMutation) SetUpdatedByImpersonator(s string) { + m.updated_by_impersonator = &s +} + +// UpdatedByImpersonator returns the value of the "updated_by_impersonator" field in the mutation. +func (m *AudienceHistoryMutation) UpdatedByImpersonator() (r string, exists bool) { + v := m.updated_by_impersonator + if v == nil { + return + } + return *v, true +} + +// OldUpdatedByImpersonator returns the old "updated_by_impersonator" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldUpdatedByImpersonator(ctx context.Context) (v *string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedByImpersonator is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedByImpersonator requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedByImpersonator: %w", err) + } + return oldValue.UpdatedByImpersonator, nil +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (m *AudienceHistoryMutation) ClearUpdatedByImpersonator() { + m.updated_by_impersonator = nil + m.clearedFields[audiencehistory.FieldUpdatedByImpersonator] = struct{}{} +} + +// UpdatedByImpersonatorCleared returns if the "updated_by_impersonator" field was cleared in this mutation. +func (m *AudienceHistoryMutation) UpdatedByImpersonatorCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldUpdatedByImpersonator] + return ok +} + +// ResetUpdatedByImpersonator resets all changes to the "updated_by_impersonator" field. +func (m *AudienceHistoryMutation) ResetUpdatedByImpersonator() { + m.updated_by_impersonator = nil + delete(m.clearedFields, audiencehistory.FieldUpdatedByImpersonator) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *AudienceHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *AudienceHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return + } + return *v, true +} + +// OldDeletedAt returns the old "deleted_at" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + } + return oldValue.DeletedAt, nil +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *AudienceHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[audiencehistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *AudienceHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *AudienceHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, audiencehistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *AudienceHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *AudienceHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return + } + return *v, true +} + +// OldDeletedBy returns the old "deleted_by" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) + } + return oldValue.DeletedBy, nil +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *AudienceHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[audiencehistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *AudienceHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *AudienceHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, audiencehistory.FieldDeletedBy) +} + +// SetDisplayID sets the "display_id" field. +func (m *AudienceHistoryMutation) SetDisplayID(s string) { + m.display_id = &s +} + +// DisplayID returns the value of the "display_id" field in the mutation. +func (m *AudienceHistoryMutation) DisplayID() (r string, exists bool) { + v := m.display_id + if v == nil { + return + } + return *v, true +} + +// OldDisplayID returns the old "display_id" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldDisplayID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayID: %w", err) + } + return oldValue.DisplayID, nil +} + +// ResetDisplayID resets all changes to the "display_id" field. +func (m *AudienceHistoryMutation) ResetDisplayID() { + m.display_id = nil +} + +// SetTags sets the "tags" field. +func (m *AudienceHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *AudienceHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true +} + +// OldTags returns the old "tags" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) + } + return oldValue.Tags, nil +} + +// AppendTags adds s to the "tags" field. +func (m *AudienceHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) +} + +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *AudienceHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true +} + +// ClearTags clears the value of the "tags" field. +func (m *AudienceHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[audiencehistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *AudienceHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *AudienceHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, audiencehistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *AudienceHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *AudienceHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id + if v == nil { + return + } + return *v, true +} + +// OldOwnerID returns the old "owner_id" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) + } + return oldValue.OwnerID, nil +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (m *AudienceHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[audiencehistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *AudienceHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *AudienceHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, audiencehistory.FieldOwnerID) +} + +// SetName sets the "name" field. +func (m *AudienceHistoryMutation) SetName(s string) { + m.name = &s +} + +// Name returns the value of the "name" field in the mutation. +func (m *AudienceHistoryMutation) Name() (r string, exists bool) { + v := m.name + if v == nil { + return + } + return *v, true +} + +// OldName returns the old "name" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldName: %w", err) + } + return oldValue.Name, nil +} + +// ResetName resets all changes to the "name" field. +func (m *AudienceHistoryMutation) ResetName() { + m.name = nil +} + +// SetDescription sets the "description" field. +func (m *AudienceHistoryMutation) SetDescription(s string) { + m.description = &s +} + +// Description returns the value of the "description" field in the mutation. +func (m *AudienceHistoryMutation) Description() (r string, exists bool) { + v := m.description + if v == nil { + return + } + return *v, true +} + +// OldDescription returns the old "description" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldDescription(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDescription is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDescription requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDescription: %w", err) + } + return oldValue.Description, nil +} + +// ClearDescription clears the value of the "description" field. +func (m *AudienceHistoryMutation) ClearDescription() { + m.description = nil + m.clearedFields[audiencehistory.FieldDescription] = struct{}{} +} + +// DescriptionCleared returns if the "description" field was cleared in this mutation. +func (m *AudienceHistoryMutation) DescriptionCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldDescription] + return ok +} + +// ResetDescription resets all changes to the "description" field. +func (m *AudienceHistoryMutation) ResetDescription() { + m.description = nil + delete(m.clearedFields, audiencehistory.FieldDescription) +} + +// SetAudienceType sets the "audience_type" field. +func (m *AudienceHistoryMutation) SetAudienceType(et enums.AudienceType) { + m.audience_type = &et +} + +// AudienceType returns the value of the "audience_type" field in the mutation. +func (m *AudienceHistoryMutation) AudienceType() (r enums.AudienceType, exists bool) { + v := m.audience_type + if v == nil { + return + } + return *v, true +} + +// OldAudienceType returns the old "audience_type" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldAudienceType(ctx context.Context) (v enums.AudienceType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAudienceType is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAudienceType requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAudienceType: %w", err) + } + return oldValue.AudienceType, nil +} + +// ResetAudienceType resets all changes to the "audience_type" field. +func (m *AudienceHistoryMutation) ResetAudienceType() { + m.audience_type = nil +} + +// SetFilters sets the "filters" field. +func (m *AudienceHistoryMutation) SetFilters(value map[string]interface{}) { + m.filters = &value +} + +// Filters returns the value of the "filters" field in the mutation. +func (m *AudienceHistoryMutation) Filters() (r map[string]interface{}, exists bool) { + v := m.filters + if v == nil { + return + } + return *v, true +} + +// OldFilters returns the old "filters" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldFilters(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFilters is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFilters requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFilters: %w", err) + } + return oldValue.Filters, nil +} + +// ClearFilters clears the value of the "filters" field. +func (m *AudienceHistoryMutation) ClearFilters() { + m.filters = nil + m.clearedFields[audiencehistory.FieldFilters] = struct{}{} +} + +// FiltersCleared returns if the "filters" field was cleared in this mutation. +func (m *AudienceHistoryMutation) FiltersCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldFilters] + return ok +} + +// ResetFilters resets all changes to the "filters" field. +func (m *AudienceHistoryMutation) ResetFilters() { + m.filters = nil + delete(m.clearedFields, audiencehistory.FieldFilters) +} + +// SetMetadata sets the "metadata" field. +func (m *AudienceHistoryMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *AudienceHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata + if v == nil { + return + } + return *v, true +} + +// OldMetadata returns the old "metadata" field's value of the AudienceHistory entity. +// If the AudienceHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceHistoryMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMetadata requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) + } + return oldValue.Metadata, nil +} + +// ClearMetadata clears the value of the "metadata" field. +func (m *AudienceHistoryMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[audiencehistory.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *AudienceHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[audiencehistory.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *AudienceHistoryMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, audiencehistory.FieldMetadata) +} + +// Where appends a list predicates to the AudienceHistoryMutation builder. +func (m *AudienceHistoryMutation) Where(ps ...predicate.AudienceHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the AudienceHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *AudienceHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.AudienceHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *AudienceHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *AudienceHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (AudienceHistory). +func (m *AudienceHistoryMutation) Type() string { + return m.typ +} + +// Fields returns all fields that were changed during this mutation. Note that in +// order to get all numeric fields that were incremented/decremented, call +// AddedFields(). +func (m *AudienceHistoryMutation) Fields() []string { + fields := make([]string, 0, 18) + if m.history_time != nil { + fields = append(fields, audiencehistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, audiencehistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, audiencehistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, audiencehistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, audiencehistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, audiencehistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, audiencehistory.FieldUpdatedBy) + } + if m.updated_by_impersonator != nil { + fields = append(fields, audiencehistory.FieldUpdatedByImpersonator) + } + if m.deleted_at != nil { + fields = append(fields, audiencehistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, audiencehistory.FieldDeletedBy) + } + if m.display_id != nil { + fields = append(fields, audiencehistory.FieldDisplayID) + } + if m.tags != nil { + fields = append(fields, audiencehistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, audiencehistory.FieldOwnerID) + } + if m.name != nil { + fields = append(fields, audiencehistory.FieldName) + } + if m.description != nil { + fields = append(fields, audiencehistory.FieldDescription) + } + if m.audience_type != nil { + fields = append(fields, audiencehistory.FieldAudienceType) + } + if m.filters != nil { + fields = append(fields, audiencehistory.FieldFilters) + } + if m.metadata != nil { + fields = append(fields, audiencehistory.FieldMetadata) + } + return fields +} + +// Field returns the value of a field with the given name. The second boolean +// return value indicates that this field was not set, or was not defined in the +// schema. +func (m *AudienceHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case audiencehistory.FieldHistoryTime: + return m.HistoryTime() + case audiencehistory.FieldRef: + return m.Ref() + case audiencehistory.FieldOperation: + return m.Operation() + case audiencehistory.FieldCreatedAt: + return m.CreatedAt() + case audiencehistory.FieldUpdatedAt: + return m.UpdatedAt() + case audiencehistory.FieldCreatedBy: + return m.CreatedBy() + case audiencehistory.FieldUpdatedBy: + return m.UpdatedBy() + case audiencehistory.FieldUpdatedByImpersonator: + return m.UpdatedByImpersonator() + case audiencehistory.FieldDeletedAt: + return m.DeletedAt() + case audiencehistory.FieldDeletedBy: + return m.DeletedBy() + case audiencehistory.FieldDisplayID: + return m.DisplayID() + case audiencehistory.FieldTags: + return m.Tags() + case audiencehistory.FieldOwnerID: + return m.OwnerID() + case audiencehistory.FieldName: + return m.Name() + case audiencehistory.FieldDescription: + return m.Description() + case audiencehistory.FieldAudienceType: + return m.AudienceType() + case audiencehistory.FieldFilters: + return m.Filters() + case audiencehistory.FieldMetadata: + return m.Metadata() + } + return nil, false +} + +// OldField returns the old value of the field from the database. An error is +// returned if the mutation operation is not UpdateOne, or the query to the +// database failed. +func (m *AudienceHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case audiencehistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case audiencehistory.FieldRef: + return m.OldRef(ctx) + case audiencehistory.FieldOperation: + return m.OldOperation(ctx) + case audiencehistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case audiencehistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case audiencehistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case audiencehistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case audiencehistory.FieldUpdatedByImpersonator: + return m.OldUpdatedByImpersonator(ctx) + case audiencehistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case audiencehistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case audiencehistory.FieldDisplayID: + return m.OldDisplayID(ctx) + case audiencehistory.FieldTags: + return m.OldTags(ctx) + case audiencehistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case audiencehistory.FieldName: + return m.OldName(ctx) + case audiencehistory.FieldDescription: + return m.OldDescription(ctx) + case audiencehistory.FieldAudienceType: + return m.OldAudienceType(ctx) + case audiencehistory.FieldFilters: + return m.OldFilters(ctx) + case audiencehistory.FieldMetadata: + return m.OldMetadata(ctx) + } + return nil, fmt.Errorf("unknown AudienceHistory field %s", name) +} + +// SetField sets the value of a field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case audiencehistory.FieldHistoryTime: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetHistoryTime(v) + return nil + case audiencehistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case audiencehistory.FieldOperation: + v, ok := value.(history.OpType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOperation(v) + return nil + case audiencehistory.FieldCreatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedAt(v) + return nil + case audiencehistory.FieldUpdatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedAt(v) + return nil + case audiencehistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case audiencehistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case audiencehistory.FieldUpdatedByImpersonator: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedByImpersonator(v) + return nil + case audiencehistory.FieldDeletedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedAt(v) + return nil + case audiencehistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case audiencehistory.FieldDisplayID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayID(v) + return nil + case audiencehistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case audiencehistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case audiencehistory.FieldName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetName(v) + return nil + case audiencehistory.FieldDescription: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDescription(v) + return nil + case audiencehistory.FieldAudienceType: + v, ok := value.(enums.AudienceType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAudienceType(v) + return nil + case audiencehistory.FieldFilters: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFilters(v) + return nil + case audiencehistory.FieldMetadata: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMetadata(v) + return nil + } + return fmt.Errorf("unknown AudienceHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *AudienceHistoryMutation) AddedFields() []string { + return nil +} + +// AddedField returns the numeric value that was incremented/decremented on a field +// with the given name. The second boolean return value indicates that this field +// was not set, or was not defined in the schema. +func (m *AudienceHistoryMutation) AddedField(name string) (ent.Value, bool) { + return nil, false +} + +// AddField adds the value to the field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown AudienceHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *AudienceHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(audiencehistory.FieldRef) { + fields = append(fields, audiencehistory.FieldRef) + } + if m.FieldCleared(audiencehistory.FieldCreatedAt) { + fields = append(fields, audiencehistory.FieldCreatedAt) + } + if m.FieldCleared(audiencehistory.FieldUpdatedAt) { + fields = append(fields, audiencehistory.FieldUpdatedAt) + } + if m.FieldCleared(audiencehistory.FieldCreatedBy) { + fields = append(fields, audiencehistory.FieldCreatedBy) + } + if m.FieldCleared(audiencehistory.FieldUpdatedBy) { + fields = append(fields, audiencehistory.FieldUpdatedBy) + } + if m.FieldCleared(audiencehistory.FieldUpdatedByImpersonator) { + fields = append(fields, audiencehistory.FieldUpdatedByImpersonator) + } + if m.FieldCleared(audiencehistory.FieldDeletedAt) { + fields = append(fields, audiencehistory.FieldDeletedAt) + } + if m.FieldCleared(audiencehistory.FieldDeletedBy) { + fields = append(fields, audiencehistory.FieldDeletedBy) + } + if m.FieldCleared(audiencehistory.FieldTags) { + fields = append(fields, audiencehistory.FieldTags) + } + if m.FieldCleared(audiencehistory.FieldOwnerID) { + fields = append(fields, audiencehistory.FieldOwnerID) + } + if m.FieldCleared(audiencehistory.FieldDescription) { + fields = append(fields, audiencehistory.FieldDescription) + } + if m.FieldCleared(audiencehistory.FieldFilters) { + fields = append(fields, audiencehistory.FieldFilters) + } + if m.FieldCleared(audiencehistory.FieldMetadata) { + fields = append(fields, audiencehistory.FieldMetadata) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *AudienceHistoryMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok +} + +// ClearField clears the value of the field with the given name. It returns an +// error if the field is not defined in the schema. +func (m *AudienceHistoryMutation) ClearField(name string) error { + switch name { + case audiencehistory.FieldRef: + m.ClearRef() + return nil + case audiencehistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case audiencehistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case audiencehistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case audiencehistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case audiencehistory.FieldUpdatedByImpersonator: + m.ClearUpdatedByImpersonator() + return nil + case audiencehistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case audiencehistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case audiencehistory.FieldTags: + m.ClearTags() + return nil + case audiencehistory.FieldOwnerID: + m.ClearOwnerID() + return nil + case audiencehistory.FieldDescription: + m.ClearDescription() + return nil + case audiencehistory.FieldFilters: + m.ClearFilters() + return nil + case audiencehistory.FieldMetadata: + m.ClearMetadata() + return nil + } + return fmt.Errorf("unknown AudienceHistory nullable field %s", name) +} + +// ResetField resets all changes in the mutation for the field with the given name. +// It returns an error if the field is not defined in the schema. +func (m *AudienceHistoryMutation) ResetField(name string) error { + switch name { + case audiencehistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case audiencehistory.FieldRef: + m.ResetRef() + return nil + case audiencehistory.FieldOperation: + m.ResetOperation() + return nil + case audiencehistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case audiencehistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case audiencehistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case audiencehistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case audiencehistory.FieldUpdatedByImpersonator: + m.ResetUpdatedByImpersonator() + return nil + case audiencehistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case audiencehistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case audiencehistory.FieldDisplayID: + m.ResetDisplayID() + return nil + case audiencehistory.FieldTags: + m.ResetTags() + return nil + case audiencehistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case audiencehistory.FieldName: + m.ResetName() + return nil + case audiencehistory.FieldDescription: + m.ResetDescription() + return nil + case audiencehistory.FieldAudienceType: + m.ResetAudienceType() + return nil + case audiencehistory.FieldFilters: + m.ResetFilters() + return nil + case audiencehistory.FieldMetadata: + m.ResetMetadata() + return nil + } + return fmt.Errorf("unknown AudienceHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *AudienceHistoryMutation) AddedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *AudienceHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *AudienceHistoryMutation) RemovedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *AudienceHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *AudienceHistoryMutation) ClearedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *AudienceHistoryMutation) EdgeCleared(name string) bool { + return false +} + +// ClearEdge clears the value of the edge with the given name. It returns an error +// if that edge is not defined in the schema. +func (m *AudienceHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown AudienceHistory unique edge %s", name) +} + +// ResetEdge resets all changes to the edge with the given name in this mutation. +// It returns an error if the edge is not defined in the schema. +func (m *AudienceHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown AudienceHistory edge %s", name) +} + +// AudienceMemberHistoryMutation represents an operation that mutates the AudienceMemberHistory nodes in the graph. +type AudienceMemberHistoryMutation struct { + config + op Op + typ string + id *string + history_time *time.Time + ref *string + operation *history.OpType + created_at *time.Time + updated_at *time.Time + created_by *string + updated_by *string + updated_by_impersonator *string + deleted_at *time.Time + deleted_by *string + display_id *string + tags *[]string + appendtags []string + owner_id *string + audience_id *string + contact_id *string + user_id *string + group_id *string + identity_holder_id *string + subscriber_id *string + email *string + full_name *string + metadata *map[string]interface{} + clearedFields map[string]struct{} + done bool + oldValue func(context.Context) (*AudienceMemberHistory, error) + predicates []predicate.AudienceMemberHistory +} + +var _ ent.Mutation = (*AudienceMemberHistoryMutation)(nil) + +// audiencememberhistoryOption allows management of the mutation configuration using functional options. +type audiencememberhistoryOption func(*AudienceMemberHistoryMutation) + +// newAudienceMemberHistoryMutation creates new mutation for the AudienceMemberHistory entity. +func newAudienceMemberHistoryMutation(c config, op Op, opts ...audiencememberhistoryOption) *AudienceMemberHistoryMutation { + m := &AudienceMemberHistoryMutation{ + config: c, + op: op, + typ: TypeAudienceMemberHistory, + clearedFields: make(map[string]struct{}), + } + for _, opt := range opts { + opt(m) + } + return m +} + +// withAudienceMemberHistoryID sets the ID field of the mutation. +func withAudienceMemberHistoryID(id string) audiencememberhistoryOption { + return func(m *AudienceMemberHistoryMutation) { + var ( + err error + once sync.Once + value *AudienceMemberHistory + ) + m.oldValue = func(ctx context.Context) (*AudienceMemberHistory, error) { + once.Do(func() { + if m.done { + err = errors.New("querying old values post mutation is not allowed") + } else { + value, err = m.Client().AudienceMemberHistory.Get(ctx, id) + } + }) + return value, err + } + m.id = &id + } +} + +// withAudienceMemberHistory sets the old AudienceMemberHistory of the mutation. +func withAudienceMemberHistory(node *AudienceMemberHistory) audiencememberhistoryOption { + return func(m *AudienceMemberHistoryMutation) { + m.oldValue = func(context.Context) (*AudienceMemberHistory, error) { + return node, nil + } + m.id = &node.ID + } +} + +// Client returns a new `ent.Client` from the mutation. If the mutation was +// executed in a transaction (ent.Tx), a transactional client is returned. +func (m AudienceMemberHistoryMutation) Client() *Client { + client := &Client{config: m.config} + client.init() + return client +} + +// Tx returns an `ent.Tx` for mutations that were executed in transactions; +// it returns an error otherwise. +func (m AudienceMemberHistoryMutation) Tx() (*Tx, error) { + if _, ok := m.driver.(*txDriver); !ok { + return nil, errors.New("historygenerated: mutation is not running in a transaction") + } + tx := &Tx{config: m.config} + tx.init() + return tx, nil +} + +// SetID sets the value of the id field. Note that this +// operation is only accepted on creation of AudienceMemberHistory entities. +func (m *AudienceMemberHistoryMutation) SetID(id string) { + m.id = &id +} + +// ID returns the ID value in the mutation. Note that the ID is only available +// if it was provided to the builder or after it was returned from the database. +func (m *AudienceMemberHistoryMutation) ID() (id string, exists bool) { + if m.id == nil { + return + } + return *m.id, true +} + +// IDs queries the database and returns the entity ids that match the mutation's predicate. +// That means, if the mutation is applied within a transaction with an isolation level such +// as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated +// or updated by the mutation. +func (m *AudienceMemberHistoryMutation) IDs(ctx context.Context) ([]string, error) { + switch { + case m.op.Is(OpUpdateOne | OpDeleteOne): + id, exists := m.ID() + if exists { + return []string{id}, nil + } + fallthrough + case m.op.Is(OpUpdate | OpDelete): + return m.Client().AudienceMemberHistory.Query().Where(m.predicates...).IDs(ctx) + default: + return nil, fmt.Errorf("IDs is not allowed on %s operations", m.op) + } +} + +// SetHistoryTime sets the "history_time" field. +func (m *AudienceMemberHistoryMutation) SetHistoryTime(t time.Time) { + m.history_time = &t +} + +// HistoryTime returns the value of the "history_time" field in the mutation. +func (m *AudienceMemberHistoryMutation) HistoryTime() (r time.Time, exists bool) { + v := m.history_time + if v == nil { + return + } + return *v, true +} + +// OldHistoryTime returns the old "history_time" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldHistoryTime(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldHistoryTime is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldHistoryTime requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldHistoryTime: %w", err) + } + return oldValue.HistoryTime, nil +} + +// ResetHistoryTime resets all changes to the "history_time" field. +func (m *AudienceMemberHistoryMutation) ResetHistoryTime() { + m.history_time = nil +} + +// SetRef sets the "ref" field. +func (m *AudienceMemberHistoryMutation) SetRef(s string) { + m.ref = &s +} + +// Ref returns the value of the "ref" field in the mutation. +func (m *AudienceMemberHistoryMutation) Ref() (r string, exists bool) { + v := m.ref + if v == nil { + return + } + return *v, true +} + +// OldRef returns the old "ref" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldRef(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldRef is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldRef requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldRef: %w", err) + } + return oldValue.Ref, nil +} + +// ClearRef clears the value of the "ref" field. +func (m *AudienceMemberHistoryMutation) ClearRef() { + m.ref = nil + m.clearedFields[audiencememberhistory.FieldRef] = struct{}{} +} + +// RefCleared returns if the "ref" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) RefCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldRef] + return ok +} + +// ResetRef resets all changes to the "ref" field. +func (m *AudienceMemberHistoryMutation) ResetRef() { + m.ref = nil + delete(m.clearedFields, audiencememberhistory.FieldRef) +} + +// SetOperation sets the "operation" field. +func (m *AudienceMemberHistoryMutation) SetOperation(ht history.OpType) { + m.operation = &ht +} + +// Operation returns the value of the "operation" field in the mutation. +func (m *AudienceMemberHistoryMutation) Operation() (r history.OpType, exists bool) { + v := m.operation + if v == nil { + return + } + return *v, true +} + +// OldOperation returns the old "operation" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldOperation(ctx context.Context) (v history.OpType, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOperation is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOperation requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOperation: %w", err) + } + return oldValue.Operation, nil +} + +// ResetOperation resets all changes to the "operation" field. +func (m *AudienceMemberHistoryMutation) ResetOperation() { + m.operation = nil +} + +// SetCreatedAt sets the "created_at" field. +func (m *AudienceMemberHistoryMutation) SetCreatedAt(t time.Time) { + m.created_at = &t +} + +// CreatedAt returns the value of the "created_at" field in the mutation. +func (m *AudienceMemberHistoryMutation) CreatedAt() (r time.Time, exists bool) { + v := m.created_at + if v == nil { + return + } + return *v, true +} + +// OldCreatedAt returns the old "created_at" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedAt: %w", err) + } + return oldValue.CreatedAt, nil +} + +// ClearCreatedAt clears the value of the "created_at" field. +func (m *AudienceMemberHistoryMutation) ClearCreatedAt() { + m.created_at = nil + m.clearedFields[audiencememberhistory.FieldCreatedAt] = struct{}{} +} + +// CreatedAtCleared returns if the "created_at" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) CreatedAtCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldCreatedAt] + return ok +} + +// ResetCreatedAt resets all changes to the "created_at" field. +func (m *AudienceMemberHistoryMutation) ResetCreatedAt() { + m.created_at = nil + delete(m.clearedFields, audiencememberhistory.FieldCreatedAt) +} + +// SetUpdatedAt sets the "updated_at" field. +func (m *AudienceMemberHistoryMutation) SetUpdatedAt(t time.Time) { + m.updated_at = &t +} + +// UpdatedAt returns the value of the "updated_at" field in the mutation. +func (m *AudienceMemberHistoryMutation) UpdatedAt() (r time.Time, exists bool) { + v := m.updated_at + if v == nil { + return + } + return *v, true +} + +// OldUpdatedAt returns the old "updated_at" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedAt: %w", err) + } + return oldValue.UpdatedAt, nil +} + +// ClearUpdatedAt clears the value of the "updated_at" field. +func (m *AudienceMemberHistoryMutation) ClearUpdatedAt() { + m.updated_at = nil + m.clearedFields[audiencememberhistory.FieldUpdatedAt] = struct{}{} +} + +// UpdatedAtCleared returns if the "updated_at" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) UpdatedAtCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldUpdatedAt] + return ok +} + +// ResetUpdatedAt resets all changes to the "updated_at" field. +func (m *AudienceMemberHistoryMutation) ResetUpdatedAt() { + m.updated_at = nil + delete(m.clearedFields, audiencememberhistory.FieldUpdatedAt) +} + +// SetCreatedBy sets the "created_by" field. +func (m *AudienceMemberHistoryMutation) SetCreatedBy(s string) { + m.created_by = &s +} + +// CreatedBy returns the value of the "created_by" field in the mutation. +func (m *AudienceMemberHistoryMutation) CreatedBy() (r string, exists bool) { + v := m.created_by + if v == nil { + return + } + return *v, true +} + +// OldCreatedBy returns the old "created_by" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldCreatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldCreatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldCreatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldCreatedBy: %w", err) + } + return oldValue.CreatedBy, nil +} + +// ClearCreatedBy clears the value of the "created_by" field. +func (m *AudienceMemberHistoryMutation) ClearCreatedBy() { + m.created_by = nil + m.clearedFields[audiencememberhistory.FieldCreatedBy] = struct{}{} +} + +// CreatedByCleared returns if the "created_by" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) CreatedByCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldCreatedBy] + return ok +} + +// ResetCreatedBy resets all changes to the "created_by" field. +func (m *AudienceMemberHistoryMutation) ResetCreatedBy() { + m.created_by = nil + delete(m.clearedFields, audiencememberhistory.FieldCreatedBy) +} + +// SetUpdatedBy sets the "updated_by" field. +func (m *AudienceMemberHistoryMutation) SetUpdatedBy(s string) { + m.updated_by = &s +} + +// UpdatedBy returns the value of the "updated_by" field in the mutation. +func (m *AudienceMemberHistoryMutation) UpdatedBy() (r string, exists bool) { + v := m.updated_by + if v == nil { + return + } + return *v, true +} + +// OldUpdatedBy returns the old "updated_by" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldUpdatedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedBy: %w", err) + } + return oldValue.UpdatedBy, nil +} + +// ClearUpdatedBy clears the value of the "updated_by" field. +func (m *AudienceMemberHistoryMutation) ClearUpdatedBy() { + m.updated_by = nil + m.clearedFields[audiencememberhistory.FieldUpdatedBy] = struct{}{} +} + +// UpdatedByCleared returns if the "updated_by" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) UpdatedByCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldUpdatedBy] + return ok +} + +// ResetUpdatedBy resets all changes to the "updated_by" field. +func (m *AudienceMemberHistoryMutation) ResetUpdatedBy() { + m.updated_by = nil + delete(m.clearedFields, audiencememberhistory.FieldUpdatedBy) +} + +// SetUpdatedByImpersonator sets the "updated_by_impersonator" field. +func (m *AudienceMemberHistoryMutation) SetUpdatedByImpersonator(s string) { + m.updated_by_impersonator = &s +} + +// UpdatedByImpersonator returns the value of the "updated_by_impersonator" field in the mutation. +func (m *AudienceMemberHistoryMutation) UpdatedByImpersonator() (r string, exists bool) { + v := m.updated_by_impersonator + if v == nil { + return + } + return *v, true +} + +// OldUpdatedByImpersonator returns the old "updated_by_impersonator" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldUpdatedByImpersonator(ctx context.Context) (v *string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUpdatedByImpersonator is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUpdatedByImpersonator requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUpdatedByImpersonator: %w", err) + } + return oldValue.UpdatedByImpersonator, nil +} + +// ClearUpdatedByImpersonator clears the value of the "updated_by_impersonator" field. +func (m *AudienceMemberHistoryMutation) ClearUpdatedByImpersonator() { + m.updated_by_impersonator = nil + m.clearedFields[audiencememberhistory.FieldUpdatedByImpersonator] = struct{}{} +} + +// UpdatedByImpersonatorCleared returns if the "updated_by_impersonator" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) UpdatedByImpersonatorCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldUpdatedByImpersonator] + return ok +} + +// ResetUpdatedByImpersonator resets all changes to the "updated_by_impersonator" field. +func (m *AudienceMemberHistoryMutation) ResetUpdatedByImpersonator() { + m.updated_by_impersonator = nil + delete(m.clearedFields, audiencememberhistory.FieldUpdatedByImpersonator) +} + +// SetDeletedAt sets the "deleted_at" field. +func (m *AudienceMemberHistoryMutation) SetDeletedAt(t time.Time) { + m.deleted_at = &t +} + +// DeletedAt returns the value of the "deleted_at" field in the mutation. +func (m *AudienceMemberHistoryMutation) DeletedAt() (r time.Time, exists bool) { + v := m.deleted_at + if v == nil { + return + } + return *v, true +} + +// OldDeletedAt returns the old "deleted_at" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldDeletedAt(ctx context.Context) (v time.Time, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedAt is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedAt requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedAt: %w", err) + } + return oldValue.DeletedAt, nil +} + +// ClearDeletedAt clears the value of the "deleted_at" field. +func (m *AudienceMemberHistoryMutation) ClearDeletedAt() { + m.deleted_at = nil + m.clearedFields[audiencememberhistory.FieldDeletedAt] = struct{}{} +} + +// DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) DeletedAtCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldDeletedAt] + return ok +} + +// ResetDeletedAt resets all changes to the "deleted_at" field. +func (m *AudienceMemberHistoryMutation) ResetDeletedAt() { + m.deleted_at = nil + delete(m.clearedFields, audiencememberhistory.FieldDeletedAt) +} + +// SetDeletedBy sets the "deleted_by" field. +func (m *AudienceMemberHistoryMutation) SetDeletedBy(s string) { + m.deleted_by = &s +} + +// DeletedBy returns the value of the "deleted_by" field in the mutation. +func (m *AudienceMemberHistoryMutation) DeletedBy() (r string, exists bool) { + v := m.deleted_by + if v == nil { + return + } + return *v, true +} + +// OldDeletedBy returns the old "deleted_by" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldDeletedBy(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDeletedBy is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDeletedBy requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDeletedBy: %w", err) + } + return oldValue.DeletedBy, nil +} + +// ClearDeletedBy clears the value of the "deleted_by" field. +func (m *AudienceMemberHistoryMutation) ClearDeletedBy() { + m.deleted_by = nil + m.clearedFields[audiencememberhistory.FieldDeletedBy] = struct{}{} +} + +// DeletedByCleared returns if the "deleted_by" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) DeletedByCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldDeletedBy] + return ok +} + +// ResetDeletedBy resets all changes to the "deleted_by" field. +func (m *AudienceMemberHistoryMutation) ResetDeletedBy() { + m.deleted_by = nil + delete(m.clearedFields, audiencememberhistory.FieldDeletedBy) +} + +// SetDisplayID sets the "display_id" field. +func (m *AudienceMemberHistoryMutation) SetDisplayID(s string) { + m.display_id = &s +} + +// DisplayID returns the value of the "display_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) DisplayID() (r string, exists bool) { + v := m.display_id + if v == nil { + return + } + return *v, true +} + +// OldDisplayID returns the old "display_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldDisplayID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldDisplayID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldDisplayID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldDisplayID: %w", err) + } + return oldValue.DisplayID, nil +} + +// ResetDisplayID resets all changes to the "display_id" field. +func (m *AudienceMemberHistoryMutation) ResetDisplayID() { + m.display_id = nil +} + +// SetTags sets the "tags" field. +func (m *AudienceMemberHistoryMutation) SetTags(s []string) { + m.tags = &s + m.appendtags = nil +} + +// Tags returns the value of the "tags" field in the mutation. +func (m *AudienceMemberHistoryMutation) Tags() (r []string, exists bool) { + v := m.tags + if v == nil { + return + } + return *v, true +} + +// OldTags returns the old "tags" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldTags(ctx context.Context) (v []string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldTags is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldTags requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldTags: %w", err) + } + return oldValue.Tags, nil +} + +// AppendTags adds s to the "tags" field. +func (m *AudienceMemberHistoryMutation) AppendTags(s []string) { + m.appendtags = append(m.appendtags, s...) +} + +// AppendedTags returns the list of values that were appended to the "tags" field in this mutation. +func (m *AudienceMemberHistoryMutation) AppendedTags() ([]string, bool) { + if len(m.appendtags) == 0 { + return nil, false + } + return m.appendtags, true +} + +// ClearTags clears the value of the "tags" field. +func (m *AudienceMemberHistoryMutation) ClearTags() { + m.tags = nil + m.appendtags = nil + m.clearedFields[audiencememberhistory.FieldTags] = struct{}{} +} + +// TagsCleared returns if the "tags" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) TagsCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldTags] + return ok +} + +// ResetTags resets all changes to the "tags" field. +func (m *AudienceMemberHistoryMutation) ResetTags() { + m.tags = nil + m.appendtags = nil + delete(m.clearedFields, audiencememberhistory.FieldTags) +} + +// SetOwnerID sets the "owner_id" field. +func (m *AudienceMemberHistoryMutation) SetOwnerID(s string) { + m.owner_id = &s +} + +// OwnerID returns the value of the "owner_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) OwnerID() (r string, exists bool) { + v := m.owner_id + if v == nil { + return + } + return *v, true +} + +// OldOwnerID returns the old "owner_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldOwnerID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldOwnerID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldOwnerID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldOwnerID: %w", err) + } + return oldValue.OwnerID, nil +} + +// ClearOwnerID clears the value of the "owner_id" field. +func (m *AudienceMemberHistoryMutation) ClearOwnerID() { + m.owner_id = nil + m.clearedFields[audiencememberhistory.FieldOwnerID] = struct{}{} +} + +// OwnerIDCleared returns if the "owner_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) OwnerIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldOwnerID] + return ok +} + +// ResetOwnerID resets all changes to the "owner_id" field. +func (m *AudienceMemberHistoryMutation) ResetOwnerID() { + m.owner_id = nil + delete(m.clearedFields, audiencememberhistory.FieldOwnerID) +} + +// SetAudienceID sets the "audience_id" field. +func (m *AudienceMemberHistoryMutation) SetAudienceID(s string) { + m.audience_id = &s +} + +// AudienceID returns the value of the "audience_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) AudienceID() (r string, exists bool) { + v := m.audience_id + if v == nil { + return + } + return *v, true +} + +// OldAudienceID returns the old "audience_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldAudienceID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldAudienceID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldAudienceID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldAudienceID: %w", err) + } + return oldValue.AudienceID, nil +} + +// ResetAudienceID resets all changes to the "audience_id" field. +func (m *AudienceMemberHistoryMutation) ResetAudienceID() { + m.audience_id = nil +} + +// SetContactID sets the "contact_id" field. +func (m *AudienceMemberHistoryMutation) SetContactID(s string) { + m.contact_id = &s +} + +// ContactID returns the value of the "contact_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) ContactID() (r string, exists bool) { + v := m.contact_id + if v == nil { + return + } + return *v, true +} + +// OldContactID returns the old "contact_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldContactID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldContactID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldContactID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldContactID: %w", err) + } + return oldValue.ContactID, nil +} + +// ClearContactID clears the value of the "contact_id" field. +func (m *AudienceMemberHistoryMutation) ClearContactID() { + m.contact_id = nil + m.clearedFields[audiencememberhistory.FieldContactID] = struct{}{} +} + +// ContactIDCleared returns if the "contact_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) ContactIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldContactID] + return ok +} + +// ResetContactID resets all changes to the "contact_id" field. +func (m *AudienceMemberHistoryMutation) ResetContactID() { + m.contact_id = nil + delete(m.clearedFields, audiencememberhistory.FieldContactID) +} + +// SetUserID sets the "user_id" field. +func (m *AudienceMemberHistoryMutation) SetUserID(s string) { + m.user_id = &s +} + +// UserID returns the value of the "user_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) UserID() (r string, exists bool) { + v := m.user_id + if v == nil { + return + } + return *v, true +} + +// OldUserID returns the old "user_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldUserID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldUserID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldUserID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldUserID: %w", err) + } + return oldValue.UserID, nil +} + +// ClearUserID clears the value of the "user_id" field. +func (m *AudienceMemberHistoryMutation) ClearUserID() { + m.user_id = nil + m.clearedFields[audiencememberhistory.FieldUserID] = struct{}{} +} + +// UserIDCleared returns if the "user_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) UserIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldUserID] + return ok +} + +// ResetUserID resets all changes to the "user_id" field. +func (m *AudienceMemberHistoryMutation) ResetUserID() { + m.user_id = nil + delete(m.clearedFields, audiencememberhistory.FieldUserID) +} + +// SetGroupID sets the "group_id" field. +func (m *AudienceMemberHistoryMutation) SetGroupID(s string) { + m.group_id = &s +} + +// GroupID returns the value of the "group_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) GroupID() (r string, exists bool) { + v := m.group_id + if v == nil { + return + } + return *v, true +} + +// OldGroupID returns the old "group_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldGroupID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldGroupID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldGroupID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldGroupID: %w", err) + } + return oldValue.GroupID, nil +} + +// ClearGroupID clears the value of the "group_id" field. +func (m *AudienceMemberHistoryMutation) ClearGroupID() { + m.group_id = nil + m.clearedFields[audiencememberhistory.FieldGroupID] = struct{}{} +} + +// GroupIDCleared returns if the "group_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) GroupIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldGroupID] + return ok +} + +// ResetGroupID resets all changes to the "group_id" field. +func (m *AudienceMemberHistoryMutation) ResetGroupID() { + m.group_id = nil + delete(m.clearedFields, audiencememberhistory.FieldGroupID) +} + +// SetIdentityHolderID sets the "identity_holder_id" field. +func (m *AudienceMemberHistoryMutation) SetIdentityHolderID(s string) { + m.identity_holder_id = &s +} + +// IdentityHolderID returns the value of the "identity_holder_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) IdentityHolderID() (r string, exists bool) { + v := m.identity_holder_id + if v == nil { + return + } + return *v, true +} + +// OldIdentityHolderID returns the old "identity_holder_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldIdentityHolderID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldIdentityHolderID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldIdentityHolderID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldIdentityHolderID: %w", err) + } + return oldValue.IdentityHolderID, nil +} + +// ClearIdentityHolderID clears the value of the "identity_holder_id" field. +func (m *AudienceMemberHistoryMutation) ClearIdentityHolderID() { + m.identity_holder_id = nil + m.clearedFields[audiencememberhistory.FieldIdentityHolderID] = struct{}{} +} + +// IdentityHolderIDCleared returns if the "identity_holder_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) IdentityHolderIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldIdentityHolderID] + return ok +} + +// ResetIdentityHolderID resets all changes to the "identity_holder_id" field. +func (m *AudienceMemberHistoryMutation) ResetIdentityHolderID() { + m.identity_holder_id = nil + delete(m.clearedFields, audiencememberhistory.FieldIdentityHolderID) +} + +// SetSubscriberID sets the "subscriber_id" field. +func (m *AudienceMemberHistoryMutation) SetSubscriberID(s string) { + m.subscriber_id = &s +} + +// SubscriberID returns the value of the "subscriber_id" field in the mutation. +func (m *AudienceMemberHistoryMutation) SubscriberID() (r string, exists bool) { + v := m.subscriber_id + if v == nil { + return + } + return *v, true +} + +// OldSubscriberID returns the old "subscriber_id" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldSubscriberID(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldSubscriberID is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldSubscriberID requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldSubscriberID: %w", err) + } + return oldValue.SubscriberID, nil +} + +// ClearSubscriberID clears the value of the "subscriber_id" field. +func (m *AudienceMemberHistoryMutation) ClearSubscriberID() { + m.subscriber_id = nil + m.clearedFields[audiencememberhistory.FieldSubscriberID] = struct{}{} +} + +// SubscriberIDCleared returns if the "subscriber_id" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) SubscriberIDCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldSubscriberID] + return ok +} + +// ResetSubscriberID resets all changes to the "subscriber_id" field. +func (m *AudienceMemberHistoryMutation) ResetSubscriberID() { + m.subscriber_id = nil + delete(m.clearedFields, audiencememberhistory.FieldSubscriberID) +} + +// SetEmail sets the "email" field. +func (m *AudienceMemberHistoryMutation) SetEmail(s string) { + m.email = &s +} + +// Email returns the value of the "email" field in the mutation. +func (m *AudienceMemberHistoryMutation) Email() (r string, exists bool) { + v := m.email + if v == nil { + return + } + return *v, true +} + +// OldEmail returns the old "email" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldEmail(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldEmail is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldEmail requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldEmail: %w", err) + } + return oldValue.Email, nil +} + +// ResetEmail resets all changes to the "email" field. +func (m *AudienceMemberHistoryMutation) ResetEmail() { + m.email = nil +} + +// SetFullName sets the "full_name" field. +func (m *AudienceMemberHistoryMutation) SetFullName(s string) { + m.full_name = &s +} + +// FullName returns the value of the "full_name" field in the mutation. +func (m *AudienceMemberHistoryMutation) FullName() (r string, exists bool) { + v := m.full_name + if v == nil { + return + } + return *v, true +} + +// OldFullName returns the old "full_name" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldFullName(ctx context.Context) (v string, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldFullName is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldFullName requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldFullName: %w", err) + } + return oldValue.FullName, nil +} + +// ClearFullName clears the value of the "full_name" field. +func (m *AudienceMemberHistoryMutation) ClearFullName() { + m.full_name = nil + m.clearedFields[audiencememberhistory.FieldFullName] = struct{}{} +} + +// FullNameCleared returns if the "full_name" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) FullNameCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldFullName] + return ok +} + +// ResetFullName resets all changes to the "full_name" field. +func (m *AudienceMemberHistoryMutation) ResetFullName() { + m.full_name = nil + delete(m.clearedFields, audiencememberhistory.FieldFullName) +} + +// SetMetadata sets the "metadata" field. +func (m *AudienceMemberHistoryMutation) SetMetadata(value map[string]interface{}) { + m.metadata = &value +} + +// Metadata returns the value of the "metadata" field in the mutation. +func (m *AudienceMemberHistoryMutation) Metadata() (r map[string]interface{}, exists bool) { + v := m.metadata + if v == nil { + return + } + return *v, true +} + +// OldMetadata returns the old "metadata" field's value of the AudienceMemberHistory entity. +// If the AudienceMemberHistory object wasn't provided to the builder, the object is fetched from the database. +// An error is returned if the mutation operation is not UpdateOne, or the database query fails. +func (m *AudienceMemberHistoryMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error) { + if !m.op.Is(OpUpdateOne) { + return v, errors.New("OldMetadata is only allowed on UpdateOne operations") + } + if m.id == nil || m.oldValue == nil { + return v, errors.New("OldMetadata requires an ID field in the mutation") + } + oldValue, err := m.oldValue(ctx) + if err != nil { + return v, fmt.Errorf("querying old value for OldMetadata: %w", err) + } + return oldValue.Metadata, nil +} + +// ClearMetadata clears the value of the "metadata" field. +func (m *AudienceMemberHistoryMutation) ClearMetadata() { + m.metadata = nil + m.clearedFields[audiencememberhistory.FieldMetadata] = struct{}{} +} + +// MetadataCleared returns if the "metadata" field was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) MetadataCleared() bool { + _, ok := m.clearedFields[audiencememberhistory.FieldMetadata] + return ok +} + +// ResetMetadata resets all changes to the "metadata" field. +func (m *AudienceMemberHistoryMutation) ResetMetadata() { + m.metadata = nil + delete(m.clearedFields, audiencememberhistory.FieldMetadata) +} + +// Where appends a list predicates to the AudienceMemberHistoryMutation builder. +func (m *AudienceMemberHistoryMutation) Where(ps ...predicate.AudienceMemberHistory) { + m.predicates = append(m.predicates, ps...) +} + +// WhereP appends storage-level predicates to the AudienceMemberHistoryMutation builder. Using this method, +// users can use type-assertion to append predicates that do not depend on any generated package. +func (m *AudienceMemberHistoryMutation) WhereP(ps ...func(*sql.Selector)) { + p := make([]predicate.AudienceMemberHistory, len(ps)) + for i := range ps { + p[i] = ps[i] + } + m.Where(p...) +} + +// Op returns the operation name. +func (m *AudienceMemberHistoryMutation) Op() Op { + return m.op +} + +// SetOp allows setting the mutation operation. +func (m *AudienceMemberHistoryMutation) SetOp(op Op) { + m.op = op +} + +// Type returns the node type of this mutation (AudienceMemberHistory). +func (m *AudienceMemberHistoryMutation) Type() string { + return m.typ +} + +// Fields returns all fields that were changed during this mutation. Note that in +// order to get all numeric fields that were incremented/decremented, call +// AddedFields(). +func (m *AudienceMemberHistoryMutation) Fields() []string { + fields := make([]string, 0, 22) + if m.history_time != nil { + fields = append(fields, audiencememberhistory.FieldHistoryTime) + } + if m.ref != nil { + fields = append(fields, audiencememberhistory.FieldRef) + } + if m.operation != nil { + fields = append(fields, audiencememberhistory.FieldOperation) + } + if m.created_at != nil { + fields = append(fields, audiencememberhistory.FieldCreatedAt) + } + if m.updated_at != nil { + fields = append(fields, audiencememberhistory.FieldUpdatedAt) + } + if m.created_by != nil { + fields = append(fields, audiencememberhistory.FieldCreatedBy) + } + if m.updated_by != nil { + fields = append(fields, audiencememberhistory.FieldUpdatedBy) + } + if m.updated_by_impersonator != nil { + fields = append(fields, audiencememberhistory.FieldUpdatedByImpersonator) + } + if m.deleted_at != nil { + fields = append(fields, audiencememberhistory.FieldDeletedAt) + } + if m.deleted_by != nil { + fields = append(fields, audiencememberhistory.FieldDeletedBy) + } + if m.display_id != nil { + fields = append(fields, audiencememberhistory.FieldDisplayID) + } + if m.tags != nil { + fields = append(fields, audiencememberhistory.FieldTags) + } + if m.owner_id != nil { + fields = append(fields, audiencememberhistory.FieldOwnerID) + } + if m.audience_id != nil { + fields = append(fields, audiencememberhistory.FieldAudienceID) + } + if m.contact_id != nil { + fields = append(fields, audiencememberhistory.FieldContactID) + } + if m.user_id != nil { + fields = append(fields, audiencememberhistory.FieldUserID) + } + if m.group_id != nil { + fields = append(fields, audiencememberhistory.FieldGroupID) + } + if m.identity_holder_id != nil { + fields = append(fields, audiencememberhistory.FieldIdentityHolderID) + } + if m.subscriber_id != nil { + fields = append(fields, audiencememberhistory.FieldSubscriberID) + } + if m.email != nil { + fields = append(fields, audiencememberhistory.FieldEmail) + } + if m.full_name != nil { + fields = append(fields, audiencememberhistory.FieldFullName) + } + if m.metadata != nil { + fields = append(fields, audiencememberhistory.FieldMetadata) + } + return fields +} + +// Field returns the value of a field with the given name. The second boolean +// return value indicates that this field was not set, or was not defined in the +// schema. +func (m *AudienceMemberHistoryMutation) Field(name string) (ent.Value, bool) { + switch name { + case audiencememberhistory.FieldHistoryTime: + return m.HistoryTime() + case audiencememberhistory.FieldRef: + return m.Ref() + case audiencememberhistory.FieldOperation: + return m.Operation() + case audiencememberhistory.FieldCreatedAt: + return m.CreatedAt() + case audiencememberhistory.FieldUpdatedAt: + return m.UpdatedAt() + case audiencememberhistory.FieldCreatedBy: + return m.CreatedBy() + case audiencememberhistory.FieldUpdatedBy: + return m.UpdatedBy() + case audiencememberhistory.FieldUpdatedByImpersonator: + return m.UpdatedByImpersonator() + case audiencememberhistory.FieldDeletedAt: + return m.DeletedAt() + case audiencememberhistory.FieldDeletedBy: + return m.DeletedBy() + case audiencememberhistory.FieldDisplayID: + return m.DisplayID() + case audiencememberhistory.FieldTags: + return m.Tags() + case audiencememberhistory.FieldOwnerID: + return m.OwnerID() + case audiencememberhistory.FieldAudienceID: + return m.AudienceID() + case audiencememberhistory.FieldContactID: + return m.ContactID() + case audiencememberhistory.FieldUserID: + return m.UserID() + case audiencememberhistory.FieldGroupID: + return m.GroupID() + case audiencememberhistory.FieldIdentityHolderID: + return m.IdentityHolderID() + case audiencememberhistory.FieldSubscriberID: + return m.SubscriberID() + case audiencememberhistory.FieldEmail: + return m.Email() + case audiencememberhistory.FieldFullName: + return m.FullName() + case audiencememberhistory.FieldMetadata: + return m.Metadata() + } + return nil, false +} + +// OldField returns the old value of the field from the database. An error is +// returned if the mutation operation is not UpdateOne, or the query to the +// database failed. +func (m *AudienceMemberHistoryMutation) OldField(ctx context.Context, name string) (ent.Value, error) { + switch name { + case audiencememberhistory.FieldHistoryTime: + return m.OldHistoryTime(ctx) + case audiencememberhistory.FieldRef: + return m.OldRef(ctx) + case audiencememberhistory.FieldOperation: + return m.OldOperation(ctx) + case audiencememberhistory.FieldCreatedAt: + return m.OldCreatedAt(ctx) + case audiencememberhistory.FieldUpdatedAt: + return m.OldUpdatedAt(ctx) + case audiencememberhistory.FieldCreatedBy: + return m.OldCreatedBy(ctx) + case audiencememberhistory.FieldUpdatedBy: + return m.OldUpdatedBy(ctx) + case audiencememberhistory.FieldUpdatedByImpersonator: + return m.OldUpdatedByImpersonator(ctx) + case audiencememberhistory.FieldDeletedAt: + return m.OldDeletedAt(ctx) + case audiencememberhistory.FieldDeletedBy: + return m.OldDeletedBy(ctx) + case audiencememberhistory.FieldDisplayID: + return m.OldDisplayID(ctx) + case audiencememberhistory.FieldTags: + return m.OldTags(ctx) + case audiencememberhistory.FieldOwnerID: + return m.OldOwnerID(ctx) + case audiencememberhistory.FieldAudienceID: + return m.OldAudienceID(ctx) + case audiencememberhistory.FieldContactID: + return m.OldContactID(ctx) + case audiencememberhistory.FieldUserID: + return m.OldUserID(ctx) + case audiencememberhistory.FieldGroupID: + return m.OldGroupID(ctx) + case audiencememberhistory.FieldIdentityHolderID: + return m.OldIdentityHolderID(ctx) + case audiencememberhistory.FieldSubscriberID: + return m.OldSubscriberID(ctx) + case audiencememberhistory.FieldEmail: + return m.OldEmail(ctx) + case audiencememberhistory.FieldFullName: + return m.OldFullName(ctx) + case audiencememberhistory.FieldMetadata: + return m.OldMetadata(ctx) + } + return nil, fmt.Errorf("unknown AudienceMemberHistory field %s", name) +} + +// SetField sets the value of a field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMemberHistoryMutation) SetField(name string, value ent.Value) error { + switch name { + case audiencememberhistory.FieldHistoryTime: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetHistoryTime(v) + return nil + case audiencememberhistory.FieldRef: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetRef(v) + return nil + case audiencememberhistory.FieldOperation: + v, ok := value.(history.OpType) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOperation(v) + return nil + case audiencememberhistory.FieldCreatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedAt(v) + return nil + case audiencememberhistory.FieldUpdatedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedAt(v) + return nil + case audiencememberhistory.FieldCreatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetCreatedBy(v) + return nil + case audiencememberhistory.FieldUpdatedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedBy(v) + return nil + case audiencememberhistory.FieldUpdatedByImpersonator: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUpdatedByImpersonator(v) + return nil + case audiencememberhistory.FieldDeletedAt: + v, ok := value.(time.Time) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedAt(v) + return nil + case audiencememberhistory.FieldDeletedBy: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDeletedBy(v) + return nil + case audiencememberhistory.FieldDisplayID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetDisplayID(v) + return nil + case audiencememberhistory.FieldTags: + v, ok := value.([]string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetTags(v) + return nil + case audiencememberhistory.FieldOwnerID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetOwnerID(v) + return nil + case audiencememberhistory.FieldAudienceID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetAudienceID(v) + return nil + case audiencememberhistory.FieldContactID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetContactID(v) + return nil + case audiencememberhistory.FieldUserID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetUserID(v) + return nil + case audiencememberhistory.FieldGroupID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetGroupID(v) + return nil + case audiencememberhistory.FieldIdentityHolderID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetIdentityHolderID(v) + return nil + case audiencememberhistory.FieldSubscriberID: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetSubscriberID(v) + return nil + case audiencememberhistory.FieldEmail: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetEmail(v) + return nil + case audiencememberhistory.FieldFullName: + v, ok := value.(string) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetFullName(v) + return nil + case audiencememberhistory.FieldMetadata: + v, ok := value.(map[string]interface{}) + if !ok { + return fmt.Errorf("unexpected type %T for field %s", value, name) + } + m.SetMetadata(v) + return nil + } + return fmt.Errorf("unknown AudienceMemberHistory field %s", name) +} + +// AddedFields returns all numeric fields that were incremented/decremented during +// this mutation. +func (m *AudienceMemberHistoryMutation) AddedFields() []string { + return nil +} + +// AddedField returns the numeric value that was incremented/decremented on a field +// with the given name. The second boolean return value indicates that this field +// was not set, or was not defined in the schema. +func (m *AudienceMemberHistoryMutation) AddedField(name string) (ent.Value, bool) { + return nil, false +} + +// AddField adds the value to the field with the given name. It returns an error if +// the field is not defined in the schema, or if the type mismatched the field +// type. +func (m *AudienceMemberHistoryMutation) AddField(name string, value ent.Value) error { + switch name { + } + return fmt.Errorf("unknown AudienceMemberHistory numeric field %s", name) +} + +// ClearedFields returns all nullable fields that were cleared during this +// mutation. +func (m *AudienceMemberHistoryMutation) ClearedFields() []string { + var fields []string + if m.FieldCleared(audiencememberhistory.FieldRef) { + fields = append(fields, audiencememberhistory.FieldRef) + } + if m.FieldCleared(audiencememberhistory.FieldCreatedAt) { + fields = append(fields, audiencememberhistory.FieldCreatedAt) + } + if m.FieldCleared(audiencememberhistory.FieldUpdatedAt) { + fields = append(fields, audiencememberhistory.FieldUpdatedAt) + } + if m.FieldCleared(audiencememberhistory.FieldCreatedBy) { + fields = append(fields, audiencememberhistory.FieldCreatedBy) + } + if m.FieldCleared(audiencememberhistory.FieldUpdatedBy) { + fields = append(fields, audiencememberhistory.FieldUpdatedBy) + } + if m.FieldCleared(audiencememberhistory.FieldUpdatedByImpersonator) { + fields = append(fields, audiencememberhistory.FieldUpdatedByImpersonator) + } + if m.FieldCleared(audiencememberhistory.FieldDeletedAt) { + fields = append(fields, audiencememberhistory.FieldDeletedAt) + } + if m.FieldCleared(audiencememberhistory.FieldDeletedBy) { + fields = append(fields, audiencememberhistory.FieldDeletedBy) + } + if m.FieldCleared(audiencememberhistory.FieldTags) { + fields = append(fields, audiencememberhistory.FieldTags) + } + if m.FieldCleared(audiencememberhistory.FieldOwnerID) { + fields = append(fields, audiencememberhistory.FieldOwnerID) + } + if m.FieldCleared(audiencememberhistory.FieldContactID) { + fields = append(fields, audiencememberhistory.FieldContactID) + } + if m.FieldCleared(audiencememberhistory.FieldUserID) { + fields = append(fields, audiencememberhistory.FieldUserID) + } + if m.FieldCleared(audiencememberhistory.FieldGroupID) { + fields = append(fields, audiencememberhistory.FieldGroupID) + } + if m.FieldCleared(audiencememberhistory.FieldIdentityHolderID) { + fields = append(fields, audiencememberhistory.FieldIdentityHolderID) + } + if m.FieldCleared(audiencememberhistory.FieldSubscriberID) { + fields = append(fields, audiencememberhistory.FieldSubscriberID) + } + if m.FieldCleared(audiencememberhistory.FieldFullName) { + fields = append(fields, audiencememberhistory.FieldFullName) + } + if m.FieldCleared(audiencememberhistory.FieldMetadata) { + fields = append(fields, audiencememberhistory.FieldMetadata) + } + return fields +} + +// FieldCleared returns a boolean indicating if a field with the given name was +// cleared in this mutation. +func (m *AudienceMemberHistoryMutation) FieldCleared(name string) bool { + _, ok := m.clearedFields[name] + return ok +} + +// ClearField clears the value of the field with the given name. It returns an +// error if the field is not defined in the schema. +func (m *AudienceMemberHistoryMutation) ClearField(name string) error { + switch name { + case audiencememberhistory.FieldRef: + m.ClearRef() + return nil + case audiencememberhistory.FieldCreatedAt: + m.ClearCreatedAt() + return nil + case audiencememberhistory.FieldUpdatedAt: + m.ClearUpdatedAt() + return nil + case audiencememberhistory.FieldCreatedBy: + m.ClearCreatedBy() + return nil + case audiencememberhistory.FieldUpdatedBy: + m.ClearUpdatedBy() + return nil + case audiencememberhistory.FieldUpdatedByImpersonator: + m.ClearUpdatedByImpersonator() + return nil + case audiencememberhistory.FieldDeletedAt: + m.ClearDeletedAt() + return nil + case audiencememberhistory.FieldDeletedBy: + m.ClearDeletedBy() + return nil + case audiencememberhistory.FieldTags: + m.ClearTags() + return nil + case audiencememberhistory.FieldOwnerID: + m.ClearOwnerID() + return nil + case audiencememberhistory.FieldContactID: + m.ClearContactID() + return nil + case audiencememberhistory.FieldUserID: + m.ClearUserID() + return nil + case audiencememberhistory.FieldGroupID: + m.ClearGroupID() + return nil + case audiencememberhistory.FieldIdentityHolderID: + m.ClearIdentityHolderID() + return nil + case audiencememberhistory.FieldSubscriberID: + m.ClearSubscriberID() + return nil + case audiencememberhistory.FieldFullName: + m.ClearFullName() + return nil + case audiencememberhistory.FieldMetadata: + m.ClearMetadata() + return nil + } + return fmt.Errorf("unknown AudienceMemberHistory nullable field %s", name) +} + +// ResetField resets all changes in the mutation for the field with the given name. +// It returns an error if the field is not defined in the schema. +func (m *AudienceMemberHistoryMutation) ResetField(name string) error { + switch name { + case audiencememberhistory.FieldHistoryTime: + m.ResetHistoryTime() + return nil + case audiencememberhistory.FieldRef: + m.ResetRef() + return nil + case audiencememberhistory.FieldOperation: + m.ResetOperation() + return nil + case audiencememberhistory.FieldCreatedAt: + m.ResetCreatedAt() + return nil + case audiencememberhistory.FieldUpdatedAt: + m.ResetUpdatedAt() + return nil + case audiencememberhistory.FieldCreatedBy: + m.ResetCreatedBy() + return nil + case audiencememberhistory.FieldUpdatedBy: + m.ResetUpdatedBy() + return nil + case audiencememberhistory.FieldUpdatedByImpersonator: + m.ResetUpdatedByImpersonator() + return nil + case audiencememberhistory.FieldDeletedAt: + m.ResetDeletedAt() + return nil + case audiencememberhistory.FieldDeletedBy: + m.ResetDeletedBy() + return nil + case audiencememberhistory.FieldDisplayID: + m.ResetDisplayID() + return nil + case audiencememberhistory.FieldTags: + m.ResetTags() + return nil + case audiencememberhistory.FieldOwnerID: + m.ResetOwnerID() + return nil + case audiencememberhistory.FieldAudienceID: + m.ResetAudienceID() + return nil + case audiencememberhistory.FieldContactID: + m.ResetContactID() + return nil + case audiencememberhistory.FieldUserID: + m.ResetUserID() + return nil + case audiencememberhistory.FieldGroupID: + m.ResetGroupID() + return nil + case audiencememberhistory.FieldIdentityHolderID: + m.ResetIdentityHolderID() + return nil + case audiencememberhistory.FieldSubscriberID: + m.ResetSubscriberID() + return nil + case audiencememberhistory.FieldEmail: + m.ResetEmail() + return nil + case audiencememberhistory.FieldFullName: + m.ResetFullName() + return nil + case audiencememberhistory.FieldMetadata: + m.ResetMetadata() + return nil + } + return fmt.Errorf("unknown AudienceMemberHistory field %s", name) +} + +// AddedEdges returns all edge names that were set/added in this mutation. +func (m *AudienceMemberHistoryMutation) AddedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// AddedIDs returns all IDs (to other nodes) that were added for the given edge +// name in this mutation. +func (m *AudienceMemberHistoryMutation) AddedIDs(name string) []ent.Value { + return nil +} + +// RemovedEdges returns all edge names that were removed in this mutation. +func (m *AudienceMemberHistoryMutation) RemovedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// RemovedIDs returns all IDs (to other nodes) that were removed for the edge with +// the given name in this mutation. +func (m *AudienceMemberHistoryMutation) RemovedIDs(name string) []ent.Value { + return nil +} + +// ClearedEdges returns all edge names that were cleared in this mutation. +func (m *AudienceMemberHistoryMutation) ClearedEdges() []string { + edges := make([]string, 0, 0) + return edges +} + +// EdgeCleared returns a boolean which indicates if the edge with the given name +// was cleared in this mutation. +func (m *AudienceMemberHistoryMutation) EdgeCleared(name string) bool { + return false +} + +// ClearEdge clears the value of the edge with the given name. It returns an error +// if that edge is not defined in the schema. +func (m *AudienceMemberHistoryMutation) ClearEdge(name string) error { + return fmt.Errorf("unknown AudienceMemberHistory unique edge %s", name) +} + +// ResetEdge resets all changes to the edge with the given name in this mutation. +// It returns an error if the edge is not defined in the schema. +func (m *AudienceMemberHistoryMutation) ResetEdge(name string) error { + return fmt.Errorf("unknown AudienceMemberHistory edge %s", name) +} + // CampaignHistoryMutation represents an operation that mutates the CampaignHistory nodes in the graph. type CampaignHistoryMutation struct { config diff --git a/internal/ent/historygenerated/predicate/predicate.go b/internal/ent/historygenerated/predicate/predicate.go index d8bd5eafd2..f435bdc227 100644 --- a/internal/ent/historygenerated/predicate/predicate.go +++ b/internal/ent/historygenerated/predicate/predicate.go @@ -20,6 +20,12 @@ type AssessmentResponseHistory func(*sql.Selector) // AssetHistory is the predicate function for assethistory builders. type AssetHistory func(*sql.Selector) +// AudienceHistory is the predicate function for audiencehistory builders. +type AudienceHistory func(*sql.Selector) + +// AudienceMemberHistory is the predicate function for audiencememberhistory builders. +type AudienceMemberHistory func(*sql.Selector) + // CampaignHistory is the predicate function for campaignhistory builders. type CampaignHistory func(*sql.Selector) diff --git a/internal/ent/historygenerated/privacy/privacy.go b/internal/ent/historygenerated/privacy/privacy.go index 3ece6d1af1..631c56c392 100644 --- a/internal/ent/historygenerated/privacy/privacy.go +++ b/internal/ent/historygenerated/privacy/privacy.go @@ -209,6 +209,54 @@ func (f AssetHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m histor return Denyf("historygenerated/privacy: unexpected mutation type %T, expect *historygenerated.AssetHistoryMutation", m) } +// The AudienceHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type AudienceHistoryQueryRuleFunc func(context.Context, *historygenerated.AudienceHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f AudienceHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q historygenerated.Query) error { + if q, ok := q.(*historygenerated.AudienceHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("historygenerated/privacy: unexpected query type %T, expect *historygenerated.AudienceHistoryQuery", q) +} + +// The AudienceHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type AudienceHistoryMutationRuleFunc func(context.Context, *historygenerated.AudienceHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f AudienceHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m historygenerated.Mutation) error { + if m, ok := m.(*historygenerated.AudienceHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("historygenerated/privacy: unexpected mutation type %T, expect *historygenerated.AudienceHistoryMutation", m) +} + +// The AudienceMemberHistoryQueryRuleFunc type is an adapter to allow the use of ordinary +// functions as a query rule. +type AudienceMemberHistoryQueryRuleFunc func(context.Context, *historygenerated.AudienceMemberHistoryQuery) error + +// EvalQuery return f(ctx, q). +func (f AudienceMemberHistoryQueryRuleFunc) EvalQuery(ctx context.Context, q historygenerated.Query) error { + if q, ok := q.(*historygenerated.AudienceMemberHistoryQuery); ok { + return f(ctx, q) + } + return Denyf("historygenerated/privacy: unexpected query type %T, expect *historygenerated.AudienceMemberHistoryQuery", q) +} + +// The AudienceMemberHistoryMutationRuleFunc type is an adapter to allow the use of ordinary +// functions as a mutation rule. +type AudienceMemberHistoryMutationRuleFunc func(context.Context, *historygenerated.AudienceMemberHistoryMutation) error + +// EvalMutation calls f(ctx, m). +func (f AudienceMemberHistoryMutationRuleFunc) EvalMutation(ctx context.Context, m historygenerated.Mutation) error { + if m, ok := m.(*historygenerated.AudienceMemberHistoryMutation); ok { + return f(ctx, m) + } + return Denyf("historygenerated/privacy: unexpected mutation type %T, expect *historygenerated.AudienceMemberHistoryMutation", m) +} + // The CampaignHistoryQueryRuleFunc type is an adapter to allow the use of ordinary // functions as a query rule. type CampaignHistoryQueryRuleFunc func(context.Context, *historygenerated.CampaignHistoryQuery) error @@ -1740,6 +1788,10 @@ func queryFilter(q historygenerated.Query) (Filter, error) { return q.Filter(), nil case *historygenerated.AssetHistoryQuery: return q.Filter(), nil + case *historygenerated.AudienceHistoryQuery: + return q.Filter(), nil + case *historygenerated.AudienceMemberHistoryQuery: + return q.Filter(), nil case *historygenerated.CampaignHistoryQuery: return q.Filter(), nil case *historygenerated.CampaignTargetHistoryQuery: @@ -1879,6 +1931,10 @@ func mutationFilter(m historygenerated.Mutation) (Filter, error) { return m.Filter(), nil case *historygenerated.AssetHistoryMutation: return m.Filter(), nil + case *historygenerated.AudienceHistoryMutation: + return m.Filter(), nil + case *historygenerated.AudienceMemberHistoryMutation: + return m.Filter(), nil case *historygenerated.CampaignHistoryMutation: return m.Filter(), nil case *historygenerated.CampaignTargetHistoryMutation: diff --git a/internal/ent/historygenerated/runtime/runtime.go b/internal/ent/historygenerated/runtime/runtime.go index 7415fa493c..dcc0002414 100644 --- a/internal/ent/historygenerated/runtime/runtime.go +++ b/internal/ent/historygenerated/runtime/runtime.go @@ -13,6 +13,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmenthistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assessmentresponsehistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/assethistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencehistory" + "github.com/theopenlane/core/v2/internal/ent/historygenerated/audiencememberhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaignhistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/campaigntargethistory" "github.com/theopenlane/core/v2/internal/ent/historygenerated/contacthistory" @@ -313,6 +315,72 @@ func init() { assethistoryDescID := assethistoryFields[10].Descriptor() // assethistory.DefaultID holds the default value on creation for the id field. assethistory.DefaultID = assethistoryDescID.Default.(func() string) + audiencehistory.Policy = privacy.NewPolicies(historyschema.AudienceHistory{}) + audiencehistory.Hooks[0] = func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + if err := audiencehistory.Policy.EvalMutation(ctx, m); err != nil { + return nil, err + } + return next.Mutate(ctx, m) + }) + } + audiencehistoryInters := historyschema.AudienceHistory{}.Interceptors() + audiencehistory.Interceptors[0] = audiencehistoryInters[0] + audiencehistoryFields := historyschema.AudienceHistory{}.Fields() + _ = audiencehistoryFields + // audiencehistoryDescHistoryTime is the schema descriptor for history_time field. + audiencehistoryDescHistoryTime := audiencehistoryFields[0].Descriptor() + // audiencehistory.DefaultHistoryTime holds the default value on creation for the history_time field. + audiencehistory.DefaultHistoryTime = audiencehistoryDescHistoryTime.Default.(func() time.Time) + // audiencehistoryDescCreatedAt is the schema descriptor for created_at field. + audiencehistoryDescCreatedAt := audiencehistoryFields[3].Descriptor() + // audiencehistory.DefaultCreatedAt holds the default value on creation for the created_at field. + audiencehistory.DefaultCreatedAt = audiencehistoryDescCreatedAt.Default.(func() time.Time) + // audiencehistoryDescUpdatedAt is the schema descriptor for updated_at field. + audiencehistoryDescUpdatedAt := audiencehistoryFields[4].Descriptor() + // audiencehistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + audiencehistory.DefaultUpdatedAt = audiencehistoryDescUpdatedAt.Default.(func() time.Time) + // audiencehistoryDescTags is the schema descriptor for tags field. + audiencehistoryDescTags := audiencehistoryFields[12].Descriptor() + // audiencehistory.DefaultTags holds the default value on creation for the tags field. + audiencehistory.DefaultTags = audiencehistoryDescTags.Default.([]string) + // audiencehistoryDescID is the schema descriptor for id field. + audiencehistoryDescID := audiencehistoryFields[10].Descriptor() + // audiencehistory.DefaultID holds the default value on creation for the id field. + audiencehistory.DefaultID = audiencehistoryDescID.Default.(func() string) + audiencememberhistory.Policy = privacy.NewPolicies(historyschema.AudienceMemberHistory{}) + audiencememberhistory.Hooks[0] = func(next ent.Mutator) ent.Mutator { + return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { + if err := audiencememberhistory.Policy.EvalMutation(ctx, m); err != nil { + return nil, err + } + return next.Mutate(ctx, m) + }) + } + audiencememberhistoryInters := historyschema.AudienceMemberHistory{}.Interceptors() + audiencememberhistory.Interceptors[0] = audiencememberhistoryInters[0] + audiencememberhistoryFields := historyschema.AudienceMemberHistory{}.Fields() + _ = audiencememberhistoryFields + // audiencememberhistoryDescHistoryTime is the schema descriptor for history_time field. + audiencememberhistoryDescHistoryTime := audiencememberhistoryFields[0].Descriptor() + // audiencememberhistory.DefaultHistoryTime holds the default value on creation for the history_time field. + audiencememberhistory.DefaultHistoryTime = audiencememberhistoryDescHistoryTime.Default.(func() time.Time) + // audiencememberhistoryDescCreatedAt is the schema descriptor for created_at field. + audiencememberhistoryDescCreatedAt := audiencememberhistoryFields[3].Descriptor() + // audiencememberhistory.DefaultCreatedAt holds the default value on creation for the created_at field. + audiencememberhistory.DefaultCreatedAt = audiencememberhistoryDescCreatedAt.Default.(func() time.Time) + // audiencememberhistoryDescUpdatedAt is the schema descriptor for updated_at field. + audiencememberhistoryDescUpdatedAt := audiencememberhistoryFields[4].Descriptor() + // audiencememberhistory.DefaultUpdatedAt holds the default value on creation for the updated_at field. + audiencememberhistory.DefaultUpdatedAt = audiencememberhistoryDescUpdatedAt.Default.(func() time.Time) + // audiencememberhistoryDescTags is the schema descriptor for tags field. + audiencememberhistoryDescTags := audiencememberhistoryFields[12].Descriptor() + // audiencememberhistory.DefaultTags holds the default value on creation for the tags field. + audiencememberhistory.DefaultTags = audiencememberhistoryDescTags.Default.([]string) + // audiencememberhistoryDescID is the schema descriptor for id field. + audiencememberhistoryDescID := audiencememberhistoryFields[10].Descriptor() + // audiencememberhistory.DefaultID holds the default value on creation for the id field. + audiencememberhistory.DefaultID = audiencememberhistoryDescID.Default.(func() string) campaignhistory.Policy = privacy.NewPolicies(historyschema.CampaignHistory{}) campaignhistory.Hooks[0] = func(next ent.Mutator) ent.Mutator { return ent.MutateFunc(func(ctx context.Context, m ent.Mutation) (ent.Value, error) { diff --git a/internal/ent/historygenerated/tx.go b/internal/ent/historygenerated/tx.go index 87dc1a1bbe..4e4abd2f55 100644 --- a/internal/ent/historygenerated/tx.go +++ b/internal/ent/historygenerated/tx.go @@ -22,6 +22,10 @@ type Tx struct { AssessmentResponseHistory *AssessmentResponseHistoryClient // AssetHistory is the client for interacting with the AssetHistory builders. AssetHistory *AssetHistoryClient + // AudienceHistory is the client for interacting with the AudienceHistory builders. + AudienceHistory *AudienceHistoryClient + // AudienceMemberHistory is the client for interacting with the AudienceMemberHistory builders. + AudienceMemberHistory *AudienceMemberHistoryClient // CampaignHistory is the client for interacting with the CampaignHistory builders. CampaignHistory *CampaignHistoryClient // CampaignTargetHistory is the client for interacting with the CampaignTargetHistory builders. @@ -281,6 +285,8 @@ func (tx *Tx) init() { tx.AssessmentHistory = NewAssessmentHistoryClient(tx.config) tx.AssessmentResponseHistory = NewAssessmentResponseHistoryClient(tx.config) tx.AssetHistory = NewAssetHistoryClient(tx.config) + tx.AudienceHistory = NewAudienceHistoryClient(tx.config) + tx.AudienceMemberHistory = NewAudienceMemberHistoryClient(tx.config) tx.CampaignHistory = NewCampaignHistoryClient(tx.config) tx.CampaignTargetHistory = NewCampaignTargetHistoryClient(tx.config) tx.ContactHistory = NewContactHistoryClient(tx.config) diff --git a/internal/ent/historyschema/audience_history.go b/internal/ent/historyschema/audience_history.go new file mode 100644 index 0000000000..606c83a7f5 --- /dev/null +++ b/internal/ent/historyschema/audience_history.go @@ -0,0 +1,133 @@ +// Code generated by entx.history, DO NOT EDIT. +package historyschema + +import ( + "time" + + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/dialect/entsql" + entschema "entgo.io/ent/schema" + "entgo.io/ent/schema/field" + "entgo.io/ent/schema/index" + + "github.com/theopenlane/core/v2/internal/ent/interceptors" + "github.com/theopenlane/core/v2/internal/ent/privacy/policy" + "github.com/theopenlane/core/v2/internal/ent/schema" + "github.com/theopenlane/entx" + "github.com/theopenlane/entx/history" + "github.com/theopenlane/iam/entfga" +) + +// AudienceHistory holds the schema definition for the AudienceHistory entity. +type AudienceHistory struct { + ent.Schema +} + +// Annotations of the AudienceHistory. +func (AudienceHistory) Annotations() []entschema.Annotation { + return []entschema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "audience_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + entfga.Annotations{ + ObjectType: "audience", + IDField: "Ref", + IncludeHooks: false, + }, + } +} + +// Fields of the AudienceHistory. +func (AudienceHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("history_time"). + Annotations( + entgql.OrderField("history_time"), + ). + Default(time.Now). + Immutable(), + field.String("ref"). + Immutable(). + Optional(), + field.Enum("operation"). + GoType(history.OpType("")). + Immutable(), + } + + // get the fields from the mixins + // we only want to include mixin fields, not edges + // so this prevents FKs back to the main tables + mixins := schema.Audience{}.Mixin() + for _, mixin := range mixins { + for _, field := range mixin.Fields() { + // make sure the mixed in fields do not have unique constraints + field.Descriptor().Unique = false + + // make sure the mixed in fields do not have validators + field.Descriptor().Validators = nil + + // history rows are insert only, so no tracked field may be updated + field.Descriptor().Immutable = true + + // ent still emits a setter for an immutable field that carries an update + // default, and a snapshot column must keep the value it was written with + field.Descriptor().UpdateDefault = nil + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := schema.Audience{} + for _, field := range original.Fields() { + // make sure the fields do not have unique constraints + field.Descriptor().Unique = false + + // make sure the mixed in fields do not have validators + field.Descriptor().Validators = nil + + // history rows are insert only, so no tracked field may be updated + field.Descriptor().Immutable = true + + // ent still emits a setter for an immutable field that carries an update + // default, and a snapshot column must keep the value it was written with + field.Descriptor().UpdateDefault = nil + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the AudienceHistory +func (AudienceHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} + +// Policy of the AudienceHistory. +// ensure history.AllowIfHistoryRequest() is already added to the base policy +func (AudienceHistory) Policy() ent.Policy { + return policy.NewPolicy( + policy.WithMutationRules( + history.AllowIfHistoryRequest(), + ), + ) +} + +// Interceptors of the AudienceHistory +func (AudienceHistory) Interceptors() []ent.Interceptor { + return []ent.Interceptor{ + interceptors.FilterListQuery(), + } +} diff --git a/internal/ent/historyschema/audiencemember_history.go b/internal/ent/historyschema/audiencemember_history.go new file mode 100644 index 0000000000..347c2f6e41 --- /dev/null +++ b/internal/ent/historyschema/audiencemember_history.go @@ -0,0 +1,133 @@ +// Code generated by entx.history, DO NOT EDIT. +package historyschema + +import ( + "time" + + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/dialect/entsql" + entschema "entgo.io/ent/schema" + "entgo.io/ent/schema/field" + "entgo.io/ent/schema/index" + + "github.com/theopenlane/core/v2/internal/ent/interceptors" + "github.com/theopenlane/core/v2/internal/ent/privacy/policy" + "github.com/theopenlane/core/v2/internal/ent/schema" + "github.com/theopenlane/entx" + "github.com/theopenlane/entx/history" + "github.com/theopenlane/iam/entfga" +) + +// AudienceMemberHistory holds the schema definition for the AudienceMemberHistory entity. +type AudienceMemberHistory struct { + ent.Schema +} + +// Annotations of the AudienceMemberHistory. +func (AudienceMemberHistory) Annotations() []entschema.Annotation { + return []entschema.Annotation{ + entx.SchemaGenSkip(true), + entsql.Annotation{ + Table: "audience_member_history", + }, + history.Annotations{ + IsHistory: true, + Exclude: true, + }, + entgql.QueryField(), + entgql.RelayConnection(), + entfga.Annotations{ + ObjectType: "audience_member", + IDField: "Ref", + IncludeHooks: false, + }, + } +} + +// Fields of the AudienceMemberHistory. +func (AudienceMemberHistory) Fields() []ent.Field { + historyFields := []ent.Field{ + field.Time("history_time"). + Annotations( + entgql.OrderField("history_time"), + ). + Default(time.Now). + Immutable(), + field.String("ref"). + Immutable(). + Optional(), + field.Enum("operation"). + GoType(history.OpType("")). + Immutable(), + } + + // get the fields from the mixins + // we only want to include mixin fields, not edges + // so this prevents FKs back to the main tables + mixins := schema.AudienceMember{}.Mixin() + for _, mixin := range mixins { + for _, field := range mixin.Fields() { + // make sure the mixed in fields do not have unique constraints + field.Descriptor().Unique = false + + // make sure the mixed in fields do not have validators + field.Descriptor().Validators = nil + + // history rows are insert only, so no tracked field may be updated + field.Descriptor().Immutable = true + + // ent still emits a setter for an immutable field that carries an update + // default, and a snapshot column must keep the value it was written with + field.Descriptor().UpdateDefault = nil + + // append the mixed in field to the history fields + historyFields = append(historyFields, field) + } + } + + original := schema.AudienceMember{} + for _, field := range original.Fields() { + // make sure the fields do not have unique constraints + field.Descriptor().Unique = false + + // make sure the mixed in fields do not have validators + field.Descriptor().Validators = nil + + // history rows are insert only, so no tracked field may be updated + field.Descriptor().Immutable = true + + // ent still emits a setter for an immutable field that carries an update + // default, and a snapshot column must keep the value it was written with + field.Descriptor().UpdateDefault = nil + + // append the field to the history fields + historyFields = append(historyFields, field) + } + + return historyFields +} + +// Indexes of the AudienceMemberHistory +func (AudienceMemberHistory) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("history_time"), + } +} + +// Policy of the AudienceMemberHistory. +// ensure history.AllowIfHistoryRequest() is already added to the base policy +func (AudienceMemberHistory) Policy() ent.Policy { + return policy.NewPolicy( + policy.WithMutationRules( + history.AllowIfHistoryRequest(), + ), + ) +} + +// Interceptors of the AudienceMemberHistory +func (AudienceMemberHistory) Interceptors() []ent.Interceptor { + return []ent.Interceptor{ + interceptors.FilterListQuery(), + } +} diff --git a/internal/ent/hooks/audience.go b/internal/ent/hooks/audience.go new file mode 100644 index 0000000000..7e27c05665 --- /dev/null +++ b/internal/ent/hooks/audience.go @@ -0,0 +1,91 @@ +package hooks + +import ( + "context" + "errors" + "fmt" + + "entgo.io/ent" + "github.com/theopenlane/entx" + + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/audiences" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/generated/hook" +) + +var ( + errAudienceFilterMissingBulkType = errors.New("bulk audience filter updates must include audience_type") + errAudienceFilterUnsupportedOp = errors.New("bulk dynamic audience updates must include filters") + errAudienceFilterManualBulk = errors.New("bulk manual audience updates must clear filters") +) + +// HookAudienceValidateFilters validates audience filters before writes. +func HookAudienceValidateFilters() ent.Hook { + return hook.On(func(next ent.Mutator) ent.Mutator { + return hook.AudienceFunc(func(ctx context.Context, m *generated.AudienceMutation) (generated.Value, error) { + if entx.CheckIsSoftDeleteType(ctx, m.Type()) { + return next.Mutate(ctx, m) + } + + audienceTyp, err := getAudienceType(ctx, m) + if err != nil { + return nil, err + } + + filters, err := getAudienceFilters(ctx, m) + if err != nil { + return nil, err + } + + if err := audiences.ValidateAudienceFilters(audienceTyp, filters); err != nil { + return nil, fmt.Errorf("%w: %w", ErrInvalidInput, err) + } + + return next.Mutate(ctx, m) + }) + }, ent.OpCreate|ent.OpUpdateOne|ent.OpUpdate) +} + +func getAudienceType(ctx context.Context, m *generated.AudienceMutation) (enums.AudienceType, error) { + if audienceType, ok := m.AudienceType(); ok { + return audienceType, nil + } + + if m.Op().Is(ent.OpUpdateOne) { + return m.OldAudienceType(ctx) + } + + if m.Op().Is(ent.OpUpdate) { + if _, ok := m.Filters(); ok || m.FiltersCleared() { + return "", fmt.Errorf("%w: %w", ErrInvalidInput, errAudienceFilterMissingBulkType) + } + } + + return enums.AudienceTypeManual, nil +} + +func getAudienceFilters(ctx context.Context, m *generated.AudienceMutation) (map[string]any, error) { + if m.FiltersCleared() { + return map[string]any{}, nil + } + + if f, ok := m.Filters(); ok { + return f, nil + } + + if m.Op().Is(ent.OpUpdateOne) { + return m.OldFilters(ctx) + } + + audienceType, ok := m.AudienceType() + if m.Op().Is(ent.OpUpdate) && ok && audienceType == enums.AudienceTypeDynamic { + return nil, fmt.Errorf("%w: %w", ErrInvalidInput, errAudienceFilterUnsupportedOp) + } + + if m.Op().Is(ent.OpUpdate) && ok && audienceType == enums.AudienceTypeManual { + return nil, fmt.Errorf("%w: %w", ErrInvalidInput, errAudienceFilterManualBulk) + } + + return map[string]any{}, nil +} diff --git a/internal/ent/schema/audience.go b/internal/ent/schema/audience.go new file mode 100644 index 0000000000..6c9a99516a --- /dev/null +++ b/internal/ent/schema/audience.go @@ -0,0 +1,134 @@ +package schema + +import ( + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/dialect/entsql" + "entgo.io/ent/schema" + "entgo.io/ent/schema/field" + "entgo.io/ent/schema/index" + + "github.com/gertd/go-pluralize" + "github.com/theopenlane/entx" + "github.com/theopenlane/iam/entfga" + + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/common/models" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/hooks" + "github.com/theopenlane/core/v2/internal/ent/privacy/policy" +) + +// Audience holds the schema definition for reusable recipient audiences. +type Audience struct { + SchemaFuncs + + ent.Schema +} + +// SchemaAudience is the name of the Audience schema. +const SchemaAudience = "audience" + +// Name returns the name of the Audience schema. +func (Audience) Name() string { + return SchemaAudience +} + +// GetType returns the type of the Audience schema. +func (Audience) GetType() any { + return Audience.Type +} + +// PluralName returns the plural name of the Audience schema. +func (Audience) PluralName() string { + return pluralize.NewClient().Plural(SchemaAudience) +} + +// Fields of the Audience. +func (Audience) Fields() []ent.Field { + return []ent.Field{ + field.String("name"). + Comment("the name of the audience"). + NotEmpty(). + Annotations( + entx.FieldSearchable(), + entgql.OrderField("name"), + ), + field.String("description"). + Comment("the description of the audience"). + Optional(), + field.Enum("audience_type"). + Comment("the audience resolution type"). + GoType(enums.AudienceType("")). + Default(enums.AudienceTypeManual.String()). + Annotations( + entgql.OrderField("AUDIENCE_TYPE"), + ), + field.JSON("filters", map[string]any{}). + Comment("selector filters for dynamic audiences"). + Optional(), + field.JSON("metadata", map[string]any{}). + Comment("additional metadata about the audience"). + Optional(), + } +} + +// Mixin of the Audience. +func (a Audience) Mixin() []ent.Mixin { + return mixinConfig{ + prefix: "AUD", + additionalMixins: []ent.Mixin{ + newOrgOwnedMixin(a), + newGroupPermissionsMixin(), + }, + }.getMixins(a) +} + +// Edges of the Audience. +func (a Audience) Edges() []ent.Edge { + return []ent.Edge{ + defaultEdgeToWithPagination(a, AudienceMember{}), + defaultEdgeFromWithPagination(a, Campaign{}), + } +} + +// Indexes of the Audience. +func (Audience) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("name", ownerFieldName). + Annotations(entsql.IndexWhere("deleted_at is NULL")), + } +} + +// Modules this schema has access to. +func (Audience) Modules() []models.OrgModule { + return []models.OrgModule{ + models.CatalogComplianceModule, + models.CatalogTrustCenterModule, + } +} + +// Annotations of the Audience. +func (Audience) Annotations() []schema.Annotation { + return []schema.Annotation{ + entfga.SelfAccessChecks(), + entx.NewExportable(), + } +} + +// Hooks of the Audience. +func (Audience) Hooks() []ent.Hook { + return []ent.Hook{ + hooks.HookAudienceValidateFilters(), + } +} + +// Policy of the Audience. +func (Audience) Policy() ent.Policy { + return policy.NewPolicy( + policy.WithMutationRules( + policy.CheckCreateAccess(), + entfga.CheckEditAccess[*generated.AudienceMutation](), + ), + ) +} diff --git a/internal/ent/schema/audience_member.go b/internal/ent/schema/audience_member.go new file mode 100644 index 0000000000..0de7778922 --- /dev/null +++ b/internal/ent/schema/audience_member.go @@ -0,0 +1,192 @@ +package schema + +import ( + "net/mail" + + "entgo.io/contrib/entgql" + "entgo.io/ent" + "entgo.io/ent/dialect/entsql" + "entgo.io/ent/schema" + "entgo.io/ent/schema/field" + "entgo.io/ent/schema/index" + + "github.com/gertd/go-pluralize" + "github.com/theopenlane/entx" + "github.com/theopenlane/entx/accessmap" + "github.com/theopenlane/iam/entfga" + + "github.com/theopenlane/core/common/models" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/privacy/policy" +) + +// AudienceMember holds the schema definition for manually managed audience recipients. +type AudienceMember struct { + SchemaFuncs + + ent.Schema +} + +// SchemaAudienceMember is the name of the AudienceMember schema. +const SchemaAudienceMember = "audience_member" + +// Name returns the name of the AudienceMember schema. +func (AudienceMember) Name() string { + return SchemaAudienceMember +} + +// GetType returns the type of the AudienceMember schema. +func (AudienceMember) GetType() any { + return AudienceMember.Type +} + +// PluralName returns the plural name of the AudienceMember schema. +func (AudienceMember) PluralName() string { + return pluralize.NewClient().Plural(SchemaAudienceMember) +} + +// Fields of the AudienceMember. +func (AudienceMember) Fields() []ent.Field { + return []ent.Field{ + field.String("audience_id"). + Comment("the audience this member belongs to"). + Immutable(). + NotEmpty(), + field.String("contact_id"). + Comment("the contact associated with this audience member"). + Optional(), + field.String("user_id"). + Comment("the user associated with this audience member"). + Optional(), + field.String("group_id"). + Comment("the group associated with this audience member"). + Optional(), + field.String("identity_holder_id"). + Comment("the identity holder associated with this audience member"). + Optional(), + field.String("subscriber_id"). + Comment("the subscriber associated with this audience member"). + Optional(), + field.String("email"). + Comment("the email address for this audience member"). + NotEmpty(). + Annotations( + entx.FieldSearchable(), + entgql.OrderField("email"), + ). + Validate(func(email string) error { + _, err := mail.ParseAddress(email) + return err + }), + field.String("full_name"). + Comment("the name of this audience member, if known"). + Optional(). + Annotations( + entgql.OrderField("full_name"), + ), + field.JSON("metadata", map[string]any{}). + Comment("additional metadata about the audience member"). + Optional(), + } +} + +// Mixin of the AudienceMember. +func (m AudienceMember) Mixin() []ent.Mixin { + return mixinConfig{ + prefix: "AUDM", + additionalMixins: []ent.Mixin{ + newOrgOwnedMixin(m), + }, + }.getMixins(m) +} + +// Edges of the AudienceMember. +func (m AudienceMember) Edges() []ent.Edge { + return []ent.Edge{ + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: Audience{}, + field: "audience_id", + required: true, + immutable: true, + }), + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: Contact{}, + field: "contact_id", + annotations: []schema.Annotation{ + accessmap.EdgeViewCheck(Contact{}.Name()), + }, + }), + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: User{}, + field: "user_id", + annotations: []schema.Annotation{ + accessmap.EdgeViewCheck(User{}.Name()), + }, + }), + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: Group{}, + field: "group_id", + annotations: []schema.Annotation{ + accessmap.EdgeViewCheck(Group{}.Name()), + }, + }), + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: IdentityHolder{}, + field: "identity_holder_id", + annotations: []schema.Annotation{ + accessmap.EdgeViewCheck(IdentityHolder{}.Name()), + }, + }), + uniqueEdgeFrom(&edgeDefinition{ + fromSchema: m, + edgeSchema: Subscriber{}, + field: "subscriber_id", + annotations: []schema.Annotation{ + accessmap.EdgeViewCheck(Organization{}.Name()), + }, + }), + } +} + +// Indexes of the AudienceMember. +func (AudienceMember) Indexes() []ent.Index { + return []ent.Index{ + index.Fields("audience_id", "email"). + Unique(). + Annotations(entsql.IndexWhere("deleted_at is NULL")), + } +} + +// Modules this schema has access to. +func (AudienceMember) Modules() []models.OrgModule { + return []models.OrgModule{ + models.CatalogComplianceModule, + models.CatalogTrustCenterModule, + } +} + +// Annotations of the AudienceMember. +func (AudienceMember) Annotations() []schema.Annotation { + return []schema.Annotation{ + entfga.SelfAccessChecks(), + entx.NewExportable(), + } +} + +// Policy of the AudienceMember. +func (AudienceMember) Policy() ent.Policy { + return policy.NewPolicy( + policy.WithMutationRules( + policy.CheckCreateAccess(), + policy.CanCreateObjectsUnderParents([]string{ + Audience{}.PluralName(), + }), + entfga.CheckEditAccess[*generated.AudienceMemberMutation](), + ), + ) +} diff --git a/internal/ent/schema/campaign.go b/internal/ent/schema/campaign.go index 355972e8de..bae891de1f 100644 --- a/internal/ent/schema/campaign.go +++ b/internal/ent/schema/campaign.go @@ -324,6 +324,7 @@ func (c Campaign) Edges() []ent.Edge { defaultEdgeToWithPagination(c, User{}), defaultEdgeToWithPagination(c, Group{}), defaultEdgeToWithPagination(c, IdentityHolder{}), + defaultEdgeToWithPagination(c, Audience{}), defaultEdgeFromWithPagination(c, Control{}), edgeFromWithPagination(&edgeDefinition{ fromSchema: c, diff --git a/internal/ent/schema/contact.go b/internal/ent/schema/contact.go index e15cc59569..50676739b5 100644 --- a/internal/ent/schema/contact.go +++ b/internal/ent/schema/contact.go @@ -140,6 +140,7 @@ func (c Contact) Edges() []ent.Edge { defaultEdgeFromWithPagination(c, Entity{}), defaultEdgeFromWithPagination(c, Campaign{}), defaultEdgeToWithPagination(c, CampaignTarget{}), + defaultEdgeToWithPagination(c, AudienceMember{}), defaultEdgeToWithPagination(c, File{}), defaultEdgeToWithPagination(c, Subscriber{}), } diff --git a/internal/ent/schema/group.go b/internal/ent/schema/group.go index 8e1ce4a6a4..851d51b75d 100644 --- a/internal/ent/schema/group.go +++ b/internal/ent/schema/group.go @@ -196,6 +196,7 @@ func (g Group) Edges() []ent.Edge { defaultEdgeToWithPagination(g, Task{}), defaultEdgeFromWithPagination(g, Campaign{}), defaultEdgeToWithPagination(g, CampaignTarget{}), + defaultEdgeToWithPagination(g, AudienceMember{}), edgeFromWithPagination(&edgeDefinition{ fromSchema: g, edgeSchema: Invite{}, @@ -214,7 +215,7 @@ func (g Group) Mixin() []ent.Mixin { newOrgOwnedMixin(g), // Add the reverse edges for m:m relationships permissions based on the groups newGroupPermissionsEdgesMixin( - withEdges(Program{}, Risk{}, ControlObjective{}, Narrative{}, ControlImplementation{}, ActionPlan{}, Platform{}, Campaign{}), + withEdges(Program{}, Risk{}, ControlObjective{}, Narrative{}, ControlImplementation{}, ActionPlan{}, Platform{}, Campaign{}, Audience{}), withEdgesNoView(Procedure{}, InternalPolicy{}, Control{}, MappedControl{}, Scan{}, Entity{}, Finding{}, Review{}, Remediation{}), ), }, diff --git a/internal/ent/schema/identity_holder.go b/internal/ent/schema/identity_holder.go index fd41025085..8b13c9d57a 100644 --- a/internal/ent/schema/identity_holder.go +++ b/internal/ent/schema/identity_holder.go @@ -267,6 +267,7 @@ func (p IdentityHolder) Edges() []ent.Edge { defaultEdgeFromWithPagination(p, Subcontrol{}), defaultEdgeFromWithPagination(p, Platform{}), defaultEdgeFromWithPagination(p, Campaign{}), + defaultEdgeToWithPagination(p, AudienceMember{}), defaultEdgeToWithPagination(p, Task{}), defaultEdgeToWithPagination(p, File{}), defaultEdgeFromWithPagination(p, Finding{}), diff --git a/internal/ent/schema/organization.go b/internal/ent/schema/organization.go index 2caf82ccb3..ae07c097c0 100644 --- a/internal/ent/schema/organization.go +++ b/internal/ent/schema/organization.go @@ -447,6 +447,16 @@ func (o Organization) Edges() []ent.Edge { edgeSchema: Export{}, cascadeDeleteOwner: true, }), + edgeToWithPagination(&edgeDefinition{ + fromSchema: o, + edgeSchema: Audience{}, + cascadeDeleteOwner: true, + }), + edgeToWithPagination(&edgeDefinition{ + fromSchema: o, + edgeSchema: AudienceMember{}, + cascadeDeleteOwner: true, + }), edgeToWithPagination(&edgeDefinition{ fromSchema: o, edgeSchema: TrustCenterWatermarkConfig{}, diff --git a/internal/ent/schema/subscriber.go b/internal/ent/schema/subscriber.go index 9fccae4b70..6641acf851 100644 --- a/internal/ent/schema/subscriber.go +++ b/internal/ent/schema/subscriber.go @@ -155,6 +155,7 @@ func (s Subscriber) Edges() []ent.Edge { edgeSchema: User{}, field: "user_id", }), + defaultEdgeToWithPagination(s, AudienceMember{}), } } diff --git a/internal/ent/schema/user.go b/internal/ent/schema/user.go index bce07a2a7f..2f4fa977be 100644 --- a/internal/ent/schema/user.go +++ b/internal/ent/schema/user.go @@ -257,6 +257,7 @@ func (u User) Edges() []ent.Edge { defaultEdgeToWithPagination(u, ActionPlan{}), defaultEdgeFromWithPagination(u, Campaign{}), defaultEdgeToWithPagination(u, CampaignTarget{}), + defaultEdgeToWithPagination(u, AudienceMember{}), defaultEdgeToWithPagination(u, Subcontrol{}), edgeToWithPagination(&edgeDefinition{ fromSchema: u, diff --git a/internal/entitlements/features/features.go b/internal/entitlements/features/features.go index 58bf8d3546..93a62cfe9c 100644 --- a/internal/entitlements/features/features.go +++ b/internal/entitlements/features/features.go @@ -9,6 +9,8 @@ var FeatureOfType = map[string][]models.OrgModule{ "Assessment": {models.CatalogComplianceModule}, "AssessmentResponse": {models.CatalogComplianceModule}, "Asset": {models.CatalogEntityManagementModule, models.CatalogComplianceModule, models.CatalogRegistryModule}, + "Audience": {models.CatalogComplianceModule, models.CatalogTrustCenterModule}, + "AudienceMember": {models.CatalogComplianceModule, models.CatalogTrustCenterModule}, "Campaign": {models.CatalogComplianceModule, models.CatalogTrustCenterModule}, "CampaignTarget": {models.CatalogComplianceModule, models.CatalogTrustCenterModule}, "Contact": {models.CatalogEntityManagementModule, models.CatalogComplianceModule, models.CatalogRegistryModule}, diff --git a/internal/graphapi/audience.resolvers.go b/internal/graphapi/audience.resolvers.go new file mode 100644 index 0000000000..db10a56dfb --- /dev/null +++ b/internal/graphapi/audience.resolvers.go @@ -0,0 +1,191 @@ +package graphapi + +// This file will be automatically regenerated based on the schema, any resolver +// implementations +// will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen + +import ( + "context" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/v2/internal/ent/csvgenerated" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/graphapi/common" + "github.com/theopenlane/core/v2/internal/graphapi/model" + "github.com/theopenlane/core/v2/pkg/logx" + "github.com/theopenlane/utils/rout" +) + +// CreateAudience is the resolver for the createAudience field. +func (r *mutationResolver) CreateAudience(ctx context.Context, input generated.CreateAudienceInput) (*model.AudienceCreatePayload, error) { + // set the organization in the auth context if its not done for us + ctx, err := common.SetOrganizationInAuthContext(ctx, input.OwnerID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.NewMissingRequiredFieldError("owner_id") + } + + res, err := withTransactionalMutation(ctx).Audience.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audience"}) + } + + return &model.AudienceCreatePayload{ + Audience: res, + }, nil +} + +// CreateBulkAudience is the resolver for the createBulkAudience field. +func (r *mutationResolver) CreateBulkAudience(ctx context.Context, input []*generated.CreateAudienceInput) (*model.AudienceBulkCreatePayload, error) { + if len(input) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + // set the organization in the auth context if its not done for us + // this will choose the first input OwnerID when using a personal access token + ctx, err := common.SetOrganizationInAuthContextBulkRequest(ctx, input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.NewMissingRequiredFieldError("owner_id") + } + + return r.bulkCreateAudience(ctx, input) +} + +// CreateBulkCSVAudience is the resolver for the createBulkCSVAudience field. +func (r *mutationResolver) CreateBulkCSVAudience(ctx context.Context, input graphql.Upload) (*model.AudienceBulkCreatePayload, error) { + data, err := common.UnmarshalBulkData[csvgenerated.AudienceCSVInput](input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audience"}) + } + + if len(data) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + // set the organization in the auth context if its not done for us + // this will choose the first input OwnerID when using a personal access token + ctx, err = common.SetOrganizationInAuthContextBulkRequest(ctx, data) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + if _, ownerErr := common.GetBulkUploadOwnerInput(data); ownerErr != nil { + return nil, ownerErr + } + + return nil, rout.ErrPermissionDenied + } + + if err := resolveCSVReferencesForSchema(ctx, "Audience", data); err != nil { + return nil, err + } + + inputs := make([]*generated.CreateAudienceInput, 0, len(data)) + for i := range data { + inputs = append(inputs, &data[i].Input) + } + + return r.bulkCreateAudience(ctx, inputs) +} + +// UpdateBulkAudience is the resolver for the updateBulkAudience field. +func (r *mutationResolver) UpdateBulkAudience(ctx context.Context, ids []string, input generated.UpdateAudienceInput) (*model.AudienceBulkUpdatePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + return r.bulkUpdateAudience(ctx, ids, input) +} + +// UpdateBulkCSVAudience is the resolver for the updateBulkCSVAudience field. +func (r *mutationResolver) UpdateBulkCSVAudience(ctx context.Context, input graphql.Upload) (*model.AudienceBulkUpdatePayload, error) { + data, err := common.UnmarshalBulkData[csvgenerated.AudienceCSVUpdateInput](input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audience"}) + } + + if len(data) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + if err := resolveCSVReferencesForSchema(ctx, "Audience", data); err != nil { + return nil, err + } + + return r.bulkUpdateCSVAudience(ctx, data) +} + +// UpdateAudience is the resolver for the updateAudience field. +func (r *mutationResolver) UpdateAudience(ctx context.Context, id string, input generated.UpdateAudienceInput) (*model.AudienceUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).Audience.Get(ctx, id) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audience"}) + } + + // set the organization in the auth context if its not done for us + ctx, err = common.SetOrganizationInAuthContext(ctx, &res.OwnerID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.ErrPermissionDenied + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audience"}) + } + + return &model.AudienceUpdatePayload{ + Audience: res, + }, nil +} + +// DeleteAudience is the resolver for the deleteAudience field. +func (r *mutationResolver) DeleteAudience(ctx context.Context, id string) (*model.AudienceDeletePayload, error) { + if err := withTransactionalMutation(ctx).Audience.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionDelete, Object: "audience"}) + } + + if err := generated.AudienceEdgeCleanup(ctx, id); err != nil { + return nil, common.NewCascadeDeleteError(ctx, err) + } + + return &model.AudienceDeletePayload{ + DeletedID: id, + }, nil +} + +// DeleteBulkAudience is the resolver for the deleteBulkAudience field. +func (r *mutationResolver) DeleteBulkAudience(ctx context.Context, ids []string) (*model.AudienceBulkDeletePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + return r.bulkDeleteAudience(ctx, ids) +} + +// Audience is the resolver for the audience field. +func (r *queryResolver) Audience(ctx context.Context, id string) (*generated.Audience, error) { + query, err := withTransactionalMutation(ctx).Audience.Query().Where(audience.ID(id)).CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audience"}) + } + + res, err := query.Only(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audience"}) + } + + return res, nil +} diff --git a/internal/graphapi/audiencemember.resolvers.go b/internal/graphapi/audiencemember.resolvers.go new file mode 100644 index 0000000000..6d7ff9c349 --- /dev/null +++ b/internal/graphapi/audiencemember.resolvers.go @@ -0,0 +1,191 @@ +package graphapi + +// This file will be automatically regenerated based on the schema, any resolver +// implementations +// will be copied through when generating and any unknown code will be moved to the end. +// Code generated by github.com/99designs/gqlgen + +import ( + "context" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/v2/internal/ent/csvgenerated" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/graphapi/common" + "github.com/theopenlane/core/v2/internal/graphapi/model" + "github.com/theopenlane/core/v2/pkg/logx" + "github.com/theopenlane/utils/rout" +) + +// CreateAudienceMember is the resolver for the createAudienceMember field. +func (r *mutationResolver) CreateAudienceMember(ctx context.Context, input generated.CreateAudienceMemberInput) (*model.AudienceMemberCreatePayload, error) { + // set the organization in the auth context if its not done for us + ctx, err := common.SetOrganizationInAuthContext(ctx, input.OwnerID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.NewMissingRequiredFieldError("owner_id") + } + + res, err := withTransactionalMutation(ctx).AudienceMember.Create().SetInput(input).Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audiencemember"}) + } + + return &model.AudienceMemberCreatePayload{ + AudienceMember: res, + }, nil +} + +// CreateBulkAudienceMember is the resolver for the createBulkAudienceMember field. +func (r *mutationResolver) CreateBulkAudienceMember(ctx context.Context, input []*generated.CreateAudienceMemberInput) (*model.AudienceMemberBulkCreatePayload, error) { + if len(input) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + // set the organization in the auth context if its not done for us + // this will choose the first input OwnerID when using a personal access token + ctx, err := common.SetOrganizationInAuthContextBulkRequest(ctx, input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.NewMissingRequiredFieldError("owner_id") + } + + return r.bulkCreateAudienceMember(ctx, input) +} + +// CreateBulkCSVAudienceMember is the resolver for the createBulkCSVAudienceMember field. +func (r *mutationResolver) CreateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload) (*model.AudienceMemberBulkCreatePayload, error) { + data, err := common.UnmarshalBulkData[csvgenerated.AudienceMemberCSVInput](input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audiencemember"}) + } + + if len(data) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + // set the organization in the auth context if its not done for us + // this will choose the first input OwnerID when using a personal access token + ctx, err = common.SetOrganizationInAuthContextBulkRequest(ctx, data) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + if _, ownerErr := common.GetBulkUploadOwnerInput(data); ownerErr != nil { + return nil, ownerErr + } + + return nil, rout.ErrPermissionDenied + } + + if err := resolveCSVReferencesForSchema(ctx, "AudienceMember", data); err != nil { + return nil, err + } + + inputs := make([]*generated.CreateAudienceMemberInput, 0, len(data)) + for i := range data { + inputs = append(inputs, &data[i].Input) + } + + return r.bulkCreateAudienceMember(ctx, inputs) +} + +// UpdateBulkAudienceMember is the resolver for the updateBulkAudienceMember field. +func (r *mutationResolver) UpdateBulkAudienceMember(ctx context.Context, ids []string, input generated.UpdateAudienceMemberInput) (*model.AudienceMemberBulkUpdatePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + return r.bulkUpdateAudienceMember(ctx, ids, input) +} + +// UpdateBulkCSVAudienceMember is the resolver for the updateBulkCSVAudienceMember field. +func (r *mutationResolver) UpdateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload) (*model.AudienceMemberBulkUpdatePayload, error) { + data, err := common.UnmarshalBulkData[csvgenerated.AudienceMemberCSVUpdateInput](input) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to unmarshal bulk data") + + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audiencemember"}) + } + + if len(data) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + if err := resolveCSVReferencesForSchema(ctx, "AudienceMember", data); err != nil { + return nil, err + } + + return r.bulkUpdateCSVAudienceMember(ctx, data) +} + +// UpdateAudienceMember is the resolver for the updateAudienceMember field. +func (r *mutationResolver) UpdateAudienceMember(ctx context.Context, id string, input generated.UpdateAudienceMemberInput) (*model.AudienceMemberUpdatePayload, error) { + res, err := withTransactionalMutation(ctx).AudienceMember.Get(ctx, id) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audiencemember"}) + } + + // set the organization in the auth context if its not done for us + ctx, err = common.SetOrganizationInAuthContext(ctx, &res.OwnerID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Msg("failed to set organization in auth context") + + return nil, rout.ErrPermissionDenied + } + + // setup update request + req := res.Update().SetInput(input).AppendTags(input.AppendTags) + + res, err = req.Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audiencemember"}) + } + + return &model.AudienceMemberUpdatePayload{ + AudienceMember: res, + }, nil +} + +// DeleteAudienceMember is the resolver for the deleteAudienceMember field. +func (r *mutationResolver) DeleteAudienceMember(ctx context.Context, id string) (*model.AudienceMemberDeletePayload, error) { + if err := withTransactionalMutation(ctx).AudienceMember.DeleteOneID(id).Exec(ctx); err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionDelete, Object: "audiencemember"}) + } + + if err := generated.AudienceMemberEdgeCleanup(ctx, id); err != nil { + return nil, common.NewCascadeDeleteError(ctx, err) + } + + return &model.AudienceMemberDeletePayload{ + DeletedID: id, + }, nil +} + +// DeleteBulkAudienceMember is the resolver for the deleteBulkAudienceMember field. +func (r *mutationResolver) DeleteBulkAudienceMember(ctx context.Context, ids []string) (*model.AudienceMemberBulkDeletePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + return r.bulkDeleteAudienceMember(ctx, ids) +} + +// AudienceMember is the resolver for the audienceMember field. +func (r *queryResolver) AudienceMember(ctx context.Context, id string) (*generated.AudienceMember, error) { + query, err := withTransactionalMutation(ctx).AudienceMember.Query().Where(audiencemember.ID(id)).CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencemember"}) + } + + res, err := query.Only(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencemember"}) + } + + return res, nil +} diff --git a/internal/graphapi/bulk.go b/internal/graphapi/bulk.go index 53f53d3d99..815630dbbc 100644 --- a/internal/graphapi/bulk.go +++ b/internal/graphapi/bulk.go @@ -758,6 +758,444 @@ func (r *mutationResolver) bulkUpdateCSVAsset(ctx context.Context, inputs []*csv }, nil } +// bulkCreateAudience uses the CreateBulk function to create multiple Audience entities +func (r *mutationResolver) bulkCreateAudience(ctx context.Context, input []*generated.CreateAudienceInput) (*model.AudienceBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.AudienceCreate, len(input)) + for i, data := range input { + builders[i] = c.Audience.Create().SetInput(*data) + } + + res, err := c.Audience.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audience"}) + } + + // return response + return &model.AudienceBulkCreatePayload{ + Audiences: res, + }, nil +} + +// bulkUpdateAudience updates multiple Audience entities +func (r *mutationResolver) bulkUpdateAudience(ctx context.Context, ids []string, input generated.UpdateAudienceInput) (*model.AudienceBulkUpdatePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + originalIDs := append([]string(nil), ids...) + ids = r.filterAuthorizedIDs(ctx, ids, "audience", fgax.CanEdit) + if len(ids) == 0 { + err := gqlerrors.BulkActionIncomplete + + return &model.AudienceBulkUpdatePayload{ + Audiences: []*generated.Audience{}, + UpdatedIDs: []string{}, + NotUpdatedIDs: originalIDs, + Error: &err, + }, nil + } + + c := withTransactionalMutation(ctx) + results := make([]*generated.Audience, 0, len(ids)) + updatedIDs := make([]string, 0, len(ids)) + + // update each audience individually to ensure proper validation + for _, id := range ids { + if id == "" { + logx.FromContext(ctx).Error().Msg("empty id in bulk update for audience") + continue + } + + // get the existing entity first + existing, err := c.Audience.Get(ctx, id) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audience_id", id).Msg("failed to get audience in bulk update operation") + continue + } + + // setup update request + updatedEntity, err := existing.Update().SetInput(input).AppendTags(input.AppendTags).Save(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audience_id", id).Msg("failed to update audience in bulk operation") + continue + } + + results = append(results, updatedEntity) + updatedIDs = append(updatedIDs, id) + } + + updated := make(map[string]struct{}, len(updatedIDs)) + for _, id := range updatedIDs { + updated[id] = struct{}{} + } + + notUpdatedIDs := make([]string, 0, len(originalIDs)) + for _, id := range originalIDs { + if _, ok := updated[id]; !ok { + notUpdatedIDs = append(notUpdatedIDs, id) + } + } + + var err *string + if len(notUpdatedIDs) > 0 { + bulkActionIncomplete := gqlerrors.BulkActionIncomplete + err = &bulkActionIncomplete + } + + return &model.AudienceBulkUpdatePayload{ + Audiences: results, + UpdatedIDs: updatedIDs, + NotUpdatedIDs: notUpdatedIDs, + Error: err, + }, nil +} + +// bulkUpdateCSVAudience updates multiple Audience entities from CSV data with per-row values +func (r *mutationResolver) bulkUpdateCSVAudience(ctx context.Context, inputs []*csvgenerated.AudienceCSVUpdateInput) (*model.AudienceBulkUpdatePayload, error) { + if len(inputs) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + c := withTransactionalMutation(ctx) + results := make([]*generated.Audience, 0, len(inputs)) + updatedIDs := make([]string, 0, len(inputs)) + + // update each audience individually with its own input values + for _, input := range inputs { + if input == nil || input.ID == "" { + logx.FromContext(ctx).Error().Msg("empty id in CSV bulk update for audience") + continue + } + + // get the existing entity first + existing, err := c.Audience.Get(ctx, input.ID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audience_id", input.ID).Msg("failed to get audience in CSV bulk update operation") + continue + } + + // setup update request with this row's input values + updatedEntity, err := existing.Update().SetInput(input.Input).AppendTags(input.Input.AppendTags).Save(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audience_id", input.ID).Msg("failed to update audience in CSV bulk operation") + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audience"}) + } + + results = append(results, updatedEntity) + updatedIDs = append(updatedIDs, input.ID) + } + + return &model.AudienceBulkUpdatePayload{ + Audiences: results, + UpdatedIDs: updatedIDs, + }, nil +} + +// bulkDeleteAudience deletes multiple Audience entities by their IDs +func (r *mutationResolver) bulkDeleteAudience(ctx context.Context, ids []string) (*model.AudienceBulkDeletePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + originalIDs := append([]string(nil), ids...) + ids = r.filterAuthorizedIDs(ctx, ids, "audience", fgax.CanDelete) + if len(ids) == 0 { + err := gqlerrors.BulkActionIncomplete + + return &model.AudienceBulkDeletePayload{ + DeletedIDs: []string{}, + NotDeletedIDs: originalIDs, + Error: &err, + }, nil + } + + deletedIDs := make([]string, 0, len(ids)) + errors := make([]error, 0, len(ids)) + + var mu sync.Mutex + + funcs := make([]func(), 0, len(ids)) + for _, id := range ids { + funcs = append(funcs, func() { + // use r.db in context so interceptors use the connection pool instead of the shared transaction + poolCtx := generated.NewContext(ctx, r.db) + + // delete each audience individually to ensure proper cleanup + if err := r.db.Audience.DeleteOneID(id).Exec(poolCtx); err != nil { + logx.FromContext(poolCtx).Error().Err(err).Str("audience_id", id).Msg("failed to delete audience in bulk operation") + mu.Lock() + errors = append(errors, err) + mu.Unlock() + return + } + + if err := generated.AudienceEdgeCleanup(poolCtx, id); err != nil { + logx.FromContext(poolCtx).Error().Err(err).Str("audience_id", id).Msg("failed to cleanup audience edges in bulk operation") + mu.Lock() + errors = append(errors, err) + mu.Unlock() + return + } + + mu.Lock() + deletedIDs = append(deletedIDs, id) + mu.Unlock() + }) + } + + if err := r.withPool().SubmitMultipleAndWait(funcs); err != nil { + return nil, err + } + + if len(errors) > 0 { + logx.FromContext(ctx).Error().Int("deleted_items", len(deletedIDs)).Int("errors", len(errors)).Msg("some audience deletions failed") + } + + deleted := make(map[string]struct{}, len(deletedIDs)) + for _, id := range deletedIDs { + deleted[id] = struct{}{} + } + + notDeletedIDs := make([]string, 0, len(originalIDs)) + for _, id := range originalIDs { + if _, ok := deleted[id]; !ok { + notDeletedIDs = append(notDeletedIDs, id) + } + } + + var err *string + if len(notDeletedIDs) > 0 { + bulkActionIncomplete := gqlerrors.BulkActionIncomplete + err = &bulkActionIncomplete + } + + return &model.AudienceBulkDeletePayload{ + DeletedIDs: deletedIDs, + NotDeletedIDs: notDeletedIDs, + Error: err, + }, nil +} + +// bulkCreateAudienceMember uses the CreateBulk function to create multiple AudienceMember entities +func (r *mutationResolver) bulkCreateAudienceMember(ctx context.Context, input []*generated.CreateAudienceMemberInput) (*model.AudienceMemberBulkCreatePayload, error) { + c := withTransactionalMutation(ctx) + builders := make([]*generated.AudienceMemberCreate, len(input)) + for i, data := range input { + builders[i] = c.AudienceMember.Create().SetInput(*data) + } + + res, err := c.AudienceMember.CreateBulk(builders...).Save(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionCreate, Object: "audiencemember"}) + } + + // return response + return &model.AudienceMemberBulkCreatePayload{ + AudienceMembers: res, + }, nil +} + +// bulkUpdateAudienceMember updates multiple AudienceMember entities +func (r *mutationResolver) bulkUpdateAudienceMember(ctx context.Context, ids []string, input generated.UpdateAudienceMemberInput) (*model.AudienceMemberBulkUpdatePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + originalIDs := append([]string(nil), ids...) + ids = r.filterAuthorizedIDs(ctx, ids, "audience_member", fgax.CanEdit) + if len(ids) == 0 { + err := gqlerrors.BulkActionIncomplete + + return &model.AudienceMemberBulkUpdatePayload{ + AudienceMembers: []*generated.AudienceMember{}, + UpdatedIDs: []string{}, + NotUpdatedIDs: originalIDs, + Error: &err, + }, nil + } + + c := withTransactionalMutation(ctx) + results := make([]*generated.AudienceMember, 0, len(ids)) + updatedIDs := make([]string, 0, len(ids)) + + // update each audiencemember individually to ensure proper validation + for _, id := range ids { + if id == "" { + logx.FromContext(ctx).Error().Msg("empty id in bulk update for audiencemember") + continue + } + + // get the existing entity first + existing, err := c.AudienceMember.Get(ctx, id) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audiencemember_id", id).Msg("failed to get audiencemember in bulk update operation") + continue + } + + // setup update request + updatedEntity, err := existing.Update().SetInput(input).AppendTags(input.AppendTags).Save(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audiencemember_id", id).Msg("failed to update audiencemember in bulk operation") + continue + } + + results = append(results, updatedEntity) + updatedIDs = append(updatedIDs, id) + } + + updated := make(map[string]struct{}, len(updatedIDs)) + for _, id := range updatedIDs { + updated[id] = struct{}{} + } + + notUpdatedIDs := make([]string, 0, len(originalIDs)) + for _, id := range originalIDs { + if _, ok := updated[id]; !ok { + notUpdatedIDs = append(notUpdatedIDs, id) + } + } + + var err *string + if len(notUpdatedIDs) > 0 { + bulkActionIncomplete := gqlerrors.BulkActionIncomplete + err = &bulkActionIncomplete + } + + return &model.AudienceMemberBulkUpdatePayload{ + AudienceMembers: results, + UpdatedIDs: updatedIDs, + NotUpdatedIDs: notUpdatedIDs, + Error: err, + }, nil +} + +// bulkUpdateCSVAudienceMember updates multiple AudienceMember entities from CSV data with per-row values +func (r *mutationResolver) bulkUpdateCSVAudienceMember(ctx context.Context, inputs []*csvgenerated.AudienceMemberCSVUpdateInput) (*model.AudienceMemberBulkUpdatePayload, error) { + if len(inputs) == 0 { + return nil, rout.NewMissingRequiredFieldError("input") + } + + c := withTransactionalMutation(ctx) + results := make([]*generated.AudienceMember, 0, len(inputs)) + updatedIDs := make([]string, 0, len(inputs)) + + // update each audiencemember individually with its own input values + for _, input := range inputs { + if input == nil || input.ID == "" { + logx.FromContext(ctx).Error().Msg("empty id in CSV bulk update for audiencemember") + continue + } + + // get the existing entity first + existing, err := c.AudienceMember.Get(ctx, input.ID) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audiencemember_id", input.ID).Msg("failed to get audiencemember in CSV bulk update operation") + continue + } + + // setup update request with this row's input values + updatedEntity, err := existing.Update().SetInput(input.Input).AppendTags(input.Input.AppendTags).Save(ctx) + if err != nil { + logx.FromContext(ctx).Error().Err(err).Str("audiencemember_id", input.ID).Msg("failed to update audiencemember in CSV bulk operation") + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionUpdate, Object: "audiencemember"}) + } + + results = append(results, updatedEntity) + updatedIDs = append(updatedIDs, input.ID) + } + + return &model.AudienceMemberBulkUpdatePayload{ + AudienceMembers: results, + UpdatedIDs: updatedIDs, + }, nil +} + +// bulkDeleteAudienceMember deletes multiple AudienceMember entities by their IDs +func (r *mutationResolver) bulkDeleteAudienceMember(ctx context.Context, ids []string) (*model.AudienceMemberBulkDeletePayload, error) { + if len(ids) == 0 { + return nil, rout.NewMissingRequiredFieldError("ids") + } + + originalIDs := append([]string(nil), ids...) + ids = r.filterAuthorizedIDs(ctx, ids, "audience_member", fgax.CanDelete) + if len(ids) == 0 { + err := gqlerrors.BulkActionIncomplete + + return &model.AudienceMemberBulkDeletePayload{ + DeletedIDs: []string{}, + NotDeletedIDs: originalIDs, + Error: &err, + }, nil + } + + deletedIDs := make([]string, 0, len(ids)) + errors := make([]error, 0, len(ids)) + + var mu sync.Mutex + + funcs := make([]func(), 0, len(ids)) + for _, id := range ids { + funcs = append(funcs, func() { + // use r.db in context so interceptors use the connection pool instead of the shared transaction + poolCtx := generated.NewContext(ctx, r.db) + + // delete each audiencemember individually to ensure proper cleanup + if err := r.db.AudienceMember.DeleteOneID(id).Exec(poolCtx); err != nil { + logx.FromContext(poolCtx).Error().Err(err).Str("audiencemember_id", id).Msg("failed to delete audiencemember in bulk operation") + mu.Lock() + errors = append(errors, err) + mu.Unlock() + return + } + + if err := generated.AudienceMemberEdgeCleanup(poolCtx, id); err != nil { + logx.FromContext(poolCtx).Error().Err(err).Str("audiencemember_id", id).Msg("failed to cleanup audiencemember edges in bulk operation") + mu.Lock() + errors = append(errors, err) + mu.Unlock() + return + } + + mu.Lock() + deletedIDs = append(deletedIDs, id) + mu.Unlock() + }) + } + + if err := r.withPool().SubmitMultipleAndWait(funcs); err != nil { + return nil, err + } + + if len(errors) > 0 { + logx.FromContext(ctx).Error().Int("deleted_items", len(deletedIDs)).Int("errors", len(errors)).Msg("some audiencemember deletions failed") + } + + deleted := make(map[string]struct{}, len(deletedIDs)) + for _, id := range deletedIDs { + deleted[id] = struct{}{} + } + + notDeletedIDs := make([]string, 0, len(originalIDs)) + for _, id := range originalIDs { + if _, ok := deleted[id]; !ok { + notDeletedIDs = append(notDeletedIDs, id) + } + } + + var err *string + if len(notDeletedIDs) > 0 { + bulkActionIncomplete := gqlerrors.BulkActionIncomplete + err = &bulkActionIncomplete + } + + return &model.AudienceMemberBulkDeletePayload{ + DeletedIDs: deletedIDs, + NotDeletedIDs: notDeletedIDs, + Error: err, + }, nil +} + // bulkCreateCampaign uses the CreateBulk function to create multiple Campaign entities func (r *mutationResolver) bulkCreateCampaign(ctx context.Context, input []*generated.CreateCampaignInput) (*model.CampaignBulkCreatePayload, error) { c := withTransactionalMutation(ctx) diff --git a/internal/graphapi/checksum/.history_schema_checksum b/internal/graphapi/checksum/.history_schema_checksum index cd6363c9be..3a6e5549f6 100644 --- a/internal/graphapi/checksum/.history_schema_checksum +++ b/internal/graphapi/checksum/.history_schema_checksum @@ -1 +1 @@ -546604175dfa4784ba5f19ada6048302e3c06502b49c8d1d1349a3536ce2d687 \ No newline at end of file +58efb78c5895400bc0418b2a226a1b7ce10ca81a06eeeee709a9af1f370cf2af \ No newline at end of file diff --git a/internal/graphapi/checksum/.schema_checksum b/internal/graphapi/checksum/.schema_checksum index 7dbabf71c3..455e037734 100644 --- a/internal/graphapi/checksum/.schema_checksum +++ b/internal/graphapi/checksum/.schema_checksum @@ -1 +1 @@ -3b757af3c0844e6ac6677fc5ea110ee4824699e19d6d3094ece7f53387e13a8c \ No newline at end of file +7e580cc0966fa725503058287393e1c4aa375ccfa6c130fa059acac727a51ef0 \ No newline at end of file diff --git a/internal/graphapi/clientschema/checksum/.schema_checksum b/internal/graphapi/clientschema/checksum/.schema_checksum index 4fd1417581..ec88ca4002 100644 --- a/internal/graphapi/clientschema/checksum/.schema_checksum +++ b/internal/graphapi/clientschema/checksum/.schema_checksum @@ -1 +1 @@ -c9c194394cd0ddedcab1d3377e137bd47b3c7d3ab236154d87868e7a3f33ae6e \ No newline at end of file +771784c475c51af6a9e60340a9acea1befd84634988e1cbb2cd2b664ff26aa68 \ No newline at end of file diff --git a/internal/graphapi/clientschema/schema.graphql b/internal/graphapi/clientschema/schema.graphql index 71df8be172..0ab2fd5de2 100644 --- a/internal/graphapi/clientschema/schema.graphql +++ b/internal/graphapi/clientschema/schema.graphql @@ -4766,6 +4766,940 @@ input AssetWhereInput { AssignmentOutcome captures consolidated terminal outcome metadata for a workflow assignment, discriminated by decision. """ scalar AssignmentOutcome +type Audience implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType! + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + owner: Organization + blockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + editors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + viewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! + 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! +} +""" +AudienceAudienceType is enum for the field audience_type +""" +enum AudienceAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC +} +""" +Return response for createBulkAudience mutation +""" +type AudienceBulkCreatePayload { + """ + Created audiences + """ + audiences: [Audience!] +} +""" +Return response for deleteBulkAudience mutation +""" +type AudienceBulkDeletePayload { + """ + Deleted audience IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audiences that were not deleted + """ + notDeletedIDs: [ID!] +} +""" +Return response for updateBulkAudience mutation +""" +type AudienceBulkUpdatePayload { + """ + Updated audiences + """ + audiences: [Audience!] + """ + IDs of the updated audiences + """ + updatedIDs: [ID!] +} +""" +A connection to a list of items. +""" +type AudienceConnection { + """ + A list of edges. + """ + edges: [AudienceEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createAudience mutation +""" +type AudienceCreatePayload { + """ + Created audience + """ + audience: Audience! +} +""" +Return response for deleteAudience mutation +""" +type AudienceDeletePayload { + """ + Deleted audience ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type AudienceEdge { + """ + The item at the end of the edge. + """ + node: Audience + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type AudienceMember implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the audience this member belongs to + """ + audienceID: ID! + """ + the contact associated with this audience member + """ + contactID: ID + """ + the user associated with this audience member + """ + userID: ID + """ + the group associated with this audience member + """ + groupID: ID + """ + the identity holder associated with this audience member + """ + identityHolderID: ID + """ + the subscriber associated with this audience member + """ + subscriberID: ID + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + owner: Organization + audience: Audience! + contact: Contact + user: User + group: Group + identityHolder: IdentityHolder + subscriber: Subscriber +} +""" +Return response for createBulkAudienceMember mutation +""" +type AudienceMemberBulkCreatePayload { + """ + Created audienceMembers + """ + audienceMembers: [AudienceMember!] +} +""" +Return response for deleteBulkAudienceMember mutation +""" +type AudienceMemberBulkDeletePayload { + """ + Deleted audienceMember IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audienceMembers that were not deleted + """ + notDeletedIDs: [ID!] +} +""" +Return response for updateBulkAudienceMember mutation +""" +type AudienceMemberBulkUpdatePayload { + """ + Updated audienceMembers + """ + audienceMembers: [AudienceMember!] + """ + IDs of the updated audienceMembers + """ + updatedIDs: [ID!] +} +""" +A connection to a list of items. +""" +type AudienceMemberConnection { + """ + A list of edges. + """ + edges: [AudienceMemberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createAudienceMember mutation +""" +type AudienceMemberCreatePayload { + """ + Created audienceMember + """ + audienceMember: AudienceMember! +} +""" +Return response for deleteAudienceMember mutation +""" +type AudienceMemberDeletePayload { + """ + Deleted audienceMember ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type AudienceMemberEdge { + """ + The item at the end of the edge. + """ + node: AudienceMember + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +Ordering options for AudienceMember connections +""" +input AudienceMemberOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMembers. + """ + field: AudienceMemberOrderField! +} +""" +Properties by which AudienceMember connections can be ordered. +""" +enum AudienceMemberOrderField { + created_at + updated_at + email + full_name +} +""" +Return response for updateAudienceMember mutation +""" +type AudienceMemberUpdatePayload { + """ + Updated audienceMember + """ + audienceMember: AudienceMember! +} +""" +AudienceMemberWhereInput is used for filtering AudienceMember objects. +Input was generated by ent. +""" +input AudienceMemberWhereInput { + not: AudienceMemberWhereInput + and: [AudienceMemberWhereInput!] + or: [AudienceMemberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + audience_id field predicates + """ + audienceID: ID + audienceIDNEQ: ID + audienceIDIn: [ID!] + audienceIDNotIn: [ID!] + audienceIDContains: ID + audienceIDHasPrefix: ID + audienceIDHasSuffix: ID + audienceIDEqualFold: ID + audienceIDContainsFold: ID + """ + contact_id field predicates + """ + contactID: ID + contactIDNEQ: ID + contactIDIn: [ID!] + contactIDNotIn: [ID!] + contactIDContains: ID + contactIDHasPrefix: ID + contactIDHasSuffix: ID + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: ID + contactIDContainsFold: ID + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + identity_holder_id field predicates + """ + identityHolderID: ID + identityHolderIDNEQ: ID + identityHolderIDIn: [ID!] + identityHolderIDNotIn: [ID!] + identityHolderIDContains: ID + identityHolderIDHasPrefix: ID + identityHolderIDHasSuffix: ID + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: ID + identityHolderIDContainsFold: ID + """ + subscriber_id field predicates + """ + subscriberID: ID + subscriberIDNEQ: ID + subscriberIDIn: [ID!] + subscriberIDNotIn: [ID!] + subscriberIDContains: ID + subscriberIDHasPrefix: ID + subscriberIDHasSuffix: ID + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: ID + subscriberIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + audience edge predicates + """ + hasAudience: Boolean + hasAudienceWith: [AudienceWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + identity_holder edge predicates + """ + hasIdentityHolder: Boolean + hasIdentityHolderWith: [IdentityHolderWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} +""" +Ordering options for Audience connections +""" +input AudienceOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Audiences. + """ + field: AudienceOrderField! +} +""" +Properties by which Audience connections can be ordered. +""" +enum AudienceOrderField { + created_at + updated_at + name + AUDIENCE_TYPE +} +""" +Return response for updateAudience mutation +""" +type AudienceUpdatePayload { + """ + Updated audience + """ + audience: Audience! +} +""" +AudienceWhereInput is used for filtering Audience objects. +Input was generated by ent. +""" +input AudienceWhereInput { + not: AudienceWhereInput + and: [AudienceWhereInput!] + or: [AudienceWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceAudienceType + audienceTypeNEQ: AudienceAudienceType + audienceTypeIn: [AudienceAudienceType!] + audienceTypeNotIn: [AudienceAudienceType!] + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ + campaigns edge predicates + """ + hasCampaigns: Boolean + hasCampaignsWith: [CampaignWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} """ Return response for approveNDARequests or denyNDARequests mutation """ @@ -5019,139 +5953,170 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center """ where: GroupWhereInput ): GroupConnection! - internalOwnerUser: User - internalOwnerGroup: Group - assessment: Assessment - template: Template - integration: Integration - emailTemplate: EmailTemplate - entity: Entity - trustCenter: TrustCenter - 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! - 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! - 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! - 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! - groups( + internalOwnerUser: User + internalOwnerGroup: Group + assessment: Assessment + template: Template + integration: Integration + emailTemplate: EmailTemplate + entity: Entity + trustCenter: TrustCenter + 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! + 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! + 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! + 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! + 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! + identityHolders( """ Returns the elements in the list that come after the specified cursor. """ @@ -5173,16 +6138,16 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center last: Int """ - Ordering options for Groups returned from the connection. + Ordering options for IdentityHolders returned from the connection. """ - orderBy: [GroupOrder!] + orderBy: [IdentityHolderOrder!] """ - Filtering options for Groups returned from the connection. + Filtering options for IdentityHolders returned from the connection. """ - where: GroupWhereInput - ): GroupConnection! - identityHolders( + where: IdentityHolderWhereInput + ): IdentityHolderConnection! + audiences( """ Returns the elements in the list that come after the specified cursor. """ @@ -5204,15 +6169,15 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center last: Int """ - Ordering options for IdentityHolders returned from the connection. + Ordering options for Audiences returned from the connection. """ - orderBy: [IdentityHolderOrder!] + orderBy: [AudienceOrder!] """ - Filtering options for IdentityHolders returned from the connection. + Filtering options for Audiences returned from the connection. """ - where: IdentityHolderWhereInput - ): IdentityHolderConnection! + where: AudienceWhereInput + ): AudienceConnection! controls( """ Returns the elements in the list that come after the specified cursor. @@ -6482,6 +7447,11 @@ input CampaignWhereInput { hasIdentityHolders: Boolean hasIdentityHoldersWith: [IdentityHolderWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ controls edge predicates """ hasControls: Boolean @@ -7286,6 +8256,37 @@ type Contact implements Node @modules(names: ["entity_management_module","compli """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! files( """ Returns the elements in the list that come after the specified cursor. @@ -7734,6 +8735,11 @@ input ContactWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ files edge predicates """ hasFiles: Boolean @@ -12108,6 +13114,71 @@ input CreateAssetInput { connectedFromIDs: [ID!] } """ +CreateAudienceInput is used for create Audience object. +Input was generated by ent. +""" +input CreateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + audienceMemberIDs: [ID!] + campaignIDs: [ID!] +} +""" +CreateAudienceMemberInput is used for create AudienceMember object. +Input was generated by ent. +""" +input CreateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + ownerID: ID + audienceID: ID! + contactID: ID + userID: ID + groupID: ID + identityHolderID: ID + subscriberID: ID +} +""" CreateCampaignInput is used for create Campaign object. Input was generated by ent. """ @@ -12230,6 +13301,7 @@ input CreateCampaignInput { userIDs: [ID!] groupIDs: [ID!] identityHolderIDs: [ID!] + audienceIDs: [ID!] controlIDs: [ID!] workflowObjectRefIDs: [ID!] } @@ -12380,6 +13452,7 @@ input CreateContactInput { entityIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] fileIDs: [ID!] subscriberIDs: [ID!] } @@ -14179,6 +15252,9 @@ input CreateGroupInput { campaignEditorIDs: [ID!] campaignBlockedGroupIDs: [ID!] campaignViewerIDs: [ID!] + audienceEditorIDs: [ID!] + audienceBlockedGroupIDs: [ID!] + audienceViewerIDs: [ID!] procedureEditorIDs: [ID!] procedureBlockedGroupIDs: [ID!] internalPolicyEditorIDs: [ID!] @@ -14205,6 +15281,7 @@ input CreateGroupInput { taskIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] createGroupSettings: CreateGroupSettingInput } """ @@ -14411,6 +15488,7 @@ input CreateIdentityHolderInput { subcontrolIDs: [ID!] platformIDs: [ID!] campaignIDs: [ID!] + audienceMemberIDs: [ID!] taskIDs: [ID!] fileIDs: [ID!] findingIDs: [ID!] @@ -15065,6 +16143,8 @@ input CreateOrganizationInput { apiTokenCreatorIDs: [ID!] assessmentCreatorIDs: [ID!] assetCreatorIDs: [ID!] + audienceCreatorIDs: [ID!] + audienceMemberCreatorIDs: [ID!] campaignCreatorIDs: [ID!] campaignTargetCreatorIDs: [ID!] checkResultCreatorIDs: [ID!] @@ -15185,6 +16265,8 @@ input CreateOrganizationInput { slaDefinitionIDs: [ID!] subprocessorIDs: [ID!] exportIDs: [ID!] + audienceIDs: [ID!] + audienceMemberIDs: [ID!] trustCenterWatermarkConfigIDs: [ID!] impersonationEventIDs: [ID!] assessmentIDs: [ID!] @@ -16609,6 +17691,7 @@ input CreateSubscriberInput { campaignTargetIDs: [ID!] contactID: ID userID: ID + audienceMemberIDs: [ID!] } """ CreateSystemDetailInput is used for create SystemDetail object. @@ -17392,6 +18475,7 @@ input CreateUserInput { actionPlanIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] subcontrolIDs: [ID!] assignerTaskIDs: [ID!] assigneeTaskIDs: [ID!] @@ -28515,6 +29599,8 @@ ExportExportType is enum for the field export_type enum ExportExportType @goModel(model: "github.com/theopenlane/core/common/enums.ExportType") { ASSESSMENT ASSET + AUDIENCE + AUDIENCE_MEMBER CAMPAIGN CHECK_RESULT CONTACT @@ -32705,6 +33791,99 @@ type Group implements Node { """ where: CampaignWhereInput ): CampaignConnection! + audienceEditors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceBlockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceViewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! procedureEditors( """ Returns the elements in the list that come after the specified cursor. @@ -33442,16 +34621,47 @@ type Group implements Node { last: Int """ - Ordering options for Campaigns returned from the connection. + 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: [CampaignOrder!] + orderBy: [CampaignTargetOrder!] """ - Filtering options for Campaigns returned from the connection. + Filtering options for CampaignTargets returned from the connection. """ - where: CampaignWhereInput - ): CampaignConnection! - campaignTargets( + where: CampaignTargetWhereInput + ): CampaignTargetConnection! + audienceMembers( """ Returns the elements in the list that come after the specified cursor. """ @@ -33473,15 +34683,15 @@ type Group implements Node { last: Int """ - Ordering options for CampaignTargets returned from the connection. + Ordering options for AudienceMembers returned from the connection. """ - orderBy: [CampaignTargetOrder!] + orderBy: [AudienceMemberOrder!] """ - Filtering options for CampaignTargets returned from the connection. + Filtering options for AudienceMembers returned from the connection. """ - where: CampaignTargetWhereInput - ): CampaignTargetConnection! + where: AudienceMemberWhereInput + ): AudienceMemberConnection! members( """ Returns the elements in the list that come after the specified cursor. @@ -34734,6 +35944,21 @@ input GroupWhereInput { hasCampaignViewers: Boolean hasCampaignViewersWith: [CampaignWhereInput!] """ + audience_editors edge predicates + """ + hasAudienceEditors: Boolean + hasAudienceEditorsWith: [AudienceWhereInput!] + """ + audience_blocked_groups edge predicates + """ + hasAudienceBlockedGroups: Boolean + hasAudienceBlockedGroupsWith: [AudienceWhereInput!] + """ + audience_viewers edge predicates + """ + hasAudienceViewers: Boolean + hasAudienceViewersWith: [AudienceWhereInput!] + """ procedure_editors edge predicates """ hasProcedureEditors: Boolean @@ -34869,6 +36094,11 @@ input GroupWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ members edge predicates """ hasMembers: Boolean @@ -35916,6 +37146,37 @@ type IdentityHolder implements Node @modules(names: ["compliance_module","regist """ where: CampaignWhereInput ): CampaignConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! tasks( """ Returns the elements in the list that come after the specified cursor. @@ -36812,6 +38073,11 @@ input IdentityHolderWhereInput { hasCampaigns: Boolean hasCampaignsWith: [CampaignWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ tasks edge predicates """ hasTasks: Boolean @@ -41438,6 +42704,170 @@ type Mutation { input: Upload! ): AssetBulkUpdatePayload! """ + Create a new audience + """ + createAudience( + """ + values of the audience + """ + input: CreateAudienceInput! + ): AudienceCreatePayload! + """ + Create multiple new audiences + """ + createBulkAudience( + """ + values of the audience + """ + input: [CreateAudienceInput!] + ): AudienceBulkCreatePayload! + """ + Create multiple new audiences via file upload + """ + createBulkCSVAudience( + """ + csv file containing values of the audience + """ + input: Upload! + ): AudienceBulkCreatePayload! + """ + Update multiple existing audiences + """ + updateBulkAudience( + """ + IDs of the audiences to update + """ + ids: [ID!]! + + """ + values to update the audiences with + """ + input: UpdateAudienceInput! + ): AudienceBulkUpdatePayload! + """ + Update multiple existing audiences via file upload + """ + updateBulkCSVAudience( + """ + csv file containing values of the audience, must include ID column + """ + input: Upload! + ): AudienceBulkUpdatePayload! + """ + Update an existing audience + """ + updateAudience( + """ + ID of the audience + """ + id: ID! + + """ + New values for the audience + """ + input: UpdateAudienceInput! + ): AudienceUpdatePayload! + """ + Delete an existing audience + """ + deleteAudience( + """ + ID of the audience + """ + id: ID! + ): AudienceDeletePayload! + """ + Delete multiple audiences + """ + deleteBulkAudience( + """ + IDs of the audiences to delete + """ + ids: [ID!]! + ): AudienceBulkDeletePayload! + """ + Create a new audienceMember + """ + createAudienceMember( + """ + values of the audienceMember + """ + input: CreateAudienceMemberInput! + ): AudienceMemberCreatePayload! + """ + Create multiple new audienceMembers + """ + createBulkAudienceMember( + """ + values of the audienceMember + """ + input: [CreateAudienceMemberInput!] + ): AudienceMemberBulkCreatePayload! + """ + Create multiple new audienceMembers via file upload + """ + createBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember + """ + input: Upload! + ): AudienceMemberBulkCreatePayload! + """ + Update multiple existing audienceMembers + """ + updateBulkAudienceMember( + """ + IDs of the audienceMembers to update + """ + ids: [ID!]! + + """ + values to update the audienceMembers with + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberBulkUpdatePayload! + """ + Update multiple existing audienceMembers via file upload + """ + updateBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember, must include ID column + """ + input: Upload! + ): AudienceMemberBulkUpdatePayload! + """ + Update an existing audienceMember + """ + updateAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + + """ + New values for the audienceMember + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberUpdatePayload! + """ + Delete an existing audienceMember + """ + deleteAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMemberDeletePayload! + """ + Delete multiple audienceMembers + """ + deleteBulkAudienceMember( + """ + IDs of the audienceMembers to delete + """ + ids: [ID!]! + ): AudienceMemberBulkDeletePayload! + """ Create a new campaign """ createCampaign( @@ -50748,6 +52178,68 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! + audienceCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMemberCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! campaignCreators( """ Returns the elements in the list that come after the specified cursor. @@ -54370,16 +55862,78 @@ type Organization implements Node { last: Int """ - Ordering options for Subprocessors returned from the connection. + 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! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. """ - orderBy: [SubprocessorOrder!] + orderBy: [AudienceOrder!] """ - Filtering options for Subprocessors returned from the connection. + Filtering options for Audiences returned from the connection. """ - where: SubprocessorWhereInput - ): SubprocessorConnection! - exports( + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( """ Returns the elements in the list that come after the specified cursor. """ @@ -54401,15 +55955,15 @@ type Organization implements Node { last: Int """ - Ordering options for Exports returned from the connection. + Ordering options for AudienceMembers returned from the connection. """ - orderBy: [ExportOrder!] + orderBy: [AudienceMemberOrder!] """ - Filtering options for Exports returned from the connection. + Filtering options for AudienceMembers returned from the connection. """ - where: ExportWhereInput - ): ExportConnection! + where: AudienceMemberWhereInput + ): AudienceMemberConnection! trustCenterWatermarkConfigs( """ Returns the elements in the list that come after the specified cursor. @@ -56133,6 +57687,16 @@ input OrganizationWhereInput { hasAssetCreators: Boolean hasAssetCreatorsWith: [GroupWhereInput!] """ + audience_creators edge predicates + """ + hasAudienceCreators: Boolean + hasAudienceCreatorsWith: [GroupWhereInput!] + """ + audience_member_creators edge predicates + """ + hasAudienceMemberCreators: Boolean + hasAudienceMemberCreatorsWith: [GroupWhereInput!] + """ campaign_creators edge predicates """ hasCampaignCreators: Boolean @@ -56743,6 +58307,16 @@ input OrganizationWhereInput { hasExports: Boolean hasExportsWith: [ExportWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ trust_center_watermark_configs edge predicates """ hasTrustCenterWatermarkConfigs: Boolean @@ -62531,6 +64105,68 @@ type Query { """ where: AssetWhereInput ): AssetConnection! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! campaigns( """ Returns the elements in the list that come after the specified cursor. @@ -65150,6 +66786,24 @@ type Query { id: ID! ): Asset! """ + Look up audience by ID + """ + audience( + """ + ID of the audience + """ + id: ID! + ): Audience! + """ + Look up audienceMember by ID + """ + audienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMember! + """ Look up campaign by ID """ campaign( @@ -65880,6 +67534,64 @@ type Query { last: Int ): AssetConnection """ + Search across Audience objects + """ + audienceSearch( + """ + Query string to search across objects + """ + query: String! + + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceConnection + """ + Search across AudienceMember objects + """ + audienceMemberSearch( + """ + Query string to search across objects + """ + query: String! + + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceMemberConnection + """ Search across Campaign objects """ campaignSearch( @@ -73411,6 +75123,8 @@ type SearchResults { assessments: AssessmentConnection assessmentResponses: AssessmentResponseConnection assets: AssetConnection + audiences: AudienceConnection + audienceMembers: AudienceMemberConnection campaigns: CampaignConnection campaignTargets: CampaignTargetConnection contacts: ContactConnection @@ -76307,6 +78021,37 @@ type Subscriber implements Node { ): CampaignTargetConnection! contact: Contact user: User + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! } """ Return response for createBulkSubscriber mutation @@ -76619,6 +78364,11 @@ input SubscriberWhereInput { hasUser: Boolean hasUserWith: [UserWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ Filter for tagsHas to contain a specific value """ tagsHas: String @@ -84970,6 +86720,96 @@ input UpdateAssetInput { clearConnectedFrom: Boolean } """ +UpdateAudienceInput is used for update Audience object. +Input was generated by ent. +""" +input UpdateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the audience + """ + name: String + """ + the description of the audience + """ + description: String + clearDescription: Boolean + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + clearFilters: Boolean + """ + additional metadata about the audience + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean + addCampaignIDs: [ID!] + removeCampaignIDs: [ID!] + clearCampaigns: Boolean +} +""" +UpdateAudienceMemberInput is used for update AudienceMember object. +Input was generated by ent. +""" +input UpdateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the email address for this audience member + """ + email: String + """ + the name of this audience member, if known + """ + fullName: String + clearFullName: Boolean + """ + additional metadata about the audience member + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + contactID: ID + clearContact: Boolean + userID: ID + clearUser: Boolean + groupID: ID + clearGroup: Boolean + identityHolderID: ID + clearIdentityHolder: Boolean + subscriberID: ID + clearSubscriber: Boolean +} +""" UpdateCampaignInput is used for update Campaign object. Input was generated by ent. """ @@ -85138,6 +86978,9 @@ input UpdateCampaignInput { addIdentityHolderIDs: [ID!] removeIdentityHolderIDs: [ID!] clearIdentityHolders: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean addControlIDs: [ID!] removeControlIDs: [ID!] clearControls: Boolean @@ -85321,6 +87164,9 @@ input UpdateContactInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addFileIDs: [ID!] removeFileIDs: [ID!] clearFiles: Boolean @@ -87821,6 +89667,15 @@ input UpdateGroupInput { addCampaignViewerIDs: [ID!] removeCampaignViewerIDs: [ID!] clearCampaignViewers: Boolean + addAudienceEditorIDs: [ID!] + removeAudienceEditorIDs: [ID!] + clearAudienceEditors: Boolean + addAudienceBlockedGroupIDs: [ID!] + removeAudienceBlockedGroupIDs: [ID!] + clearAudienceBlockedGroups: Boolean + addAudienceViewerIDs: [ID!] + removeAudienceViewerIDs: [ID!] + clearAudienceViewers: Boolean addProcedureEditorIDs: [ID!] removeProcedureEditorIDs: [ID!] clearProcedureEditors: Boolean @@ -87897,6 +89752,9 @@ input UpdateGroupInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addGroupMembers: [CreateGroupMembershipInput!] removeGroupMembers: [ID!] updateGroupSettings: UpdateGroupSettingInput @@ -88171,6 +90029,9 @@ input UpdateIdentityHolderInput { addCampaignIDs: [ID!] removeCampaignIDs: [ID!] clearCampaigns: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTaskIDs: [ID!] removeTaskIDs: [ID!] clearTasks: Boolean @@ -88950,6 +90811,12 @@ input UpdateOrganizationInput { addAssetCreatorIDs: [ID!] removeAssetCreatorIDs: [ID!] clearAssetCreators: Boolean + addAudienceCreatorIDs: [ID!] + removeAudienceCreatorIDs: [ID!] + clearAudienceCreators: Boolean + addAudienceMemberCreatorIDs: [ID!] + removeAudienceMemberCreatorIDs: [ID!] + clearAudienceMemberCreators: Boolean addCampaignCreatorIDs: [ID!] removeCampaignCreatorIDs: [ID!] clearCampaignCreators: Boolean @@ -89305,6 +91172,12 @@ input UpdateOrganizationInput { addExportIDs: [ID!] removeExportIDs: [ID!] clearExports: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTrustCenterWatermarkConfigIDs: [ID!] removeTrustCenterWatermarkConfigIDs: [ID!] clearTrustCenterWatermarkConfigs: Boolean @@ -91433,6 +93306,9 @@ input UpdateSubscriberInput { clearContact: Boolean userID: ID clearUser: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean } """ UpdateSystemDetailInput is used for update SystemDetail object. @@ -92414,6 +94290,9 @@ input UpdateUserInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addSubcontrolIDs: [ID!] removeSubcontrolIDs: [ID!] clearSubcontrols: Boolean @@ -93414,6 +95293,37 @@ type User implements Node { """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! subcontrols( """ Returns the elements in the list that come after the specified cursor. @@ -94545,6 +96455,11 @@ input UserWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ subcontrols edge predicates """ hasSubcontrols: Boolean diff --git a/internal/graphapi/ent.resolvers.go b/internal/graphapi/ent.resolvers.go index 95b778d00b..d6d79dbb6d 100644 --- a/internal/graphapi/ent.resolvers.go +++ b/internal/graphapi/ent.resolvers.go @@ -216,6 +216,74 @@ func (r *queryResolver) Assets(ctx context.Context, after *entgql.Cursor[string] return res, err } +// Audiences is the resolver for the audiences field. +func (r *queryResolver) Audiences(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) (*generated.AudienceConnection, error) { + // set page limit if nothing was set + first, last = graphutils.SetFirstLastDefaults(first, last, r.maxResultLimit) + + if orderBy == nil { + orderBy = []*generated.AudienceOrder{ + { + Field: generated.AudienceOrderFieldCreatedAt, + Direction: entgql.OrderDirectionDesc, + }, + } + } + + query, err := withTransactionalMutation(ctx).Audience.Query().CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audience"}) + } + + res, err := query.Paginate( + ctx, + after, + first, + before, + last, + generated.WithAudienceOrder(orderBy), + generated.WithAudienceFilter(where.Filter)) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audience"}) + } + + return res, err +} + +// AudienceMembers is the resolver for the audienceMembers field. +func (r *queryResolver) AudienceMembers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) (*generated.AudienceMemberConnection, error) { + // set page limit if nothing was set + first, last = graphutils.SetFirstLastDefaults(first, last, r.maxResultLimit) + + if orderBy == nil { + orderBy = []*generated.AudienceMemberOrder{ + { + Field: generated.AudienceMemberOrderFieldCreatedAt, + Direction: entgql.OrderDirectionDesc, + }, + } + } + + query, err := withTransactionalMutation(ctx).AudienceMember.Query().CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencemember"}) + } + + res, err := query.Paginate( + ctx, + after, + first, + before, + last, + generated.WithAudienceMemberOrder(orderBy), + generated.WithAudienceMemberFilter(where.Filter)) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencemember"}) + } + + return res, err +} + // Campaigns is the resolver for the campaigns field. func (r *queryResolver) Campaigns(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) (*generated.CampaignConnection, error) { // set page limit if nothing was set diff --git a/internal/graphapi/generated/actionplan.generated.go b/internal/graphapi/generated/actionplan.generated.go index 07f1ed377f..77b1b9aea8 100644 --- a/internal/graphapi/generated/actionplan.generated.go +++ b/internal/graphapi/generated/actionplan.generated.go @@ -50,6 +50,22 @@ type MutationResolver interface { DeleteBulkAsset(ctx context.Context, ids []string) (*model.AssetBulkDeletePayload, error) UpdateBulkAsset(ctx context.Context, ids []string, input generated.UpdateAssetInput) (*model.AssetBulkUpdatePayload, error) UpdateBulkCSVAsset(ctx context.Context, input graphql.Upload) (*model.AssetBulkUpdatePayload, error) + CreateAudience(ctx context.Context, input generated.CreateAudienceInput) (*model.AudienceCreatePayload, error) + CreateBulkAudience(ctx context.Context, input []*generated.CreateAudienceInput) (*model.AudienceBulkCreatePayload, error) + CreateBulkCSVAudience(ctx context.Context, input graphql.Upload) (*model.AudienceBulkCreatePayload, error) + UpdateBulkAudience(ctx context.Context, ids []string, input generated.UpdateAudienceInput) (*model.AudienceBulkUpdatePayload, error) + UpdateBulkCSVAudience(ctx context.Context, input graphql.Upload) (*model.AudienceBulkUpdatePayload, error) + UpdateAudience(ctx context.Context, id string, input generated.UpdateAudienceInput) (*model.AudienceUpdatePayload, error) + DeleteAudience(ctx context.Context, id string) (*model.AudienceDeletePayload, error) + DeleteBulkAudience(ctx context.Context, ids []string) (*model.AudienceBulkDeletePayload, error) + CreateAudienceMember(ctx context.Context, input generated.CreateAudienceMemberInput) (*model.AudienceMemberCreatePayload, error) + CreateBulkAudienceMember(ctx context.Context, input []*generated.CreateAudienceMemberInput) (*model.AudienceMemberBulkCreatePayload, error) + CreateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload) (*model.AudienceMemberBulkCreatePayload, error) + UpdateBulkAudienceMember(ctx context.Context, ids []string, input generated.UpdateAudienceMemberInput) (*model.AudienceMemberBulkUpdatePayload, error) + UpdateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload) (*model.AudienceMemberBulkUpdatePayload, error) + UpdateAudienceMember(ctx context.Context, id string, input generated.UpdateAudienceMemberInput) (*model.AudienceMemberUpdatePayload, error) + DeleteAudienceMember(ctx context.Context, id string) (*model.AudienceMemberDeletePayload, error) + DeleteBulkAudienceMember(ctx context.Context, ids []string) (*model.AudienceMemberBulkDeletePayload, error) CreateCampaign(ctx context.Context, input generated.CreateCampaignInput) (*model.CampaignCreatePayload, error) CreateBulkCampaign(ctx context.Context, input []*generated.CreateCampaignInput) (*model.CampaignBulkCreatePayload, error) CreateBulkCSVCampaign(ctx context.Context, input graphql.Upload) (*model.CampaignBulkCreatePayload, error) @@ -817,6 +833,34 @@ func (ec *executionContext) field_Mutation_createAsset_args(ctx context.Context, return args, nil } +func (ec *executionContext) field_Mutation_createAudienceMember_args(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) (generated.CreateAudienceMemberInput, error) { + return ec.unmarshalNCreateAudienceMemberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createAudience_args(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) (generated.CreateAudienceInput, error) { + return ec.unmarshalNCreateAudienceInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + func (ec *executionContext) field_Mutation_createBulkAPIToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -859,6 +903,34 @@ func (ec *executionContext) field_Mutation_createBulkAsset_args(ctx context.Cont return args, nil } +func (ec *executionContext) field_Mutation_createBulkAudienceMember_args(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) ([]*generated.CreateAudienceMemberInput, error) { + return ec.unmarshalOCreateAudienceMemberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInputᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createBulkAudience_args(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) ([]*generated.CreateAudienceInput, error) { + return ec.unmarshalOCreateAudienceInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInputᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -901,6 +973,34 @@ func (ec *executionContext) field_Mutation_createBulkCSVAsset_args(ctx context.C return args, nil } +func (ec *executionContext) field_Mutation_createBulkCSVAudienceMember_args(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) (graphql.Upload, error) { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVAudience_args(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) (graphql.Upload, error) { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + func (ec *executionContext) field_Mutation_createBulkCSVCampaignTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -4529,6 +4629,34 @@ func (ec *executionContext) field_Mutation_deleteAsset_args(ctx context.Context, return args, nil } +func (ec *executionContext) field_Mutation_deleteAudienceMember_args(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_Mutation_deleteAudience_args(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_Mutation_deleteBulkAPIToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -4585,6 +4713,34 @@ func (ec *executionContext) field_Mutation_deleteBulkAsset_args(ctx context.Cont return args, nil } +func (ec *executionContext) field_Mutation_deleteBulkAudienceMember_args(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) + }) + if err != nil { + return nil, err + } + args["ids"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_deleteBulkAudience_args(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) + }) + if err != nil { + return nil, err + } + args["ids"] = arg0 + return args, nil +} + func (ec *executionContext) field_Mutation_deleteBulkCheckResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -6731,6 +6887,50 @@ func (ec *executionContext) field_Mutation_updateAsset_args(ctx context.Context, return args, nil } +func (ec *executionContext) field_Mutation_updateAudienceMember_args(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 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", + func(ctx context.Context, v any) (generated.UpdateAudienceMemberInput, error) { + return ec.unmarshalNUpdateAudienceMemberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceMemberInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateAudience_args(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 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", + func(ctx context.Context, v any) (generated.UpdateAudienceInput, error) { + return ec.unmarshalNUpdateAudienceInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} + func (ec *executionContext) field_Mutation_updateBulkAPIToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -6797,6 +6997,50 @@ func (ec *executionContext) field_Mutation_updateBulkAsset_args(ctx context.Cont return args, nil } +func (ec *executionContext) field_Mutation_updateBulkAudienceMember_args(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) + }) + if err != nil { + return nil, err + } + args["ids"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", + func(ctx context.Context, v any) (generated.UpdateAudienceMemberInput, error) { + return ec.unmarshalNUpdateAudienceMemberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceMemberInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateBulkAudience_args(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) + }) + if err != nil { + return nil, err + } + args["ids"] = arg0 + arg1, err := graphql.ProcessArgField(ctx, rawArgs, "input", + func(ctx context.Context, v any) (generated.UpdateAudienceInput, error) { + return ec.unmarshalNUpdateAudienceInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} + func (ec *executionContext) field_Mutation_updateBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -6839,6 +7083,34 @@ func (ec *executionContext) field_Mutation_updateBulkCSVAsset_args(ctx context.C return args, nil } +func (ec *executionContext) field_Mutation_updateBulkCSVAudienceMember_args(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) (graphql.Upload, error) { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + +func (ec *executionContext) field_Mutation_updateBulkCSVAudience_args(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) (graphql.Upload, error) { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, v) + }) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} + func (ec *executionContext) field_Mutation_updateBulkCSVCheckResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -12802,6 +13074,710 @@ func (ec *executionContext) fieldContext_Mutation_updateBulkCSVAsset(ctx context return fc, nil } +func (ec *executionContext) _Mutation_createAudience(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_Mutation_createAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateAudience(ctx, fc.Args["input"].(generated.CreateAudienceInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkAudience(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_Mutation_createBulkAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateBulkAudience(ctx, fc.Args["input"].([]*generated.CreateAudienceInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceBulkCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createBulkAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceBulkCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVAudience(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_Mutation_createBulkCSVAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateBulkCSVAudience(ctx, fc.Args["input"].(graphql.Upload)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceBulkCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createBulkCSVAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceBulkCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateBulkAudience(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_Mutation_updateBulkAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateBulkAudience(ctx, fc.Args["ids"].([]string), fc.Args["input"].(generated.UpdateAudienceInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceBulkUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateBulkAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceBulkUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateBulkAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateBulkCSVAudience(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_Mutation_updateBulkCSVAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateBulkCSVAudience(ctx, fc.Args["input"].(graphql.Upload)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceBulkUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateBulkCSVAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceBulkUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateBulkCSVAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateAudience(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_Mutation_updateAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateAudience(ctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAudienceInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteAudience(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_Mutation_deleteAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().DeleteAudience(ctx, fc.Args["id"].(string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceDeletePayload) graphql.Marshaler { + return ec.marshalNAudienceDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceDeletePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_deleteAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceDeletePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteBulkAudience(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_Mutation_deleteBulkAudience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().DeleteBulkAudience(ctx, fc.Args["ids"].([]string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceBulkDeletePayload) graphql.Marshaler { + return ec.marshalNAudienceBulkDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkDeletePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_deleteBulkAudience(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceBulkDeletePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteBulkAudience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createAudienceMember(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_Mutation_createAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateAudienceMember(ctx, fc.Args["input"].(generated.CreateAudienceMemberInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkAudienceMember(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_Mutation_createBulkAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateBulkAudienceMember(ctx, fc.Args["input"].([]*generated.CreateAudienceMemberInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberBulkCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createBulkAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberBulkCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVAudienceMember(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_Mutation_createBulkCSVAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().CreateBulkCSVAudienceMember(ctx, fc.Args["input"].(graphql.Upload)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberBulkCreatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkCreatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_createBulkCSVAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberBulkCreatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_createBulkCSVAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateBulkAudienceMember(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_Mutation_updateBulkAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateBulkAudienceMember(ctx, fc.Args["ids"].([]string), fc.Args["input"].(generated.UpdateAudienceMemberInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberBulkUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateBulkAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberBulkUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateBulkAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateBulkCSVAudienceMember(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_Mutation_updateBulkCSVAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateBulkCSVAudienceMember(ctx, fc.Args["input"].(graphql.Upload)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberBulkUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateBulkCSVAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberBulkUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateBulkCSVAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateAudienceMember(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_Mutation_updateAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().UpdateAudienceMember(ctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAudienceMemberInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberUpdatePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberUpdatePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_updateAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberUpdatePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_updateAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteAudienceMember(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_Mutation_deleteAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().DeleteAudienceMember(ctx, fc.Args["id"].(string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberDeletePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberDeletePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_deleteAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberDeletePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteBulkAudienceMember(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_Mutation_deleteBulkAudienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Mutation().DeleteBulkAudienceMember(ctx, fc.Args["ids"].([]string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *model.AudienceMemberBulkDeletePayload) graphql.Marshaler { + return ec.marshalNAudienceMemberBulkDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkDeletePayload(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Mutation_deleteBulkAudienceMember(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Mutation", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberBulkDeletePayload(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Mutation_deleteBulkAudienceMember_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Mutation_createCampaign(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -37712,6 +38688,118 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) if out.Values[i] == graphql.Null { out.Invalids++ } + case "createAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateBulkAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateBulkAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateBulkCSVAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateBulkCSVAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteBulkAudience": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteBulkAudience(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateBulkAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateBulkAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateBulkCSVAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateBulkCSVAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteBulkAudienceMember": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteBulkAudienceMember(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } case "createCampaign": out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { return ec._Mutation_createCampaign(ctx, field) diff --git a/internal/graphapi/generated/audience.generated.go b/internal/graphapi/generated/audience.generated.go new file mode 100644 index 0000000000..6d4d35c912 --- /dev/null +++ b/internal/graphapi/generated/audience.generated.go @@ -0,0 +1,614 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "math" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _AudienceBulkCreatePayload_audiences(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkCreatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkCreatePayload_audiences(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Audiences, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.Audience) graphql.Marshaler { + return ec.marshalOAudience2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceBulkCreatePayload_audiences(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Audience(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceBulkDeletePayload_deletedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkDeletePayload_deletedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DeletedIDs, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalNID2ᚕstringᚄ(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceBulkDeletePayload_deletedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceBulkDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceBulkDeletePayload_error(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkDeletePayload_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.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceBulkDeletePayload_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceBulkDeletePayload", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _AudienceBulkDeletePayload_notDeletedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkDeletePayload_notDeletedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.NotDeletedIDs, 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_AudienceBulkDeletePayload_notDeletedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceBulkDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceBulkUpdatePayload_audiences(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkUpdatePayload_audiences(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Audiences, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.Audience) graphql.Marshaler { + return ec.marshalOAudience2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceBulkUpdatePayload_audiences(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceBulkUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Audience(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceBulkUpdatePayload_updatedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceBulkUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceBulkUpdatePayload_updatedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedIDs, 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_AudienceBulkUpdatePayload_updatedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceBulkUpdatePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceCreatePayload_audience(ctx context.Context, field graphql.CollectedField, obj *model.AudienceCreatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceCreatePayload_audience(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Audience, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + return ec.marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceCreatePayload_audience(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Audience(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.AudienceDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceDeletePayload_deletedID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DeletedID, 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_AudienceDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceUpdatePayload_audience(ctx context.Context, field graphql.CollectedField, obj *model.AudienceUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceUpdatePayload_audience(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Audience, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + return ec.marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceUpdatePayload_audience(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Audience(ctx, field) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var audienceBulkCreatePayloadImplementors = []string{"AudienceBulkCreatePayload"} + +func (ec *executionContext) _AudienceBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceBulkCreatePayload") + case "audiences": + out.Values[i] = ec._AudienceBulkCreatePayload_audiences(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceBulkDeletePayloadImplementors = []string{"AudienceBulkDeletePayload"} + +func (ec *executionContext) _AudienceBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceBulkDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceBulkDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceBulkDeletePayload") + case "deletedIDs": + out.Values[i] = ec._AudienceBulkDeletePayload_deletedIDs(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "error": + out.Values[i] = ec._AudienceBulkDeletePayload_error(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "notDeletedIDs": + out.Values[i] = ec._AudienceBulkDeletePayload_notDeletedIDs(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceBulkUpdatePayloadImplementors = []string{"AudienceBulkUpdatePayload"} + +func (ec *executionContext) _AudienceBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceBulkUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceBulkUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceBulkUpdatePayload") + case "audiences": + out.Values[i] = ec._AudienceBulkUpdatePayload_audiences(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedIDs": + out.Values[i] = ec._AudienceBulkUpdatePayload_updatedIDs(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceCreatePayloadImplementors = []string{"AudienceCreatePayload"} + +func (ec *executionContext) _AudienceCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceCreatePayload") + case "audience": + out.Values[i] = ec._AudienceCreatePayload_audience(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceDeletePayloadImplementors = []string{"AudienceDeletePayload"} + +func (ec *executionContext) _AudienceDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceDeletePayload") + case "deletedID": + out.Values[i] = ec._AudienceDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceUpdatePayloadImplementors = []string{"AudienceUpdatePayload"} + +func (ec *executionContext) _AudienceUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceUpdatePayload") + case "audience": + out.Values[i] = ec._AudienceUpdatePayload_audience(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAudienceBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceBulkCreatePayload) graphql.Marshaler { + return ec._AudienceBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceBulkDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceBulkDeletePayload) graphql.Marshaler { + return ec._AudienceBulkDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceBulkDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceBulkDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceBulkDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceBulkUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceBulkUpdatePayload) graphql.Marshaler { + return ec._AudienceBulkUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceBulkUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceBulkUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceCreatePayload) graphql.Marshaler { + return ec._AudienceCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceDeletePayload) graphql.Marshaler { + return ec._AudienceDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceUpdatePayload) graphql.Marshaler { + return ec._AudienceUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/audiencemember.generated.go b/internal/graphapi/generated/audiencemember.generated.go new file mode 100644 index 0000000000..f45786211e --- /dev/null +++ b/internal/graphapi/generated/audiencemember.generated.go @@ -0,0 +1,614 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "math" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _AudienceMemberBulkCreatePayload_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkCreatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkCreatePayload_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AudienceMembers, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.AudienceMember) graphql.Marshaler { + return ec.marshalOAudienceMember2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberBulkCreatePayload_audienceMembers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceMemberBulkCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMember(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceMemberBulkDeletePayload_deletedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkDeletePayload_deletedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DeletedIDs, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []string) graphql.Marshaler { + return ec.marshalNID2ᚕstringᚄ(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberBulkDeletePayload_deletedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberBulkDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceMemberBulkDeletePayload_error(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkDeletePayload_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.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberBulkDeletePayload_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberBulkDeletePayload", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _AudienceMemberBulkDeletePayload_notDeletedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkDeletePayload_notDeletedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.NotDeletedIDs, 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_AudienceMemberBulkDeletePayload_notDeletedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberBulkDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceMemberBulkUpdatePayload_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkUpdatePayload_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AudienceMembers, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.AudienceMember) graphql.Marshaler { + return ec.marshalOAudienceMember2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberᚄ(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberBulkUpdatePayload_audienceMembers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceMemberBulkUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMember(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceMemberBulkUpdatePayload_updatedIDs(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberBulkUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberBulkUpdatePayload_updatedIDs(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedIDs, 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_AudienceMemberBulkUpdatePayload_updatedIDs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberBulkUpdatePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceMemberCreatePayload_audienceMember(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberCreatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberCreatePayload_audienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AudienceMember, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + return ec.marshalNAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberCreatePayload_audienceMember(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceMemberCreatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMember(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _AudienceMemberDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberDeletePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberDeletePayload_deletedID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DeletedID, 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_AudienceMemberDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberDeletePayload", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _AudienceMemberUpdatePayload_audienceMember(ctx context.Context, field graphql.CollectedField, obj *model.AudienceMemberUpdatePayload) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_AudienceMemberUpdatePayload_audienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AudienceMember, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + return ec.marshalNAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_AudienceMemberUpdatePayload_audienceMember(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceMemberUpdatePayload", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMember(ctx, field) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var audienceMemberBulkCreatePayloadImplementors = []string{"AudienceMemberBulkCreatePayload"} + +func (ec *executionContext) _AudienceMemberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberBulkCreatePayload") + case "audienceMembers": + out.Values[i] = ec._AudienceMemberBulkCreatePayload_audienceMembers(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberBulkDeletePayloadImplementors = []string{"AudienceMemberBulkDeletePayload"} + +func (ec *executionContext) _AudienceMemberBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberBulkDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberBulkDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberBulkDeletePayload") + case "deletedIDs": + out.Values[i] = ec._AudienceMemberBulkDeletePayload_deletedIDs(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "error": + out.Values[i] = ec._AudienceMemberBulkDeletePayload_error(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "notDeletedIDs": + out.Values[i] = ec._AudienceMemberBulkDeletePayload_notDeletedIDs(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberBulkUpdatePayloadImplementors = []string{"AudienceMemberBulkUpdatePayload"} + +func (ec *executionContext) _AudienceMemberBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberBulkUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberBulkUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberBulkUpdatePayload") + case "audienceMembers": + out.Values[i] = ec._AudienceMemberBulkUpdatePayload_audienceMembers(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedIDs": + out.Values[i] = ec._AudienceMemberBulkUpdatePayload_updatedIDs(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberCreatePayloadImplementors = []string{"AudienceMemberCreatePayload"} + +func (ec *executionContext) _AudienceMemberCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberCreatePayload") + case "audienceMember": + out.Values[i] = ec._AudienceMemberCreatePayload_audienceMember(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberDeletePayloadImplementors = []string{"AudienceMemberDeletePayload"} + +func (ec *executionContext) _AudienceMemberDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberDeletePayload") + case "deletedID": + out.Values[i] = ec._AudienceMemberDeletePayload_deletedID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.Deferred, int32(min(len(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberUpdatePayloadImplementors = []string{"AudienceMemberUpdatePayload"} + +func (ec *executionContext) _AudienceMemberUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.AudienceMemberUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMemberUpdatePayload") + case "audienceMember": + out.Values[i] = ec._AudienceMemberUpdatePayload_audienceMember(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAudienceMemberBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberBulkCreatePayload) graphql.Marshaler { + return ec._AudienceMemberBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberBulkDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberBulkDeletePayload) graphql.Marshaler { + return ec._AudienceMemberBulkDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberBulkDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberBulkDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberBulkDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberBulkUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberBulkUpdatePayload) graphql.Marshaler { + return ec._AudienceMemberBulkUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberBulkUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberBulkUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberBulkUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberBulkUpdatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberCreatePayload) graphql.Marshaler { + return ec._AudienceMemberCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberDeletePayload) graphql.Marshaler { + return ec._AudienceMemberDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.AudienceMemberUpdatePayload) graphql.Marshaler { + return ec._AudienceMemberUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐAudienceMemberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.AudienceMemberUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/ent.generated.go b/internal/graphapi/generated/ent.generated.go index 7df9d5fc19..ec8f971ff3 100644 --- a/internal/graphapi/generated/ent.generated.go +++ b/internal/graphapi/generated/ent.generated.go @@ -119,6 +119,8 @@ type QueryResolver interface { Assessments(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentOrder, where *generated.AssessmentWhereInput) (*generated.AssessmentConnection, error) AssessmentResponses(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentResponseOrder, where *generated.AssessmentResponseWhereInput) (*generated.AssessmentResponseConnection, error) Assets(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssetOrder, where *generated.AssetWhereInput) (*generated.AssetConnection, error) + Audiences(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) (*generated.AudienceConnection, error) + AudienceMembers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) (*generated.AudienceMemberConnection, error) Campaigns(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) (*generated.CampaignConnection, error) CampaignTargets(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignTargetOrder, where *generated.CampaignTargetWhereInput) (*generated.CampaignTargetConnection, error) CheckResults(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CheckResultOrder, where *generated.CheckResultWhereInput) (*generated.CheckResultConnection, error) @@ -207,6 +209,8 @@ type QueryResolver interface { Assessment(ctx context.Context, id string) (*generated.Assessment, error) AssessmentResponse(ctx context.Context, id string) (*generated.AssessmentResponse, error) Asset(ctx context.Context, id string) (*generated.Asset, error) + Audience(ctx context.Context, id string) (*generated.Audience, error) + AudienceMember(ctx context.Context, id string) (*generated.AudienceMember, error) Campaign(ctx context.Context, id string) (*generated.Campaign, error) CampaignTarget(ctx context.Context, id string) (*generated.CampaignTarget, error) CheckResult(ctx context.Context, id string) (*generated.CheckResult, error) @@ -273,6 +277,8 @@ type QueryResolver interface { AssessmentSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AssessmentConnection, error) AssessmentResponseSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AssessmentResponseConnection, error) AssetSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AssetConnection, error) + AudienceSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceConnection, error) + AudienceMemberSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceMemberConnection, error) CampaignSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.CampaignConnection, error) CampaignTargetSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.CampaignTargetConnection, error) ContactSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.ContactConnection, error) @@ -2964,7 +2970,7 @@ func (ec *executionContext) field_Asset_vulnerabilities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_CampaignTarget_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Audience_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -3000,16 +3006,16 @@ func (ec *executionContext) field_CampaignTarget_workflowObjectRefs_args(ctx con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3018,7 +3024,7 @@ func (ec *executionContext) field_CampaignTarget_workflowObjectRefs_args(ctx con return args, nil } -func (ec *executionContext) field_CampaignTarget_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Audience_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", @@ -3054,33 +3060,79 @@ func (ec *executionContext) field_CampaignTarget_workflowTimeline_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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) + return args, nil +} + +func (ec *executionContext) field_Audience_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["includeEmitFailures"] = arg6 + 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Campaign_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Audience_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", @@ -3116,16 +3168,16 @@ func (ec *executionContext) field_Campaign_assessmentResponses_args(ctx context. } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssessmentResponseWhereInput, error) { - return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3134,7 +3186,7 @@ func (ec *executionContext) field_Campaign_assessmentResponses_args(ctx context. return args, nil } -func (ec *executionContext) field_Campaign_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Audience_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", @@ -3188,7 +3240,7 @@ func (ec *executionContext) field_Campaign_blockedGroups_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Campaign_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CampaignTarget_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", @@ -3224,16 +3276,16 @@ func (ec *executionContext) field_Campaign_campaignTargets_args(ctx context.Cont } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignTargetWhereInput, error) { - return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3242,7 +3294,7 @@ func (ec *executionContext) field_Campaign_campaignTargets_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Campaign_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CampaignTarget_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", @@ -3278,25 +3330,33 @@ func (ec *executionContext) field_Campaign_contacts_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ContactWhereInput, error) { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Campaign_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3332,16 +3392,16 @@ func (ec *executionContext) field_Campaign_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { + return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { + return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3350,7 +3410,7 @@ func (ec *executionContext) field_Campaign_controls_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Campaign_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_audiences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -3386,16 +3446,16 @@ func (ec *executionContext) field_Campaign_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3404,7 +3464,7 @@ func (ec *executionContext) field_Campaign_editors_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Campaign_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3458,7 +3518,7 @@ func (ec *executionContext) field_Campaign_groups_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Campaign_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3494,16 +3554,16 @@ func (ec *executionContext) field_Campaign_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3512,7 +3572,7 @@ func (ec *executionContext) field_Campaign_identityHolders_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Campaign_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3548,16 +3608,16 @@ func (ec *executionContext) field_Campaign_users_args(ctx context.Context, rawAr } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3566,7 +3626,7 @@ func (ec *executionContext) field_Campaign_users_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Campaign_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3602,16 +3662,16 @@ func (ec *executionContext) field_Campaign_viewers_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3620,7 +3680,7 @@ func (ec *executionContext) field_Campaign_viewers_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Campaign_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3656,16 +3716,16 @@ func (ec *executionContext) field_Campaign_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3674,7 +3734,7 @@ func (ec *executionContext) field_Campaign_workflowObjectRefs_args(ctx context.C return args, nil } -func (ec *executionContext) field_Campaign_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3710,33 +3770,25 @@ func (ec *executionContext) field_Campaign_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_CheckResult_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3772,16 +3824,16 @@ func (ec *executionContext) field_CheckResult_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3790,7 +3842,7 @@ func (ec *executionContext) field_CheckResult_blockedGroups_args(ctx context.Con return args, nil } -func (ec *executionContext) field_CheckResult_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3826,16 +3878,16 @@ func (ec *executionContext) field_CheckResult_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -3844,7 +3896,7 @@ func (ec *executionContext) field_CheckResult_controls_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_CheckResult_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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", @@ -3898,7 +3950,61 @@ func (ec *executionContext) field_CheckResult_editors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_CheckResult_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Campaign_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Campaign_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", @@ -3934,25 +4040,33 @@ func (ec *executionContext) field_CheckResult_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_CheckResult_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CheckResult_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", @@ -4006,7 +4120,7 @@ func (ec *executionContext) field_CheckResult_viewers_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Contact_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CheckResult_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", @@ -4042,16 +4156,16 @@ func (ec *executionContext) field_Contact_campaignTargets_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignTargetWhereInput, error) { - return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4060,7 +4174,7 @@ func (ec *executionContext) field_Contact_campaignTargets_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Contact_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CheckResult_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", @@ -4096,16 +4210,16 @@ func (ec *executionContext) field_Contact_campaigns_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4114,7 +4228,7 @@ func (ec *executionContext) field_Contact_campaigns_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Contact_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CheckResult_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", @@ -4150,16 +4264,16 @@ func (ec *executionContext) field_Contact_entities_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4168,7 +4282,7 @@ func (ec *executionContext) field_Contact_entities_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Contact_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CheckResult_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", @@ -4204,16 +4318,16 @@ func (ec *executionContext) field_Contact_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4222,7 +4336,7 @@ func (ec *executionContext) field_Contact_files_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Contact_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -4258,16 +4372,16 @@ func (ec *executionContext) field_Contact_subscribers_args(ctx context.Context, } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4276,7 +4390,7 @@ func (ec *executionContext) field_Contact_subscribers_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_ControlImplementation_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_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", @@ -4312,16 +4426,16 @@ func (ec *executionContext) field_ControlImplementation_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4330,7 +4444,7 @@ func (ec *executionContext) field_ControlImplementation_blockedGroups_args(ctx c return args, nil } -func (ec *executionContext) field_ControlImplementation_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_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", @@ -4366,16 +4480,16 @@ func (ec *executionContext) field_ControlImplementation_controls_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4384,7 +4498,7 @@ func (ec *executionContext) field_ControlImplementation_controls_args(ctx contex return args, nil } -func (ec *executionContext) field_ControlImplementation_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_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", @@ -4420,16 +4534,16 @@ func (ec *executionContext) field_ControlImplementation_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4438,7 +4552,7 @@ func (ec *executionContext) field_ControlImplementation_editors_args(ctx context return args, nil } -func (ec *executionContext) field_ControlImplementation_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_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", @@ -4474,16 +4588,16 @@ func (ec *executionContext) field_ControlImplementation_subcontrols_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4492,7 +4606,7 @@ func (ec *executionContext) field_ControlImplementation_subcontrols_args(ctx con return args, nil } -func (ec *executionContext) field_ControlImplementation_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Contact_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", @@ -4528,16 +4642,16 @@ func (ec *executionContext) field_ControlImplementation_tasks_args(ctx context.C } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { + return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4546,7 +4660,7 @@ func (ec *executionContext) field_ControlImplementation_tasks_args(ctx context.C return args, nil } -func (ec *executionContext) field_ControlImplementation_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4600,7 +4714,7 @@ func (ec *executionContext) field_ControlImplementation_viewers_args(ctx context return args, nil } -func (ec *executionContext) field_ControlObjective_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4636,16 +4750,16 @@ func (ec *executionContext) field_ControlObjective_blockedGroups_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4654,7 +4768,7 @@ func (ec *executionContext) field_ControlObjective_blockedGroups_args(ctx contex return args, nil } -func (ec *executionContext) field_ControlObjective_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4690,16 +4804,16 @@ func (ec *executionContext) field_ControlObjective_controls_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4708,7 +4822,7 @@ func (ec *executionContext) field_ControlObjective_controls_args(ctx context.Con return args, nil } -func (ec *executionContext) field_ControlObjective_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4744,16 +4858,16 @@ func (ec *executionContext) field_ControlObjective_editors_args(ctx context.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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4762,7 +4876,7 @@ func (ec *executionContext) field_ControlObjective_editors_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_ControlObjective_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4798,16 +4912,16 @@ func (ec *executionContext) field_ControlObjective_evidence_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4816,7 +4930,7 @@ func (ec *executionContext) field_ControlObjective_evidence_args(ctx context.Con return args, nil } -func (ec *executionContext) field_ControlObjective_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlImplementation_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", @@ -4852,16 +4966,16 @@ func (ec *executionContext) field_ControlObjective_internalPolicies_args(ctx con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4870,7 +4984,7 @@ func (ec *executionContext) field_ControlObjective_internalPolicies_args(ctx con return args, nil } -func (ec *executionContext) field_ControlObjective_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -4906,16 +5020,16 @@ func (ec *executionContext) field_ControlObjective_narratives_args(ctx context.C } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4924,7 +5038,7 @@ func (ec *executionContext) field_ControlObjective_narratives_args(ctx context.C return args, nil } -func (ec *executionContext) field_ControlObjective_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -4960,16 +5074,16 @@ func (ec *executionContext) field_ControlObjective_procedures_args(ctx context.C } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -4978,7 +5092,7 @@ func (ec *executionContext) field_ControlObjective_procedures_args(ctx context.C return args, nil } -func (ec *executionContext) field_ControlObjective_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5014,16 +5128,16 @@ func (ec *executionContext) field_ControlObjective_programs_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5032,7 +5146,7 @@ func (ec *executionContext) field_ControlObjective_programs_args(ctx context.Con return args, nil } -func (ec *executionContext) field_ControlObjective_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5068,16 +5182,16 @@ func (ec *executionContext) field_ControlObjective_risks_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5086,7 +5200,7 @@ func (ec *executionContext) field_ControlObjective_risks_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_ControlObjective_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5122,16 +5236,16 @@ func (ec *executionContext) field_ControlObjective_subcontrols_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5140,7 +5254,7 @@ func (ec *executionContext) field_ControlObjective_subcontrols_args(ctx context. return args, nil } -func (ec *executionContext) field_ControlObjective_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5176,16 +5290,16 @@ func (ec *executionContext) field_ControlObjective_tasks_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5194,7 +5308,7 @@ func (ec *executionContext) field_ControlObjective_tasks_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_ControlObjective_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5230,16 +5344,16 @@ func (ec *executionContext) field_ControlObjective_viewers_args(ctx context.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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5248,7 +5362,7 @@ func (ec *executionContext) field_ControlObjective_viewers_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Control_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5284,16 +5398,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5302,7 +5416,7 @@ func (ec *executionContext) field_Control_actionPlans_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Control_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5338,16 +5452,16 @@ func (ec *executionContext) field_Control_assets_args(ctx context.Context, rawAr } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5356,7 +5470,7 @@ func (ec *executionContext) field_Control_assets_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Control_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5392,16 +5506,16 @@ func (ec *executionContext) field_Control_blockedGroups_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5410,7 +5524,7 @@ func (ec *executionContext) field_Control_blockedGroups_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Control_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5446,16 +5560,16 @@ func (ec *executionContext) field_Control_campaigns_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5464,7 +5578,7 @@ func (ec *executionContext) field_Control_campaigns_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Control_checkResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_ControlObjective_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", @@ -5500,16 +5614,16 @@ func (ec *executionContext) field_Control_checkResults_args(ctx context.Context, } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CheckResultWhereInput, error) { - return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5518,7 +5632,7 @@ func (ec *executionContext) field_Control_checkResults_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Control_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5554,16 +5668,16 @@ func (ec *executionContext) field_Control_comments_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5572,7 +5686,7 @@ func (ec *executionContext) field_Control_comments_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Control_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5608,16 +5722,16 @@ func (ec *executionContext) field_Control_controlImplementations_args(ctx contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5626,7 +5740,7 @@ func (ec *executionContext) field_Control_controlImplementations_args(ctx contex return args, nil } -func (ec *executionContext) field_Control_controlMappings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5662,16 +5776,16 @@ func (ec *executionContext) field_Control_controlMappings_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingControlWhereInput, error) { - return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5680,7 +5794,7 @@ func (ec *executionContext) field_Control_controlMappings_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Control_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5716,16 +5830,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5734,7 +5848,7 @@ func (ec *executionContext) field_Control_controlObjectives_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Control_discussions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5770,16 +5884,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CheckResultOrder, error) { + return ec.unmarshalOCheckResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CheckResultWhereInput, error) { + return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5788,7 +5902,7 @@ func (ec *executionContext) field_Control_discussions_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Control_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5824,16 +5938,16 @@ func (ec *executionContext) field_Control_editors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5842,7 +5956,7 @@ func (ec *executionContext) field_Control_editors_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Control_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5878,16 +5992,16 @@ func (ec *executionContext) field_Control_entities_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5896,7 +6010,7 @@ func (ec *executionContext) field_Control_entities_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Control_evidence_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_controlMappings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -5932,16 +6046,16 @@ func (ec *executionContext) field_Control_evidence_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingControlOrder, error) { + return ec.unmarshalOFindingControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingControlWhereInput, error) { + return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -5950,7 +6064,7 @@ func (ec *executionContext) field_Control_evidence_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Control_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -5986,16 +6100,16 @@ func (ec *executionContext) field_Control_findings_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6004,7 +6118,7 @@ func (ec *executionContext) field_Control_findings_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Control_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6040,16 +6154,16 @@ func (ec *executionContext) field_Control_identityHolders_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6058,7 +6172,7 @@ func (ec *executionContext) field_Control_identityHolders_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Control_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6094,16 +6208,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6112,7 +6226,7 @@ func (ec *executionContext) field_Control_internalPolicies_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Control_narratives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6148,16 +6262,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6166,7 +6280,7 @@ func (ec *executionContext) field_Control_narratives_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Control_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6202,16 +6316,16 @@ func (ec *executionContext) field_Control_platforms_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6220,7 +6334,7 @@ func (ec *executionContext) field_Control_platforms_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Control_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6256,16 +6370,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6274,7 +6388,7 @@ func (ec *executionContext) field_Control_procedures_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Control_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6310,16 +6424,16 @@ func (ec *executionContext) field_Control_programs_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6328,7 +6442,7 @@ func (ec *executionContext) field_Control_programs_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Control_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6364,16 +6478,16 @@ func (ec *executionContext) field_Control_remediations_args(ctx context.Context, } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6382,7 +6496,7 @@ func (ec *executionContext) field_Control_remediations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Control_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6418,16 +6532,16 @@ func (ec *executionContext) field_Control_reviews_args(ctx context.Context, rawA } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6436,7 +6550,7 @@ func (ec *executionContext) field_Control_reviews_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Control_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6472,16 +6586,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6490,7 +6604,7 @@ func (ec *executionContext) field_Control_risks_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Control_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6526,16 +6640,16 @@ func (ec *executionContext) field_Control_scans_args(ctx context.Context, rawArg } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6544,7 +6658,7 @@ func (ec *executionContext) field_Control_scans_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Control_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6580,16 +6694,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6598,7 +6712,7 @@ func (ec *executionContext) field_Control_subcontrols_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Control_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6634,16 +6748,16 @@ func (ec *executionContext) field_Control_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6652,7 +6766,7 @@ func (ec *executionContext) field_Control_tasks_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Control_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6688,16 +6802,16 @@ func (ec *executionContext) field_Control_vulnerabilities_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6706,7 +6820,7 @@ func (ec *executionContext) field_Control_vulnerabilities_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Control_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6742,16 +6856,16 @@ func (ec *executionContext) field_Control_workflowObjectRefs_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6760,7 +6874,7 @@ func (ec *executionContext) field_Control_workflowObjectRefs_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Control_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6796,33 +6910,25 @@ func (ec *executionContext) field_Control_workflowTimeline_args(ctx context.Cont } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(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_CustomTypeEnum_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6858,16 +6964,16 @@ func (ec *executionContext) field_CustomTypeEnum_actionPlans_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ActionPlanWhereInput, error) { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6876,7 +6982,7 @@ func (ec *executionContext) field_CustomTypeEnum_actionPlans_args(ctx context.Co return args, nil } -func (ec *executionContext) field_CustomTypeEnum_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6912,16 +7018,16 @@ func (ec *executionContext) field_CustomTypeEnum_controls_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6930,7 +7036,7 @@ func (ec *executionContext) field_CustomTypeEnum_controls_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_CustomTypeEnum_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -6966,16 +7072,16 @@ func (ec *executionContext) field_CustomTypeEnum_internalPolicies_args(ctx conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -6984,7 +7090,7 @@ func (ec *executionContext) field_CustomTypeEnum_internalPolicies_args(ctx conte return args, nil } -func (ec *executionContext) field_CustomTypeEnum_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -7020,16 +7126,16 @@ func (ec *executionContext) field_CustomTypeEnum_platforms_args(ctx context.Cont } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7038,7 +7144,7 @@ func (ec *executionContext) field_CustomTypeEnum_platforms_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_CustomTypeEnum_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Control_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", @@ -7074,25 +7180,33 @@ func (ec *executionContext) field_CustomTypeEnum_procedures_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_CustomTypeEnum_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7128,16 +7242,16 @@ func (ec *executionContext) field_CustomTypeEnum_programs_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7146,7 +7260,7 @@ func (ec *executionContext) field_CustomTypeEnum_programs_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_CustomTypeEnum_riskCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7182,16 +7296,16 @@ func (ec *executionContext) field_CustomTypeEnum_riskCategories_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7200,7 +7314,7 @@ func (ec *executionContext) field_CustomTypeEnum_riskCategories_args(ctx context return args, nil } -func (ec *executionContext) field_CustomTypeEnum_risks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7236,16 +7350,16 @@ func (ec *executionContext) field_CustomTypeEnum_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7254,7 +7368,7 @@ func (ec *executionContext) field_CustomTypeEnum_risks_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_CustomTypeEnum_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7290,16 +7404,16 @@ func (ec *executionContext) field_CustomTypeEnum_subcontrols_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7308,7 +7422,7 @@ func (ec *executionContext) field_CustomTypeEnum_subcontrols_args(ctx context.Co return args, nil } -func (ec *executionContext) field_CustomTypeEnum_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7344,16 +7458,16 @@ func (ec *executionContext) field_CustomTypeEnum_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7362,7 +7476,7 @@ func (ec *executionContext) field_CustomTypeEnum_tasks_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_DNSVerification_customDomains_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7398,16 +7512,16 @@ func (ec *executionContext) field_DNSVerification_customDomains_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CustomDomainWhereInput, error) { - return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7416,7 +7530,7 @@ func (ec *executionContext) field_DNSVerification_customDomains_args(ctx context return args, nil } -func (ec *executionContext) field_DirectoryAccount_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_riskCategories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -7452,16 +7566,16 @@ func (ec *executionContext) field_DirectoryAccount_findings_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7470,7 +7584,7 @@ func (ec *executionContext) field_DirectoryAccount_findings_args(ctx context.Con return args, nil } -func (ec *executionContext) field_DirectoryAccount_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7506,16 +7620,16 @@ func (ec *executionContext) field_DirectoryAccount_groups_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7524,7 +7638,7 @@ func (ec *executionContext) field_DirectoryAccount_groups_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_DirectoryAccount_memberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7560,16 +7674,16 @@ func (ec *executionContext) field_DirectoryAccount_memberships_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7578,7 +7692,7 @@ func (ec *executionContext) field_DirectoryAccount_memberships_args(ctx context. return args, nil } -func (ec *executionContext) field_DirectoryAccount_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_CustomTypeEnum_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", @@ -7614,16 +7728,16 @@ func (ec *executionContext) field_DirectoryAccount_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7632,7 +7746,7 @@ func (ec *executionContext) field_DirectoryAccount_workflowObjectRefs_args(ctx c return args, nil } -func (ec *executionContext) field_DirectoryGroup_accounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DNSVerification_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", @@ -7668,16 +7782,16 @@ func (ec *executionContext) field_DirectoryGroup_accounts_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { + return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { + return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7686,7 +7800,7 @@ func (ec *executionContext) field_DirectoryGroup_accounts_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_DirectoryGroup_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryAccount_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", @@ -7722,16 +7836,16 @@ func (ec *executionContext) field_DirectoryGroup_members_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7740,7 +7854,7 @@ func (ec *executionContext) field_DirectoryGroup_members_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_DirectoryGroup_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryAccount_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", @@ -7776,16 +7890,16 @@ func (ec *executionContext) field_DirectoryGroup_workflowObjectRefs_args(ctx con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7794,7 +7908,7 @@ func (ec *executionContext) field_DirectoryGroup_workflowObjectRefs_args(ctx con return args, nil } -func (ec *executionContext) field_DirectoryMembership_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryAccount_memberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -7830,16 +7944,16 @@ func (ec *executionContext) field_DirectoryMembership_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -7848,7 +7962,7 @@ func (ec *executionContext) field_DirectoryMembership_events_args(ctx context.Co return args, nil } -func (ec *executionContext) field_DirectoryMembership_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryAccount_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", @@ -7902,7 +8016,7 @@ func (ec *executionContext) field_DirectoryMembership_workflowObjectRefs_args(ct return args, nil } -func (ec *executionContext) field_DirectorySyncRun_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryGroup_accounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -7956,7 +8070,7 @@ func (ec *executionContext) field_DirectorySyncRun_directoryAccounts_args(ctx co return args, nil } -func (ec *executionContext) field_DirectorySyncRun_directoryGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryGroup_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", @@ -7992,16 +8106,16 @@ func (ec *executionContext) field_DirectorySyncRun_directoryGroups_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8010,7 +8124,7 @@ func (ec *executionContext) field_DirectorySyncRun_directoryGroups_args(ctx cont return args, nil } -func (ec *executionContext) field_DirectorySyncRun_directoryMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryGroup_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", @@ -8046,16 +8160,16 @@ func (ec *executionContext) field_DirectorySyncRun_directoryMemberships_args(ctx } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8064,7 +8178,7 @@ func (ec *executionContext) field_DirectorySyncRun_directoryMemberships_args(ctx return args, nil } -func (ec *executionContext) field_Discussion_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryMembership_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", @@ -8100,16 +8214,16 @@ func (ec *executionContext) field_Discussion_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8118,7 +8232,7 @@ func (ec *executionContext) field_Discussion_comments_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_DocumentData_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectoryMembership_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", @@ -8154,16 +8268,16 @@ func (ec *executionContext) field_DocumentData_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8172,7 +8286,7 @@ func (ec *executionContext) field_DocumentData_entities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_DocumentData_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectorySyncRun_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", @@ -8208,16 +8322,16 @@ func (ec *executionContext) field_DocumentData_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8226,7 +8340,7 @@ func (ec *executionContext) field_DocumentData_files_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_EmailTemplate_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectorySyncRun_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", @@ -8262,16 +8376,16 @@ func (ec *executionContext) field_EmailTemplate_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8280,7 +8394,7 @@ func (ec *executionContext) field_EmailTemplate_blockedGroups_args(ctx context.C return args, nil } -func (ec *executionContext) field_EmailTemplate_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DirectorySyncRun_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", @@ -8316,16 +8430,16 @@ func (ec *executionContext) field_EmailTemplate_campaigns_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8334,7 +8448,7 @@ func (ec *executionContext) field_EmailTemplate_campaigns_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_EmailTemplate_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Discussion_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", @@ -8370,16 +8484,16 @@ func (ec *executionContext) field_EmailTemplate_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8388,7 +8502,7 @@ func (ec *executionContext) field_EmailTemplate_editors_args(ctx context.Context return args, nil } -func (ec *executionContext) field_EmailTemplate_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DocumentData_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", @@ -8424,16 +8538,16 @@ func (ec *executionContext) field_EmailTemplate_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8442,7 +8556,7 @@ func (ec *executionContext) field_EmailTemplate_files_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_EmailTemplate_notificationTemplates_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_DocumentData_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", @@ -8478,16 +8592,16 @@ func (ec *executionContext) field_EmailTemplate_notificationTemplates_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NotificationTemplateWhereInput, error) { - return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8496,7 +8610,7 @@ func (ec *executionContext) field_EmailTemplate_notificationTemplates_args(ctx c return args, nil } -func (ec *executionContext) field_EmailTemplate_viewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8550,7 +8664,7 @@ func (ec *executionContext) field_EmailTemplate_viewers_args(ctx context.Context return args, nil } -func (ec *executionContext) field_EntityType_entities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8586,16 +8700,16 @@ func (ec *executionContext) field_EntityType_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8604,7 +8718,7 @@ func (ec *executionContext) field_EntityType_entities_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_assessmentResponses_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8640,16 +8754,16 @@ func (ec *executionContext) field_Entity_assessmentResponses_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssessmentResponseWhereInput, error) { - return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8658,7 +8772,7 @@ func (ec *executionContext) field_Entity_assessmentResponses_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Entity_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8694,16 +8808,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8712,7 +8826,7 @@ func (ec *executionContext) field_Entity_assets_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Entity_authMethods_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8748,16 +8862,16 @@ func (ec *executionContext) field_Entity_authMethods_args(ctx context.Context, r } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { + return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CustomTypeEnumWhereInput, error) { - return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { + return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8766,7 +8880,7 @@ func (ec *executionContext) field_Entity_authMethods_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Entity_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EmailTemplate_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", @@ -8820,7 +8934,7 @@ func (ec *executionContext) field_Entity_blockedGroups_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_EntityType_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", @@ -8856,16 +8970,16 @@ func (ec *executionContext) field_Entity_campaigns_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8874,7 +8988,7 @@ func (ec *executionContext) field_Entity_campaigns_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Entity_contacts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -8910,16 +9024,16 @@ func (ec *executionContext) field_Entity_contacts_args(ctx context.Context, rawA } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentResponseOrder, error) { + return ec.unmarshalOAssessmentResponseOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ContactWhereInput, error) { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentResponseWhereInput, error) { + return ec.unmarshalOAssessmentResponseWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8928,7 +9042,7 @@ func (ec *executionContext) field_Entity_contacts_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Entity_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -8964,16 +9078,16 @@ func (ec *executionContext) field_Entity_controls_args(ctx context.Context, rawA } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -8982,7 +9096,7 @@ func (ec *executionContext) field_Entity_controls_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Entity_documents_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_authMethods_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -9018,16 +9132,16 @@ func (ec *executionContext) field_Entity_documents_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { + return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DocumentDataWhereInput, error) { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { + return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9036,7 +9150,7 @@ func (ec *executionContext) field_Entity_documents_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Entity_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9090,7 +9204,7 @@ func (ec *executionContext) field_Entity_editors_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Entity_employerIdentityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9126,16 +9240,16 @@ func (ec *executionContext) field_Entity_employerIdentityHolders_args(ctx contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9144,7 +9258,7 @@ func (ec *executionContext) field_Entity_employerIdentityHolders_args(ctx contex return args, nil } -func (ec *executionContext) field_Entity_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9180,16 +9294,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9198,7 +9312,7 @@ func (ec *executionContext) field_Entity_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Entity_findings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9234,16 +9348,16 @@ func (ec *executionContext) field_Entity_findings_args(ctx context.Context, rawA } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9252,7 +9366,7 @@ func (ec *executionContext) field_Entity_findings_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Entity_identityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9288,16 +9402,16 @@ func (ec *executionContext) field_Entity_identityHolders_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { + return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IdentityHolderWhereInput, error) { - return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9306,7 +9420,7 @@ func (ec *executionContext) field_Entity_identityHolders_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Entity_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9342,16 +9456,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9360,7 +9474,7 @@ func (ec *executionContext) field_Entity_integrations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_employerIdentityHolders_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -9396,16 +9510,16 @@ func (ec *executionContext) field_Entity_internalPolicies_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9414,7 +9528,7 @@ func (ec *executionContext) field_Entity_internalPolicies_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Entity_notes_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9450,16 +9564,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9468,7 +9582,7 @@ func (ec *executionContext) field_Entity_notes_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Entity_outOfScopePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9504,16 +9618,16 @@ func (ec *executionContext) field_Entity_outOfScopePlatforms_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9522,7 +9636,7 @@ func (ec *executionContext) field_Entity_outOfScopePlatforms_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Entity_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9558,16 +9672,16 @@ func (ec *executionContext) field_Entity_platforms_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9576,7 +9690,7 @@ func (ec *executionContext) field_Entity_platforms_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Entity_remediations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9612,16 +9726,16 @@ func (ec *executionContext) field_Entity_remediations_args(ctx context.Context, } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RemediationWhereInput, error) { - return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9630,7 +9744,7 @@ func (ec *executionContext) field_Entity_remediations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_reviews_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9666,16 +9780,16 @@ func (ec *executionContext) field_Entity_reviews_args(ctx context.Context, rawAr } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9684,7 +9798,7 @@ func (ec *executionContext) field_Entity_reviews_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Entity_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9720,16 +9834,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9738,7 +9852,7 @@ func (ec *executionContext) field_Entity_scans_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Entity_sourcePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_outOfScopePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -9792,7 +9906,7 @@ func (ec *executionContext) field_Entity_sourcePlatforms_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Entity_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9828,16 +9942,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9846,7 +9960,7 @@ func (ec *executionContext) field_Entity_subcontrols_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Entity_subprocessors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9882,16 +9996,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubprocessorWhereInput, error) { - return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9900,7 +10014,7 @@ func (ec *executionContext) field_Entity_subprocessors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_systemDetails_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9936,16 +10050,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SystemDetailWhereInput, error) { - return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -9954,7 +10068,7 @@ func (ec *executionContext) field_Entity_systemDetails_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Entity_vendorRiskScores_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -9990,16 +10104,16 @@ func (ec *executionContext) field_Entity_vendorRiskScores_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VendorRiskScoreWhereInput, error) { - return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10008,7 +10122,7 @@ func (ec *executionContext) field_Entity_vendorRiskScores_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Entity_vulnerabilities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_sourcePlatforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -10044,16 +10158,16 @@ func (ec *executionContext) field_Entity_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10062,7 +10176,7 @@ func (ec *executionContext) field_Entity_vulnerabilities_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Event_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -10098,16 +10212,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10116,7 +10230,7 @@ func (ec *executionContext) field_Event_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Event_groupMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -10152,16 +10266,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { + return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupMembershipWhereInput, error) { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { + return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10170,7 +10284,7 @@ func (ec *executionContext) field_Event_groupMemberships_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Event_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -10206,16 +10320,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { + return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { + return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10224,7 +10338,7 @@ func (ec *executionContext) field_Event_groups_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Event_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -10260,16 +10374,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorRiskScoreOrder, error) { + return ec.unmarshalOVendorRiskScoreOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorRiskScoreWhereInput, error) { + return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10278,7 +10392,7 @@ func (ec *executionContext) field_Event_integrations_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Event_invites_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Entity_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", @@ -10314,16 +10428,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InviteWhereInput, error) { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10332,7 +10446,7 @@ func (ec *executionContext) field_Event_invites_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Event_orgMemberships_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10368,16 +10482,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrgMembershipWhereInput, error) { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10386,7 +10500,7 @@ func (ec *executionContext) field_Event_orgMemberships_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Event_orgSubscriptions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10422,16 +10536,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionOrder(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { + return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrgSubscriptionWhereInput, error) { - return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10440,7 +10554,7 @@ func (ec *executionContext) field_Event_orgSubscriptions_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Event_organizations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10476,16 +10590,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10494,7 +10608,7 @@ func (ec *executionContext) field_Event_organizations_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Event_personalAccessTokens_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10530,16 +10644,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10548,7 +10662,7 @@ func (ec *executionContext) field_Event_personalAccessTokens_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Event_secrets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10584,16 +10698,16 @@ func (ec *executionContext) field_Event_secrets_args(ctx context.Context, rawArg } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { + return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.HushWhereInput, error) { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10602,7 +10716,7 @@ func (ec *executionContext) field_Event_secrets_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Event_subscribers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10638,16 +10752,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubscriberWhereInput, error) { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10656,7 +10770,7 @@ func (ec *executionContext) field_Event_subscribers_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Event_users_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10692,16 +10806,16 @@ func (ec *executionContext) field_Event_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) (*generated.OrgSubscriptionOrder, error) { + return ec.unmarshalOOrgSubscriptionOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgSubscriptionWhereInput, error) { + return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10710,7 +10824,7 @@ func (ec *executionContext) field_Event_users_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Evidence_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10746,16 +10860,16 @@ func (ec *executionContext) field_Evidence_comments_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10764,7 +10878,7 @@ func (ec *executionContext) field_Evidence_comments_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Evidence_controlImplementations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10800,16 +10914,16 @@ func (ec *executionContext) field_Evidence_controlImplementations_args(ctx conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { + return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10818,7 +10932,7 @@ func (ec *executionContext) field_Evidence_controlImplementations_args(ctx conte return args, nil } -func (ec *executionContext) field_Evidence_controlObjectives_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10854,16 +10968,16 @@ func (ec *executionContext) field_Evidence_controlObjectives_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.HushOrder, error) { + return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.HushWhereInput, error) { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10872,7 +10986,7 @@ func (ec *executionContext) field_Evidence_controlObjectives_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Evidence_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10908,16 +11022,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { + return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10926,7 +11040,7 @@ func (ec *executionContext) field_Evidence_controls_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Evidence_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Event_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", @@ -10962,16 +11076,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -10980,7 +11094,7 @@ func (ec *executionContext) field_Evidence_files_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Evidence_internalPolicies_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11016,16 +11130,16 @@ func (ec *executionContext) field_Evidence_internalPolicies_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11034,7 +11148,7 @@ func (ec *executionContext) field_Evidence_internalPolicies_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Evidence_platforms_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11070,16 +11184,16 @@ func (ec *executionContext) field_Evidence_platforms_args(ctx context.Context, r } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11088,7 +11202,7 @@ func (ec *executionContext) field_Evidence_platforms_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Evidence_procedures_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11124,16 +11238,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11142,7 +11256,7 @@ func (ec *executionContext) field_Evidence_procedures_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Evidence_programs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11178,16 +11292,16 @@ func (ec *executionContext) field_Evidence_programs_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProgramWhereInput, error) { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11196,7 +11310,7 @@ func (ec *executionContext) field_Evidence_programs_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_Evidence_scans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11232,16 +11346,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11250,7 +11364,7 @@ func (ec *executionContext) field_Evidence_scans_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Evidence_subcontrols_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11286,16 +11400,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11304,7 +11418,7 @@ func (ec *executionContext) field_Evidence_subcontrols_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Evidence_tasks_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11340,16 +11454,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11358,7 +11472,7 @@ func (ec *executionContext) field_Evidence_tasks_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Evidence_workflowObjectRefs_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11394,16 +11508,16 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11412,7 +11526,7 @@ func (ec *executionContext) field_Evidence_workflowObjectRefs_args(ctx context.C return args, nil } -func (ec *executionContext) field_Evidence_workflowTimeline_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11448,33 +11562,79 @@ func (ec *executionContext) field_Evidence_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(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) + return args, nil +} + +func (ec *executionContext) field_Evidence_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["includeEmitFailures"] = arg6 + 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Export_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11510,16 +11670,16 @@ func (ec *executionContext) field_Export_events_args(ctx context.Context, rawArg } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11528,7 +11688,7 @@ func (ec *executionContext) field_Export_events_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Export_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11564,16 +11724,16 @@ func (ec *executionContext) field_Export_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TaskOrder, error) { + return ec.unmarshalOTaskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TaskWhereInput, error) { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11582,7 +11742,7 @@ func (ec *executionContext) field_Export_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_File_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11618,16 +11778,16 @@ func (ec *executionContext) field_File_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11636,7 +11796,7 @@ func (ec *executionContext) field_File_events_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_File_groups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Evidence_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", @@ -11672,25 +11832,33 @@ func (ec *executionContext) field_File_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_File_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Export_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", @@ -11726,16 +11894,16 @@ func (ec *executionContext) field_File_integrations_args(ctx context.Context, ra } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11744,7 +11912,7 @@ func (ec *executionContext) field_File_integrations_args(ctx context.Context, ra return args, nil } -func (ec *executionContext) field_File_secrets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Export_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", @@ -11780,16 +11948,16 @@ func (ec *executionContext) field_File_secrets_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.HushWhereInput, error) { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11798,7 +11966,7 @@ func (ec *executionContext) field_File_secrets_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_File_trustCenterEntities_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_File_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", @@ -11834,16 +12002,16 @@ func (ec *executionContext) field_File_trustCenterEntities_args(ctx context.Cont } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TrustCenterEntityWhereInput, error) { - return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11852,7 +12020,7 @@ func (ec *executionContext) field_File_trustCenterEntities_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Finding_actionPlans_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_File_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", @@ -11888,16 +12056,16 @@ func (ec *executionContext) field_Finding_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11906,7 +12074,7 @@ func (ec *executionContext) field_Finding_actionPlans_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Finding_assets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_File_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", @@ -11942,16 +12110,16 @@ func (ec *executionContext) field_Finding_assets_args(ctx context.Context, rawAr } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -11960,7 +12128,7 @@ func (ec *executionContext) field_Finding_assets_args(ctx context.Context, rawAr return args, nil } -func (ec *executionContext) field_Finding_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_File_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", @@ -11996,16 +12164,16 @@ func (ec *executionContext) field_Finding_blockedGroups_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.HushOrder, error) { + return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.HushWhereInput, error) { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12014,7 +12182,7 @@ func (ec *executionContext) field_Finding_blockedGroups_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Finding_checkResults_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_File_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", @@ -12050,16 +12218,16 @@ func (ec *executionContext) field_Finding_checkResults_args(ctx context.Context, } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterEntityOrder, error) { + return ec.unmarshalOTrustCenterEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CheckResultWhereInput, error) { - return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterEntityWhereInput, error) { + return ec.unmarshalOTrustCenterEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12068,7 +12236,7 @@ func (ec *executionContext) field_Finding_checkResults_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Finding_comments_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Finding_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", @@ -12104,16 +12272,16 @@ func (ec *executionContext) field_Finding_comments_args(ctx context.Context, raw } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ActionPlanOrder, error) { + return ec.unmarshalOActionPlanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ActionPlanWhereInput, error) { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12122,7 +12290,7 @@ func (ec *executionContext) field_Finding_comments_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Finding_controlMappings_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Finding_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", @@ -12158,16 +12326,16 @@ func (ec *executionContext) field_Finding_controlMappings_args(ctx context.Conte } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingControlWhereInput, error) { - return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12176,7 +12344,7 @@ func (ec *executionContext) field_Finding_controlMappings_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Finding_controls_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Finding_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", @@ -12212,16 +12380,16 @@ func (ec *executionContext) field_Finding_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12230,7 +12398,7 @@ func (ec *executionContext) field_Finding_controls_args(ctx context.Context, raw return args, nil } -func (ec *executionContext) field_Finding_directoryAccounts_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Finding_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", @@ -12266,16 +12434,16 @@ func (ec *executionContext) field_Finding_directoryAccounts_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CheckResultOrder, error) { + return ec.unmarshalOCheckResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CheckResultWhereInput, error) { + return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -12284,7 +12452,223 @@ func (ec *executionContext) field_Finding_directoryAccounts_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Finding_editors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Finding_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Finding_controlMappings_args(ctx 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.FindingControlOrder, error) { + return ec.unmarshalOFindingControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingControlWhereInput, error) { + return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Finding_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Finding_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", + func(ctx context.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.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Finding_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", @@ -13318,7 +13702,7 @@ func (ec *executionContext) field_Group_actionPlanViewers_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Group_campaignBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_audienceBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13354,16 +13738,16 @@ func (ec *executionContext) field_Group_campaignBlockedGroups_args(ctx context.C } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13372,7 +13756,7 @@ func (ec *executionContext) field_Group_campaignBlockedGroups_args(ctx context.C return args, nil } -func (ec *executionContext) field_Group_campaignEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_audienceEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13408,16 +13792,16 @@ func (ec *executionContext) field_Group_campaignEditors_args(ctx context.Context } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13426,7 +13810,7 @@ func (ec *executionContext) field_Group_campaignEditors_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Group_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13462,16 +13846,16 @@ func (ec *executionContext) field_Group_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13480,7 +13864,7 @@ func (ec *executionContext) field_Group_campaignTargets_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Group_campaignViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_audienceViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13516,16 +13900,16 @@ func (ec *executionContext) field_Group_campaignViewers_args(ctx context.Context } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13534,7 +13918,7 @@ func (ec *executionContext) field_Group_campaignViewers_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Group_campaigns_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_campaignBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13588,7 +13972,7 @@ func (ec *executionContext) field_Group_campaigns_args(ctx context.Context, rawA return args, nil } -func (ec *executionContext) field_Group_controlBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_campaignEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13624,16 +14008,16 @@ func (ec *executionContext) field_Group_controlBlockedGroups_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13642,7 +14026,7 @@ func (ec *executionContext) field_Group_controlBlockedGroups_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Group_controlEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -13678,16 +14062,16 @@ func (ec *executionContext) field_Group_controlEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13696,7 +14080,7 @@ func (ec *executionContext) field_Group_controlEditors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Group_controlImplementationBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_campaignViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13732,16 +14116,16 @@ func (ec *executionContext) field_Group_controlImplementationBlockedGroups_args( } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13750,7 +14134,7 @@ func (ec *executionContext) field_Group_controlImplementationBlockedGroups_args( return args, nil } -func (ec *executionContext) field_Group_controlImplementationEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -13786,16 +14170,16 @@ func (ec *executionContext) field_Group_controlImplementationEditors_args(ctx co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13804,7 +14188,7 @@ func (ec *executionContext) field_Group_controlImplementationEditors_args(ctx co return args, nil } -func (ec *executionContext) field_Group_controlImplementationViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13840,16 +14224,16 @@ func (ec *executionContext) field_Group_controlImplementationViewers_args(ctx co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13858,7 +14242,7 @@ func (ec *executionContext) field_Group_controlImplementationViewers_args(ctx co return args, nil } -func (ec *executionContext) field_Group_controlObjectiveBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13894,16 +14278,16 @@ func (ec *executionContext) field_Group_controlObjectiveBlockedGroups_args(ctx c } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13912,7 +14296,7 @@ func (ec *executionContext) field_Group_controlObjectiveBlockedGroups_args(ctx c return args, nil } -func (ec *executionContext) field_Group_controlObjectiveEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlImplementationBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -13948,16 +14332,16 @@ func (ec *executionContext) field_Group_controlObjectiveEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -13966,7 +14350,7 @@ func (ec *executionContext) field_Group_controlObjectiveEditors_args(ctx context return args, nil } -func (ec *executionContext) field_Group_controlObjectiveViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlImplementationEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14002,16 +14386,16 @@ func (ec *executionContext) field_Group_controlObjectiveViewers_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14020,7 +14404,7 @@ func (ec *executionContext) field_Group_controlObjectiveViewers_args(ctx context return args, nil } -func (ec *executionContext) field_Group_entityBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlImplementationViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14056,16 +14440,16 @@ func (ec *executionContext) field_Group_entityBlockedGroups_args(ctx context.Con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14074,7 +14458,7 @@ func (ec *executionContext) field_Group_entityBlockedGroups_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Group_entityEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlObjectiveBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14110,16 +14494,16 @@ func (ec *executionContext) field_Group_entityEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14128,7 +14512,7 @@ func (ec *executionContext) field_Group_entityEditors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Group_events_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlObjectiveEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14164,16 +14548,16 @@ func (ec *executionContext) field_Group_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14182,7 +14566,7 @@ func (ec *executionContext) field_Group_events_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Group_files_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_controlObjectiveViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14218,16 +14602,16 @@ func (ec *executionContext) field_Group_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14236,7 +14620,7 @@ func (ec *executionContext) field_Group_files_args(ctx context.Context, rawArgs return args, nil } -func (ec *executionContext) field_Group_findingBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_entityBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14272,16 +14656,16 @@ func (ec *executionContext) field_Group_findingBlockedGroups_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14290,7 +14674,7 @@ func (ec *executionContext) field_Group_findingBlockedGroups_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Group_findingEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_entityEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14326,16 +14710,16 @@ func (ec *executionContext) field_Group_findingEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingWhereInput, error) { - return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14344,7 +14728,7 @@ func (ec *executionContext) field_Group_findingEditors_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Group_integrations_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -14380,16 +14764,16 @@ func (ec *executionContext) field_Group_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.IntegrationWhereInput, error) { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14398,7 +14782,7 @@ func (ec *executionContext) field_Group_integrations_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Group_internalPolicyBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -14434,16 +14818,16 @@ func (ec *executionContext) field_Group_internalPolicyBlockedGroups_args(ctx con } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14452,7 +14836,7 @@ func (ec *executionContext) field_Group_internalPolicyBlockedGroups_args(ctx con return args, nil } -func (ec *executionContext) field_Group_internalPolicyEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_findingBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14488,16 +14872,16 @@ func (ec *executionContext) field_Group_internalPolicyEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InternalPolicyWhereInput, error) { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14506,7 +14890,7 @@ func (ec *executionContext) field_Group_internalPolicyEditors_args(ctx context.C return args, nil } -func (ec *executionContext) field_Group_mappedControlBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_findingEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14542,16 +14926,16 @@ func (ec *executionContext) field_Group_mappedControlBlockedGroups_args(ctx cont } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14560,7 +14944,7 @@ func (ec *executionContext) field_Group_mappedControlBlockedGroups_args(ctx cont return args, nil } -func (ec *executionContext) field_Group_mappedControlEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -14596,16 +14980,16 @@ func (ec *executionContext) field_Group_mappedControlEditors_args(ctx context.Co } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.MappedControlWhereInput, error) { - return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14614,7 +14998,7 @@ func (ec *executionContext) field_Group_mappedControlEditors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Group_members_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_internalPolicyBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14650,16 +15034,16 @@ func (ec *executionContext) field_Group_members_args(ctx context.Context, rawArg } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupMembershipWhereInput, error) { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14668,7 +15052,7 @@ func (ec *executionContext) field_Group_members_args(ctx context.Context, rawArg return args, nil } -func (ec *executionContext) field_Group_narrativeBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_internalPolicyEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14704,16 +15088,16 @@ func (ec *executionContext) field_Group_narrativeBlockedGroups_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14722,7 +15106,7 @@ func (ec *executionContext) field_Group_narrativeBlockedGroups_args(ctx context. return args, nil } -func (ec *executionContext) field_Group_narrativeEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_mappedControlBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14758,16 +15142,16 @@ func (ec *executionContext) field_Group_narrativeEditors_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { + return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { + return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14776,7 +15160,7 @@ func (ec *executionContext) field_Group_narrativeEditors_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Group_narrativeViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_mappedControlEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14812,16 +15196,16 @@ func (ec *executionContext) field_Group_narrativeViewers_args(ctx context.Contex } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { + return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { + return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14830,7 +15214,7 @@ func (ec *executionContext) field_Group_narrativeViewers_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Group_permissions_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_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", @@ -14865,10 +15249,26 @@ func (ec *executionContext) field_Group_permissions_args(ctx context.Context, ra 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Group_platformBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_narrativeBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14904,16 +15304,16 @@ func (ec *executionContext) field_Group_platformBlockedGroups_args(ctx context.C } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14922,7 +15322,7 @@ func (ec *executionContext) field_Group_platformBlockedGroups_args(ctx context.C return args, nil } -func (ec *executionContext) field_Group_platformEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_narrativeEditors_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -14958,16 +15358,16 @@ func (ec *executionContext) field_Group_platformEditors_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -14976,7 +15376,7 @@ func (ec *executionContext) field_Group_platformEditors_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Group_platformViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_narrativeViewers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -15012,16 +15412,16 @@ func (ec *executionContext) field_Group_platformViewers_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PlatformWhereInput, error) { - return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -15030,7 +15430,207 @@ func (ec *executionContext) field_Group_platformViewers_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Group_procedureBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Group_permissions_args(ctx 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 + return args, nil +} + +func (ec *executionContext) field_Group_platformBlockedGroups_args(ctx 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Group_platformEditors_args(ctx 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Group_platformViewers_args(ctx 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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Group_procedureBlockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -16272,6 +16872,60 @@ func (ec *executionContext) field_IdentityHolder_assets_args(ctx context.Context return args, nil } +func (ec *executionContext) field_IdentityHolder_audienceMembers_args(ctx 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.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + func (ec *executionContext) field_IdentityHolder_blockedGroups_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -20978,7 +21632,7 @@ func (ec *executionContext) field_Organization_assets_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_campaignCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_audienceCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21032,7 +21686,7 @@ func (ec *executionContext) field_Organization_campaignCreators_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_campaignTargetCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_audienceMemberCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21086,7 +21740,7 @@ func (ec *executionContext) field_Organization_campaignTargetCreators_args(ctx c 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_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21122,16 +21776,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21140,7 +21794,7 @@ func (ec *executionContext) field_Organization_campaignTargets_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_campaignsManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_audiences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -21176,16 +21830,16 @@ func (ec *executionContext) field_Organization_campaignsManager_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21194,7 +21848,7 @@ func (ec *executionContext) field_Organization_campaignsManager_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_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", @@ -21230,16 +21884,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21248,7 +21902,7 @@ func (ec *executionContext) field_Organization_campaigns_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_checkResultCreators_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", @@ -21302,7 +21956,7 @@ func (ec *executionContext) field_Organization_checkResultCreators_args(ctx cont 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_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", @@ -21338,16 +21992,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21356,7 +22010,7 @@ func (ec *executionContext) field_Organization_children_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_complianceManager_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", @@ -21410,7 +22064,7 @@ func (ec *executionContext) field_Organization_complianceManager_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_contactCreators_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", @@ -21446,16 +22100,16 @@ func (ec *executionContext) field_Organization_contactCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21464,7 +22118,7 @@ func (ec *executionContext) field_Organization_contactCreators_args(ctx 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_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", @@ -21500,16 +22154,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21518,7 +22172,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_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", @@ -21554,16 +22208,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21572,7 +22226,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_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", @@ -21626,7 +22280,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_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", @@ -21662,16 +22316,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21680,7 +22334,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_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", @@ -21716,16 +22370,16 @@ func (ec *executionContext) field_Organization_controlObjectiveCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21734,7 +22388,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_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", @@ -21770,16 +22424,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21788,7 +22442,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_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", @@ -21824,16 +22478,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21842,7 +22496,7 @@ func (ec *executionContext) field_Organization_controls_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_customDomainCreators_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", @@ -21878,16 +22532,16 @@ func (ec *executionContext) field_Organization_customDomainCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21896,7 +22550,7 @@ func (ec *executionContext) field_Organization_customDomainCreators_args(ctx con 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_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", @@ -21932,16 +22586,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -21950,7 +22604,7 @@ func (ec *executionContext) field_Organization_customDomains_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_customTypeEnumCreators_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", @@ -21986,16 +22640,16 @@ func (ec *executionContext) field_Organization_customTypeEnumCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22004,7 +22658,7 @@ func (ec *executionContext) field_Organization_customTypeEnumCreators_args(ctx c 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_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", @@ -22040,16 +22694,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CustomTypeEnumWhereInput, error) { - return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22058,7 +22712,7 @@ func (ec *executionContext) field_Organization_customTypeEnums_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_directoryAccountCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_customDomainCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22112,7 +22766,7 @@ func (ec *executionContext) field_Organization_directoryAccountCreators_args(ctx 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_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", @@ -22148,16 +22802,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { + return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { + return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22166,7 +22820,7 @@ func (ec *executionContext) field_Organization_directoryAccounts_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_directoryGroupCreators_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", @@ -22220,7 +22874,7 @@ func (ec *executionContext) field_Organization_directoryGroupCreators_args(ctx c 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_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", @@ -22256,16 +22910,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { + return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { + return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22274,7 +22928,7 @@ func (ec *executionContext) field_Organization_directoryGroups_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_directoryMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryAccountCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22328,7 +22982,7 @@ func (ec *executionContext) field_Organization_directoryMembershipCreators_args( 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_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", @@ -22364,16 +23018,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22382,7 +23036,7 @@ func (ec *executionContext) field_Organization_directoryMemberships_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_directorySyncRunCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryGroupCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22436,7 +23090,7 @@ func (ec *executionContext) field_Organization_directorySyncRunCreators_args(ctx 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_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", @@ -22472,16 +23126,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectorySyncRunWhereInput, error) { - return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22490,7 +23144,7 @@ func (ec *executionContext) field_Organization_directorySyncRuns_args(ctx contex return args, nil } -func (ec *executionContext) field_Organization_discussionCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directoryMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22544,61 +23198,7 @@ func (ec *executionContext) field_Organization_discussionCreators_args(ctx conte return args, nil } -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", - func(ctx context.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.DiscussionOrder, error) { - return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - 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_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", @@ -22634,16 +23234,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DNSVerificationWhereInput, error) { - return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22652,7 +23252,7 @@ func (ec *executionContext) field_Organization_dnsVerifications_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_documentDataCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_directorySyncRunCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22706,7 +23306,7 @@ func (ec *executionContext) field_Organization_documentDataCreators_args(ctx con 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_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", @@ -22742,16 +23342,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { + return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DocumentDataWhereInput, error) { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { + return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22760,7 +23360,7 @@ func (ec *executionContext) field_Organization_documents_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_emailTemplateCreators_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", @@ -22814,7 +23414,7 @@ func (ec *executionContext) field_Organization_emailTemplateCreators_args(ctx co 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_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", @@ -22850,16 +23450,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEmailTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EmailTemplateWhereInput, error) { - return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22868,7 +23468,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_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", @@ -22904,16 +23504,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DNSVerificationOrder, error) { + return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityWhereInput, error) { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DNSVerificationWhereInput, error) { + return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -22922,7 +23522,7 @@ func (ec *executionContext) field_Organization_entities_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_entityCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_documentDataCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -22976,7 +23576,7 @@ func (ec *executionContext) field_Organization_entityCreators_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_entityTypeCreators_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", @@ -23012,16 +23612,16 @@ func (ec *executionContext) field_Organization_entityTypeCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DocumentDataOrder, error) { + return ec.unmarshalODocumentDataOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DocumentDataWhereInput, error) { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23030,7 +23630,7 @@ func (ec *executionContext) field_Organization_entityTypeCreators_args(ctx conte 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_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", @@ -23066,16 +23666,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityTypeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EntityTypeWhereInput, error) { - return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23084,7 +23684,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_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", @@ -23120,16 +23720,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EmailTemplateOrder, error) { + return ec.unmarshalOEmailTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EmailTemplateWhereInput, error) { + return ec.unmarshalOEmailTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEmailTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23138,7 +23738,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_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", @@ -23174,16 +23774,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityOrder, error) { + return ec.unmarshalOEntityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityWhereInput, error) { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23192,7 +23792,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_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", @@ -23228,16 +23828,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EvidenceWhereInput, error) { - return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23246,7 +23846,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_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", @@ -23282,16 +23882,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐExportOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23300,7 +23900,7 @@ func (ec *executionContext) field_Organization_exports_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_fileCreators_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", @@ -23336,16 +23936,16 @@ func (ec *executionContext) field_Organization_fileCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EntityTypeOrder, error) { + return ec.unmarshalOEntityTypeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EntityTypeWhereInput, error) { + return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23354,7 +23954,7 @@ func (ec *executionContext) field_Organization_fileCreators_args(ctx context.Con 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_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", @@ -23390,16 +23990,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23408,7 +24008,7 @@ func (ec *executionContext) field_Organization_files_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_findingControlCreators_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", @@ -23462,7 +24062,7 @@ func (ec *executionContext) field_Organization_findingControlCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_findingControls_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", @@ -23498,16 +24098,16 @@ func (ec *executionContext) field_Organization_findingControls_args(ctx 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EvidenceOrder, error) { + return ec.unmarshalOEvidenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FindingControlWhereInput, error) { - return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EvidenceWhereInput, error) { + return ec.unmarshalOEvidenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23516,7 +24116,7 @@ func (ec *executionContext) field_Organization_findingControls_args(ctx context. 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_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", @@ -23552,16 +24152,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ExportOrder, error) { + return ec.unmarshalOExportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ExportWhereInput, error) { + return ec.unmarshalOExportWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐExportWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23570,7 +24170,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_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", @@ -23606,16 +24206,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23624,7 +24224,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_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", @@ -23660,16 +24260,16 @@ func (ec *executionContext) field_Organization_groupCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23678,7 +24278,7 @@ func (ec *executionContext) field_Organization_groupCreators_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_groupManager_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_findingControlCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -23732,7 +24332,7 @@ func (ec *executionContext) field_Organization_groupManager_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_groupMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_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", @@ -23768,16 +24368,16 @@ func (ec *executionContext) field_Organization_groupMembershipCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingControlOrder, error) { + return ec.unmarshalOFindingControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingControlWhereInput, error) { + return ec.unmarshalOFindingControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23786,7 +24386,7 @@ func (ec *executionContext) field_Organization_groupMembershipCreators_args(ctx return args, nil } -func (ec *executionContext) field_Organization_groupSettingCreators_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", @@ -23840,7 +24440,7 @@ func (ec *executionContext) field_Organization_groupSettingCreators_args(ctx con 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_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", @@ -23876,16 +24476,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FindingOrder, error) { + return ec.unmarshalOFindingOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FindingWhereInput, error) { + return ec.unmarshalOFindingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInput(ctx, v) }) if err != nil { return nil, err @@ -23894,7 +24494,7 @@ func (ec *executionContext) field_Organization_groups_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_hushCreators_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", @@ -23948,7 +24548,7 @@ func (ec *executionContext) field_Organization_hushCreators_args(ctx context.Con 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_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", @@ -24002,7 +24602,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_groupMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24038,16 +24638,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24056,7 +24656,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_groupSettingCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24092,16 +24692,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24110,7 +24710,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_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", @@ -24146,16 +24746,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24164,7 +24764,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_hushCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24218,7 +24818,7 @@ func (ec *executionContext) field_Organization_internalPolicyCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_inviteCreators_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", @@ -24272,7 +24872,7 @@ func (ec *executionContext) field_Organization_inviteCreators_args(ctx context.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_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", @@ -24308,16 +24908,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.InviteWhereInput, error) { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24326,7 +24926,7 @@ func (ec *executionContext) field_Organization_invites_args(ctx context.Context, 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_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", @@ -24362,16 +24962,16 @@ func (ec *executionContext) field_Organization_mappedControlCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IntegrationOrder, error) { + return ec.unmarshalOIntegrationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IntegrationWhereInput, error) { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24380,7 +24980,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_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", @@ -24416,16 +25016,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InternalPolicyOrder, error) { + return ec.unmarshalOInternalPolicyOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.MappedControlWhereInput, error) { - return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InternalPolicyWhereInput, error) { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24434,7 +25034,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_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", @@ -24470,16 +25070,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24488,7 +25088,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_inviteCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -24542,7 +25142,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_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", @@ -24578,16 +25178,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.InviteOrder, error) { + return ec.unmarshalOInviteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NarrativeWhereInput, error) { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.InviteWhereInput, error) { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24596,7 +25196,7 @@ func (ec *executionContext) field_Organization_narratives_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Organization_noteCreators_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", @@ -24650,7 +25250,7 @@ func (ec *executionContext) field_Organization_noteCreators_args(ctx context.Con 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_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", @@ -24686,16 +25286,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.MappedControlOrder, error) { + return ec.unmarshalOMappedControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NoteWhereInput, error) { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.MappedControlWhereInput, error) { + return ec.unmarshalOMappedControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappedControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24704,7 +25304,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_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", @@ -24740,16 +25340,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NotificationPreferenceWhereInput, error) { - return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24758,7 +25358,7 @@ func (ec *executionContext) field_Organization_notificationPreferences_args(ctx return args, nil } -func (ec *executionContext) field_Organization_notificationTemplateCreators_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", @@ -24812,7 +25412,7 @@ func (ec *executionContext) field_Organization_notificationTemplateCreators_args 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_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", @@ -24848,16 +25448,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NarrativeOrder, error) { + return ec.unmarshalONarrativeOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.NotificationTemplateWhereInput, error) { - return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NarrativeWhereInput, error) { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24866,7 +25466,7 @@ func (ec *executionContext) field_Organization_notificationTemplates_args(ctx co return args, nil } -func (ec *executionContext) field_Organization_orgMembershipCreators_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", @@ -24920,7 +25520,7 @@ func (ec *executionContext) field_Organization_orgMembershipCreators_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_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", @@ -24956,16 +25556,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NoteOrder, error) { + return ec.unmarshalONoteOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NoteWhereInput, error) { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, v) }) if err != nil { return nil, err @@ -24974,7 +25574,7 @@ func (ec *executionContext) field_Organization_personalAccessTokens_args(ctx con return args, nil } -func (ec *executionContext) field_Organization_platformCreators_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", @@ -25010,16 +25610,16 @@ func (ec *executionContext) field_Organization_platformCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationPreferenceOrder, error) { + return ec.unmarshalONotificationPreferenceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationPreferenceWhereInput, error) { + return ec.unmarshalONotificationPreferenceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationPreferenceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25028,7 +25628,7 @@ func (ec *executionContext) field_Organization_platformCreators_args(ctx context 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_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", @@ -25064,16 +25664,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25082,7 +25682,7 @@ func (ec *executionContext) field_Organization_platforms_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_policiesManager_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", @@ -25118,16 +25718,16 @@ func (ec *executionContext) field_Organization_policiesManager_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.NotificationTemplateOrder, error) { + return ec.unmarshalONotificationTemplateOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.NotificationTemplateWhereInput, error) { + return ec.unmarshalONotificationTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNotificationTemplateWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25136,7 +25736,7 @@ func (ec *executionContext) field_Organization_policiesManager_args(ctx context. 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_orgMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25190,7 +25790,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_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", @@ -25226,16 +25826,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PersonalAccessTokenOrder, error) { + return ec.unmarshalOPersonalAccessTokenOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ProcedureWhereInput, error) { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PersonalAccessTokenWhereInput, error) { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25244,7 +25844,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_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", @@ -25298,7 +25898,7 @@ func (ec *executionContext) field_Organization_programCreators_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_programMembershipCreators_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", @@ -25334,16 +25934,16 @@ func (ec *executionContext) field_Organization_programMembershipCreators_args(ct } 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.PlatformOrder, error) { + return ec.unmarshalOPlatformOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.PlatformWhereInput, error) { + return ec.unmarshalOPlatformWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25352,7 +25952,7 @@ func (ec *executionContext) field_Organization_programMembershipCreators_args(ct 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_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", @@ -25388,16 +25988,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25406,7 +26006,7 @@ func (ec *executionContext) field_Organization_programs_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Organization_registryManager_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", @@ -25460,7 +26060,7 @@ func (ec *executionContext) field_Organization_registryManager_args(ctx context. return args, nil } -func (ec *executionContext) field_Organization_remediationCreators_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", @@ -25496,16 +26096,16 @@ func (ec *executionContext) field_Organization_remediationCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProcedureOrder, error) { + return ec.unmarshalOProcedureOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProcedureWhereInput, error) { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25514,7 +26114,7 @@ func (ec *executionContext) field_Organization_remediationCreators_args(ctx cont 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_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", @@ -25550,16 +26150,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25568,7 +26168,7 @@ func (ec *executionContext) field_Organization_remediations_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_reviewCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Organization_programMembershipCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -25622,7 +26222,7 @@ func (ec *executionContext) field_Organization_reviewCreators_args(ctx context.C 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_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", @@ -25658,16 +26258,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ProgramOrder, error) { + return ec.unmarshalOProgramOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ReviewWhereInput, error) { - return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ProgramWhereInput, error) { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25676,7 +26276,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_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", @@ -25730,7 +26330,7 @@ func (ec *executionContext) field_Organization_riskCreators_args(ctx context.Con return args, nil } -func (ec *executionContext) field_Organization_riskManager_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", @@ -25784,7 +26384,7 @@ func (ec *executionContext) field_Organization_riskManager_args(ctx context.Cont 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_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", @@ -25820,16 +26420,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RemediationOrder, error) { + return ec.unmarshalORemediationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.RiskWhereInput, error) { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RemediationWhereInput, error) { + return ec.unmarshalORemediationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25838,7 +26438,7 @@ func (ec *executionContext) field_Organization_risks_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_scanCreators_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", @@ -25892,7 +26492,7 @@ func (ec *executionContext) field_Organization_scanCreators_args(ctx context.Con 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_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", @@ -25928,16 +26528,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ReviewOrder, error) { + return ec.unmarshalOReviewOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ScanWhereInput, error) { - return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ReviewWhereInput, error) { + return ec.unmarshalOReviewWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInput(ctx, v) }) if err != nil { return nil, err @@ -25946,7 +26546,7 @@ func (ec *executionContext) field_Organization_scans_args(ctx context.Context, r 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_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", @@ -25982,16 +26582,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐHushOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.HushWhereInput, error) { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26000,7 +26600,7 @@ func (ec *executionContext) field_Organization_secrets_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Organization_slaDefinitionCreators_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", @@ -26054,7 +26654,7 @@ func (ec *executionContext) field_Organization_slaDefinitionCreators_args(ctx co 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_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", @@ -26090,16 +26690,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSLADefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.RiskOrder, error) { + return ec.unmarshalORiskOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SLADefinitionWhereInput, error) { - return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.RiskWhereInput, error) { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26108,7 +26708,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_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", @@ -26162,61 +26762,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) { - 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.StandardOrder, error) { - return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.StandardWhereInput, error) { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} - -func (ec *executionContext) field_Organization_subcontrolCreators_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", @@ -26252,16 +26798,16 @@ func (ec *executionContext) field_Organization_subcontrolCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ScanOrder, error) { + return ec.unmarshalOScanOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ScanWhereInput, error) { + return ec.unmarshalOScanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26270,7 +26816,7 @@ func (ec *executionContext) field_Organization_subcontrolCreators_args(ctx conte 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_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", @@ -26306,16 +26852,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.HushOrder, error) { + return ec.unmarshalOHushOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubcontrolWhereInput, error) { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.HushWhereInput, error) { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26324,7 +26870,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_slaDefinitionCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -26378,7 +26924,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_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", @@ -26414,16 +26960,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SLADefinitionOrder, error) { + return ec.unmarshalOSLADefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubprocessorWhereInput, error) { - return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SLADefinitionWhereInput, error) { + return ec.unmarshalOSLADefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSLADefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26432,7 +26978,7 @@ func (ec *executionContext) field_Organization_subprocessors_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_subscriberCreators_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", @@ -26486,7 +27032,7 @@ func (ec *executionContext) field_Organization_subscriberCreators_args(ctx conte 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_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", @@ -26522,16 +27068,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { + return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SubscriberWhereInput, error) { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26540,7 +27086,7 @@ func (ec *executionContext) field_Organization_subscribers_args(ctx context.Cont return args, nil } -func (ec *executionContext) field_Organization_systemDetailCreators_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", @@ -26594,7 +27140,7 @@ func (ec *executionContext) field_Organization_systemDetailCreators_args(ctx con 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_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", @@ -26630,16 +27176,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubcontrolOrder, error) { + return ec.unmarshalOSubcontrolOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.SystemDetailWhereInput, error) { - return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubcontrolWhereInput, error) { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26648,7 +27194,7 @@ func (ec *executionContext) field_Organization_systemDetails_args(ctx context.Co return args, nil } -func (ec *executionContext) field_Organization_tagDefinitionCreators_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", @@ -26702,7 +27248,7 @@ func (ec *executionContext) field_Organization_tagDefinitionCreators_args(ctx 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_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", @@ -26738,16 +27284,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTagDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubprocessorOrder, error) { + return ec.unmarshalOSubprocessorOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TagDefinitionWhereInput, error) { - return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubprocessorWhereInput, error) { + return ec.unmarshalOSubprocessorWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubprocessorWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26756,7 +27302,7 @@ func (ec *executionContext) field_Organization_tagDefinitions_args(ctx context.C return args, nil } -func (ec *executionContext) field_Organization_taskCreators_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", @@ -26810,7 +27356,7 @@ func (ec *executionContext) field_Organization_taskCreators_args(ctx context.Con 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_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", @@ -26846,16 +27392,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SubscriberOrder, error) { + return ec.unmarshalOSubscriberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TaskWhereInput, error) { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SubscriberWhereInput, error) { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26864,7 +27410,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_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", @@ -26918,7 +27464,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_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", @@ -26954,16 +27500,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTemplateOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.SystemDetailOrder, error) { + return ec.unmarshalOSystemDetailOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TemplateWhereInput, error) { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.SystemDetailWhereInput, error) { + return ec.unmarshalOSystemDetailWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInput(ctx, v) }) if err != nil { return nil, err @@ -26972,7 +27518,7 @@ func (ec *executionContext) field_Organization_templates_args(ctx context.Contex return args, nil } -func (ec *executionContext) field_Organization_trustCenterComplianceCreators_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", @@ -27026,7 +27572,7 @@ func (ec *executionContext) field_Organization_trustCenterComplianceCreators_arg return args, nil } -func (ec *executionContext) field_Organization_trustCenterCreators_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", @@ -27062,16 +27608,16 @@ func (ec *executionContext) field_Organization_trustCenterCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TagDefinitionOrder, error) { + return ec.unmarshalOTagDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TagDefinitionWhereInput, error) { + return ec.unmarshalOTagDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTagDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27080,7 +27626,7 @@ func (ec *executionContext) field_Organization_trustCenterCreators_args(ctx cont 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_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", @@ -27134,7 +27680,61 @@ func (ec *executionContext) field_Organization_trustCenterDocCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_trustCenterEntityCreators_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", + func(ctx context.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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", @@ -27188,7 +27788,61 @@ func (ec *executionContext) field_Organization_trustCenterEntityCreators_args(ct return args, nil } -func (ec *executionContext) field_Organization_trustCenterFaqCreators_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", + func(ctx context.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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", @@ -27242,7 +27896,7 @@ func (ec *executionContext) field_Organization_trustCenterFaqCreators_args(ctx c return args, nil } -func (ec *executionContext) field_Organization_trustCenterManager_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", @@ -27296,7 +27950,7 @@ func (ec *executionContext) field_Organization_trustCenterManager_args(ctx conte return args, nil } -func (ec *executionContext) field_Organization_trustCenterNdaRequestCreators_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", @@ -27350,7 +28004,7 @@ func (ec *executionContext) field_Organization_trustCenterNdaRequestCreators_arg 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_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", @@ -27404,7 +28058,7 @@ func (ec *executionContext) field_Organization_trustCenterSubprocessorCreators_a return args, nil } -func (ec *executionContext) field_Organization_trustCenterWatermarkConfigCreators_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", @@ -27458,7 +28112,7 @@ func (ec *executionContext) field_Organization_trustCenterWatermarkConfigCreator 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_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", @@ -27494,16 +28148,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.TrustCenterWatermarkConfigWhereInput, error) { - return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27512,7 +28166,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_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", @@ -27548,16 +28202,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27566,7 +28220,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_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", @@ -27602,16 +28256,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐUserOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.UserWhereInput, error) { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27620,7 +28274,7 @@ func (ec *executionContext) field_Organization_users_args(ctx context.Context, r return args, nil } -func (ec *executionContext) field_Organization_vendorRiskScoreCreators_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", @@ -27674,7 +28328,7 @@ func (ec *executionContext) field_Organization_vendorRiskScoreCreators_args(ctx 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_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", @@ -27710,16 +28364,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterWatermarkConfigOrder, error) { + return ec.unmarshalOTrustCenterWatermarkConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VendorRiskScoreWhereInput, error) { - return ec.unmarshalOVendorRiskScoreWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWatermarkConfigWhereInput, error) { + return ec.unmarshalOTrustCenterWatermarkConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterWatermarkConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27728,7 +28382,7 @@ func (ec *executionContext) field_Organization_vendorRiskScores_args(ctx context return args, nil } -func (ec *executionContext) field_Organization_vendorScoringConfigCreators_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", @@ -27764,16 +28418,16 @@ func (ec *executionContext) field_Organization_vendorScoringConfigCreators_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.TrustCenterOrder, error) { + return ec.unmarshalOTrustCenterOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.TrustCenterWhereInput, error) { + return ec.unmarshalOTrustCenterWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenterWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27782,7 +28436,7 @@ func (ec *executionContext) field_Organization_vendorScoringConfigCreators_args( 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_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", @@ -27818,16 +28472,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.UserOrder, error) { + return ec.unmarshalOUserOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VendorScoringConfigWhereInput, error) { - return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.UserWhereInput, error) { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27836,7 +28490,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_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", @@ -27872,16 +28526,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.VulnerabilityWhereInput, error) { - return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27890,7 +28544,61 @@ 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_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorRiskScoreWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Organization_vendorScoringConfigCreators_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -27944,7 +28652,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_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", @@ -27980,16 +28688,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VendorScoringConfigOrder, error) { + return ec.unmarshalOVendorScoringConfigOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowAssignmentTargetWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VendorScoringConfigWhereInput, error) { + return ec.unmarshalOVendorScoringConfigWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVendorScoringConfigWhereInput(ctx, v) }) if err != nil { return nil, err @@ -27998,7 +28706,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_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", @@ -28034,16 +28742,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.VulnerabilityOrder, error) { + return ec.unmarshalOVulnerabilityOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowAssignmentWhereInput, error) { - return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.VulnerabilityWhereInput, error) { + return ec.unmarshalOVulnerabilityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28052,7 +28760,7 @@ func (ec *executionContext) field_Organization_workflowAssignments_args(ctx cont return args, nil } -func (ec *executionContext) field_Organization_workflowDefinitionCreators_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", @@ -28106,7 +28814,7 @@ func (ec *executionContext) field_Organization_workflowDefinitionCreators_args(c 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_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", @@ -28142,16 +28850,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentTargetOrder, error) { + return ec.unmarshalOWorkflowAssignmentTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowDefinitionWhereInput, error) { - return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentTargetWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28160,7 +28868,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_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", @@ -28196,16 +28904,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowAssignmentOrder, error) { + return ec.unmarshalOWorkflowAssignmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowEventWhereInput, error) { - return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowAssignmentWhereInput, error) { + return ec.unmarshalOWorkflowAssignmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowAssignmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28214,7 +28922,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_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", @@ -28250,16 +28958,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28268,7 +28976,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_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", @@ -28304,16 +29012,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowDefinitionOrder, error) { + return ec.unmarshalOWorkflowDefinitionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.WorkflowObjectRefWhereInput, error) { - return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowDefinitionWhereInput, error) { + return ec.unmarshalOWorkflowDefinitionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowDefinitionWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28322,7 +29030,7 @@ func (ec *executionContext) field_Organization_workflowObjectRefs_args(ctx conte return args, nil } -func (ec *executionContext) field_Organization_workflowsManager_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", @@ -28358,16 +29066,16 @@ func (ec *executionContext) field_Organization_workflowsManager_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowEventOrder, error) { + return ec.unmarshalOWorkflowEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowEventWhereInput, error) { + return ec.unmarshalOWorkflowEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28376,7 +29084,7 @@ func (ec *executionContext) field_Organization_workflowsManager_args(ctx context 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_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", @@ -28412,16 +29120,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowInstanceOrder, error) { + return ec.unmarshalOWorkflowInstanceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowInstanceWhereInput, error) { + return ec.unmarshalOWorkflowInstanceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28430,7 +29138,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_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", @@ -28466,16 +29174,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.WorkflowObjectRefOrder, error) { + return ec.unmarshalOWorkflowObjectRefOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.WorkflowObjectRefWhereInput, error) { + return ec.unmarshalOWorkflowObjectRefWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28484,7 +29192,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_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", @@ -28520,16 +29228,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐStandardOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.StandardWhereInput, error) { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28538,7 +29246,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_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", @@ -28574,16 +29282,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28592,7 +29300,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_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", @@ -28628,16 +29336,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssessmentWhereInput, error) { - return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28646,7 +29354,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_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, "after", @@ -28682,16 +29390,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.StandardOrder, error) { + return ec.unmarshalOStandardOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.AssetWhereInput, error) { - return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.StandardWhereInput, error) { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28700,7 +29408,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_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", @@ -28736,16 +29444,16 @@ func (ec *executionContext) field_Platform_blockedGroups_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.FileOrder, error) { + return ec.unmarshalOFileOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.FileWhereInput, error) { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28754,7 +29462,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_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, "after", @@ -28790,16 +29498,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssessmentOrder, error) { + return ec.unmarshalOAssessmentOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssessmentWhereInput, error) { + return ec.unmarshalOAssessmentWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28808,7 +29516,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_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", @@ -28844,16 +29552,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AssetOrder, error) { + return ec.unmarshalOAssetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.FileWhereInput, error) { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AssetWhereInput, error) { + return ec.unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -28862,7 +29570,169 @@ 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_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, "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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", + func(ctx context.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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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, "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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", @@ -32548,7 +33418,7 @@ 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_Query_audienceMemberSearch_args(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", @@ -32594,53 +33464,7 @@ func (ec *executionContext) field_Query_campaignSearch_args(ctx context.Context, return args, nil } -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, "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_campaignTarget_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_audienceMember_args(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", @@ -32654,7 +33478,7 @@ func (ec *executionContext) field_Query_campaignTarget_args(ctx context.Context, 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_Query_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32690,16 +33514,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32708,75 +33532,53 @@ 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) { +func (ec *executionContext) field_Query_audienceSearch_args(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_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", + 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.CampaignOrder, error) { - return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) - }) - if err != nil { - return nil, err - } - args["where"] = arg5 + args["last"] = arg4 return args, nil } -func (ec *executionContext) field_Query_checkResult_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { +func (ec *executionContext) field_Query_audience_args(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", @@ -32790,7 +33592,7 @@ func (ec *executionContext) field_Query_checkResult_args(ctx context.Context, ra 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_Query_audiences_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -32826,16 +33628,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + return ec.unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + return ec.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32844,7 +33646,7 @@ 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_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", @@ -32890,7 +33692,53 @@ func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, return args, nil } -func (ec *executionContext) field_Query_contact_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, "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_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", @@ -32904,7 +33752,7 @@ func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArg 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_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", @@ -32940,16 +33788,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐContactOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ContactWhereInput, error) { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -32958,43 +33806,75 @@ 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_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, "orderBy", - func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { - return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + 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"] = arg1 + args["id"] = arg0 return args, nil } -func (ec *executionContext) field_Query_controlDiff_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, "input", - func(ctx context.Context, v any) (model.ControlDiffInput, error) { - return ec.unmarshalNControlDiffInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlDiffInput(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["input"] = 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.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 return args, nil } -func (ec *executionContext) field_Query_controlImplementation_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", @@ -33008,7 +33888,7 @@ func (ec *executionContext) field_Query_controlImplementation_args(ctx context.C 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_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", @@ -33044,16 +33924,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CheckResultOrder, error) { + return ec.unmarshalOCheckResultOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlImplementationWhereInput, error) { - return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CheckResultWhereInput, error) { + return ec.unmarshalOCheckResultWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33062,7 +33942,7 @@ 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_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", @@ -33108,7 +33988,7 @@ func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context. return args, nil } -func (ec *executionContext) field_Query_controlObjective_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", @@ -33122,7 +34002,7 @@ func (ec *executionContext) field_Query_controlObjective_args(ctx context.Contex 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_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", @@ -33158,16 +34038,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ContactOrder, error) { + return ec.unmarshalOContactOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlObjectiveWhereInput, error) { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ContactWhereInput, error) { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33176,21 +34056,57 @@ func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Conte return args, nil } -func (ec *executionContext) field_Query_controlReportsByCategory_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, "where", + arg0, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", + func(ctx context.Context, v any) ([]*model.ControlCategoryOrder, error) { + return ec.unmarshalOControlCategoryOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg0 + args["where"] = arg1 return args, nil } -func (ec *executionContext) field_Query_controlReports_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, "input", + func(ctx context.Context, v any) (model.ControlDiffInput, error) { + return ec.unmarshalNControlDiffInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlDiffInput(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) + }) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} + +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", @@ -33226,16 +34142,16 @@ func (ec *executionContext) field_Query_controlReports_args(ctx context.Context, } args["last"] = arg3 arg4, err := graphql.ProcessArgField(ctx, rawArgs, "orderBy", - func(ctx context.Context, v any) ([]*model.ControlReportOrder, error) { - return ec.unmarshalOControlReportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlReportOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlImplementationOrder, error) { + return ec.unmarshalOControlImplementationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlImplementationWhereInput, error) { + return ec.unmarshalOControlImplementationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33244,7 +34160,7 @@ func (ec *executionContext) field_Query_controlReports_args(ctx context.Context, 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_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", @@ -33290,29 +34206,7 @@ func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, 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ᚋv2ᚋ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ᚋv2ᚋ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) { +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", @@ -33326,7 +34220,7 @@ func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArg 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_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", @@ -33362,33 +34256,39 @@ 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlObjectiveOrder, error) { + return ec.unmarshalOControlObjectiveOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.ControlWhereInput, error) { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlObjectiveWhereInput, error) { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(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) + return args, nil +} + +func (ec *executionContext) field_Query_controlReportsByCategory_args(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.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err } - args["category"] = arg6 + args["where"] = arg0 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_Query_controlReports_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -33424,8 +34324,8 @@ 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*model.ControlReportOrder, error) { + return ec.unmarshalOControlReportOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlReportOrderᚄ(ctx, v) }) if err != nil { return nil, err @@ -33442,135 +34342,151 @@ 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) { +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, "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_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", + 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.CustomDomainOrder, error) { - return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainOrderᚄ(ctx, v) + 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ᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlCategoryOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) + 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err } - args["where"] = arg5 + args["where"] = arg1 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_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, "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_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", func(ctx context.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.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(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_customTypeEnums_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", @@ -33606,16 +34522,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.ControlOrder, error) { + return ec.unmarshalOControlOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CustomTypeEnumWhereInput, error) { - return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.ControlWhereInput, error) { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33624,7 +34540,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) { +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", @@ -33638,7 +34554,7 @@ func (ec *executionContext) field_Query_directoryAccount_args(ctx context.Contex 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_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", @@ -33674,16 +34590,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomDomainOrder, error) { + return ec.unmarshalOCustomDomainOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryAccountWhereInput, error) { - return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomDomainWhereInput, error) { + return ec.unmarshalOCustomDomainWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33692,7 +34608,53 @@ 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) { +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", + 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_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", @@ -33706,7 +34668,7 @@ func (ec *executionContext) field_Query_directoryGroup_args(ctx context.Context, 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_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", @@ -33742,16 +34704,16 @@ 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CustomTypeEnumOrder, error) { + return ec.unmarshalOCustomTypeEnumOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryGroupWhereInput, error) { - return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CustomTypeEnumWhereInput, error) { + return ec.unmarshalOCustomTypeEnumWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33760,7 +34722,7 @@ func (ec *executionContext) field_Query_directoryGroups_args(ctx context.Context return args, nil } -func (ec *executionContext) field_Query_directoryMembership_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", @@ -33774,7 +34736,7 @@ func (ec *executionContext) field_Query_directoryMembership_args(ctx context.Con 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_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", @@ -33810,16 +34772,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryAccountOrder, error) { + return ec.unmarshalODirectoryAccountOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectoryMembershipWhereInput, error) { - return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryAccountWhereInput, error) { + return ec.unmarshalODirectoryAccountWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33828,7 +34790,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) { +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", @@ -33842,7 +34804,7 @@ func (ec *executionContext) field_Query_directorySyncRun_args(ctx context.Contex 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_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", @@ -33878,16 +34840,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryGroupOrder, error) { + return ec.unmarshalODirectoryGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DirectorySyncRunWhereInput, error) { - return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryGroupWhereInput, error) { + return ec.unmarshalODirectoryGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33896,7 +34858,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) { +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", @@ -33910,7 +34872,7 @@ func (ec *executionContext) field_Query_discussion_args(ctx context.Context, raw 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_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", @@ -33946,16 +34908,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectoryMembershipOrder, error) { + return ec.unmarshalODirectoryMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DiscussionWhereInput, error) { - return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectoryMembershipWhereInput, error) { + return ec.unmarshalODirectoryMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -33964,7 +34926,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) { +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", @@ -33978,7 +34940,7 @@ func (ec *executionContext) field_Query_dnsVerification_args(ctx context.Context 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_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", @@ -34014,16 +34976,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.DirectorySyncRunOrder, error) { + return ec.unmarshalODirectorySyncRunOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DNSVerificationWhereInput, error) { - return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.DirectorySyncRunWhereInput, error) { + return ec.unmarshalODirectorySyncRunWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunWhereInput(ctx, v) }) if err != nil { return nil, err @@ -34032,7 +34994,143 @@ 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_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) { + 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.DiscussionOrder, error) { + return ec.unmarshalODiscussionOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DiscussionWhereInput, error) { + return ec.unmarshalODiscussionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + 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) { + 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.DNSVerificationOrder, error) { + return ec.unmarshalODNSVerificationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.DNSVerificationWhereInput, error) { + return ec.unmarshalODNSVerificationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", @@ -45732,6 +46830,60 @@ func (ec *executionContext) field_Subprocessor_trustCenterSubprocessors_args(ctx return args, nil } +func (ec *executionContext) field_Subscriber_audienceMembers_args(ctx 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.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + func (ec *executionContext) field_Subscriber_campaignTargets_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -49142,7 +50294,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_User_audienceMembers_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} arg0, err := graphql.ProcessArgField(ctx, rawArgs, "after", @@ -49178,16 +50330,16 @@ 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + return ec.unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + return ec.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49196,7 +50348,7 @@ func (ec *executionContext) field_User_campaignTargets_args(ctx context.Context, 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_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", @@ -49232,16 +50384,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignTargetOrder, error) { + return ec.unmarshalOCampaignTargetOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.CampaignWhereInput, error) { - return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignTargetWhereInput, error) { + return ec.unmarshalOCampaignTargetWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49250,7 +50402,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_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", @@ -49286,16 +50438,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐEventOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.CampaignOrder, error) { + return ec.unmarshalOCampaignOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.EventWhereInput, error) { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.CampaignWhereInput, error) { + return ec.unmarshalOCampaignWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49304,7 +50456,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_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", @@ -49340,16 +50492,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.EventOrder, error) { + return ec.unmarshalOEventOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.EventWhereInput, error) { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49358,7 +50510,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_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", @@ -49394,16 +50546,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupMembershipOrder, error) { + return ec.unmarshalOGroupMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.GroupWhereInput, error) { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupMembershipWhereInput, error) { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49412,7 +50564,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_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", @@ -49448,16 +50600,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.GroupOrder, error) { + return ec.unmarshalOGroupOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.GroupWhereInput, error) { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49466,7 +50618,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_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", @@ -49502,16 +50654,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.IdentityHolderOrder, error) { + return ec.unmarshalOIdentityHolderOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrgMembershipWhereInput, error) { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.IdentityHolderWhereInput, error) { + return ec.unmarshalOIdentityHolderWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49520,7 +50672,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_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", @@ -49556,16 +50708,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrgMembershipOrder, error) { + return ec.unmarshalOOrgMembershipOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.OrganizationWhereInput, error) { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrgMembershipWhereInput, error) { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49574,7 +50726,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_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", @@ -49610,16 +50762,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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenOrderᚄ(ctx, v) + func(ctx context.Context, v any) ([]*generated.OrganizationOrder, error) { + return ec.unmarshalOOrganizationOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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.PersonalAccessTokenWhereInput, error) { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + func(ctx context.Context, v any) (*generated.OrganizationWhereInput, error) { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, v) }) if err != nil { return nil, err @@ -49628,7 +50780,61 @@ 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_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +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", @@ -59522,13 +60728,13 @@ func (ec *executionContext) fieldContext_AssetEdge_cursor(_ context.Context, fie return graphql.NewScalarFieldContext("AssetEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Campaign_id(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_id(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_id(ctx, field) + return ec.fieldContext_Audience_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -59541,17 +60747,17 @@ func (ec *executionContext) _Campaign_id(ctx context.Context, field graphql.Coll true, ) } -func (ec *executionContext) fieldContext_Campaign_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Audience_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_createdAt(ctx, field) + return ec.fieldContext_Audience_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -59564,17 +60770,17 @@ func (ec *executionContext) _Campaign_createdAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Campaign_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Audience_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_updatedAt(ctx, field) + return ec.fieldContext_Audience_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -59587,17 +60793,17 @@ func (ec *executionContext) _Campaign_updatedAt(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Campaign_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Audience_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_createdBy(ctx, field) + return ec.fieldContext_Audience_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -59610,17 +60816,17 @@ func (ec *executionContext) _Campaign_createdBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Campaign_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_updatedBy(ctx, field) + return ec.fieldContext_Audience_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -59633,17 +60839,17 @@ func (ec *executionContext) _Campaign_updatedBy(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_Campaign_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_updatedByImpersonator(ctx, field) + return ec.fieldContext_Audience_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -59656,17 +60862,17 @@ func (ec *executionContext) _Campaign_updatedByImpersonator(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_Campaign_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_displayID(ctx, field) + return ec.fieldContext_Audience_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -59679,17 +60885,17 @@ func (ec *executionContext) _Campaign_displayID(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_Campaign_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_tags(ctx, field) + return ec.fieldContext_Audience_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -59702,17 +60908,17 @@ func (ec *executionContext) _Campaign_tags(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Campaign_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_ownerID(ctx, field) + return ec.fieldContext_Audience_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -59725,572 +60931,713 @@ func (ec *executionContext) _Campaign_ownerID(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_Campaign_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Audience_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_name(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_internalOwner(ctx, field) + return ec.fieldContext_Audience_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, 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_Campaign_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_description(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_internalOwnerUserID(ctx, field) + return ec.fieldContext_Audience_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, 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_Campaign_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Audience_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_audienceType(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_internalOwnerGroupID(ctx, field) + return ec.fieldContext_Audience_audienceType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.AudienceType, 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.AudienceType) graphql.Marshaler { + return ec.marshalNAudienceAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Campaign_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Audience_audienceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type AudienceAudienceType does not have child fields")) } -func (ec *executionContext) _Campaign_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_filters(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_workflowEligibleMarker(ctx, field) + return ec.fieldContext_Audience_filters(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Filters, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Audience_filters(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Campaign_name(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_name(ctx, field) + return ec.fieldContext_Audience_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Campaign_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Audience", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Campaign_description(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_description(ctx, field) + return ec.fieldContext_Audience_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Audience_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + 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) _Campaign_campaignType(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_campaignType(ctx, field) + return ec.fieldContext_Audience_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignType, 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 enums.CampaignType) graphql.Marshaler { - return ec.marshalNCampaignCampaignType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Campaign_campaignType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignCampaignType does not have child fields")) +func (ec *executionContext) fieldContext_Audience_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + 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_Audience_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Campaign_status(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_status(ctx, field) + return ec.fieldContext_Audience_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, 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 enums.CampaignStatus) graphql.Marshaler { - return ec.marshalNCampaignCampaignStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Campaign_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignCampaignStatus does not have child fields")) +func (ec *executionContext) fieldContext_Audience_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + 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_Audience_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Campaign_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_isActive(ctx, field) + return ec.fieldContext_Audience_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsActive, 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 bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Campaign_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Audience_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + 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_Audience_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Campaign_scheduledAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_scheduledAt(ctx, field) + return ec.fieldContext_Audience_audienceMembers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScheduledAt, nil + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) }, 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.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Campaign_scheduledAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Audience_audienceMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Audience_audienceMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Campaign_launchedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Audience_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Audience) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_launchedAt(ctx, field) + return ec.fieldContext_Audience_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LaunchedAt, 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 *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.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Campaign_launchedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Audience_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Audience", + 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_Audience_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Campaign_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_completedAt(ctx, field) + return ec.fieldContext_AudienceConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, 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.AudienceEdge) graphql.Marshaler { + return ec.marshalOAudienceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Campaign_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_dueDate(ctx, field) + return ec.fieldContext_AudienceConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueDate, 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_Campaign_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceConnection", + 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) _Campaign_isRecurring(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_isRecurring(ctx, field) + return ec.fieldContext_AudienceConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsRecurring, nil + return obj.TotalCount, 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_Campaign_isRecurring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_AudienceConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Campaign_recurrenceFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recurrenceFrequency(ctx, field) + return ec.fieldContext_AudienceEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceFrequency, nil + return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOCampaignFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + return ec.marshalOAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_recurrenceFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignFrequency does not have child fields")) +func (ec *executionContext) fieldContext_AudienceEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Audience(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Campaign_recurrenceInterval(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recurrenceInterval(ctx, field) + return ec.fieldContext_AudienceEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceInterval, nil + return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Campaign_recurrenceInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Campaign_recurrenceTimezone(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_id(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recurrenceTimezone(ctx, field) + return ec.fieldContext_AudienceMember_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceTimezone, 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_Campaign_recurrenceTimezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_recurrenceCron(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recurrenceCron(ctx, field) + return ec.fieldContext_AudienceMember_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceCron, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_recurrenceCron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_lastRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_lastRunAt(ctx, field) + return ec.fieldContext_AudienceMember_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastRunAt, 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_Campaign_lastRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_nextRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_nextRunAt(ctx, field) + return ec.fieldContext_AudienceMember_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NextRunAt, nil + return obj.CreatedBy, 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_Campaign_nextRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_recurrenceEndAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recurrenceEndAt(ctx, field) + return ec.fieldContext_AudienceMember_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceEndAt, nil + return obj.UpdatedBy, 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_Campaign_recurrenceEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_recipientCount(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_recipientCount(ctx, field) + return ec.fieldContext_AudienceMember_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecipientCount, nil + return obj.UpdatedByImpersonator, 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_Campaign_recipientCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_resendCount(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_resendCount(ctx, field) + return ec.fieldContext_AudienceMember_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResendCount, nil + return obj.DisplayID, 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_Campaign_resendCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_lastResentAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_tags(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_lastResentAt(ctx, field) + return ec.fieldContext_AudienceMember_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastResentAt, nil + return obj.Tags, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_lastResentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_entityID(ctx, field) + return ec.fieldContext_AudienceMember_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -60300,43 +61647,43 @@ func (ec *executionContext) _Campaign_entityID(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Campaign_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_audienceID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_templateID(ctx, field) + return ec.fieldContext_AudienceMember_audienceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateID, nil + return obj.AudienceID, 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_Campaign_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_audienceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_assessmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_contactID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_assessmentID(ctx, field) + return ec.fieldContext_AudienceMember_contactID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentID, nil + return obj.ContactID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -60346,43 +61693,43 @@ func (ec *executionContext) _Campaign_assessmentID(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_Campaign_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_userID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_metadata(ctx, field) + return ec.fieldContext_AudienceMember_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.UserID, 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_Campaign_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_emailTemplateID(ctx, field) + return ec.fieldContext_AudienceMember_groupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailTemplateID, nil + return obj.GroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -60392,20 +61739,20 @@ func (ec *executionContext) _Campaign_emailTemplateID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Campaign_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_integrationID(ctx, field) + return ec.fieldContext_AudienceMember_identityHolderID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.IdentityHolderID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -60415,1470 +61762,1214 @@ func (ec *executionContext) _Campaign_integrationID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_Campaign_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_emailBrandingID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_subscriberID(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_emailBrandingID(ctx, field) + return ec.fieldContext_AudienceMember_subscriberID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailBrandingID, nil + return obj.SubscriberID, 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_Campaign_emailBrandingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_email(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_trustCenterID(ctx, field) + return ec.fieldContext_AudienceMember_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, 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_Campaign_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMember_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_owner(ctx, field) + return ec.fieldContext_AudienceMember_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.FullName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Campaign_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_AudienceMember_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_blockedGroups(ctx, field) + return ec.fieldContext_AudienceMember_metadata(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.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(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_Campaign_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_AudienceMember_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMember", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Campaign_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_owner(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_editors(ctx, field) + return ec.fieldContext_AudienceMember_owner(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.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Campaign_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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_Campaign_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Campaign_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_audience(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_viewers(ctx, field) + return ec.fieldContext_AudienceMember_audience(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.Audience(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + return ec.marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Campaign_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_audience(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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_Audience(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Campaign_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Campaign_internalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_contact(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_internalOwnerUser(ctx, field) + return ec.fieldContext_AudienceMember_contact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUser(ctx) + return obj.Contact(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_internalOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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_Contact(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_internalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_user(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_internalOwnerGroup(ctx, field) + return ec.fieldContext_AudienceMember_user(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroup(ctx) + return obj.User(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_internalOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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) _Campaign_assessment(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_group(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_assessment(ctx, field) + return ec.fieldContext_AudienceMember_group(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Assessment(ctx) + return obj.Group(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Assessment) graphql.Marshaler { - return ec.marshalOAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_assessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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_Group(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_template(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_template(ctx, field) + return ec.fieldContext_AudienceMember_identityHolder(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Template(ctx) + return obj.IdentityHolder(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { - return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { + return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", 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_IdentityHolder(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMember_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMember) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_integration(ctx, field) + return ec.fieldContext_AudienceMember_subscriber(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Integration(ctx) + return obj.Subscriber(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { - return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { + return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMember_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMember", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Integration(ctx, field) + return ec.childFields_Subscriber(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_emailTemplate(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMemberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_emailTemplate(ctx, field) + return ec.fieldContext_AudienceMemberConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailTemplate(ctx) + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EmailTemplate) graphql.Marshaler { - return ec.marshalOEmailTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEmailTemplate(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.AudienceMemberEdge) graphql.Marshaler { + return ec.marshalOAudienceMemberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Campaign_emailTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMemberConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplate(ctx, field) + return ec.childFields_AudienceMemberEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMemberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_entity(ctx, field) + return ec.fieldContext_AudienceMemberConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Entity(ctx) + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntity(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_Campaign_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMemberConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Entity(ctx, field) + return ec.childFields_PageInfo(ctx, field) }, } return fc, nil } -func (ec *executionContext) _Campaign_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMemberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_trustCenter(ctx, field) + return ec.fieldContext_AudienceMemberConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenter(ctx) + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.TrustCenter) graphql.Marshaler { - return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenter(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_Campaign_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_AudienceMemberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Campaign_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMemberEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_campaignTargets(ctx, field) + return ec.fieldContext_AudienceMemberEdge_node(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.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + return ec.marshalOAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Campaign_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Campaign", + Object: "AudienceMemberEdge", 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_AudienceMember(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Campaign_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Campaign_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.AudienceMemberEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_assessmentResponses(ctx, field) + return ec.fieldContext_AudienceMemberEdge_cursor(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.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { - return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(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_Campaign_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_AudienceMemberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Campaign_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_id(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_contacts(ctx, field) + return ec.fieldContext_Campaign_id(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.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ContactConnection) graphql.Marshaler { - return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactConnection(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_Campaign_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - Field: field, - IsMethod: true, - IsResolver: false, - 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_Campaign_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_users(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_users(ctx, field) + return ec.fieldContext_Campaign_createdAt(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.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.UserConnection) graphql.Marshaler { - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserConnection(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_Campaign_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_groups(ctx, field) + return ec.fieldContext_Campaign_updatedAt(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.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(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_Campaign_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Campaign_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_identityHolders(ctx, field) + return ec.fieldContext_Campaign_createdBy(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.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(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_Campaign_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_controls(ctx, field) + return ec.fieldContext_Campaign_updatedBy(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.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(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_Campaign_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_workflowObjectRefs(ctx, field) + return ec.fieldContext_Campaign_updatedByImpersonator(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.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Campaign_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_hasPendingWorkflow(ctx, field) + return ec.fieldContext_Campaign_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Campaign().HasPendingWorkflow(ctx, obj) + return obj.DisplayID, 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_Campaign_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_hasWorkflowHistory(ctx, field) + return ec.fieldContext_Campaign_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Campaign().HasWorkflowHistory(ctx, obj) + return obj.Tags, 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_Campaign_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Campaign", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Campaign_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Campaign_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Campaign().ActiveWorkflowInstances(ctx, obj) + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(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_Campaign_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Campaign_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_internalOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Campaign_workflowTimeline(ctx, field) + return ec.fieldContext_Campaign_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Campaign().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.InternalOwner, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Campaign_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Campaign", - 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_Campaign_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignConnection_edges(ctx, field) + return ec.fieldContext_Campaign_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.InternalOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.CampaignEdge) graphql.Marshaler { - return ec.marshalOCampaignEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignEdge(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_CampaignConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignConnection_pageInfo(ctx, field) + return ec.fieldContext_Campaign_internalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.InternalOwnerGroupID, 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_CampaignConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignConnection", - 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) fieldContext_Campaign_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Campaign_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Campaign_workflowEligibleMarker(ctx, field) }, - } - return fc, nil + func(ctx context.Context) (any, error) { + return obj.WorkflowEligibleMarker, 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_Campaign_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_name(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignConnection_totalCount(ctx, field) + return ec.fieldContext_Campaign_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Name, 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_CampaignConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_description(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignEdge_node(ctx, field) + return ec.fieldContext_Campaign_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Description, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaign(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_CampaignEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignEdge", - Field: field, - IsMethod: false, - 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) fieldContext_Campaign_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_campaignType(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignEdge_cursor(ctx, field) + return ec.fieldContext_Campaign_campaignType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.CampaignType, 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.CampaignType) graphql.Marshaler { + return ec.marshalNCampaignCampaignType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_campaignType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignCampaignType does not have child fields")) } -func (ec *executionContext) _CampaignTarget_id(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_status(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_id(ctx, field) + return ec.fieldContext_Campaign_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Status, 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.CampaignStatus) graphql.Marshaler { + return ec.marshalNCampaignCampaignStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTarget_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignCampaignStatus does not have child fields")) } -func (ec *executionContext) _CampaignTarget_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_isActive(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_createdAt(ctx, field) + return ec.fieldContext_Campaign_isActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.IsActive, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignTarget_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignTarget_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_scheduledAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_updatedAt(ctx, field) + return ec.fieldContext_Campaign_scheduledAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ScheduledAt, 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_CampaignTarget_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_scheduledAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_launchedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_createdBy(ctx, field) + return ec.fieldContext_Campaign_launchedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.LaunchedAt, 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_CampaignTarget_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_launchedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_updatedBy(ctx, field) + return ec.fieldContext_Campaign_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.CompletedAt, 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_CampaignTarget_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_updatedByImpersonator(ctx, field) + return ec.fieldContext_Campaign_dueDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.DueDate, 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_CampaignTarget_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_isRecurring(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_ownerID(ctx, field) + return ec.fieldContext_Campaign_isRecurring(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.IsRecurring, 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_CampaignTarget_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_isRecurring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignTarget_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recurrenceFrequency(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_workflowEligibleMarker(ctx, field) + return ec.fieldContext_Campaign_recurrenceFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.RecurrenceFrequency, 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.Frequency) graphql.Marshaler { + return ec.marshalOCampaignFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTarget_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recurrenceFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type CampaignFrequency does not have child fields")) } -func (ec *executionContext) _CampaignTarget_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recurrenceInterval(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_campaignID(ctx, field) + return ec.fieldContext_Campaign_recurrenceInterval(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignID, nil + return obj.RecurrenceInterval, 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_CampaignTarget_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recurrenceInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CampaignTarget_contactID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recurrenceTimezone(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_contactID(ctx, field) + return ec.fieldContext_Campaign_recurrenceTimezone(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContactID, nil + return obj.RecurrenceTimezone, 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_CampaignTarget_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recurrenceTimezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTarget_userID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recurrenceCron(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_userID(ctx, field) + return ec.fieldContext_Campaign_recurrenceCron(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.RecurrenceCron, 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.Cron) graphql.Marshaler { + return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTarget_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recurrenceCron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTarget_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_lastRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_groupID(ctx, field) + return ec.fieldContext_Campaign_lastRunAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GroupID, nil + return obj.LastRunAt, 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_CampaignTarget_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_lastRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_subscriberID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_nextRunAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_subscriberID(ctx, field) + return ec.fieldContext_Campaign_nextRunAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubscriberID, nil + return obj.NextRunAt, 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_CampaignTarget_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_nextRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_email(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recurrenceEndAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_email(ctx, field) + return ec.fieldContext_Campaign_recurrenceEndAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.RecurrenceEndAt, 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_CampaignTarget_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recurrenceEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_recipientCount(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_fullName(ctx, field) + return ec.fieldContext_Campaign_recipientCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullName, nil + return obj.RecipientCount, 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_CampaignTarget_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_recipientCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CampaignTarget_status(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_resendCount(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_status(ctx, field) + return ec.fieldContext_Campaign_resendCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ResendCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentResponseStatus) graphql.Marshaler { - return ec.marshalNCampaignTargetAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(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_CampaignTarget_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type CampaignTargetAssessmentResponseStatus does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_resendCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CampaignTarget_sentAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_lastResentAt(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_sentAt(ctx, field) + return ec.fieldContext_Campaign_lastResentAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SentAt, nil + return obj.LastResentAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -61888,276 +62979,254 @@ func (ec *executionContext) _CampaignTarget_sentAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_CampaignTarget_sentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_lastResentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTarget_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_entityID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_completedAt(ctx, field) + return ec.fieldContext_Campaign_entityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.EntityID, 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.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTarget_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_metadata(ctx, field) + return ec.fieldContext_Campaign_templateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.TemplateID, 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_CampaignTarget_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_assessmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_owner(ctx, field) + return ec.fieldContext_Campaign_assessmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.AssessmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_CampaignTarget_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTarget", - 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_Campaign_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_campaign(ctx, field) + return ec.fieldContext_Campaign_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Campaign(ctx) + return obj.Metadata, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { - return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaign(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_CampaignTarget_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTarget", - 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) fieldContext_Campaign_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _CampaignTarget_contact(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_contact(ctx, field) + return ec.fieldContext_Campaign_emailTemplateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Contact(ctx) + return obj.EmailTemplateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { - return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContact(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_CampaignTarget_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTarget", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Contact(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Campaign_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_user(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_user(ctx, field) + return ec.fieldContext_Campaign_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.User(ctx) + return obj.IntegrationID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUser(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_CampaignTarget_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTarget", - 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_Campaign_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_group(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_emailBrandingID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_group(ctx, field) + return ec.fieldContext_Campaign_emailBrandingID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Group(ctx) + return obj.EmailBrandingID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_CampaignTarget_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTarget", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) +func (ec *executionContext) fieldContext_Campaign_emailBrandingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Campaign_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Campaign_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_Campaign_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTarget_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_subscriber(ctx, field) + return ec.fieldContext_Campaign_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subscriber(ctx) + return obj.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { - return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTarget_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTarget", + Object: "Campaign", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Subscriber(ctx, field) + return ec.childFields_Organization(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignTarget_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_workflowObjectRefs(ctx, field) + return ec.fieldContext_Campaign_blockedGroups(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.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.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTarget_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTarget", + Object: "Campaign", 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_GroupConnection(ctx, field) }, } defer func() { @@ -62167,119 +63236,85 @@ func (ec *executionContext) fieldContext_CampaignTarget_workflowObjectRefs(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CampaignTarget_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CampaignTarget_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_hasPendingWorkflow(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.CampaignTarget().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_CampaignTarget_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, true, true, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _CampaignTarget_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_hasWorkflowHistory(ctx, field) - }, - func(ctx context.Context) (any, error) { - return ec.Resolvers.CampaignTarget().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_CampaignTarget_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTarget", field, true, true, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _CampaignTarget_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Campaign_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.CampaignTarget().ActiveWorkflowInstances(ctx, obj) + 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.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTarget_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTarget", + Object: "Campaign", 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_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_Campaign_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _CampaignTarget_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTarget_workflowTimeline(ctx, field) + return ec.fieldContext_Campaign_viewers(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.CampaignTarget().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.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.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTarget_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTarget", + Object: "Campaign", 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_GroupConnection(ctx, field) }, } defer func() { @@ -62289,488 +63324,456 @@ func (ec *executionContext) fieldContext_CampaignTarget_workflowTimeline(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CampaignTarget_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CampaignTargetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_internalOwnerUser(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetConnection_edges(ctx, field) + return ec.fieldContext_Campaign_internalOwnerUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.InternalOwnerUser(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.CampaignTargetEdge) graphql.Marshaler { - return ec.marshalOCampaignTargetEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTargetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_internalOwnerUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTargetConnection", + Object: "Campaign", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetEdge(ctx, field) + return ec.childFields_User(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignTargetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_internalOwnerGroup(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetConnection_pageInfo(ctx, field) + return ec.fieldContext_Campaign_internalOwnerGroup(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.InternalOwnerGroup(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.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_internalOwnerGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTargetConnection", + Object: "Campaign", 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_Group(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignTargetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_assessment(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetConnection_totalCount(ctx, field) + return ec.fieldContext_Campaign_assessment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Assessment(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.Assessment) graphql.Marshaler { + return ec.marshalOAssessment2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessment(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_assessment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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) _CampaignTargetEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_template(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetEdge_node(ctx, field) + return ec.fieldContext_Campaign_template(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Template(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { - return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Template) graphql.Marshaler { + return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTargetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignTargetEdge", + Object: "Campaign", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTarget(ctx, field) + return ec.childFields_Template(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignTargetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetEdge_cursor(ctx, field) + return ec.fieldContext_Campaign_integration(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Integration(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.Integration) graphql.Marshaler { + return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Integration(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _CheckResult_id(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_emailTemplate(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_id(ctx, field) + return ec.fieldContext_Campaign_emailTemplate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.EmailTemplate(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.EmailTemplate) graphql.Marshaler { + return ec.marshalOEmailTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEmailTemplate(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CheckResult_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_emailTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EmailTemplate(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _CheckResult_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_createdAt(ctx, field) + return ec.fieldContext_Campaign_entity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.Entity(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.Entity) graphql.Marshaler { + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CheckResult_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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) _CheckResult_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_trustCenter(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_updatedAt(ctx, field) + return ec.fieldContext_Campaign_trustCenter(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.TrustCenter(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.TrustCenter) graphql.Marshaler { + return ec.marshalOTrustCenter2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTrustCenter(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CheckResult_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_trustCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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) _CheckResult_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_createdBy(ctx, field) + return ec.fieldContext_Campaign_campaignTargets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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 string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CheckResult_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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_Campaign_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _CheckResult_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_assessmentResponses(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_updatedBy(ctx, field) + return ec.fieldContext_Campaign_assessmentResponses(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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 string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssessmentResponseConnection) graphql.Marshaler { + return ec.marshalNAssessmentResponseConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssessmentResponseConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CheckResult_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_assessmentResponses(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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_Campaign_assessmentResponses_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _CheckResult_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_updatedByImpersonator(ctx, field) + return ec.fieldContext_Campaign_contacts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + 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)) }, 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.ContactConnection) graphql.Marshaler { + return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CheckResult_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Campaign_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + Field: field, + IsMethod: true, + IsResolver: false, + 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_Campaign_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _CheckResult_tags(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_users(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_tags(ctx, field) + return ec.fieldContext_Campaign_users(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_CheckResult_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _CheckResult_status(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.CheckStatus) graphql.Marshaler { - return ec.marshalNCheckResultCheckStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCheckStatus(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_CheckResult_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type CheckResultCheckStatus does not have child fields")) -} - -func (ec *executionContext) _CheckResult_source(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_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.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_CheckResult_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _CheckResult_lastObservedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_lastObservedAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LastObservedAt, 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_CheckResult_lastObservedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type DateTime does not have child fields")) -} - -func (ec *executionContext) _CheckResult_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_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_CheckResult_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _CheckResult_details(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_details(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Details, nil + 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)) }, 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.UserConnection) graphql.Marshaler { + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_CheckResult_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _CheckResult_parentExternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_parentExternalID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ParentExternalID, 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_CheckResult_parentExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _CheckResult_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_integrationID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Campaign_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_UserConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_CheckResult_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResult", 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_Campaign_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _CheckResult_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_blockedGroups(ctx, field) + return ec.fieldContext_Campaign_groups(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.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.GroupConnection) graphql.Marshaler { @@ -62780,9 +63783,9 @@ func (ec *executionContext) _CheckResult_blockedGroups(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_CheckResult_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", Field: field, IsMethod: true, IsResolver: false, @@ -62797,41 +63800,41 @@ func (ec *executionContext) fieldContext_CheckResult_blockedGroups(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CheckResult_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CheckResult_editors(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_editors(ctx, field) + return ec.fieldContext_Campaign_identityHolders(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CheckResult_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", 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_IdentityHolderConnection(ctx, field) }, } defer func() { @@ -62841,41 +63844,41 @@ func (ec *executionContext) fieldContext_CheckResult_editors(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CheckResult_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CheckResult_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_audiences(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_viewers(ctx, field) + return ec.fieldContext_Campaign_audiences(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.Audiences(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CheckResult_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_audiences(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", 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_AudienceConnection(ctx, field) }, } defer func() { @@ -62885,20 +63888,20 @@ func (ec *executionContext) fieldContext_CheckResult_viewers(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CheckResult_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_audiences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CheckResult_controls(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_controls(ctx, field) + return ec.fieldContext_Campaign_controls(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -62912,9 +63915,9 @@ func (ec *executionContext) _CheckResult_controls(ctx context.Context, field gra true, ) } -func (ec *executionContext) fieldContext_CheckResult_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", Field: field, IsMethod: true, IsResolver: false, @@ -62929,41 +63932,41 @@ func (ec *executionContext) fieldContext_CheckResult_controls(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CheckResult_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CheckResult_findings(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_findings(ctx, field) + return ec.fieldContext_Campaign_workflowObjectRefs(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.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.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CheckResult_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", 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_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -62973,84 +63976,174 @@ func (ec *executionContext) fieldContext_CheckResult_findings(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CheckResult_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Campaign_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CheckResult_integration(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResult_integration(ctx, field) + return ec.fieldContext_Campaign_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Integration(ctx) + return ec.Resolvers.Campaign().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { - return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(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_CheckResult_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Campaign_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Campaign_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Campaign_hasWorkflowHistory(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Campaign().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_Campaign_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Campaign", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Campaign_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Campaign_activeWorkflowInstances(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Campaign().ActiveWorkflowInstances(ctx, obj) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Campaign_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResult", + Object: "Campaign", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Integration(ctx, field) + return ec.childFields_WorkflowInstance(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CheckResultConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Campaign_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Campaign) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResultConnection_edges(ctx, field) + return ec.fieldContext_Campaign_workflowTimeline(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Campaign().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.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Campaign_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Campaign", + 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_Campaign_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _CampaignConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.CheckResultEdge) graphql.Marshaler { - return ec.marshalOCheckResultEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.CampaignEdge) graphql.Marshaler { + return ec.marshalOCampaignEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CheckResultConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResultConnection", + Object: "CampaignConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CheckResultEdge(ctx, field) + return ec.childFields_CampaignEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CheckResultConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResultConnection_pageInfo(ctx, field) + return ec.fieldContext_CampaignConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -63063,9 +64156,9 @@ func (ec *executionContext) _CheckResultConnection_pageInfo(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_CheckResultConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResultConnection", + Object: "CampaignConnection", Field: field, IsMethod: false, IsResolver: false, @@ -63076,13 +64169,13 @@ func (ec *executionContext) fieldContext_CheckResultConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _CheckResultConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResultConnection_totalCount(ctx, field) + return ec.fieldContext_CampaignConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -63095,49 +64188,49 @@ func (ec *executionContext) _CheckResultConnection_totalCount(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_CheckResultConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResultConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CampaignConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CheckResultEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResultEdge_node(ctx, field) + return ec.fieldContext_CampaignEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResult) graphql.Marshaler { - return ec.marshalOCheckResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResult(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CheckResultEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CheckResultEdge", + Object: "CampaignEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CheckResult(ctx, field) + return ec.childFields_Campaign(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CheckResultEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CheckResultEdge_cursor(ctx, field) + return ec.fieldContext_CampaignEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -63150,17 +64243,17 @@ func (ec *executionContext) _CheckResultEdge_cursor(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_CheckResultEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CheckResultEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CampaignEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_id(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_id(ctx, field) + return ec.fieldContext_CampaignTarget_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -63173,17 +64266,17 @@ func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.Colle true, ) } -func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_createdAt(ctx, field) + return ec.fieldContext_CampaignTarget_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -63196,17 +64289,17 @@ func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_updatedAt(ctx, field) + return ec.fieldContext_CampaignTarget_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -63219,17 +64312,17 @@ func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_createdBy(ctx, field) + return ec.fieldContext_CampaignTarget_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -63242,17 +64335,17 @@ func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_updatedBy(ctx, field) + return ec.fieldContext_CampaignTarget_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -63265,17 +64358,17 @@ func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Contact_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_updatedByImpersonator(ctx, field) + return ec.fieldContext_CampaignTarget_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -63288,43 +64381,66 @@ func (ec *executionContext) _Contact_updatedByImpersonator(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_Contact_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_tags(ctx, field) + return ec.fieldContext_CampaignTarget_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_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_ownerID(ctx, field) + return ec.fieldContext_CampaignTarget_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.WorkflowEligibleMarker, 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_CampaignTarget_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _CampaignTarget_campaignID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_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 { @@ -63334,135 +64450,135 @@ func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_contactID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_fullName(ctx, field) + return ec.fieldContext_CampaignTarget_contactID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullName, nil + return obj.ContactID, 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_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_userID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_title(ctx, field) + return ec.fieldContext_CampaignTarget_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + return obj.UserID, 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_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_company(ctx, field) + return ec.fieldContext_CampaignTarget_groupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Company, nil + return obj.GroupID, 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_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_subscriberID(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_email(ctx, field) + return ec.fieldContext_CampaignTarget_subscriberID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.SubscriberID, 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_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_email(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_phoneNumber(ctx, field) + return ec.fieldContext_CampaignTarget_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhoneNumber, 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_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_address(ctx, field) + return ec.fieldContext_CampaignTarget_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Address, nil + return obj.FullName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -63472,109 +64588,109 @@ func (ec *executionContext) _Contact_address(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_status(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_status(ctx, field) + return ec.fieldContext_CampaignTarget_status(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentResponseStatus) graphql.Marshaler { + return ec.marshalNCampaignTargetAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ContactUserStatus does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type CampaignTargetAssessmentResponseStatus does not have child fields")) } -func (ec *executionContext) _Contact_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_sentAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_externalID(ctx, field) + return ec.fieldContext_CampaignTarget_sentAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + return obj.SentAt, 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_Contact_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_sentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Contact_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_integrationID(ctx, field) + return ec.fieldContext_CampaignTarget_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.CompletedAt, 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_Contact_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Contact_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_observedAt(ctx, field) + return ec.fieldContext_CampaignTarget_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObservedAt, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Contact_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTarget_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_owner(ctx, field) + return ec.fieldContext_CampaignTarget_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -63587,9 +64703,9 @@ func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.Co false, ) } -func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", Field: field, IsMethod: true, IsResolver: false, @@ -63600,122 +64716,194 @@ func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field return fc, nil } -func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_campaign(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_entities(ctx, field) + return ec.fieldContext_CampaignTarget_campaign(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.Campaign(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Campaign) graphql.Marshaler { + return ec.marshalOCampaign2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaign(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Contact_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_campaign(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", 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_Campaign(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Contact_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + return fc, nil +} + +func (ec *executionContext) _CampaignTarget_contact(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_contact(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Contact(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_CampaignTarget_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTarget", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Contact(ctx, field) + }, } return fc, nil } -func (ec *executionContext) _Contact_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_user(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_campaigns(ctx, field) + return ec.fieldContext_CampaignTarget_user(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.User(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { - return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.User) graphql.Marshaler { + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUser(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_CampaignTarget_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTarget", + 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) _CampaignTarget_group(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_Contact_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", 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_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_Contact_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + return fc, nil +} + +func (ec *executionContext) _CampaignTarget_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_subscriber(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Subscriber(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Subscriber) graphql.Marshaler { + return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_CampaignTarget_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTarget", + Field: field, + IsMethod: true, + 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) _Contact_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_campaignTargets(ctx, field) + return ec.fieldContext_CampaignTarget_workflowObjectRefs(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.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.CampaignTargetConnection) graphql.Marshaler { - return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Contact_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", 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_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -63725,85 +64913,119 @@ func (ec *executionContext) fieldContext_Contact_campaignTargets(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Contact_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_CampaignTarget_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_files(ctx, field) + return ec.fieldContext_CampaignTarget_hasPendingWorkflow(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.CampaignTarget().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileConnection(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_Contact_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _CampaignTarget_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_hasWorkflowHistory(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.CampaignTarget().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_CampaignTarget_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTarget", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _CampaignTarget_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_CampaignTarget_activeWorkflowInstances(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.CampaignTarget().ActiveWorkflowInstances(ctx, obj) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_CampaignTarget_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", 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_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_Contact_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Contact_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTarget_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTarget) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Contact_subscribers(ctx, field) + return ec.fieldContext_CampaignTarget_workflowTimeline(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 ec.Resolvers.CampaignTarget().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.SubscriberConnection) graphql.Marshaler { - return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Contact_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTarget_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Contact", + Object: "CampaignTarget", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_SubscriberConnection(ctx, field) + return ec.childFields_WorkflowEventConnection(ctx, field) }, } defer func() { @@ -63813,52 +65035,52 @@ func (ec *executionContext) fieldContext_Contact_subscribers(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Contact_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_CampaignTarget_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactConnection_edges(ctx, field) + return ec.fieldContext_CampaignTargetConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ContactEdge) graphql.Marshaler { - return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.CampaignTargetEdge) graphql.Marshaler { + return ec.marshalOCampaignTargetEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTargetConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactConnection", + Object: "CampaignTargetConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ContactEdge(ctx, field) + return ec.childFields_CampaignTargetEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactConnection_pageInfo(ctx, field) + return ec.fieldContext_CampaignTargetConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -63871,9 +65093,9 @@ func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTargetConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactConnection", + Object: "CampaignTargetConnection", Field: field, IsMethod: false, IsResolver: false, @@ -63884,13 +65106,13 @@ func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Co return fc, nil } -func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactConnection_totalCount(ctx, field) + return ec.fieldContext_CampaignTargetConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -63903,49 +65125,49 @@ func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactEdge_node(ctx, field) + return ec.fieldContext_CampaignTargetEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { - return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTarget) graphql.Marshaler { + return ec.marshalOCampaignTarget2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTarget(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignTargetEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactEdge", + Object: "CampaignTargetEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Contact(ctx, field) + return ec.childFields_CampaignTarget(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CampaignTargetEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactEdge_cursor(ctx, field) + return ec.fieldContext_CampaignTargetEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -63958,17 +65180,17 @@ func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_id(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_id(ctx, field) + return ec.fieldContext_CheckResult_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -63981,17 +65203,17 @@ func (ec *executionContext) _Control_id(ctx context.Context, field graphql.Colle true, ) } -func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_createdAt(ctx, field) + return ec.fieldContext_CheckResult_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -64004,17 +65226,17 @@ func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_updatedAt(ctx, field) + return ec.fieldContext_CheckResult_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -64027,17 +65249,17 @@ func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_createdBy(ctx, field) + return ec.fieldContext_CheckResult_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -64050,17 +65272,17 @@ func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Control_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_updatedBy(ctx, field) + return ec.fieldContext_CheckResult_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -64073,17 +65295,17 @@ func (ec *executionContext) _Control_updatedBy(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_Control_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_updatedByImpersonator(ctx, field) + return ec.fieldContext_CheckResult_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -64096,217 +65318,158 @@ func (ec *executionContext) _Control_updatedByImpersonator(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_Control_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_tags(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_displayID(ctx, field) + return ec.fieldContext_CheckResult_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_Control_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_status(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_tags(ctx, field) + return ec.fieldContext_CheckResult_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Status, 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.CheckStatus) graphql.Marshaler { + return ec.marshalNCheckResultCheckStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCheckStatus(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_Control_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Control_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_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_Control_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type CheckResultCheckStatus does not have child fields")) } -func (ec *executionContext) _Control_title(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_source(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_title(ctx, field) + return ec.fieldContext_CheckResult_source(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.Source, 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_Control_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_lastObservedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_description(ctx, field) + return ec.fieldContext_CheckResult_lastObservedAt(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.LastObservedAt, 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 *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_lastObservedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Control_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_externalURI(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_descriptionJSON(ctx, field) + return ec.fieldContext_CheckResult_externalURI(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DescriptionJSON, nil + return obj.ExternalURI, 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_Control_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_details(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_aliases(ctx, field) + return ec.fieldContext_CheckResult_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Aliases, nil + return obj.Details, 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_Control_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_referenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_parentExternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_referenceID(ctx, field) + return ec.fieldContext_CheckResult_parentExternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceID, nil + return obj.ParentExternalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -64316,808 +65479,805 @@ func (ec *executionContext) _Control_referenceID(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_Control_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_parentExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_auditorReferenceID(ctx, field) + return ec.fieldContext_CheckResult_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReferenceID, nil + return obj.IntegrationID, 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_Control_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResult", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_responsiblePartyID(ctx, field) + return ec.fieldContext_CheckResult_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponsiblePartyID, 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.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + 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_CheckResult_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_status(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_editors(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_status(ctx, field) + return ec.fieldContext_CheckResult_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, 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 enums.ControlStatus) graphql.Marshaler { - return ec.marshalOControlControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlStatus does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + 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_CheckResult_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_implementationStatus(ctx, field) + return ec.fieldContext_CheckResult_viewers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationStatus, 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 enums.ControlImplementationStatus) graphql.Marshaler { - return ec.marshalOControlControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlImplementationStatus does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + 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_CheckResult_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_controls(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_implementationDescription(ctx, field) + return ec.fieldContext_CheckResult_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationDescription, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + 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_CheckResult_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_findings(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_publicRepresentation(ctx, field) + return ec.fieldContext_CheckResult_findings(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PublicRepresentation, 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 string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + 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_CheckResult_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_source(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResult_integration(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResult) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_source(ctx, field) + return ec.fieldContext_CheckResult_integration(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, 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 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 + return obj.Integration(ctx) }, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { - return ec.marshalOControlControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { + return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlSource does not have child fields")) +func (ec *executionContext) fieldContext_CheckResult_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResult", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Integration(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Control_sourceName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResultConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_sourceName(ctx, field) + return ec.fieldContext_CheckResultConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceName, nil + return obj.Edges, 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.CheckResultEdge) graphql.Marshaler { + return ec.marshalOCheckResultEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResultConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResultConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CheckResultEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Control_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResultConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_referenceFramework(ctx, field) + return ec.fieldContext_CheckResultConnection_pageInfo(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.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResultConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResultConnection", + 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) _Control_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResultConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_referenceFrameworkRevision(ctx, field) + return ec.fieldContext_CheckResultConnection_totalCount(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.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResultConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResultConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Control_category(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResultEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_category(ctx, field) + return ec.fieldContext_CheckResultEdge_node(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.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.CheckResult) graphql.Marshaler { + return ec.marshalOCheckResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResult(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResultEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CheckResultEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CheckResult(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Control_categoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _CheckResultEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CheckResultEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_categoryID(ctx, field) + return ec.fieldContext_CheckResultEdge_cursor(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.Cursor, 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.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CheckResultEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CheckResultEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Control_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_subcategory(ctx, field) + return ec.fieldContext_Contact_id(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.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_Control_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_mappedCategories(ctx, field) + return ec.fieldContext_Contact_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappedCategories, 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_Control_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_assessmentObjectives(ctx, field) + return ec.fieldContext_Contact_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentObjectives, nil + return obj.UpdatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) +func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_assessmentMethods(ctx, field) + return ec.fieldContext_Contact_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentMethods, nil + return obj.CreatedBy, 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 string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) +func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlQuestions(ctx, field) + return ec.fieldContext_Contact_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlQuestions, 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_Control_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_implementationGuidance(ctx, field) + return ec.fieldContext_Contact_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationGuidance, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) +func (ec *executionContext) fieldContext_Contact_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_exampleEvidence(ctx, field) + return ec.fieldContext_Contact_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExampleEvidence, nil + return obj.Tags, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) +func (ec *executionContext) fieldContext_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_references(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_references(ctx, field) + return ec.fieldContext_Contact_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_Control_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Reference does not have child fields")) +func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_testingProcedures(ctx, field) + return ec.fieldContext_Contact_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TestingProcedures, nil + return obj.FullName, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) +func (ec *executionContext) fieldContext_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_evidenceRequests(ctx, field) + return ec.fieldContext_Contact_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EvidenceRequests, nil + return obj.Title, 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 string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) +func (ec *executionContext) fieldContext_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlOwnerID(ctx, field) + return ec.fieldContext_Contact_company(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlOwnerID, nil + return obj.Company, 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_Control_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_delegateID(ctx, field) + return ec.fieldContext_Contact_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_ownerID(ctx, field) + return ec.fieldContext_Contact_phoneNumber(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.PhoneNumber, 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_Control_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_systemOwned(ctx, field) + return ec.fieldContext_Contact_address(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Address, 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_Control_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_internalNotes(ctx, field) + return ec.fieldContext_Contact_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.UserStatus) graphql.Marshaler { + return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type ContactUserStatus does not have child fields")) } -func (ec *executionContext) _Control_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_systemInternalID(ctx, field) + return ec.fieldContext_Contact_externalID(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.ExternalID, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlKindName(ctx, field) + return ec.fieldContext_Contact_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlKindName, nil + return obj.IntegrationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -65127,286 +66287,225 @@ func (ec *executionContext) _Control_controlKindName(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_Control_controlKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlKindID(ctx, field) + return ec.fieldContext_Contact_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlKindID, nil + return obj.ObservedAt, 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_Control_controlKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Contact", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _Control_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_environmentName(ctx, field) + return ec.fieldContext_Contact_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_Control_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _Control_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_environmentID(ctx, field) + return ec.fieldContext_Contact_entities(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, 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.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Contact_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_scopeName(ctx, field) + return ec.fieldContext_Contact_campaigns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, 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 string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Contact_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Contact_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_campaignTargets(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_scopeID(ctx, field) + return ec.fieldContext_Contact_campaignTargets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, 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 string) graphql.Marshaler { - return ec.marshalOID2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignTargetConnection) graphql.Marshaler { + return ec.marshalNCampaignTargetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignTargetConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Contact_campaignTargets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Contact", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Contact_campaignTargets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _Control_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_workflowEligibleMarker(ctx, field) + return ec.fieldContext_Contact_audienceMembers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) }, 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.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Control_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _Control_refCode(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_refCode(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 - }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Control_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _Control_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_standardID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.StandardID, 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_Control_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) -} - -func (ec *executionContext) _Control_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_trustCenterVisibility(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TrustCenterVisibility, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterControlVisibility) graphql.Marshaler { - return ec.marshalOControlTrustCenterControlVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterControlVisibility(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_Control_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlTrustCenterControlVisibility does not have child fields")) -} - -func (ec *executionContext) _Control_isTrustCenterControl(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_isTrustCenterControl(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IsTrustCenterControl, 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_Control_isTrustCenterControl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _Control_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_evidence(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)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Control_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_audienceMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "Contact", 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_AudienceMemberConnection(ctx, field) }, } defer func() { @@ -65416,41 +66515,41 @@ func (ec *executionContext) fieldContext_Control_evidence(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Contact_audienceMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Control_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlObjectives(ctx, field) + return ec.fieldContext_Contact_files(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.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.ControlObjectiveConnection) graphql.Marshaler { - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FileConnection) graphql.Marshaler { + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Control_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "Contact", 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_FileConnection(ctx, field) }, } defer func() { @@ -65460,41 +66559,41 @@ func (ec *executionContext) fieldContext_Control_controlObjectives(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Contact_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Control_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Contact_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_tasks(ctx, field) + return ec.fieldContext_Contact_subscribers(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.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.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubscriberConnection) graphql.Marshaler { + return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_Control_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "Contact", 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_SubscriberConnection(ctx, field) }, } defer func() { @@ -65504,1792 +66603,1249 @@ func (ec *executionContext) fieldContext_Control_tasks(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Contact_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Control_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_narratives(ctx, field) + return ec.fieldContext_ContactConnection_edges(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.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ContactEdge) graphql.Marshaler { + return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "ContactConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeConnection(ctx, field) + return ec.childFields_ContactEdge(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Control_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_risks(ctx, field) + return ec.fieldContext_ContactConnection_pageInfo(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.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(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_Control_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "ContactConnection", 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_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_Control_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Control_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_actionPlans(ctx, field) + return ec.fieldContext_ContactConnection_totalCount(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.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(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_Control_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _Control_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_procedures(ctx, field) + return ec.fieldContext_ContactEdge_node(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.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Contact) graphql.Marshaler { + return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContact(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Control", + Object: "ContactEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureConnection(ctx, field) + return ec.childFields_Contact(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Control_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_internalPolicies(ctx, field) + return ec.fieldContext_ContactEdge_cursor(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.Cursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(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_Control_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Control_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_comments(ctx, field) + return ec.fieldContext_Control_id(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.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteConnection(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_Control_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_discussions(ctx, field) + return ec.fieldContext_Control_createdAt(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.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { - return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_controlOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlOwner(ctx, field) + return ec.fieldContext_Control_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlOwner(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ᚋv2ᚋ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_Control_controlOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Control_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_delegate(ctx, field) + return ec.fieldContext_Control_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Delegate(ctx) + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Group) graphql.Marshaler { - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Group(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_responsibleParty(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_responsibleParty(ctx, field) + return ec.fieldContext_Control_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponsibleParty(ctx) + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Entity) graphql.Marshaler { - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_responsibleParty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Entity(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_reviews(ctx, field) + return ec.fieldContext_Control_updatedByImpersonator(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.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { - return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewConnection(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_Control_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_remediations(ctx, field) + return ec.fieldContext_Control_displayID(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.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { - return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationConnection(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_Control_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_scans(ctx, field) + return ec.fieldContext_Control_tags(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.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ScanConnection) graphql.Marshaler { - return ec.marshalNScanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_externalUUID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_owner(ctx, field) + return ec.fieldContext_Control_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.ExternalUUID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Organization(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_title(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_blockedGroups(ctx, field) + return ec.fieldContext_Control_title(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.Title, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(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, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_editors(ctx, field) + return ec.fieldContext_Control_description(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.Description, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(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, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlKind(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlKind(ctx, field) + return ec.fieldContext_Control_descriptionJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlKind(ctx) + return obj.DescriptionJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(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_Control_controlKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _Control_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_aliases(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_environment(ctx, field) + return ec.fieldContext_Control_aliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.Aliases, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_referenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_scope(ctx, field) + return ec.fieldContext_Control_referenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.ReferenceID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_standard(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_standard(ctx, field) + return ec.fieldContext_Control_auditorReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Standard(ctx) + return obj.AuditorReferenceID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Standard) graphql.Marshaler { - return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandard(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_Control_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Standard(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_checkResults(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_checkResults(ctx, field) + return ec.fieldContext_Control_responsiblePartyID(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.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.ResponsiblePartyID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResultConnection) graphql.Marshaler { - return ec.marshalNCheckResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultConnection(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_Control_checkResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CheckResultConnection(ctx, field) - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Control_checkResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Control_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_status(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_programs(ctx, field) + return ec.fieldContext_Control_status(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.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlStatus) graphql.Marshaler { + return ec.marshalOControlControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlStatus does not have child fields")) } -func (ec *executionContext) _Control_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_platforms(ctx, field) + return ec.fieldContext_Control_implementationStatus(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.ImplementationStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlImplementationStatus) graphql.Marshaler { + return ec.marshalOControlControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlImplementationStatus does not have child fields")) } -func (ec *executionContext) _Control_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_vulnerabilities(ctx, field) + return ec.fieldContext_Control_implementationDescription(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.ImplementationDescription, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.VulnerabilityConnection) graphql.Marshaler { - return ec.marshalNVulnerabilityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_assets(ctx, field) + return ec.fieldContext_Control_publicRepresentation(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.PublicRepresentation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { - return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_source(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_entities(ctx, field) + return ec.fieldContext_Control_source(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.Source, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityConnection(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.marshalOControlControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlControlSource does not have child fields")) } -func (ec *executionContext) _Control_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_sourceName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_identityHolders(ctx, field) + return ec.fieldContext_Control_sourceName(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.SourceName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { - return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(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_Control_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_campaigns(ctx, field) + return ec.fieldContext_Control_referenceFramework(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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Control_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignConnection(ctx, field) + return obj.ReferenceFramework, 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_Control_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _Control_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_findings(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)) + 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 *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlImplementations(ctx, field) + return ec.fieldContext_Control_referenceFrameworkRevision(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)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { - return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Control_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationConnection(ctx, field) + return obj.ReferenceFrameworkRevision, 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_Control_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _Control_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_subcontrols(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)) + 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 *generated.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(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_Control_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_category(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_workflowObjectRefs(ctx, field) + return ec.fieldContext_Control_category(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)) - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_Control_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowObjectRefConnection(ctx, field) + return obj.Category, 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_Control_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _Control_controlMappings(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_controlMappings(ctx, field) - }, - func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return obj.ControlMappings(ctx, 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)) + 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 *generated.FindingControlConnection) graphql.Marshaler { - return ec.marshalNFindingControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlConnection(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_Control_controlMappings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_controlMappings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_categoryID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_hasPendingWorkflow(ctx, field) + return ec.fieldContext_Control_categoryID(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().HasPendingWorkflow(ctx, obj) + return obj.CategoryID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(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, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Control_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_hasWorkflowHistory(ctx, field) + return ec.fieldContext_Control_subcategory(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().HasWorkflowHistory(ctx, obj) + return obj.Subcategory, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(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, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Control", field, true, true, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Control_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_activeWorkflowInstances(ctx, field) + return ec.fieldContext_Control_mappedCategories(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().ActiveWorkflowInstances(ctx, obj) + return obj.MappedCategories, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { - return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_Control_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_WorkflowInstance(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Control_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_workflowTimeline(ctx, field) + return ec.fieldContext_Control_assessmentObjectives(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Control().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.AssessmentObjectives, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowEventConnection) graphql.Marshaler { - return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(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, - true, + false, ) } -func (ec *executionContext) fieldContext_Control_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - 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_Control_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_Control_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) } -func (ec *executionContext) _Control_relatedControls(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Control_relatedControls(ctx, field) + return ec.fieldContext_Control_assessmentMethods(ctx, field) }, func(ctx context.Context) (any, error) { - return ec.Resolvers.Control().RelatedControls(ctx, obj) + return obj.AssessmentMethods, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlInfo) graphql.Marshaler { - return ec.marshalOControlInfo2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlInfoᚄ(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_Control_relatedControls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) } -func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlConnection_edges(ctx, field) + return ec.fieldContext_Control_controlQuestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ControlQuestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ControlEdge) graphql.Marshaler { - return ec.marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlEdge(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_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) + return ec.fieldContext_Control_implementationGuidance(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ImplementationGuidance, 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 []models.ImplementationGuidance) graphql.Marshaler { + return ec.marshalOImplementationGuidance2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐImplementationGuidanceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) } -func (ec *executionContext) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlConnection_totalCount(ctx, field) + return ec.fieldContext_Control_exampleEvidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ExampleEvidence, 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 []models.ExampleEvidence) graphql.Marshaler { + return ec.marshalOExampleEvidence2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐExampleEvidenceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_Control_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) } -func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_references(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlEdge_node(ctx, field) + return ec.fieldContext_Control_references(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.References, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { - return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControl(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, false, ) } -func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Control(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_Control_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Reference does not have child fields")) } -func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlEdge_cursor(ctx, field) + return ec.fieldContext_Control_testingProcedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.TestingProcedures, 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 []models.TestingProcedures) graphql.Marshaler { + return ec.marshalOTestingProcedures2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTestingProceduresᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_Control_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) } -func (ec *executionContext) _ControlImplementation_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_id(ctx, field) + return ec.fieldContext_Control_evidenceRequests(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.EvidenceRequests, 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 []models.EvidenceRequests) graphql.Marshaler { + return ec.marshalOEvidenceRequests2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐEvidenceRequestsᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Control_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) } -func (ec *executionContext) _ControlImplementation_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_createdAt(ctx, field) + return ec.fieldContext_Control_controlOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ControlOwnerID, 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.marshalOID2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Control_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_delegateID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_updatedAt(ctx, field) + return ec.fieldContext_Control_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.DelegateID, 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_ControlImplementation_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Control_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_createdBy(ctx, field) + return ec.fieldContext_Control_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_ControlImplementation_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_updatedBy(ctx, field) + return ec.fieldContext_Control_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_ControlImplementation_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlImplementation_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_updatedByImpersonator(ctx, field) + return ec.fieldContext_Control_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + 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 }, - nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { return ec.marshalOString2ᚖstring(ctx, selections, v) }, @@ -67297,217 +67853,199 @@ func (ec *executionContext) _ControlImplementation_updatedByImpersonator(ctx con false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_tags(ctx, field) + return ec.fieldContext_Control_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.SystemInternalID, 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_ControlImplementation_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlKindName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_ownerID(ctx, field) + return ec.fieldContext_Control_controlKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.ControlKindName, 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_ControlImplementation_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Control_controlKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlKindID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_systemOwned(ctx, field) + return ec.fieldContext_Control_controlKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.ControlKindID, 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_ControlImplementation_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Control_controlKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_internalNotes(ctx, field) + return ec.fieldContext_Control_environmentName(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.EnvironmentName, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_systemInternalID(ctx, field) + return ec.fieldContext_Control_environmentID(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.EnvironmentID, 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.marshalOID2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_status(ctx, field) + return ec.fieldContext_Control_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOControlImplementationDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(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_ControlImplementation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ControlImplementationDocumentStatus does not have child fields")) +func (ec *executionContext) fieldContext_Control_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_implementationDate(ctx, field) + return ec.fieldContext_Control_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationDate, 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_ControlImplementation_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Control_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_verified(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_verified(ctx, field) + return ec.fieldContext_Control_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Verified, nil + return obj.WorkflowEligibleMarker, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { @@ -67517,139 +68055,148 @@ func (ec *executionContext) _ControlImplementation_verified(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_Control_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlImplementation_verificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_refCode(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_verificationDate(ctx, field) + return ec.fieldContext_Control_refCode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VerificationDate, nil + return obj.RefCode, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_verificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_Control_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementation_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_standardID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_details(ctx, field) + return ec.fieldContext_Control_standardID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.StandardID, 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_ControlImplementation_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementation_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_detailsJSON(ctx, field) + return ec.fieldContext_Control_trustCenterVisibility(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil + return obj.TrustCenterVisibility, 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.TrustCenterControlVisibility) graphql.Marshaler { + return ec.marshalOControlTrustCenterControlVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterControlVisibility(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementation_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_Control_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type ControlTrustCenterControlVisibility does not have child fields")) } -func (ec *executionContext) _ControlImplementation_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_isTrustCenterControl(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_owner(ctx, field) + return ec.fieldContext_Control_isTrustCenterControl(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.IsTrustCenterControl, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(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_ControlImplementation_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlImplementation", - 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_Control_isTrustCenterControl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlImplementation_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_blockedGroups(ctx, field) + return ec.fieldContext_Control_evidence(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_EvidenceConnection(ctx, field) }, } defer func() { @@ -67659,41 +68206,41 @@ func (ec *executionContext) fieldContext_ControlImplementation_blockedGroups(ctx } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementation_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_editors(ctx, field) + return ec.fieldContext_Control_controlObjectives(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjectiveConnection) graphql.Marshaler { + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_ControlObjectiveConnection(ctx, field) }, } defer func() { @@ -67703,41 +68250,41 @@ func (ec *executionContext) fieldContext_ControlImplementation_editors(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementation_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_viewers(ctx, field) + return ec.fieldContext_Control_tasks(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_TaskConnection(ctx, field) }, } defer func() { @@ -67747,41 +68294,41 @@ func (ec *executionContext) fieldContext_ControlImplementation_viewers(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementation_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_controls(ctx, field) + return ec.fieldContext_Control_narratives(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.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.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_NarrativeConnection(ctx, field) }, } defer func() { @@ -67791,41 +68338,41 @@ func (ec *executionContext) fieldContext_ControlImplementation_controls(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementation_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_subcontrols(ctx, field) + return ec.fieldContext_Control_risks(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.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.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RiskConnection) graphql.Marshaler { + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_RiskConnection(ctx, field) }, } defer func() { @@ -67835,41 +68382,41 @@ func (ec *executionContext) fieldContext_ControlImplementation_subcontrols(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementation_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementation_tasks(ctx, field) + return ec.fieldContext_Control_actionPlans(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.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.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementation_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementation", + Object: "Control", 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_ActionPlanConnection(ctx, field) }, } defer func() { @@ -67879,734 +68426,737 @@ func (ec *executionContext) fieldContext_ControlImplementation_tasks(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlImplementation_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlImplementationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationConnection_edges(ctx, field) + return ec.fieldContext_Control_procedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, 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 []*generated.ControlImplementationEdge) graphql.Marshaler { - return ec.marshalOControlImplementationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlImplementationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementationConnection", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationEdge(ctx, field) + 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_Control_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ControlImplementationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationConnection_pageInfo(ctx, field) + return ec.fieldContext_Control_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementationConnection", + Object: "Control", 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_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_Control_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ControlImplementationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_comments(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationConnection_totalCount(ctx, field) + return ec.fieldContext_Control_comments(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, 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 int) graphql.Marshaler { - return ec.marshalNInt2int(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NoteConnection) graphql.Marshaler { + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationConnection", field, false, false, errors.New("field of type Int does not have child fields")) -} - -func (ec *executionContext) _ControlImplementationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationEdge) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationEdge_node(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Node, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementation) graphql.Marshaler { - return ec.marshalOControlImplementation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementation(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlImplementationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlImplementationEdge", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementation(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_Control_comments_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ControlImplementationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_discussions(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationEdge_cursor(ctx, field) + return ec.fieldContext_Control_discussions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DiscussionConnection) graphql.Marshaler { + return ec.marshalNDiscussionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDiscussionConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_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) +func (ec *executionContext) fieldContext_Control_discussions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DiscussionConnection(ctx, field) }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", 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_Control_discussions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlOwner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Control_controlOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ControlOwner(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.Group) graphql.Marshaler { + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_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) +func (ec *executionContext) fieldContext_Control_controlOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Time does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _ControlObjective_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_delegate(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Control_delegate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_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_Control_delegate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Group(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _ControlObjective_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_responsibleParty(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_updatedByImpersonator(ctx, field) + return ec.fieldContext_Control_responsibleParty(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.ResponsibleParty(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.Entity) graphql.Marshaler { + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntity(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_responsibleParty(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Entity(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlObjective_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_reviews(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_displayID(ctx, field) + return ec.fieldContext_Control_reviews(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, 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 string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ReviewConnection) graphql.Marshaler { + return ec.marshalNReviewConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_reviews(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Control_reviews_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_remediations(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_tags(ctx, field) + return ec.fieldContext_Control_remediations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, 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 []string) graphql.Marshaler { - return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.RemediationConnection) graphql.Marshaler { + return ec.marshalNRemediationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlObjective_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_remediations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Control_remediations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_revision(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_scans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_revision(ctx, field) + return ec.fieldContext_Control_scans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐScanConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlObjective_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_scans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Control_scans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Control_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Owner(ctx) }, 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.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_Control_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Organization(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlObjective_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_systemOwned(ctx, field) + return ec.fieldContext_Control_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_internalNotes(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 - }, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_ControlObjective_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_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_Control_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", 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_Control_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Control_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, 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.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_desiredOutcome(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_desiredOutcome(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DesiredOutcome, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Control_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_desiredOutcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", 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_Control_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _ControlObjective_desiredOutcomeJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlKind(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_desiredOutcomeJSON(ctx, field) + return ec.fieldContext_Control_controlKind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DesiredOutcomeJSON, nil + return obj.ControlKind(ctx) }, 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.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_desiredOutcomeJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Any does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ObjectiveStatus) graphql.Marshaler { - return ec.marshalOControlObjectiveObjectiveStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐObjectiveStatus(ctx, selections, v) +func (ec *executionContext) fieldContext_Control_controlKind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ControlObjectiveObjectiveStatus does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _ControlObjective_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_environment(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_source(ctx, field) + return ec.fieldContext_Control_environment(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.Environment(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { - return ec.marshalOControlObjectiveControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ControlObjectiveControlSource does not have child fields")) -} - -func (ec *executionContext) _ControlObjective_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.ControlObjectiveType, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalOString2string(ctx, selections, v) +func (ec *executionContext) fieldContext_Control_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlObjective_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _ControlObjective_category(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_scope(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_category(ctx, field) + return ec.fieldContext_Control_scope(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Category, nil + return obj.Scope(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.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnum(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlObjective_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_standard(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_subcategory(ctx, field) + return ec.fieldContext_Control_standard(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subcategory, nil + return obj.Standard(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.Standard) graphql.Marshaler { + return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐStandard(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjective_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_Control_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Standard(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlObjective_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_checkResults(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_owner(ctx, field) + return ec.fieldContext_Control_checkResults(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.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.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CheckResultConnection) graphql.Marshaler { + return ec.marshalNCheckResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCheckResultConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlObjective_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_checkResults(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_CheckResultConnection(ctx, field) }, } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Control_checkResults_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + return ec.fieldContext_Control_programs(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_ProgramConnection(ctx, field) }, } defer func() { @@ -68616,41 +69166,41 @@ func (ec *executionContext) fieldContext_ControlObjective_blockedGroups(ctx cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_editors(ctx, field) + return ec.fieldContext_Control_platforms(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.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.GroupConnection) graphql.Marshaler { - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_PlatformConnection(ctx, field) }, } defer func() { @@ -68660,41 +69210,41 @@ func (ec *executionContext) fieldContext_ControlObjective_editors(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_vulnerabilities(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_viewers(ctx, field) + return ec.fieldContext_Control_vulnerabilities(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.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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_vulnerabilities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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() { @@ -68704,41 +69254,41 @@ func (ec *executionContext) fieldContext_ControlObjective_viewers(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_vulnerabilities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_assets(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Control_assets(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.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.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.AssetConnection) graphql.Marshaler { + return ec.marshalNAssetConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_assets(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_AssetConnection(ctx, field) }, } defer func() { @@ -68748,41 +69298,41 @@ func (ec *executionContext) fieldContext_ControlObjective_programs(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_assets_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_evidence(ctx, field) + return ec.fieldContext_Control_entities(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.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.EvidenceConnection) graphql.Marshaler { - return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EntityConnection) graphql.Marshaler { + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_EntityConnection(ctx, field) }, } defer func() { @@ -68792,41 +69342,41 @@ func (ec *executionContext) fieldContext_ControlObjective_evidence(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_identityHolders(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_controls(ctx, field) + return ec.fieldContext_Control_identityHolders(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.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.ControlConnection) graphql.Marshaler { - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolderConnection) graphql.Marshaler { + return ec.marshalNIdentityHolderConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_identityHolders(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_IdentityHolderConnection(ctx, field) }, } defer func() { @@ -68836,41 +69386,41 @@ func (ec *executionContext) fieldContext_ControlObjective_controls(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_identityHolders_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_campaigns(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + return ec.fieldContext_Control_campaigns(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.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.SubcontrolConnection) graphql.Marshaler { - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CampaignConnection) graphql.Marshaler { + return ec.marshalNCampaignConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_campaigns(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_CampaignConnection(ctx, field) }, } defer func() { @@ -68880,41 +69430,41 @@ func (ec *executionContext) fieldContext_ControlObjective_subcontrols(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_campaigns_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_findings(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + return ec.fieldContext_Control_findings(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.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.InternalPolicyConnection) graphql.Marshaler { - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_FindingConnection(ctx, field) }, } defer func() { @@ -68924,41 +69474,41 @@ func (ec *executionContext) fieldContext_ControlObjective_internalPolicies(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlImplementations(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_procedures(ctx, field) + return ec.fieldContext_Control_controlImplementations(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.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.ProcedureConnection) graphql.Marshaler { - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementationConnection) graphql.Marshaler { + return ec.marshalNControlImplementationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlImplementations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_ControlImplementationConnection(ctx, field) }, } defer func() { @@ -68968,41 +69518,41 @@ func (ec *executionContext) fieldContext_ControlObjective_procedures(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_controlImplementations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_risks(ctx, field) + return ec.fieldContext_Control_subcontrols(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.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.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_SubcontrolConnection(ctx, field) }, } defer func() { @@ -69012,41 +69562,41 @@ func (ec *executionContext) fieldContext_ControlObjective_risks(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_narratives(ctx, field) + return ec.fieldContext_Control_workflowObjectRefs(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.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.NarrativeConnection) graphql.Marshaler { - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -69056,41 +69606,41 @@ func (ec *executionContext) fieldContext_ControlObjective_narratives(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjective_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_controlMappings(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjective_tasks(ctx, field) + return ec.fieldContext_Control_controlMappings(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.ControlMappings(ctx, 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 *generated.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingControlConnection) graphql.Marshaler { + return ec.marshalNFindingControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingControlConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlObjective_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlMappings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjective", + Object: "Control", 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_FindingControlConnection(ctx, field) }, } defer func() { @@ -69100,52 +69650,206 @@ func (ec *executionContext) fieldContext_ControlObjective_tasks(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_ControlObjective_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Control_controlMappings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _ControlObjectiveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _Control_hasPendingWorkflow(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) + return ec.fieldContext_Control_hasPendingWorkflow(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return ec.Resolvers.Control().HasPendingWorkflow(ctx, obj) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.ControlObjectiveEdge) graphql.Marshaler { - return ec.marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(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_Control_hasPendingWorkflow(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Control_hasWorkflowHistory(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Control_hasWorkflowHistory(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Control().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_Control_hasWorkflowHistory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Control", field, true, true, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _Control_activeWorkflowInstances(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Control_activeWorkflowInstances(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Control().ActiveWorkflowInstances(ctx, obj) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.WorkflowInstance) graphql.Marshaler { + return ec.marshalNWorkflowInstance2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowInstanceᚄ(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Control_activeWorkflowInstances(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_WorkflowInstance(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _Control_workflowTimeline(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Control_workflowTimeline(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Control().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.WorkflowEventConnection) graphql.Marshaler { + return ec.marshalNWorkflowEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowEventConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Control_workflowTimeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_Control_workflowTimeline_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Control_relatedControls(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Control_relatedControls(ctx, field) + }, + func(ctx context.Context) (any, error) { + return ec.Resolvers.Control().RelatedControls(ctx, obj) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*model.ControlInfo) graphql.Marshaler { + return ec.marshalOControlInfo2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋgraphapiᚋmodelᚐControlInfoᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_relatedControls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveConnection", + Object: "Control", + Field: field, + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlInfo(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ControlEdge) graphql.Marshaler { + return ec.marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveEdge(ctx, field) + return ec.childFields_ControlEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -69158,9 +69862,9 @@ func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveConnection", + Object: "ControlConnection", Field: field, IsMethod: false, IsResolver: false, @@ -69171,13 +69875,13 @@ func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _ControlObjectiveConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) + return ec.fieldContext_ControlConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -69190,49 +69894,49 @@ func (ec *executionContext) _ControlObjectiveConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ControlObjectiveEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveEdge_node(ctx, field) + return ec.fieldContext_ControlEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { - return ec.marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Control) graphql.Marshaler { + return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControl(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveEdge", + Object: "ControlEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjective(ctx, field) + return ec.childFields_Control(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) + return ec.fieldContext_ControlEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -69245,17 +69949,17 @@ func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CustomDomain_id(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_id(ctx, field) + return ec.fieldContext_ControlImplementation_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -69268,17 +69972,17 @@ func (ec *executionContext) _CustomDomain_id(ctx context.Context, field graphql. true, ) } -func (ec *executionContext) fieldContext_CustomDomain_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CustomDomain_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_createdAt(ctx, field) + return ec.fieldContext_ControlImplementation_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -69291,17 +69995,17 @@ func (ec *executionContext) _CustomDomain_createdAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_CustomDomain_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomain_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_updatedAt(ctx, field) + return ec.fieldContext_ControlImplementation_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -69314,17 +70018,17 @@ func (ec *executionContext) _CustomDomain_updatedAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_CustomDomain_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomain_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_createdBy(ctx, field) + return ec.fieldContext_ControlImplementation_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -69337,17 +70041,17 @@ func (ec *executionContext) _CustomDomain_createdBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_CustomDomain_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_updatedBy(ctx, field) + return ec.fieldContext_ControlImplementation_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -69360,17 +70064,17 @@ func (ec *executionContext) _CustomDomain_updatedBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_CustomDomain_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlImplementation_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -69383,17 +70087,17 @@ func (ec *executionContext) _CustomDomain_updatedByImpersonator(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_CustomDomain_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_tags(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_tags(ctx, field) + return ec.fieldContext_ControlImplementation_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -69406,17 +70110,17 @@ func (ec *executionContext) _CustomDomain_tags(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_CustomDomain_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_ownerID(ctx, field) + return ec.fieldContext_ControlImplementation_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -69429,17 +70133,17 @@ func (ec *executionContext) _CustomDomain_ownerID(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_CustomDomain_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CustomDomain_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_systemOwned(ctx, field) + return ec.fieldContext_ControlImplementation_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -69452,17 +70156,17 @@ func (ec *executionContext) _CustomDomain_systemOwned(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomDomain_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CustomDomain_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_internalNotes(ctx, field) + return ec.fieldContext_ControlImplementation_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -69493,17 +70197,17 @@ func (ec *executionContext) _CustomDomain_internalNotes(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_CustomDomain_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_systemInternalID(ctx, field) + return ec.fieldContext_ControlImplementation_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -69534,89 +70238,112 @@ func (ec *executionContext) _CustomDomain_systemInternalID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CustomDomain_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_cnameRecord(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_cnameRecord(ctx, field) + return ec.fieldContext_ControlImplementation_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CnameRecord, nil + return obj.Status, 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 enums.DocumentStatus) graphql.Marshaler { + return ec.marshalOControlImplementationDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CustomDomain_cnameRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type ControlImplementationDocumentStatus does not have child fields")) } -func (ec *executionContext) _CustomDomain_mappableDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_mappableDomainID(ctx, field) + return ec.fieldContext_ControlImplementation_implementationDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappableDomainID, nil + return obj.ImplementationDate, 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_ControlImplementation_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ControlImplementation_verified(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementation_verified(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Verified, 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_CustomDomain_mappableDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CustomDomain_dnsVerificationID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_verificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_dnsVerificationID(ctx, field) + return ec.fieldContext_ControlImplementation_verificationDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSVerificationID, nil + return obj.VerificationDate, 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_CustomDomain_dnsVerificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_verificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomain_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_trustCenterID(ctx, field) + return ec.fieldContext_ControlImplementation_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.Details, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -69626,40 +70353,40 @@ func (ec *executionContext) _CustomDomain_trustCenterID(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_CustomDomain_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomain_domainType(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_domainType(ctx, field) + return ec.fieldContext_ControlImplementation_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DomainType, nil + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.CustomDomainType) graphql.Marshaler { - return ec.marshalNCustomDomainCustomDomainType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCustomDomainType(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_CustomDomain_domainType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type CustomDomainCustomDomainType does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementation_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementation", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _CustomDomain_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_owner(ctx, field) + return ec.fieldContext_ControlImplementation_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -69672,9 +70399,9 @@ func (ec *executionContext) _CustomDomain_owner(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_CustomDomain_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementation_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomain", + Object: "ControlImplementation", Field: field, IsMethod: true, IsResolver: false, @@ -69685,109 +70412,309 @@ func (ec *executionContext) fieldContext_CustomDomain_owner(_ context.Context, f return fc, nil } -func (ec *executionContext) _CustomDomain_mappableDomain(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_mappableDomain(ctx, field) + return ec.fieldContext_ControlImplementation_blockedGroups(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappableDomain(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.MappableDomain) graphql.Marshaler { - return ec.marshalNMappableDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappableDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomDomain_mappableDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementation_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomain", + Object: "ControlImplementation", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappableDomain(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_ControlImplementation_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _CustomDomain_dnsVerification(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomain_dnsVerification(ctx, field) + return ec.fieldContext_ControlImplementation_editors(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSVerification(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.DNSVerification) graphql.Marshaler { - return ec.marshalODNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.GroupConnection) graphql.Marshaler { + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CustomDomain_dnsVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementation_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomain", + Object: "ControlImplementation", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DNSVerification(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_ControlImplementation_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlImplementation_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementation_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlImplementation_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlImplementation", + 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_ControlImplementation_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _CustomDomainConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementation_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainConnection_edges(ctx, field) + return ec.fieldContext_ControlImplementation_controls(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlImplementation_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlImplementation", + 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_ControlImplementation_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlImplementation_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementation_subcontrols(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlImplementation_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlImplementation", + 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_ControlImplementation_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlImplementation_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementation) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementation_tasks(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlImplementation_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlImplementation", + 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_ControlImplementation_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlImplementationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementationConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.CustomDomainEdge) graphql.Marshaler { - return ec.marshalOCustomDomainEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ControlImplementationEdge) graphql.Marshaler { + return ec.marshalOControlImplementationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementationEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomDomainConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainConnection", + Object: "ControlImplementationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomainEdge(ctx, field) + return ec.childFields_ControlImplementationEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomDomainConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlImplementationConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -69800,9 +70727,9 @@ func (ec *executionContext) _CustomDomainConnection_pageInfo(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_CustomDomainConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainConnection", + Object: "ControlImplementationConnection", Field: field, IsMethod: false, IsResolver: false, @@ -69813,13 +70740,13 @@ func (ec *executionContext) fieldContext_CustomDomainConnection_pageInfo(_ conte return fc, nil } -func (ec *executionContext) _CustomDomainConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainConnection_totalCount(ctx, field) + return ec.fieldContext_ControlImplementationConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -69832,49 +70759,49 @@ func (ec *executionContext) _CustomDomainConnection_totalCount(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_CustomDomainConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CustomDomainEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainEdge_node(ctx, field) + return ec.fieldContext_ControlImplementationEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { - return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlImplementation) graphql.Marshaler { + return ec.marshalOControlImplementation2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlImplementation(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomDomainEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainEdge", + Object: "ControlImplementationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomain(ctx, field) + return ec.childFields_ControlImplementation(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomDomainEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlImplementationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainEdge_cursor(ctx, field) + return ec.fieldContext_ControlImplementationEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -69887,17 +70814,17 @@ func (ec *executionContext) _CustomDomainEdge_cursor(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_CustomDomainEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_id(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_id(ctx, field) + return ec.fieldContext_ControlObjective_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -69910,17 +70837,17 @@ func (ec *executionContext) _CustomTypeEnum_id(ctx context.Context, field graphq true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -69933,17 +70860,17 @@ func (ec *executionContext) _CustomTypeEnum_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -69956,17 +70883,17 @@ func (ec *executionContext) _CustomTypeEnum_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -69979,17 +70906,17 @@ func (ec *executionContext) _CustomTypeEnum_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_updatedBy(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -70002,17 +70929,17 @@ func (ec *executionContext) _CustomTypeEnum_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlObjective_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -70025,17 +70952,86 @@ func (ec *executionContext) _CustomTypeEnum_updatedByImpersonator(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_ownerID(ctx, field) + return ec.fieldContext_ControlObjective_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_ControlObjective_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlObjective_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_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_ControlObjective_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlObjective_revision(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_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_ControlObjective_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlObjective_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -70048,17 +71044,17 @@ func (ec *executionContext) _CustomTypeEnum_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_systemOwned(ctx, field) + return ec.fieldContext_ControlObjective_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -70071,17 +71067,17 @@ func (ec *executionContext) _CustomTypeEnum_systemOwned(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_internalNotes(ctx, field) + return ec.fieldContext_ControlObjective_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -70112,17 +71108,17 @@ func (ec *executionContext) _CustomTypeEnum_internalNotes(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_systemInternalID(ctx, field) + return ec.fieldContext_ControlObjective_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -70153,20 +71149,20 @@ func (ec *executionContext) _CustomTypeEnum_systemInternalID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_objectType(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_objectType(ctx, field) + return ec.fieldContext_ControlObjective_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObjectType, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -70176,66 +71172,112 @@ func (ec *executionContext) _CustomTypeEnum_objectType(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_objectType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_field(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_desiredOutcome(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_field(ctx, field) + return ec.fieldContext_ControlObjective_desiredOutcome(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Field, nil + return obj.DesiredOutcome, 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_ControlObjective_desiredOutcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlObjective_desiredOutcomeJSON(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_desiredOutcomeJSON(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DesiredOutcomeJSON, 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_CustomTypeEnum_field(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_desiredOutcomeJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_name(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_name(ctx, field) + return ec.fieldContext_ControlObjective_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Status, 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 enums.ObjectiveStatus) graphql.Marshaler { + return ec.marshalOControlObjectiveObjectiveStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐObjectiveStatus(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_ControlObjective_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ControlObjectiveObjectiveStatus does not have child fields")) +} + +func (ec *executionContext) _ControlObjective_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_source(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Source, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { + return ec.marshalOControlObjectiveControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type ControlObjectiveControlSource does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_description(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_description(ctx, field) + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.ControlObjectiveType, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -70245,20 +71287,20 @@ func (ec *executionContext) _CustomTypeEnum_description(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_color(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_category(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_color(ctx, field) + return ec.fieldContext_ControlObjective_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Color, nil + return obj.Category, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -70268,20 +71310,20 @@ func (ec *executionContext) _CustomTypeEnum_color(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_icon(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_subcategory(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_icon(ctx, field) + return ec.fieldContext_ControlObjective_subcategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Icon, nil + return obj.Subcategory, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -70291,17 +71333,17 @@ func (ec *executionContext) _CustomTypeEnum_icon(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_icon(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjective_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjective", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomTypeEnum_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_owner(ctx, field) + return ec.fieldContext_ControlObjective_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -70314,9 +71356,9 @@ func (ec *executionContext) _CustomTypeEnum_owner(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, @@ -70327,34 +71369,34 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _CustomTypeEnum_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_tasks(ctx, field) + return ec.fieldContext_ControlObjective_blockedGroups(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.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.TaskConnection) graphql.Marshaler { - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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() { @@ -70364,41 +71406,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_tasks(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_blockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_controls(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_controls(ctx, field) + return ec.fieldContext_ControlObjective_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_editors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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() { @@ -70408,41 +71450,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_controls(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_editors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_subcontrols(ctx, field) + return ec.fieldContext_ControlObjective_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_viewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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() { @@ -70452,41 +71494,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_subcontrols(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_viewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_risks(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_risks(ctx, field) + return ec.fieldContext_ControlObjective_programs(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.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.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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_ProgramConnection(ctx, field) }, } defer func() { @@ -70496,41 +71538,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_risks(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_riskCategories(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_evidence(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_riskCategories(ctx, field) + return ec.fieldContext_ControlObjective_evidence(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.RiskCategories(ctx, 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.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.RiskConnection) graphql.Marshaler { - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EvidenceConnection) graphql.Marshaler { + return ec.marshalNEvidenceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEvidenceConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_riskCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_evidence(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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_EvidenceConnection(ctx, field) }, } defer func() { @@ -70540,20 +71582,108 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_riskCategories(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_riskCategories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_evidence_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_internalPolicies(ctx, field) + return ec.fieldContext_ControlObjective_controls(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlObjective_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_ControlObjective_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_subcontrols(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjective", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + 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_ControlObjective_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -70567,9 +71697,9 @@ func (ec *executionContext) _CustomTypeEnum_internalPolicies(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, @@ -70584,20 +71714,20 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_internalPolicies(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_procedures(ctx, field) + return ec.fieldContext_ControlObjective_procedures(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -70611,9 +71741,9 @@ func (ec *executionContext) _CustomTypeEnum_procedures(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, @@ -70628,41 +71758,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_procedures(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_actionPlans(ctx, field) + return ec.fieldContext_ControlObjective_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ᚋv2ᚋ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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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() { @@ -70672,41 +71802,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_actionPlans(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_programs(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_programs(ctx, field) + return ec.fieldContext_ControlObjective_narratives(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.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.ProgramConnection) graphql.Marshaler { - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.NarrativeConnection) graphql.Marshaler { + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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_NarrativeConnection(ctx, field) }, } defer func() { @@ -70716,41 +71846,41 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_programs(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnum_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjective_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnum_platforms(ctx, field) + return ec.fieldContext_ControlObjective_tasks(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.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.PlatformConnection) graphql.Marshaler { - return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnum_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnum", + Object: "ControlObjective", 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_TaskConnection(ctx, field) }, } defer func() { @@ -70760,52 +71890,52 @@ func (ec *executionContext) fieldContext_CustomTypeEnum_platforms(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_CustomTypeEnum_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_ControlObjective_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _CustomTypeEnumConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnumConnection_edges(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.CustomTypeEnumEdge) graphql.Marshaler { - return ec.marshalOCustomTypeEnumEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.ControlObjectiveEdge) graphql.Marshaler { + return ec.marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnumConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnumConnection", + Object: "ControlObjectiveConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnumEdge(ctx, field) + return ec.childFields_ControlObjectiveEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomTypeEnumConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnumConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -70818,9 +71948,9 @@ func (ec *executionContext) _CustomTypeEnumConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnumConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnumConnection", + Object: "ControlObjectiveConnection", Field: field, IsMethod: false, IsResolver: false, @@ -70831,13 +71961,13 @@ func (ec *executionContext) fieldContext_CustomTypeEnumConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _CustomTypeEnumConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnumConnection_totalCount(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -70850,49 +71980,49 @@ func (ec *executionContext) _CustomTypeEnumConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnumConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnumConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CustomTypeEnumEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnumEdge_node(ctx, field) + return ec.fieldContext_ControlObjectiveEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlObjective) graphql.Marshaler { + return ec.marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomTypeEnumEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomTypeEnumEdge", + Object: "ControlObjectiveEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomTypeEnum(ctx, field) + return ec.childFields_ControlObjective(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomTypeEnumEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomTypeEnumEdge_cursor(ctx, field) + return ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -70905,17 +72035,17 @@ func (ec *executionContext) _CustomTypeEnumEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_CustomTypeEnumEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomTypeEnumEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DNSVerification_id(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_id(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_id(ctx, field) + return ec.fieldContext_CustomDomain_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -70928,17 +72058,17 @@ func (ec *executionContext) _DNSVerification_id(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_DNSVerification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DNSVerification_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_createdAt(ctx, field) + return ec.fieldContext_CustomDomain_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -70951,17 +72081,17 @@ func (ec *executionContext) _DNSVerification_createdAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DNSVerification_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DNSVerification_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_updatedAt(ctx, field) + return ec.fieldContext_CustomDomain_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -70974,17 +72104,17 @@ func (ec *executionContext) _DNSVerification_updatedAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DNSVerification_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DNSVerification_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_createdBy(ctx, field) + return ec.fieldContext_CustomDomain_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -70997,17 +72127,17 @@ func (ec *executionContext) _DNSVerification_createdBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DNSVerification_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_updatedBy(ctx, field) + return ec.fieldContext_CustomDomain_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -71020,17 +72150,17 @@ func (ec *executionContext) _DNSVerification_updatedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DNSVerification_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_updatedByImpersonator(ctx, field) + return ec.fieldContext_CustomDomain_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -71043,17 +72173,17 @@ func (ec *executionContext) _DNSVerification_updatedByImpersonator(ctx context.C false, ) } -func (ec *executionContext) fieldContext_DNSVerification_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_tags(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_tags(ctx, field) + return ec.fieldContext_CustomDomain_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -71066,17 +72196,17 @@ func (ec *executionContext) _DNSVerification_tags(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_DNSVerification_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_ownerID(ctx, field) + return ec.fieldContext_CustomDomain_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -71089,158 +72219,194 @@ func (ec *executionContext) _DNSVerification_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DNSVerification_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DNSVerification_cloudflareHostnameID(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_cloudflareHostnameID(ctx, field) + return ec.fieldContext_CustomDomain_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CloudflareHostnameID, nil + return obj.SystemOwned, 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_DNSVerification_cloudflareHostnameID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _DNSVerification_dnsTxtRecord(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_dnsTxtRecord(ctx, field) + return ec.fieldContext_CustomDomain_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSTxtRecord, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(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_DNSVerification_dnsTxtRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_dnsTxtValue(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_dnsTxtValue(ctx, field) + return ec.fieldContext_CustomDomain_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSTxtValue, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(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_DNSVerification_dnsTxtValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_dnsVerificationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_cnameRecord(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_dnsVerificationStatus(ctx, field) + return ec.fieldContext_CustomDomain_cnameRecord(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSVerificationStatus, nil + return obj.CnameRecord, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DNSVerificationStatus) graphql.Marshaler { - return ec.marshalNDNSVerificationDNSVerificationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDNSVerificationStatus(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_DNSVerification_dnsVerificationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type DNSVerificationDNSVerificationStatus does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_cnameRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_dnsVerificationStatusReason(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_mappableDomainID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_dnsVerificationStatusReason(ctx, field) + return ec.fieldContext_CustomDomain_mappableDomainID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSVerificationStatusReason, nil + return obj.MappableDomainID, 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_DNSVerification_dnsVerificationStatusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_mappableDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DNSVerification_acmeChallengePath(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_dnsVerificationID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_acmeChallengePath(ctx, field) + return ec.fieldContext_CustomDomain_dnsVerificationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AcmeChallengePath, nil + return obj.DNSVerificationID, 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_DNSVerification_acmeChallengePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_dnsVerificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DNSVerification_expectedAcmeChallengeValue(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_expectedAcmeChallengeValue(ctx, field) + return ec.fieldContext_CustomDomain_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExpectedAcmeChallengeValue, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -71250,171 +72416,168 @@ func (ec *executionContext) _DNSVerification_expectedAcmeChallengeValue(ctx cont false, ) } -func (ec *executionContext) fieldContext_DNSVerification_expectedAcmeChallengeValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DNSVerification_acmeChallengeStatus(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_domainType(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_acmeChallengeStatus(ctx, field) + return ec.fieldContext_CustomDomain_domainType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AcmeChallengeStatus, nil + return obj.DomainType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SSLVerificationStatus) graphql.Marshaler { - return ec.marshalNDNSVerificationSSLVerificationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSLVerificationStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.CustomDomainType) graphql.Marshaler { + return ec.marshalNCustomDomainCustomDomainType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCustomDomainType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DNSVerification_acmeChallengeStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type DNSVerificationSSLVerificationStatus does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_domainType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomain", field, false, false, errors.New("field of type CustomDomainCustomDomainType does not have child fields")) } -func (ec *executionContext) _DNSVerification_acmeChallengeStatusReason(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_acmeChallengeStatusReason(ctx, field) + return ec.fieldContext_CustomDomain_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AcmeChallengeStatusReason, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DNSVerification_acmeChallengeStatusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomain_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomDomain", + 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) _DNSVerification_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_mappableDomain(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_owner(ctx, field) + return ec.fieldContext_CustomDomain_mappableDomain(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Owner(ctx) + return obj.MappableDomain(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.MappableDomain) graphql.Marshaler { + return ec.marshalNMappableDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐMappableDomain(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DNSVerification_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CustomDomain_mappableDomain(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DNSVerification", + Object: "CustomDomain", 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_MappableDomain(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DNSVerification_customDomains(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomain_dnsVerification(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomain) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerification_customDomains(ctx, field) + return ec.fieldContext_CustomDomain_dnsVerification(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.DNSVerification(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { - return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerification) graphql.Marshaler { + return ec.marshalODNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DNSVerification_customDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CustomDomain_dnsVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DNSVerification", + Object: "CustomDomain", 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_DNSVerification(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DNSVerification_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DNSVerificationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerificationConnection_edges(ctx, field) + return ec.fieldContext_CustomDomainConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.DNSVerificationEdge) graphql.Marshaler { - return ec.marshalODNSVerificationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.CustomDomainEdge) graphql.Marshaler { + return ec.marshalOCustomDomainEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DNSVerificationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CustomDomainConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DNSVerificationConnection", + Object: "CustomDomainConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DNSVerificationEdge(ctx, field) + return ec.childFields_CustomDomainEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DNSVerificationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerificationConnection_pageInfo(ctx, field) + return ec.fieldContext_CustomDomainConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -71427,9 +72590,9 @@ func (ec *executionContext) _DNSVerificationConnection_pageInfo(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_DNSVerificationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CustomDomainConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DNSVerificationConnection", + Object: "CustomDomainConnection", Field: field, IsMethod: false, IsResolver: false, @@ -71440,13 +72603,13 @@ func (ec *executionContext) fieldContext_DNSVerificationConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _DNSVerificationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerificationConnection_totalCount(ctx, field) + return ec.fieldContext_CustomDomainConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -71459,49 +72622,49 @@ func (ec *executionContext) _DNSVerificationConnection_totalCount(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_DNSVerificationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerificationConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DNSVerificationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerificationEdge_node(ctx, field) + return ec.fieldContext_CustomDomainEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerification) graphql.Marshaler { - return ec.marshalODNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomain) graphql.Marshaler { + return ec.marshalOCustomDomain2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomain(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DNSVerificationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CustomDomainEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DNSVerificationEdge", + Object: "CustomDomainEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DNSVerification(ctx, field) + return ec.childFields_CustomDomain(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DNSVerificationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CustomDomainEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DNSVerificationEdge_cursor(ctx, field) + return ec.fieldContext_CustomDomainEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -71514,17 +72677,17 @@ func (ec *executionContext) _DNSVerificationEdge_cursor(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_DNSVerificationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DNSVerificationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_id(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_id(ctx, field) + return ec.fieldContext_CustomTypeEnum_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -71537,17 +72700,17 @@ func (ec *executionContext) _DirectoryAccount_id(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_createdAt(ctx, field) + return ec.fieldContext_CustomTypeEnum_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -71560,17 +72723,17 @@ func (ec *executionContext) _DirectoryAccount_createdAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_updatedAt(ctx, field) + return ec.fieldContext_CustomTypeEnum_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -71583,17 +72746,17 @@ func (ec *executionContext) _DirectoryAccount_updatedAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_createdBy(ctx, field) + return ec.fieldContext_CustomTypeEnum_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -71606,17 +72769,17 @@ func (ec *executionContext) _DirectoryAccount_createdBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_updatedBy(ctx, field) + return ec.fieldContext_CustomTypeEnum_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -71629,17 +72792,17 @@ func (ec *executionContext) _DirectoryAccount_updatedBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_updatedByImpersonator(ctx, field) + return ec.fieldContext_CustomTypeEnum_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -71652,940 +72815,1015 @@ func (ec *executionContext) _DirectoryAccount_updatedByImpersonator(ctx context. false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_displayID(ctx, field) + return ec.fieldContext_CustomTypeEnum_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.OwnerID, 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_DirectoryAccount_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_systemOwned(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_tags(ctx, field) + return ec.fieldContext_CustomTypeEnum_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.SystemOwned, 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_DirectoryAccount_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_internalNotes(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_ownerID(ctx, field) + return ec.fieldContext_CustomTypeEnum_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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_DirectoryAccount_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_environmentName(ctx, field) + return ec.fieldContext_CustomTypeEnum_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.SystemInternalID, 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_DirectoryAccount_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_objectType(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_environmentID(ctx, field) + return ec.fieldContext_CustomTypeEnum_objectType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.ObjectType, 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_DirectoryAccount_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_objectType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_field(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_scopeName(ctx, field) + return ec.fieldContext_CustomTypeEnum_field(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.Field, 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_DirectoryAccount_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_field(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_name(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_scopeID(ctx, field) + return ec.fieldContext_CustomTypeEnum_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, 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_DirectoryAccount_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_description(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_integrationID(ctx, field) + return ec.fieldContext_CustomTypeEnum_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, 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_DirectoryAccount_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_color(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_directorySyncRunID(ctx, field) + return ec.fieldContext_CustomTypeEnum_color(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectorySyncRunID, nil + return obj.Color, 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_DirectoryAccount_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_color(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_icon(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_platformID(ctx, field) + return ec.fieldContext_CustomTypeEnum_icon(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformID, nil + return obj.Icon, 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_DirectoryAccount_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_icon(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnum", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_owner(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_directoryInstanceID(ctx, field) + return ec.fieldContext_CustomTypeEnum_owner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryInstanceID, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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) _DirectoryAccount_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_identityHolderID(ctx, field) + return ec.fieldContext_CustomTypeEnum_tasks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolderID, 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.marshalOID2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.TaskConnection) graphql.Marshaler { + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_controls(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_directoryName(ctx, field) + return ec.fieldContext_CustomTypeEnum_controls(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryName, 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.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ControlConnection) graphql.Marshaler { + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_externalID(ctx, field) + return ec.fieldContext_CustomTypeEnum_subcontrols(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, 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.marshalNString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.SubcontrolConnection) graphql.Marshaler { + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_secondaryKey(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_risks(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_secondaryKey(ctx, field) + return ec.fieldContext_CustomTypeEnum_risks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecondaryKey, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_secondaryKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_canonicalEmail(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_riskCategories(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_canonicalEmail(ctx, field) + return ec.fieldContext_CustomTypeEnum_riskCategories(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CanonicalEmail, nil + fc := graphql.GetFieldContext(ctx) + return obj.RiskCategories(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_canonicalEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_riskCategories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_riskCategories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_emailAliases(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_emailAliases(ctx, field) + return ec.fieldContext_CustomTypeEnum_internalPolicies(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailAliases, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.InternalPolicyConnection) graphql.Marshaler { + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_emailAliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_phoneNumber(ctx, field) +func (ec *executionContext) fieldContext_CustomTypeEnum_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InternalPolicyConnection(ctx, field) }, - func(ctx context.Context) (any, error) { - return obj.PhoneNumber, 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_DirectoryAccount_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", 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_CustomTypeEnum_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_displayName(ctx, field) + return ec.fieldContext_CustomTypeEnum_procedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, 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.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProcedureConnection) graphql.Marshaler { + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_avatarRemoteURL(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.AvatarRemoteURL, 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_DirectoryAccount_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_avatarLocalFileID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.AvatarLocalFileID, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOID2ᚖstring(ctx, selections, v) +func (ec *executionContext) fieldContext_CustomTypeEnum_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProcedureConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", 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_CustomTypeEnum_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_avatarUpdatedAt(ctx, field) + return ec.fieldContext_CustomTypeEnum_actionPlans(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarUpdatedAt, 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 *time.Time) graphql.Marshaler { - return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ActionPlanConnection) graphql.Marshaler { + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_givenName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_givenName(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.GivenName, 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_DirectoryAccount_givenName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_familyName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_familyName(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.FamilyName, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) +func (ec *executionContext) fieldContext_CustomTypeEnum_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ActionPlanConnection(ctx, field) }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_familyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", 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_CustomTypeEnum_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_jobTitle(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_programs(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_jobTitle(ctx, field) + return ec.fieldContext_CustomTypeEnum_programs(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JobTitle, 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.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.ProgramConnection) graphql.Marshaler { + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_jobTitle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_department(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_department(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Department, 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_DirectoryAccount_department(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_organizationUnit(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnum_platforms(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnum) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_organizationUnit(ctx, field) + return ec.fieldContext_CustomTypeEnum_platforms(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OrganizationUnit, nil + 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 *string) graphql.Marshaler { - return ec.marshalOString2ᚖstring(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.PlatformConnection) graphql.Marshaler { + return ec.marshalNPlatformConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformConnection(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_organizationUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnum_platforms(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnum", + 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_CustomTypeEnum_platforms_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_accountType(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnumConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_accountType(ctx, field) + return ec.fieldContext_CustomTypeEnumConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccountType, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryAccountType) graphql.Marshaler { - return ec.marshalODirectoryAccountDirectoryAccountType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.CustomTypeEnumEdge) graphql.Marshaler { + return ec.marshalOCustomTypeEnumEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_accountType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountType does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnumConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnumConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomTypeEnumEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnumConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_status(ctx, field) + return ec.fieldContext_CustomTypeEnumConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryAccountStatus) graphql.Marshaler { - return ec.marshalNDirectoryAccountDirectoryAccountStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountStatus(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_DirectoryAccount_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountStatus does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnumConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnumConnection", + 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) _DirectoryAccount_mfaState(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnumConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_mfaState(ctx, field) + return ec.fieldContext_CustomTypeEnumConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MfaState, nil + return obj.TotalCount, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryAccountMFAState) graphql.Marshaler { - return ec.marshalNDirectoryAccountDirectoryAccountMFAState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountMFAState(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_DirectoryAccount_mfaState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountMFAState does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnumConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnumConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_lastSeenIP(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnumEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_lastSeenIP(ctx, field) + return ec.fieldContext_CustomTypeEnumEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastSeenIP, 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.CustomTypeEnum) graphql.Marshaler { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_lastSeenIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_lastLoginAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_lastLoginAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LastLoginAt, 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_CustomTypeEnumEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomTypeEnumEdge", + Field: field, + IsMethod: false, + 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_DirectoryAccount_lastLoginAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) + } + return fc, nil } -func (ec *executionContext) _DirectoryAccount_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomTypeEnumEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.CustomTypeEnumEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_firstSeenAt(ctx, field) + return ec.fieldContext_CustomTypeEnumEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FirstSeenAt, nil + return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_DirectoryAccount_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_lastSeenAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.LastSeenAt, 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_DirectoryAccount_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomTypeEnumEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomTypeEnumEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_id(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_addedAt(ctx, field) + return ec.fieldContext_DNSVerification_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AddedAt, nil + return obj.ID, 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.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_removedAt(ctx, field) + return ec.fieldContext_DNSVerification_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RemovedAt, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_observedAt(ctx, field) + return ec.fieldContext_DNSVerification_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObservedAt, nil + return obj.UpdatedAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { - return ec.marshalNTime2timeᚐTime(ctx, selections, v) + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_profileHash(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_profileHash(ctx, field) + return ec.fieldContext_DNSVerification_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProfileHash, nil + return obj.CreatedBy, 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_DirectoryAccount_profileHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_profile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_profile(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Profile, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { - return ec.marshalOMap2map(ctx, selections, v) + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_metadata(ctx, field) + return ec.fieldContext_DNSVerification_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_DirectoryAccount_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_rawProfileFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_rawProfileFileID(ctx, field) + return ec.fieldContext_DNSVerification_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawProfileFileID, nil + return obj.UpdatedByImpersonator, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -72595,472 +73833,323 @@ func (ec *executionContext) _DirectoryAccount_rawProfileFileID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_rawProfileFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_sourceVersion(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_sourceVersion(ctx, field) + return ec.fieldContext_DNSVerification_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceVersion, nil + return obj.Tags, 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_DirectoryAccount_sourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _DirectoryAccount_primarySource(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_primarySource(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.PrimarySource, 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_DirectoryAccount_primarySource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerification_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_owner(ctx, field) + return ec.fieldContext_DNSVerification_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ᚋv2ᚋ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_DirectoryAccount_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DNSVerification_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_cloudflareHostnameID(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_environment(ctx, field) + return ec.fieldContext_DNSVerification_cloudflareHostnameID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Environment(ctx) + return obj.CloudflareHostnameID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_DirectoryAccount_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DNSVerification_cloudflareHostnameID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_dnsTxtRecord(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_scope(ctx, field) + return ec.fieldContext_DNSVerification_dnsTxtRecord(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Scope(ctx) + return obj.DNSTxtRecord, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomTypeEnum) graphql.Marshaler { - return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_DirectoryAccount_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DNSVerification_dnsTxtRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_dnsTxtValue(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_integration(ctx, field) + return ec.fieldContext_DNSVerification_dnsTxtValue(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Integration(ctx) + return obj.DNSTxtValue, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { - return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(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_DirectoryAccount_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_Integration(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_DNSVerification_dnsTxtValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_dnsVerificationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_directorySyncRun(ctx, field) + return ec.fieldContext_DNSVerification_dnsVerificationStatus(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectorySyncRun(ctx) + return obj.DNSVerificationStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { - return ec.marshalODirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DNSVerificationStatus) graphql.Marshaler { + return ec.marshalNDNSVerificationDNSVerificationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDNSVerificationStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRun(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_DNSVerification_dnsVerificationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type DNSVerificationDNSVerificationStatus does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_dnsVerificationStatusReason(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_platform(ctx, field) + return ec.fieldContext_DNSVerification_dnsVerificationStatusReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Platform(ctx) + return obj.DNSVerificationStatusReason, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.Platform) graphql.Marshaler { - return ec.marshalOPlatform2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_DirectoryAccount_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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) fieldContext_DNSVerification_dnsVerificationStatusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_acmeChallengePath(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_identityHolder(ctx, field) + return ec.fieldContext_DNSVerification_acmeChallengePath(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolder(ctx) + return obj.AcmeChallengePath, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.IdentityHolder) graphql.Marshaler { - return ec.marshalOIdentityHolder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolder(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_DirectoryAccount_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DNSVerification_acmeChallengePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_expectedAcmeChallengeValue(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_avatarFile(ctx, field) + return ec.fieldContext_DNSVerification_expectedAcmeChallengeValue(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarFile(ctx) + return obj.ExpectedAcmeChallengeValue, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.File) graphql.Marshaler { - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_DirectoryAccount_avatarFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DNSVerification_expectedAcmeChallengeValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_groups(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_acmeChallengeStatus(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_groups(ctx, field) + return ec.fieldContext_DNSVerification_acmeChallengeStatus(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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) + return obj.AcmeChallengeStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { - return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.SSLVerificationStatus) graphql.Marshaler { + return ec.marshalNDNSVerificationSSLVerificationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSLVerificationStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DirectoryAccount_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_DNSVerification_acmeChallengeStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type DNSVerificationSSLVerificationStatus does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_findings(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_acmeChallengeStatusReason(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_findings(ctx, field) + return ec.fieldContext_DNSVerification_acmeChallengeStatusReason(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.AcmeChallengeStatusReason, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { - return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋ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_DirectoryAccount_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryAccount", - 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_DirectoryAccount_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_DNSVerification_acmeChallengeStatusReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerification", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryAccount_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_workflowObjectRefs(ctx, field) + return ec.fieldContext_DNSVerification_owner(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.Owner(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.Organization) graphql.Marshaler { + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DNSVerification_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryAccount", + Object: "DNSVerification", 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_DirectoryAccount_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _DirectoryAccount_memberships(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerification_customDomains(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerification) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccount_memberships(ctx, field) + return ec.fieldContext_DNSVerification_customDomains(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Memberships(ctx, 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.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.DirectoryMembershipConnection) graphql.Marshaler { - return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.CustomDomainConnection) graphql.Marshaler { + return ec.marshalNCustomDomainConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomDomainConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryAccount_memberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DNSVerification_customDomains(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryAccount", + Object: "DNSVerification", 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_CustomDomainConnection(ctx, field) }, } defer func() { @@ -73070,52 +74159,52 @@ func (ec *executionContext) fieldContext_DirectoryAccount_memberships(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryAccount_memberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DNSVerification_customDomains_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryAccountConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerificationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccountConnection_edges(ctx, field) + return ec.fieldContext_DNSVerificationConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryAccountEdge) graphql.Marshaler { - return ec.marshalODirectoryAccountEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.DNSVerificationEdge) graphql.Marshaler { + return ec.marshalODNSVerificationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerificationEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccountConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DNSVerificationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryAccountConnection", + Object: "DNSVerificationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccountEdge(ctx, field) + return ec.childFields_DNSVerificationEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryAccountConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerificationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccountConnection_pageInfo(ctx, field) + return ec.fieldContext_DNSVerificationConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -73128,9 +74217,9 @@ func (ec *executionContext) _DirectoryAccountConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_DirectoryAccountConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DNSVerificationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryAccountConnection", + Object: "DNSVerificationConnection", Field: field, IsMethod: false, IsResolver: false, @@ -73141,13 +74230,13 @@ func (ec *executionContext) fieldContext_DirectoryAccountConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _DirectoryAccountConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerificationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccountConnection_totalCount(ctx, field) + return ec.fieldContext_DNSVerificationConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -73160,49 +74249,49 @@ func (ec *executionContext) _DirectoryAccountConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_DirectoryAccountConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccountConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerificationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerificationConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DirectoryAccountEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerificationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccountEdge_node(ctx, field) + return ec.fieldContext_DNSVerificationEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { - return ec.marshalODirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DNSVerification) graphql.Marshaler { + return ec.marshalODNSVerification2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDNSVerification(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryAccountEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DNSVerificationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryAccountEdge", + Object: "DNSVerificationEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryAccount(ctx, field) + return ec.childFields_DNSVerification(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryAccountEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DNSVerificationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DNSVerificationEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryAccountEdge_cursor(ctx, field) + return ec.fieldContext_DNSVerificationEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -73215,17 +74304,17 @@ func (ec *executionContext) _DirectoryAccountEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_DirectoryAccountEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryAccountEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_DNSVerificationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DNSVerificationEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_id(ctx, field) + return ec.fieldContext_DirectoryAccount_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -73238,17 +74327,17 @@ func (ec *executionContext) _DirectoryGroup_id(ctx context.Context, field graphq true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_createdAt(ctx, field) + return ec.fieldContext_DirectoryAccount_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -73261,17 +74350,17 @@ func (ec *executionContext) _DirectoryGroup_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_updatedAt(ctx, field) + return ec.fieldContext_DirectoryAccount_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -73284,17 +74373,17 @@ func (ec *executionContext) _DirectoryGroup_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_createdBy(ctx, field) + return ec.fieldContext_DirectoryAccount_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -73307,17 +74396,17 @@ func (ec *executionContext) _DirectoryGroup_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_updatedBy(ctx, field) + return ec.fieldContext_DirectoryAccount_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -73330,17 +74419,17 @@ func (ec *executionContext) _DirectoryGroup_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_updatedByImpersonator(ctx, field) + return ec.fieldContext_DirectoryAccount_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -73353,17 +74442,17 @@ func (ec *executionContext) _DirectoryGroup_updatedByImpersonator(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_displayID(ctx, field) + return ec.fieldContext_DirectoryAccount_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -73376,17 +74465,17 @@ func (ec *executionContext) _DirectoryGroup_displayID(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_tags(ctx, field) + return ec.fieldContext_DirectoryAccount_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -73399,17 +74488,17 @@ func (ec *executionContext) _DirectoryGroup_tags(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_ownerID(ctx, field) + return ec.fieldContext_DirectoryAccount_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -73422,17 +74511,17 @@ func (ec *executionContext) _DirectoryGroup_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_environmentName(ctx, field) + return ec.fieldContext_DirectoryAccount_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentName, nil @@ -73445,17 +74534,17 @@ func (ec *executionContext) _DirectoryGroup_environmentName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_environmentID(ctx, field) + return ec.fieldContext_DirectoryAccount_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentID, nil @@ -73468,17 +74557,17 @@ func (ec *executionContext) _DirectoryGroup_environmentID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_scopeName(ctx, field) + return ec.fieldContext_DirectoryAccount_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeName, nil @@ -73491,17 +74580,17 @@ func (ec *executionContext) _DirectoryGroup_scopeName(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_scopeID(ctx, field) + return ec.fieldContext_DirectoryAccount_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeID, nil @@ -73514,40 +74603,63 @@ func (ec *executionContext) _DirectoryGroup_scopeID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_integrationID(ctx, field) + return ec.fieldContext_DirectoryAccount_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.IntegrationID, 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, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_directorySyncRunID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectorySyncRunID, 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_DirectoryGroup_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_platformID(ctx, field) + return ec.fieldContext_DirectoryAccount_platformID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PlatformID, nil @@ -73560,17 +74672,17 @@ func (ec *executionContext) _DirectoryGroup_platformID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_directoryInstanceID(ctx, field) + return ec.fieldContext_DirectoryAccount_directoryInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectoryInstanceID, nil @@ -73583,40 +74695,63 @@ func (ec *executionContext) _DirectoryGroup_directoryInstanceID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_directorySyncRunID(ctx, field) + return ec.fieldContext_DirectoryAccount_identityHolderID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectorySyncRunID, nil + return obj.IdentityHolderID, 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 *string) graphql.Marshaler { + return ec.marshalOID2ᚖstring(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_directoryName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryName, 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_DirectoryGroup_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_externalID(ctx, field) + return ec.fieldContext_DirectoryAccount_externalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ExternalID, nil @@ -73629,20 +74764,20 @@ func (ec *executionContext) _DirectoryGroup_externalID(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_email(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_secondaryKey(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_email(ctx, field) + return ec.fieldContext_DirectoryAccount_secondaryKey(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.SecondaryKey, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -73652,17 +74787,86 @@ func (ec *executionContext) _DirectoryGroup_email(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_secondaryKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_canonicalEmail(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_displayName(ctx, field) + return ec.fieldContext_DirectoryAccount_canonicalEmail(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CanonicalEmail, 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_DirectoryAccount_canonicalEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_emailAliases(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_emailAliases(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EmailAliases, 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_DirectoryAccount_emailAliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_phoneNumber(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.PhoneNumber, 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_DirectoryAccount_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_displayName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayName, nil @@ -73675,20 +74879,20 @@ func (ec *executionContext) _DirectoryGroup_displayName(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_description(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_description(ctx, field) + return ec.fieldContext_DirectoryAccount_avatarRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.AvatarRemoteURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -73698,109 +74902,293 @@ func (ec *executionContext) _DirectoryGroup_description(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_classification(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_classification(ctx, field) + return ec.fieldContext_DirectoryAccount_avatarLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Classification, nil + return obj.AvatarLocalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryGroupClassification) graphql.Marshaler { - return ec.marshalNDirectoryGroupDirectoryGroupClassification2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryGroupClassification(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_DirectoryAccount_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_avatarUpdatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AvatarUpdatedAt, 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_DirectoryGroup_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type DirectoryGroupDirectoryGroupClassification does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_givenName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_status(ctx, field) + return ec.fieldContext_DirectoryAccount_givenName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.GivenName, 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_DirectoryAccount_givenName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_familyName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_familyName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FamilyName, 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_DirectoryAccount_familyName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_jobTitle(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_jobTitle(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.JobTitle, 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_DirectoryAccount_jobTitle(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_department(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_department(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Department, 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_DirectoryAccount_department(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_organizationUnit(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_organizationUnit(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.OrganizationUnit, 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_DirectoryAccount_organizationUnit(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_accountType(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_accountType(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AccountType, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryAccountType) graphql.Marshaler { + return ec.marshalODirectoryAccountDirectoryAccountType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountType(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_accountType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountType does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_status(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryGroupStatus) graphql.Marshaler { - return ec.marshalNDirectoryGroupDirectoryGroupStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryGroupStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryAccountStatus) graphql.Marshaler { + return ec.marshalNDirectoryAccountDirectoryAccountStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountStatus(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type DirectoryGroupDirectoryGroupStatus does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountStatus does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_externalSharingAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_mfaState(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_externalSharingAllowed(ctx, field) + return ec.fieldContext_DirectoryAccount_mfaState(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalSharingAllowed, nil + return obj.MfaState, 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.DirectoryAccountMFAState) graphql.Marshaler { + return ec.marshalNDirectoryAccountDirectoryAccountMFAState2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryAccountMFAState(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_mfaState(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type DirectoryAccountDirectoryAccountMFAState does not have child fields")) +} + +func (ec *executionContext) _DirectoryAccount_lastSeenIP(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_lastSeenIP(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.LastSeenIP, 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_DirectoryGroup_externalSharingAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_lastSeenIP(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_memberCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_lastLoginAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_memberCount(ctx, field) + return ec.fieldContext_DirectoryAccount_lastLoginAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MemberCount, nil + return obj.LastLoginAt, 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 *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_memberCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_lastLoginAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_firstSeenAt(ctx, field) + return ec.fieldContext_DirectoryAccount_firstSeenAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.FirstSeenAt, nil @@ -73813,17 +75201,17 @@ func (ec *executionContext) _DirectoryGroup_firstSeenAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_lastSeenAt(ctx, field) + return ec.fieldContext_DirectoryAccount_lastSeenAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.LastSeenAt, nil @@ -73836,17 +75224,17 @@ func (ec *executionContext) _DirectoryGroup_lastSeenAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_addedAt(ctx, field) + return ec.fieldContext_DirectoryAccount_addedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.AddedAt, nil @@ -73859,17 +75247,17 @@ func (ec *executionContext) _DirectoryGroup_addedAt(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_removedAt(ctx, field) + return ec.fieldContext_DirectoryAccount_removedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.RemovedAt, nil @@ -73882,17 +75270,17 @@ func (ec *executionContext) _DirectoryGroup_removedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_observedAt(ctx, field) + return ec.fieldContext_DirectoryAccount_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ObservedAt, nil @@ -73905,17 +75293,17 @@ func (ec *executionContext) _DirectoryGroup_observedAt(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_profileHash(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_profileHash(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_profileHash(ctx, field) + return ec.fieldContext_DirectoryAccount_profileHash(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ProfileHash, nil @@ -73928,17 +75316,17 @@ func (ec *executionContext) _DirectoryGroup_profileHash(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_profileHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_profileHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_profile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_profile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_profile(ctx, field) + return ec.fieldContext_DirectoryAccount_profile(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Profile, nil @@ -73951,17 +75339,17 @@ func (ec *executionContext) _DirectoryGroup_profile(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_metadata(ctx, field) + return ec.fieldContext_DirectoryAccount_metadata(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Metadata, nil @@ -73974,17 +75362,17 @@ func (ec *executionContext) _DirectoryGroup_metadata(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_rawProfileFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_rawProfileFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_rawProfileFileID(ctx, field) + return ec.fieldContext_DirectoryAccount_rawProfileFileID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.RawProfileFileID, nil @@ -73997,17 +75385,17 @@ func (ec *executionContext) _DirectoryGroup_rawProfileFileID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_rawProfileFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_rawProfileFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_sourceVersion(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_sourceVersion(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_sourceVersion(ctx, field) + return ec.fieldContext_DirectoryAccount_sourceVersion(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SourceVersion, nil @@ -74020,40 +75408,40 @@ func (ec *executionContext) _DirectoryGroup_sourceVersion(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_sourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_sourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_primarySource(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_directoryName(ctx, field) + return ec.fieldContext_DirectoryAccount_primarySource(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryName, nil + return obj.PrimarySource, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccount_primarySource(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccount", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _DirectoryGroup_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_owner(ctx, field) + return ec.fieldContext_DirectoryAccount_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -74066,9 +75454,9 @@ func (ec *executionContext) _DirectoryGroup_owner(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74079,13 +75467,13 @@ func (ec *executionContext) fieldContext_DirectoryGroup_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _DirectoryGroup_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_environment(ctx, field) + return ec.fieldContext_DirectoryAccount_environment(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Environment(ctx) @@ -74098,9 +75486,9 @@ func (ec *executionContext) _DirectoryGroup_environment(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74111,13 +75499,13 @@ func (ec *executionContext) fieldContext_DirectoryGroup_environment(_ context.Co return fc, nil } -func (ec *executionContext) _DirectoryGroup_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_scope(ctx, field) + return ec.fieldContext_DirectoryAccount_scope(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Scope(ctx) @@ -74130,9 +75518,9 @@ func (ec *executionContext) _DirectoryGroup_scope(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74143,28 +75531,28 @@ func (ec *executionContext) fieldContext_DirectoryGroup_scope(_ context.Context, return fc, nil } -func (ec *executionContext) _DirectoryGroup_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_integration(ctx, field) + return ec.fieldContext_DirectoryAccount_integration(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Integration(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) + return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74175,28 +75563,28 @@ func (ec *executionContext) fieldContext_DirectoryGroup_integration(_ context.Co return fc, nil } -func (ec *executionContext) _DirectoryGroup_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_directorySyncRun(ctx, field) + return ec.fieldContext_DirectoryAccount_directorySyncRun(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectorySyncRun(ctx) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { - return ec.marshalNDirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + return ec.marshalODirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74207,13 +75595,13 @@ func (ec *executionContext) fieldContext_DirectoryGroup_directorySyncRun(_ conte return fc, nil } -func (ec *executionContext) _DirectoryGroup_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_platform(ctx, field) + return ec.fieldContext_DirectoryAccount_platform(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Platform(ctx) @@ -74226,9 +75614,9 @@ func (ec *executionContext) _DirectoryGroup_platform(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74239,34 +75627,98 @@ func (ec *executionContext) fieldContext_DirectoryGroup_platform(_ context.Conte return fc, nil } -func (ec *executionContext) _DirectoryGroup_accounts(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_identityHolder(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_accounts(ctx, field) + return ec.fieldContext_DirectoryAccount_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolder(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_identityHolder(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectoryAccount", + 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) _DirectoryAccount_avatarFile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐFile(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_avatarFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectoryAccount", + 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) _DirectoryAccount_groups(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_groups(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) - return obj.Accounts(ctx, 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.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.DirectoryGroupOrder), fc.Args["where"].(*generated.DirectoryGroupWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { - return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { + return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_accounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", 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_DirectoryGroupConnection(ctx, field) }, } defer func() { @@ -74276,20 +75728,64 @@ func (ec *executionContext) fieldContext_DirectoryGroup_accounts(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryGroup_accounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryAccount_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryGroup_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_findings(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_workflowObjectRefs(ctx, field) + return ec.fieldContext_DirectoryAccount_findings(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.FindingConnection) graphql.Marshaler { + return ec.marshalNFindingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryAccount_findings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectoryAccount", + 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_DirectoryAccount_findings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DirectoryAccount_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryAccount_workflowObjectRefs(ctx, field) }, func(ctx context.Context) (any, error) { fc := graphql.GetFieldContext(ctx) @@ -74303,9 +75799,9 @@ func (ec *executionContext) _DirectoryGroup_workflowObjectRefs(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74320,24 +75816,24 @@ func (ec *executionContext) fieldContext_DirectoryGroup_workflowObjectRefs(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryGroup_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryAccount_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryGroup_members(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccount_memberships(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccount) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroup_members(ctx, field) + return ec.fieldContext_DirectoryAccount_memberships(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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) + return obj.Memberships(ctx, 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.DirectoryMembershipConnection) graphql.Marshaler { @@ -74347,9 +75843,9 @@ func (ec *executionContext) _DirectoryGroup_members(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_DirectoryGroup_members(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccount_memberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroup", + Object: "DirectoryAccount", Field: field, IsMethod: true, IsResolver: false, @@ -74364,52 +75860,52 @@ func (ec *executionContext) fieldContext_DirectoryGroup_members(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryGroup_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryAccount_memberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryGroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccountConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroupConnection_edges(ctx, field) + return ec.fieldContext_DirectoryAccountConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryGroupEdge) graphql.Marshaler { - return ec.marshalODirectoryGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryAccountEdge) graphql.Marshaler { + return ec.marshalODirectoryAccountEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryGroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccountConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroupConnection", + Object: "DirectoryAccountConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroupEdge(ctx, field) + return ec.childFields_DirectoryAccountEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryGroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccountConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroupConnection_pageInfo(ctx, field) + return ec.fieldContext_DirectoryAccountConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -74422,9 +75918,9 @@ func (ec *executionContext) _DirectoryGroupConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_DirectoryGroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccountConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroupConnection", + Object: "DirectoryAccountConnection", Field: field, IsMethod: false, IsResolver: false, @@ -74435,13 +75931,13 @@ func (ec *executionContext) fieldContext_DirectoryGroupConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _DirectoryGroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccountConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroupConnection_totalCount(ctx, field) + return ec.fieldContext_DirectoryAccountConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -74454,49 +75950,49 @@ func (ec *executionContext) _DirectoryGroupConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_DirectoryGroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroupConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccountConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccountConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DirectoryGroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccountEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroupEdge_node(ctx, field) + return ec.fieldContext_DirectoryAccountEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { - return ec.marshalODirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { + return ec.marshalODirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryGroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryAccountEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryGroupEdge", + Object: "DirectoryAccountEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroup(ctx, field) + return ec.childFields_DirectoryAccount(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryGroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryAccountEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryAccountEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryGroupEdge_cursor(ctx, field) + return ec.fieldContext_DirectoryAccountEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -74509,17 +76005,17 @@ func (ec *executionContext) _DirectoryGroupEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_DirectoryGroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryGroupEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryAccountEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryAccountEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_id(ctx, field) + return ec.fieldContext_DirectoryGroup_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -74532,17 +76028,17 @@ func (ec *executionContext) _DirectoryMembership_id(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_createdAt(ctx, field) + return ec.fieldContext_DirectoryGroup_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -74555,17 +76051,17 @@ func (ec *executionContext) _DirectoryMembership_createdAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_updatedAt(ctx, field) + return ec.fieldContext_DirectoryGroup_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -74578,17 +76074,17 @@ func (ec *executionContext) _DirectoryMembership_updatedAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_createdBy(ctx, field) + return ec.fieldContext_DirectoryGroup_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -74601,17 +76097,17 @@ func (ec *executionContext) _DirectoryMembership_createdBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_updatedBy(ctx, field) + return ec.fieldContext_DirectoryGroup_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -74624,17 +76120,17 @@ func (ec *executionContext) _DirectoryMembership_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_updatedByImpersonator(ctx, field) + return ec.fieldContext_DirectoryGroup_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -74647,17 +76143,17 @@ func (ec *executionContext) _DirectoryMembership_updatedByImpersonator(ctx conte false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_displayID(ctx, field) + return ec.fieldContext_DirectoryGroup_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -74670,17 +76166,40 @@ func (ec *executionContext) _DirectoryMembership_displayID(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_ownerID(ctx, field) + return ec.fieldContext_DirectoryGroup_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_DirectoryGroup_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -74693,17 +76212,17 @@ func (ec *executionContext) _DirectoryMembership_ownerID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_environmentName(ctx, field) + return ec.fieldContext_DirectoryGroup_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentName, nil @@ -74716,17 +76235,17 @@ func (ec *executionContext) _DirectoryMembership_environmentName(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_environmentID(ctx, field) + return ec.fieldContext_DirectoryGroup_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentID, nil @@ -74739,17 +76258,17 @@ func (ec *executionContext) _DirectoryMembership_environmentID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_scopeName(ctx, field) + return ec.fieldContext_DirectoryGroup_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeName, nil @@ -74762,17 +76281,17 @@ func (ec *executionContext) _DirectoryMembership_scopeName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_scopeID(ctx, field) + return ec.fieldContext_DirectoryGroup_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeID, nil @@ -74785,17 +76304,17 @@ func (ec *executionContext) _DirectoryMembership_scopeID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_integrationID(ctx, field) + return ec.fieldContext_DirectoryGroup_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.IntegrationID, nil @@ -74808,17 +76327,17 @@ func (ec *executionContext) _DirectoryMembership_integrationID(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_platformID(ctx, field) + return ec.fieldContext_DirectoryGroup_platformID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PlatformID, nil @@ -74831,17 +76350,17 @@ func (ec *executionContext) _DirectoryMembership_platformID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directoryInstanceID(ctx, field) + return ec.fieldContext_DirectoryGroup_directoryInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectoryInstanceID, nil @@ -74854,17 +76373,17 @@ func (ec *executionContext) _DirectoryMembership_directoryInstanceID(ctx context false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directorySyncRunID(ctx, field) + return ec.fieldContext_DirectoryGroup_directorySyncRunID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectorySyncRunID, nil @@ -74877,89 +76396,89 @@ func (ec *executionContext) _DirectoryMembership_directorySyncRunID(ctx context. true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_directoryAccountID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directoryAccountID(ctx, field) + return ec.fieldContext_DirectoryGroup_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryAccountID, nil + return obj.ExternalID, 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_DirectoryMembership_directoryAccountID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_directoryGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_email(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directoryGroupID(ctx, field) + return ec.fieldContext_DirectoryGroup_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryGroupID, nil + return obj.Email, 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 *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directoryGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_role(ctx, field) + return ec.fieldContext_DirectoryGroup_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.DisplayName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryMembershipRole) graphql.Marshaler { - return ec.marshalODirectoryMembershipDirectoryMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryMembershipRole(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_DirectoryMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type DirectoryMembershipDirectoryMembershipRole does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_source(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_description(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_source(ctx, field) + return ec.fieldContext_DirectoryGroup_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -74969,63 +76488,132 @@ func (ec *executionContext) _DirectoryMembership_source(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_classification(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directoryName(ctx, field) + return ec.fieldContext_DirectoryGroup_classification(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryName, nil + return obj.Classification, 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.DirectoryGroupClassification) graphql.Marshaler { + return ec.marshalNDirectoryGroupDirectoryGroupClassification2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryGroupClassification(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_classification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type DirectoryGroupDirectoryGroupClassification does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_firstSeenAt(ctx, field) + return ec.fieldContext_DirectoryGroup_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FirstSeenAt, nil + return obj.Status, 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.DirectoryGroupStatus) graphql.Marshaler { + return ec.marshalNDirectoryGroupDirectoryGroupStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryGroupStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type DirectoryGroupDirectoryGroupStatus does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_externalSharingAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_lastSeenAt(ctx, field) + return ec.fieldContext_DirectoryGroup_externalSharingAllowed(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ExternalSharingAllowed, 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_DirectoryGroup_externalSharingAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_memberCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_memberCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.MemberCount, 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_DirectoryGroup_memberCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_firstSeenAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FirstSeenAt, 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_DirectoryGroup_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_lastSeenAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.LastSeenAt, nil @@ -75038,17 +76626,17 @@ func (ec *executionContext) _DirectoryMembership_lastSeenAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_addedAt(ctx, field) + return ec.fieldContext_DirectoryGroup_addedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.AddedAt, nil @@ -75061,17 +76649,17 @@ func (ec *executionContext) _DirectoryMembership_addedAt(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_removedAt(ctx, field) + return ec.fieldContext_DirectoryGroup_removedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.RemovedAt, nil @@ -75084,17 +76672,17 @@ func (ec *executionContext) _DirectoryMembership_removedAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_observedAt(ctx, field) + return ec.fieldContext_DirectoryGroup_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ObservedAt, nil @@ -75107,40 +76695,63 @@ func (ec *executionContext) _DirectoryMembership_observedAt(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_lastConfirmedRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_profileHash(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_lastConfirmedRunID(ctx, field) + return ec.fieldContext_DirectoryGroup_profileHash(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastConfirmedRunID, nil + return obj.ProfileHash, 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, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryGroup_profileHash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_profile(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_profile(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Profile, 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_DirectoryMembership_lastConfirmedRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_profile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_metadata(ctx, field) + return ec.fieldContext_DirectoryGroup_metadata(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Metadata, nil @@ -75153,17 +76764,86 @@ func (ec *executionContext) _DirectoryMembership_metadata(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroup_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _DirectoryMembership_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_rawProfileFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_owner(ctx, field) + return ec.fieldContext_DirectoryGroup_rawProfileFileID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.RawProfileFileID, 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_DirectoryGroup_rawProfileFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_sourceVersion(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_sourceVersion(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SourceVersion, 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_DirectoryGroup_sourceVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_directoryName(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryName, 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_DirectoryGroup_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroup", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryGroup_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryGroup_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -75176,9 +76856,9 @@ func (ec *executionContext) _DirectoryMembership_owner(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75189,13 +76869,13 @@ func (ec *executionContext) fieldContext_DirectoryMembership_owner(_ context.Con return fc, nil } -func (ec *executionContext) _DirectoryMembership_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_environment(ctx, field) + return ec.fieldContext_DirectoryGroup_environment(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Environment(ctx) @@ -75208,9 +76888,9 @@ func (ec *executionContext) _DirectoryMembership_environment(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75221,13 +76901,13 @@ func (ec *executionContext) fieldContext_DirectoryMembership_environment(_ conte return fc, nil } -func (ec *executionContext) _DirectoryMembership_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_scope(ctx, field) + return ec.fieldContext_DirectoryGroup_scope(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Scope(ctx) @@ -75240,9 +76920,9 @@ func (ec *executionContext) _DirectoryMembership_scope(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75253,13 +76933,13 @@ func (ec *executionContext) fieldContext_DirectoryMembership_scope(_ context.Con return fc, nil } -func (ec *executionContext) _DirectoryMembership_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_integration(ctx, field) + return ec.fieldContext_DirectoryGroup_integration(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Integration(ctx) @@ -75272,9 +76952,9 @@ func (ec *executionContext) _DirectoryMembership_integration(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75285,13 +76965,13 @@ func (ec *executionContext) fieldContext_DirectoryMembership_integration(_ conte return fc, nil } -func (ec *executionContext) _DirectoryMembership_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directorySyncRun(ctx, field) + return ec.fieldContext_DirectoryGroup_directorySyncRun(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectorySyncRun(ctx) @@ -75304,9 +76984,9 @@ func (ec *executionContext) _DirectoryMembership_directorySyncRun(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75317,13 +76997,13 @@ func (ec *executionContext) fieldContext_DirectoryMembership_directorySyncRun(_ return fc, nil } -func (ec *executionContext) _DirectoryMembership_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_platform(ctx, field) + return ec.fieldContext_DirectoryGroup_platform(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Platform(ctx) @@ -75336,9 +77016,9 @@ func (ec *executionContext) _DirectoryMembership_platform(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", Field: field, IsMethod: true, IsResolver: false, @@ -75349,98 +77029,78 @@ func (ec *executionContext) fieldContext_DirectoryMembership_platform(_ context. return fc, nil } -func (ec *executionContext) _DirectoryMembership_directoryAccount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_accounts(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_directoryAccount(ctx, field) + return ec.fieldContext_DirectoryGroup_accounts(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DirectoryAccount(ctx) + fc := graphql.GetFieldContext(ctx) + return obj.Accounts(ctx, 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.DirectoryAccount) graphql.Marshaler { - return ec.marshalNDirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { + return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_directoryAccount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_accounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", 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_DirectoryAccountConnection(ctx, field) }, } - return fc, nil -} - -func (ec *executionContext) _DirectoryMembership_directoryGroup(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_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.marshalNDirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_DirectoryMembership_directoryGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DirectoryMembership", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryGroup(ctx, field) - }, + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_DirectoryGroup_accounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_events(ctx, field) + return ec.fieldContext_DirectoryGroup_workflowObjectRefs(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.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.EventConnection) graphql.Marshaler { - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", 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_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -75450,41 +77110,41 @@ func (ec *executionContext) fieldContext_DirectoryMembership_events(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryMembership_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryGroup_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryMembership_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroup_members(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroup) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembership_workflowObjectRefs(ctx, field) + return ec.fieldContext_DirectoryGroup_members(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.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.DirectoryMembershipOrder), fc.Args["where"].(*generated.DirectoryMembershipWhereInput)) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { - return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { + return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembership_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroup_members(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembership", + Object: "DirectoryGroup", 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_DirectoryMembershipConnection(ctx, field) }, } defer func() { @@ -75494,52 +77154,52 @@ func (ec *executionContext) fieldContext_DirectoryMembership_workflowObjectRefs( } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectoryMembership_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryGroup_members_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectoryMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembershipConnection_edges(ctx, field) + return ec.fieldContext_DirectoryGroupConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryMembershipEdge) graphql.Marshaler { - return ec.marshalODirectoryMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryGroupEdge) graphql.Marshaler { + return ec.marshalODirectoryGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembershipConnection", + Object: "DirectoryGroupConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembershipEdge(ctx, field) + return ec.childFields_DirectoryGroupEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembershipConnection_pageInfo(ctx, field) + return ec.fieldContext_DirectoryGroupConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -75552,9 +77212,9 @@ func (ec *executionContext) _DirectoryMembershipConnection_pageInfo(ctx context. true, ) } -func (ec *executionContext) fieldContext_DirectoryMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembershipConnection", + Object: "DirectoryGroupConnection", Field: field, IsMethod: false, IsResolver: false, @@ -75565,13 +77225,13 @@ func (ec *executionContext) fieldContext_DirectoryMembershipConnection_pageInfo( return fc, nil } -func (ec *executionContext) _DirectoryMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembershipConnection_totalCount(ctx, field) + return ec.fieldContext_DirectoryGroupConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -75584,49 +77244,49 @@ func (ec *executionContext) _DirectoryMembershipConnection_totalCount(ctx contex true, ) } -func (ec *executionContext) fieldContext_DirectoryMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembershipConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroupConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DirectoryMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembershipEdge_node(ctx, field) + return ec.fieldContext_DirectoryGroupEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { - return ec.marshalODirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroup) graphql.Marshaler { + return ec.marshalODirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectoryMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryGroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectoryMembershipEdge", + Object: "DirectoryGroupEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectoryMembership(ctx, field) + return ec.childFields_DirectoryGroup(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectoryMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryGroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryGroupEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectoryMembershipEdge_cursor(ctx, field) + return ec.fieldContext_DirectoryGroupEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -75639,17 +77299,17 @@ func (ec *executionContext) _DirectoryMembershipEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_DirectoryMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectoryMembershipEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryGroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryGroupEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_id(ctx, field) + return ec.fieldContext_DirectoryMembership_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -75662,17 +77322,17 @@ func (ec *executionContext) _DirectorySyncRun_id(ctx context.Context, field grap true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_createdAt(ctx, field) + return ec.fieldContext_DirectoryMembership_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -75685,17 +77345,17 @@ func (ec *executionContext) _DirectorySyncRun_createdAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_updatedAt(ctx, field) + return ec.fieldContext_DirectoryMembership_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -75708,17 +77368,17 @@ func (ec *executionContext) _DirectorySyncRun_updatedAt(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_createdBy(ctx, field) + return ec.fieldContext_DirectoryMembership_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -75731,17 +77391,17 @@ func (ec *executionContext) _DirectorySyncRun_createdBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_updatedBy(ctx, field) + return ec.fieldContext_DirectoryMembership_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -75754,17 +77414,17 @@ func (ec *executionContext) _DirectorySyncRun_updatedBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_updatedByImpersonator(ctx, field) + return ec.fieldContext_DirectoryMembership_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -75777,17 +77437,17 @@ func (ec *executionContext) _DirectorySyncRun_updatedByImpersonator(ctx context. false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_displayID(ctx, field) + return ec.fieldContext_DirectoryMembership_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -75800,17 +77460,17 @@ func (ec *executionContext) _DirectorySyncRun_displayID(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_ownerID(ctx, field) + return ec.fieldContext_DirectoryMembership_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -75823,17 +77483,17 @@ func (ec *executionContext) _DirectorySyncRun_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_environmentName(ctx, field) + return ec.fieldContext_DirectoryMembership_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentName, nil @@ -75846,17 +77506,17 @@ func (ec *executionContext) _DirectorySyncRun_environmentName(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_environmentID(ctx, field) + return ec.fieldContext_DirectoryMembership_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.EnvironmentID, nil @@ -75869,17 +77529,17 @@ func (ec *executionContext) _DirectorySyncRun_environmentID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_scopeName(ctx, field) + return ec.fieldContext_DirectoryMembership_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeName, nil @@ -75892,17 +77552,17 @@ func (ec *executionContext) _DirectorySyncRun_scopeName(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_scopeID(ctx, field) + return ec.fieldContext_DirectoryMembership_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ScopeID, nil @@ -75915,17 +77575,17 @@ func (ec *executionContext) _DirectorySyncRun_scopeID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_integrationID(ctx, field) + return ec.fieldContext_DirectoryMembership_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.IntegrationID, nil @@ -75938,17 +77598,17 @@ func (ec *executionContext) _DirectorySyncRun_integrationID(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_platformID(ctx, field) + return ec.fieldContext_DirectoryMembership_platformID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PlatformID, nil @@ -75961,17 +77621,17 @@ func (ec *executionContext) _DirectorySyncRun_platformID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_directoryInstanceID(ctx, field) + return ec.fieldContext_DirectoryMembership_directoryInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DirectoryInstanceID, nil @@ -75984,89 +77644,112 @@ func (ec *executionContext) _DirectorySyncRun_directoryInstanceID(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directorySyncRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_status(ctx, field) + return ec.fieldContext_DirectoryMembership_directorySyncRunID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.DirectorySyncRunID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DirectorySyncRunStatus) graphql.Marshaler { - return ec.marshalNDirectorySyncRunDirectorySyncRunStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectorySyncRunStatus(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_DirectorySyncRun_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type DirectorySyncRunDirectorySyncRunStatus does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_directorySyncRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_startedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directoryAccountID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_startedAt(ctx, field) + return ec.fieldContext_DirectoryMembership_directoryAccountID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartedAt, nil + return obj.DirectoryAccountID, 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.marshalNID2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_directoryAccountID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directoryGroupID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_completedAt(ctx, field) + return ec.fieldContext_DirectoryMembership_directoryGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.DirectoryGroupID, 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.marshalNID2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryMembership_directoryGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectoryMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_role(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Role, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.DirectoryMembershipRole) graphql.Marshaler { + return ec.marshalODirectoryMembershipDirectoryMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectoryMembershipRole(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type DirectoryMembershipDirectoryMembershipRole does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_sourceCursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_source(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_sourceCursor(ctx, field) + return ec.fieldContext_DirectoryMembership_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceCursor, nil + return obj.Source, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -76076,89 +77759,158 @@ func (ec *executionContext) _DirectorySyncRun_sourceCursor(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_sourceCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_fullCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directoryName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_fullCount(ctx, field) + return ec.fieldContext_DirectoryMembership_directoryName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullCount, nil + return obj.DirectoryName, 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_DirectoryMembership_directoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectoryMembership_firstSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_firstSeenAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FirstSeenAt, 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_DirectorySyncRun_fullCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_firstSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_deltaCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_lastSeenAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_deltaCount(ctx, field) + return ec.fieldContext_DirectoryMembership_lastSeenAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DeltaCount, nil + return obj.LastSeenAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectoryMembership_lastSeenAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _DirectoryMembership_addedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_addedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AddedAt, 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_DirectorySyncRun_deltaCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_addedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_error(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_removedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_error(ctx, field) + return ec.fieldContext_DirectoryMembership_removedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Error, nil + return obj.RemovedAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_removedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_rawManifestFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_observedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_rawManifestFileID(ctx, field) + return ec.fieldContext_DirectoryMembership_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawManifestFileID, nil + return obj.ObservedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryMembership_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _DirectoryMembership_lastConfirmedRunID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_lastConfirmedRunID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.LastConfirmedRunID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -76168,20 +77920,20 @@ func (ec *executionContext) _DirectorySyncRun_rawManifestFileID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_rawManifestFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_lastConfirmedRunID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_stats(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_stats(ctx, field) + return ec.fieldContext_DirectoryMembership_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Stats, nil + return obj.Metadata, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v map[string]any) graphql.Marshaler { @@ -76191,17 +77943,17 @@ func (ec *executionContext) _DirectorySyncRun_stats(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_stats(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembership_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembership", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _DirectorySyncRun_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_owner(ctx, field) + return ec.fieldContext_DirectoryMembership_owner(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Owner(ctx) @@ -76214,9 +77966,9 @@ func (ec *executionContext) _DirectorySyncRun_owner(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", Field: field, IsMethod: true, IsResolver: false, @@ -76227,13 +77979,13 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_owner(_ context.Contex return fc, nil } -func (ec *executionContext) _DirectorySyncRun_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_environment(ctx, field) + return ec.fieldContext_DirectoryMembership_environment(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Environment(ctx) @@ -76246,9 +77998,9 @@ func (ec *executionContext) _DirectorySyncRun_environment(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", Field: field, IsMethod: true, IsResolver: false, @@ -76259,13 +78011,13 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_environment(_ context. return fc, nil } -func (ec *executionContext) _DirectorySyncRun_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_scope(ctx, field) + return ec.fieldContext_DirectoryMembership_scope(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Scope(ctx) @@ -76278,9 +78030,9 @@ func (ec *executionContext) _DirectorySyncRun_scope(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", Field: field, IsMethod: true, IsResolver: false, @@ -76291,13 +78043,13 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_scope(_ context.Contex return fc, nil } -func (ec *executionContext) _DirectorySyncRun_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_integration(ctx, field) + return ec.fieldContext_DirectoryMembership_integration(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Integration(ctx) @@ -76310,9 +78062,9 @@ func (ec *executionContext) _DirectorySyncRun_integration(ctx context.Context, f true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", Field: field, IsMethod: true, IsResolver: false, @@ -76323,13 +78075,45 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_integration(_ context. return fc, nil } -func (ec *executionContext) _DirectorySyncRun_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directorySyncRun(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_platform(ctx, field) + return ec.fieldContext_DirectoryMembership_directorySyncRun(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectorySyncRun(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { + return ec.marshalNDirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryMembership_directorySyncRun(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectoryMembership", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectorySyncRun(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _DirectoryMembership_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_platform(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Platform(ctx) @@ -76342,9 +78126,9 @@ func (ec *executionContext) _DirectorySyncRun_platform(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", Field: field, IsMethod: true, IsResolver: false, @@ -76355,78 +78139,98 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_platform(_ context.Con return fc, nil } -func (ec *executionContext) _DirectorySyncRun_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_directoryAccount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_directoryAccounts(ctx, field) + return ec.fieldContext_DirectoryMembership_directoryAccount(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.DirectoryAccount(ctx) }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { - return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccount) graphql.Marshaler { + return ec.marshalNDirectoryAccount2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccount(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_directoryAccount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", 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_DirectoryAccount(ctx, field) }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectorySyncRun_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err + return fc, nil +} + +func (ec *executionContext) _DirectoryMembership_directoryGroup(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectoryMembership_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.marshalNDirectoryGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroup(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectoryMembership_directoryGroup(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectoryMembership", + 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 } -func (ec *executionContext) _DirectorySyncRun_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_directoryGroups(ctx, field) + return ec.fieldContext_DirectoryMembership_events(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.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.DirectoryGroupConnection) graphql.Marshaler { - return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.EventConnection) graphql.Marshaler { + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", 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_EventConnection(ctx, field) }, } defer func() { @@ -76436,41 +78240,41 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_directoryGroups(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectorySyncRun_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryMembership_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectorySyncRun_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembership_workflowObjectRefs(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembership) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRun_directoryMemberships(ctx, field) + return ec.fieldContext_DirectoryMembership_workflowObjectRefs(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.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.DirectoryMembershipConnection) graphql.Marshaler { - return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.WorkflowObjectRefConnection) graphql.Marshaler { + return ec.marshalNWorkflowObjectRefConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐWorkflowObjectRefConnection(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRun_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembership_workflowObjectRefs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRun", + Object: "DirectoryMembership", 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_WorkflowObjectRefConnection(ctx, field) }, } defer func() { @@ -76480,52 +78284,52 @@ func (ec *executionContext) fieldContext_DirectorySyncRun_directoryMemberships(c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_DirectorySyncRun_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_DirectoryMembership_workflowObjectRefs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _DirectorySyncRunConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRunConnection_edges(ctx, field) + return ec.fieldContext_DirectoryMembershipConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectorySyncRunEdge) graphql.Marshaler { - return ec.marshalODirectorySyncRunEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectoryMembershipEdge) graphql.Marshaler { + return ec.marshalODirectoryMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRunConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRunConnection", + Object: "DirectoryMembershipConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRunEdge(ctx, field) + return ec.childFields_DirectoryMembershipEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectorySyncRunConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRunConnection_pageInfo(ctx, field) + return ec.fieldContext_DirectoryMembershipConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -76538,9 +78342,9 @@ func (ec *executionContext) _DirectorySyncRunConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRunConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRunConnection", + Object: "DirectoryMembershipConnection", Field: field, IsMethod: false, IsResolver: false, @@ -76551,13 +78355,13 @@ func (ec *executionContext) fieldContext_DirectorySyncRunConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _DirectorySyncRunConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRunConnection_totalCount(ctx, field) + return ec.fieldContext_DirectoryMembershipConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -76570,49 +78374,49 @@ func (ec *executionContext) _DirectorySyncRunConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRunConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRunConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembershipConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DirectorySyncRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRunEdge_node(ctx, field) + return ec.fieldContext_DirectoryMembershipEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { - return ec.marshalODirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembership) graphql.Marshaler { + return ec.marshalODirectoryMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembership(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DirectorySyncRunEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DirectoryMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "DirectorySyncRunEdge", + Object: "DirectoryMembershipEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DirectorySyncRun(ctx, field) + return ec.childFields_DirectoryMembership(ctx, field) }, } return fc, nil } -func (ec *executionContext) _DirectorySyncRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectoryMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectoryMembershipEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DirectorySyncRunEdge_cursor(ctx, field) + return ec.fieldContext_DirectoryMembershipEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -76625,17 +78429,17 @@ func (ec *executionContext) _DirectorySyncRunEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_DirectorySyncRunEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DirectorySyncRunEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_DirectoryMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectoryMembershipEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _Discussion_id(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_id(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_id(ctx, field) + return ec.fieldContext_DirectorySyncRun_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -76648,17 +78452,17 @@ func (ec *executionContext) _Discussion_id(ctx context.Context, field graphql.Co true, ) } -func (ec *executionContext) fieldContext_Discussion_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Discussion_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_createdAt(ctx, field) + return ec.fieldContext_DirectorySyncRun_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -76671,17 +78475,17 @@ func (ec *executionContext) _Discussion_createdAt(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Discussion_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Discussion_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_updatedAt(ctx, field) + return ec.fieldContext_DirectorySyncRun_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -76694,17 +78498,17 @@ func (ec *executionContext) _Discussion_updatedAt(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Discussion_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _Discussion_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_createdBy(ctx, field) + return ec.fieldContext_DirectorySyncRun_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -76717,17 +78521,17 @@ func (ec *executionContext) _Discussion_createdBy(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Discussion_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Discussion_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_updatedBy(ctx, field) + return ec.fieldContext_DirectorySyncRun_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -76740,17 +78544,17 @@ func (ec *executionContext) _Discussion_updatedBy(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_Discussion_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Discussion_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_updatedByImpersonator(ctx, field) + return ec.fieldContext_DirectorySyncRun_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -76763,57 +78567,1043 @@ func (ec *executionContext) _Discussion_updatedByImpersonator(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_Discussion_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Discussion_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_displayID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_ownerID(ctx, field) + return ec.fieldContext_DirectorySyncRun_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.DisplayID, 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_Discussion_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Discussion_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Discussion_externalID(ctx, field) + return ec.fieldContext_DirectorySyncRun_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, 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_Discussion_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DirectorySyncRun_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _Discussion_isResolved(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { +func (ec *executionContext) _DirectorySyncRun_environmentName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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_DirectorySyncRun_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_environmentID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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_DirectorySyncRun_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_scopeName(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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_DirectorySyncRun_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_scopeID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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_DirectorySyncRun_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_integrationID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_integrationID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IntegrationID, 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_DirectorySyncRun_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_platformID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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_DirectorySyncRun_platformID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_directoryInstanceID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_directoryInstanceID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DirectoryInstanceID, 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_DirectorySyncRun_directoryInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_status(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_status(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Status, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.DirectorySyncRunStatus) graphql.Marshaler { + return ec.marshalNDirectorySyncRunDirectorySyncRunStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDirectorySyncRunStatus(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type DirectorySyncRunDirectorySyncRunStatus does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_startedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_startedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.StartedAt, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_startedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_completedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_completedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.CompletedAt, 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_DirectorySyncRun_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_sourceCursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_sourceCursor(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SourceCursor, 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_DirectorySyncRun_sourceCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_fullCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_fullCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FullCount, 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_DirectorySyncRun_fullCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_deltaCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_deltaCount(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.DeltaCount, 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_DirectorySyncRun_deltaCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_error(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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.marshalOString2ᚖstring(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_error(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_rawManifestFileID(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_rawManifestFileID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.RawManifestFileID, 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_DirectorySyncRun_rawManifestFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_stats(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_stats(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Stats, 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_DirectorySyncRun_stats(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRun", field, false, false, errors.New("field of type Map does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRun_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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) _DirectorySyncRun_environment(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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 { + return ec.marshalOCustomTypeEnum2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_environment(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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) _DirectorySyncRun_scope(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnum(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_scope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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) _DirectorySyncRun_integration(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_integration(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Integration(ctx) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Integration) graphql.Marshaler { + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_Integration(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRun_platform(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_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ᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatform(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_platform(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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) _DirectorySyncRun_directoryAccounts(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_directoryAccounts(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryAccountConnection) graphql.Marshaler { + return ec.marshalNDirectoryAccountConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryAccountConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_directoryAccounts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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_DirectorySyncRun_directoryAccounts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRun_directoryGroups(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_directoryGroups(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryGroupConnection) graphql.Marshaler { + return ec.marshalNDirectoryGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_directoryGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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_DirectorySyncRun_directoryGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRun_directoryMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRun) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRun_directoryMemberships(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)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectoryMembershipConnection) graphql.Marshaler { + return ec.marshalNDirectoryMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectoryMembershipConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRun_directoryMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRun", + 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_DirectorySyncRun_directoryMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRunConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRunConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*generated.DirectorySyncRunEdge) graphql.Marshaler { + return ec.marshalODirectorySyncRunEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRunEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRunConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRunConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectorySyncRunEdge(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRunConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRunConnection_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_DirectorySyncRunConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRunConnection", + 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) _DirectorySyncRunConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRunConnection_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_DirectorySyncRunConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRunConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _DirectorySyncRunEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRunEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.DirectorySyncRun) graphql.Marshaler { + return ec.marshalODirectorySyncRun2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐDirectorySyncRun(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_DirectorySyncRunEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DirectorySyncRunEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DirectorySyncRun(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _DirectorySyncRunEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DirectorySyncRunEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_DirectorySyncRunEdge_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_DirectorySyncRunEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DirectorySyncRunEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _Discussion_id(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Discussion_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _Discussion_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _Discussion_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Discussion_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Discussion_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_updatedByImpersonator(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedByImpersonator, 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_Discussion_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Discussion_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _Discussion_externalID(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Discussion_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_Discussion_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("Discussion", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _Discussion_isResolved(ctx context.Context, field graphql.CollectedField, obj *generated.Discussion) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, @@ -92849,6 +95639,138 @@ func (ec *executionContext) fieldContext_Group_campaignViewers(ctx context.Conte return fc, nil } +func (ec *executionContext) _Group_audienceEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Group_audienceEditors(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceEditors(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Group_audienceEditors(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Group_audienceEditors_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Group_audienceBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Group_audienceBlockedGroups(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceBlockedGroups(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Group_audienceBlockedGroups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Group_audienceBlockedGroups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Group_audienceViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Group_audienceViewers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceViewers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Group_audienceViewers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Group_audienceViewers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Group_procedureEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -94013,6 +96935,50 @@ func (ec *executionContext) fieldContext_Group_campaignTargets(ctx context.Conte return fc, nil } +func (ec *executionContext) _Group_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Group_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Group_audienceMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Group", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Group_audienceMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Group_members(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -97544,6 +100510,50 @@ func (ec *executionContext) fieldContext_IdentityHolder_campaigns(ctx context.Co return fc, nil } +func (ec *executionContext) _IdentityHolder_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *generated.IdentityHolder) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_IdentityHolder_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_IdentityHolder_audienceMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IdentityHolder", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_IdentityHolder_audienceMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _IdentityHolder_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.IdentityHolder) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -110628,6 +113638,94 @@ func (ec *executionContext) fieldContext_Organization_assetCreators(ctx context. return fc, nil } +func (ec *executionContext) _Organization_audienceCreators(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_audienceCreators(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceCreators(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Organization_audienceCreators(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_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_audienceCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Organization_audienceMemberCreators(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_audienceMemberCreators(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMemberCreators(ctx, 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ᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Organization_audienceMemberCreators(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_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_audienceMemberCreators_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Organization_campaignCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -115948,6 +119046,94 @@ func (ec *executionContext) fieldContext_Organization_exports(ctx context.Contex return fc, nil } +func (ec *executionContext) _Organization_audiences(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_audiences(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.Audiences(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Organization_audiences(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_AudienceConnection(ctx, field) + }, + } + defer func() { + if 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_audiences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Organization_audienceMembers(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_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Organization_audienceMembers(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_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMembers_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) { return graphql.ResolveField( ctx, @@ -126999,6 +130185,94 @@ func (ec *executionContext) fieldContext_Query_assets(ctx context.Context, field return fc, nil } +func (ec *executionContext) _Query_audiences(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_audiences(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Audiences(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceOrder), fc.Args["where"].(*generated.AudienceWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audiences(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_AudienceConnection(ctx, field) + }, + } + defer func() { + if 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_audiences_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_audienceMembers(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_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audienceMembers(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_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMembers_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) { return graphql.ResolveField( ctx, @@ -130871,6 +134145,94 @@ func (ec *executionContext) fieldContext_Query_asset(ctx context.Context, field return fc, nil } +func (ec *executionContext) _Query_audience(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_audience(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Audience(ctx, fc.Args["id"].(string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + return ec.marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audience(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_Audience(ctx, field) + }, + } + defer func() { + if 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_audience_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_audienceMember(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_audienceMember(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceMember(ctx, fc.Args["id"].(string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + return ec.marshalNAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audienceMember(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_AudienceMember(ctx, field) + }, + } + defer func() { + if 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_audienceMember_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) { return graphql.ResolveField( ctx, @@ -133721,6 +137083,94 @@ func (ec *executionContext) fieldContext_Query_assetSearch(ctx context.Context, return fc, nil } +func (ec *executionContext) _Query_audienceSearch(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_audienceSearch(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceSearch(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.AudienceConnection) graphql.Marshaler { + return ec.marshalOAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Query_audienceSearch(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_AudienceConnection(ctx, field) + }, + } + defer func() { + if 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_audienceSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_audienceMemberSearch(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_audienceMemberSearch(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceMemberSearch(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.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalOAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_Query_audienceMemberSearch(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_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMemberSearch_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) { return graphql.ResolveField( ctx, @@ -150685,6 +154135,50 @@ func (ec *executionContext) fieldContext_Subscriber_user(_ context.Context, fiel return fc, nil } +func (ec *executionContext) _Subscriber_audienceMembers(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_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Subscriber_audienceMembers(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_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -163739,6 +167233,50 @@ func (ec *executionContext) fieldContext_User_campaignTargets(ctx context.Contex return fc, nil } +func (ec *executionContext) _User_audienceMembers(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_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return obj.AudienceMembers(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].([]*generated.AudienceMemberOrder), fc.Args["where"].(*generated.AudienceMemberWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_User_audienceMembers(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_AudienceMemberConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMembers_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) { return graphql.ResolveField( ctx, @@ -185911,384 +189449,2535 @@ func (ec *executionContext) unmarshalInputAssetWhereInput(ctx context.Context, o return it, err } it.HasViewersWith = data - case "hasInternalOwnerUser": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerUser")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasInternalOwnerUser = data - case "hasInternalOwnerUserWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerUserWith")) - data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasInternalOwnerUserWith = data - case "hasInternalOwnerGroup": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerGroup")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasInternalOwnerGroup = data - case "hasInternalOwnerGroupWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerGroupWith")) - data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasInternalOwnerGroupWith = data - case "hasAssetSubtype": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetSubtype")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasAssetSubtype = data - case "hasAssetSubtypeWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetSubtypeWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasAssetSubtypeWith = data - case "hasAssetDataClassification": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetDataClassification")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasAssetDataClassification = data - case "hasAssetDataClassificationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetDataClassificationWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasAssetDataClassificationWith = data - case "hasEnvironment": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEnvironment")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasEnvironment = data - case "hasEnvironmentWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEnvironmentWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasEnvironmentWith = data - case "hasScope": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScope")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasScope = data - case "hasScopeWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScopeWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasScopeWith = data - case "hasAccessModel": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAccessModel")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasAccessModel = data - case "hasAccessModelWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAccessModelWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasAccessModelWith = data - case "hasEncryptionStatus": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEncryptionStatus")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasEncryptionStatus = data - case "hasEncryptionStatusWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEncryptionStatusWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasEncryptionStatusWith = data - case "hasSecurityTier": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecurityTier")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasSecurityTier = data - case "hasSecurityTierWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecurityTierWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasSecurityTierWith = data - case "hasCriticality": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCriticality")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasCriticality = data - case "hasCriticalityWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCriticalityWith")) - data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasCriticalityWith = data - case "hasScans": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScans")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasScans = data - case "hasScansWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScansWith")) - data, err := ec.unmarshalOScanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasScansWith = data - case "hasEntities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasEntities = data - case "hasEntitiesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitiesWith")) - data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasEntitiesWith = data - case "hasPlatforms": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatforms")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasPlatforms = data - case "hasPlatformsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatformsWith")) - data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasPlatformsWith = data - case "hasSystemDetails": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetails")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasSystemDetails = data - case "hasSystemDetailsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetailsWith")) - data, err := ec.unmarshalOSystemDetailWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasSystemDetailsWith = data - case "hasOutOfScopePlatforms": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOutOfScopePlatforms")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasOutOfScopePlatforms = data - case "hasOutOfScopePlatformsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOutOfScopePlatformsWith")) - data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasOutOfScopePlatformsWith = data - case "hasIdentityHolders": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolders")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasIdentityHolders = data - case "hasIdentityHoldersWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHoldersWith")) - data, err := ec.unmarshalOIdentityHolderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasIdentityHoldersWith = data - case "hasControls": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasControls = data - case "hasControlsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlsWith")) - data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasControlsWith = data - case "hasSubcontrols": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrols")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasSubcontrols = data - case "hasSubcontrolsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrolsWith")) - data, err := ec.unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasSubcontrolsWith = data - case "hasInternalPolicies": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalPolicies")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasInternalPolicies = data - case "hasInternalPoliciesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalPoliciesWith")) - data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasInternalPoliciesWith = data - case "hasFindings": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindings")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasFindings = data - case "hasFindingsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingsWith")) - data, err := ec.unmarshalOFindingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasFindingsWith = data - case "hasVulnerabilities": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilities")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasVulnerabilities = data - case "hasVulnerabilitiesWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilitiesWith")) - data, err := ec.unmarshalOVulnerabilityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasVulnerabilitiesWith = data - case "hasReviews": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviews")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasReviews = data - case "hasReviewsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviewsWith")) - data, err := ec.unmarshalOReviewWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasReviewsWith = data - case "hasRemediations": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediations")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasRemediations = data - case "hasRemediationsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediationsWith")) - data, err := ec.unmarshalORemediationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasRemediationsWith = data - case "hasSourcePlatform": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSourcePlatform")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasSourcePlatform = data - case "hasSourcePlatformWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSourcePlatformWith")) - data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasSourcePlatformWith = data - case "hasIntegration": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegration")) - data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) - if err != nil { - return it, err - } - it.HasIntegration = data - case "hasIntegrationWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWith")) - data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.HasIntegrationWith = data - case "hasConnectedAssets": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedAssets")) + case "hasInternalOwnerUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerUser")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInternalOwnerUser = data + case "hasInternalOwnerUserWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerUserWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasInternalOwnerUserWith = data + case "hasInternalOwnerGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerGroup")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInternalOwnerGroup = data + case "hasInternalOwnerGroupWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalOwnerGroupWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasInternalOwnerGroupWith = data + case "hasAssetSubtype": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetSubtype")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAssetSubtype = data + case "hasAssetSubtypeWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetSubtypeWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAssetSubtypeWith = data + case "hasAssetDataClassification": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetDataClassification")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAssetDataClassification = data + case "hasAssetDataClassificationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAssetDataClassificationWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAssetDataClassificationWith = data + case "hasEnvironment": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEnvironment")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEnvironment = data + case "hasEnvironmentWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEnvironmentWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEnvironmentWith = data + case "hasScope": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScope")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasScope = data + case "hasScopeWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScopeWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasScopeWith = data + case "hasAccessModel": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAccessModel")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAccessModel = data + case "hasAccessModelWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAccessModelWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAccessModelWith = data + case "hasEncryptionStatus": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEncryptionStatus")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEncryptionStatus = data + case "hasEncryptionStatusWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEncryptionStatusWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEncryptionStatusWith = data + case "hasSecurityTier": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecurityTier")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSecurityTier = data + case "hasSecurityTierWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSecurityTierWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSecurityTierWith = data + case "hasCriticality": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCriticality")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasCriticality = data + case "hasCriticalityWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCriticalityWith")) + data, err := ec.unmarshalOCustomTypeEnumWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCustomTypeEnumWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasCriticalityWith = data + case "hasScans": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScans")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasScans = data + case "hasScansWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasScansWith")) + data, err := ec.unmarshalOScanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐScanWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasScansWith = data + case "hasEntities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntities")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEntities = data + case "hasEntitiesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEntitiesWith")) + data, err := ec.unmarshalOEntityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐEntityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEntitiesWith = data + case "hasPlatforms": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatforms")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasPlatforms = data + case "hasPlatformsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasPlatformsWith")) + data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasPlatformsWith = data + case "hasSystemDetails": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetails")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSystemDetails = data + case "hasSystemDetailsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSystemDetailsWith")) + data, err := ec.unmarshalOSystemDetailWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSystemDetailWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSystemDetailsWith = data + case "hasOutOfScopePlatforms": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOutOfScopePlatforms")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOutOfScopePlatforms = data + case "hasOutOfScopePlatformsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOutOfScopePlatformsWith")) + data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOutOfScopePlatformsWith = data + case "hasIdentityHolders": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolders")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHolders = data + case "hasIdentityHoldersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHoldersWith")) + data, err := ec.unmarshalOIdentityHolderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHoldersWith = data + case "hasControls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasControls = data + case "hasControlsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControlsWith")) + data, err := ec.unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasControlsWith = data + case "hasSubcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrols")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSubcontrols = data + case "hasSubcontrolsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrolsWith")) + data, err := ec.unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubcontrolsWith = data + case "hasInternalPolicies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalPolicies")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasInternalPolicies = data + case "hasInternalPoliciesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasInternalPoliciesWith")) + data, err := ec.unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasInternalPoliciesWith = data + case "hasFindings": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindings")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasFindings = data + case "hasFindingsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFindingsWith")) + data, err := ec.unmarshalOFindingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐFindingWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasFindingsWith = data + case "hasVulnerabilities": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilities")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasVulnerabilities = data + case "hasVulnerabilitiesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasVulnerabilitiesWith")) + data, err := ec.unmarshalOVulnerabilityWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐVulnerabilityWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasVulnerabilitiesWith = data + case "hasReviews": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviews")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasReviews = data + case "hasReviewsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasReviewsWith")) + data, err := ec.unmarshalOReviewWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐReviewWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasReviewsWith = data + case "hasRemediations": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediations")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasRemediations = data + case "hasRemediationsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasRemediationsWith")) + data, err := ec.unmarshalORemediationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐRemediationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasRemediationsWith = data + case "hasSourcePlatform": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSourcePlatform")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSourcePlatform = data + case "hasSourcePlatformWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSourcePlatformWith")) + data, err := ec.unmarshalOPlatformWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐPlatformWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSourcePlatformWith = data + case "hasIntegration": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegration")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIntegration = data + case "hasIntegrationWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIntegrationWith")) + data, err := ec.unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIntegrationWith = data + case "hasConnectedAssets": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedAssets")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasConnectedAssets = data + case "hasConnectedAssetsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedAssetsWith")) + data, err := ec.unmarshalOAssetWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasConnectedAssetsWith = data + case "hasConnectedFrom": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedFrom")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasConnectedFrom = data + case "hasConnectedFromWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedFromWith")) + data, err := ec.unmarshalOAssetWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasConnectedFromWith = data + case "tagsHas": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tagsHas")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TagsHas = data + case "categoriesHas": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoriesHas")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.CategoriesHas = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceMemberOrder(ctx context.Context, obj any) (generated.AudienceMemberOrder, error) { + var it generated.AudienceMemberOrder + 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.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNAudienceMemberOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceMemberWhereInput(ctx context.Context, obj any) (generated.AudienceMemberWhereInput, error) { + var it generated.AudienceMemberWhereInput + 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", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "audienceID", "audienceIDNEQ", "audienceIDIn", "audienceIDNotIn", "audienceIDContains", "audienceIDHasPrefix", "audienceIDHasSuffix", "audienceIDEqualFold", "audienceIDContainsFold", "contactID", "contactIDNEQ", "contactIDIn", "contactIDNotIn", "contactIDContains", "contactIDHasPrefix", "contactIDHasSuffix", "contactIDIsNil", "contactIDNotNil", "contactIDEqualFold", "contactIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold", "identityHolderID", "identityHolderIDNEQ", "identityHolderIDIn", "identityHolderIDNotIn", "identityHolderIDContains", "identityHolderIDHasPrefix", "identityHolderIDHasSuffix", "identityHolderIDIsNil", "identityHolderIDNotNil", "identityHolderIDEqualFold", "identityHolderIDContainsFold", "subscriberID", "subscriberIDNEQ", "subscriberIDIn", "subscriberIDNotIn", "subscriberIDContains", "subscriberIDHasPrefix", "subscriberIDHasSuffix", "subscriberIDIsNil", "subscriberIDNotNil", "subscriberIDEqualFold", "subscriberIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameIsNil", "fullNameNotNil", "fullNameEqualFold", "fullNameContainsFold", "hasOwner", "hasOwnerWith", "hasAudience", "hasAudienceWith", "hasContact", "hasContactWith", "hasUser", "hasUserWith", "hasGroup", "hasGroupWith", "hasIdentityHolder", "hasIdentityHolderWith", "hasSubscriber", "hasSubscriberWith", "tagsHas"} + 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.unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(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 "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 "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 "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 "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 "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 "updatedByImpersonator": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonator")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonator = data + case "updatedByImpersonatorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNEQ = data + case "updatedByImpersonatorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIn = data + case "updatedByImpersonatorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotIn = data + case "updatedByImpersonatorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContains = data + case "updatedByImpersonatorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasPrefix = data + case "updatedByImpersonatorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasSuffix = data + case "updatedByImpersonatorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIsNil = data + case "updatedByImpersonatorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotNil = data + case "updatedByImpersonatorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorEqualFold = data + case "updatedByImpersonatorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContainsFold = data + case "displayID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayID = data + case "displayIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNEQ = data + case "displayIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDIn = data + case "displayIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNotIn = data + case "displayIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContains = data + case "displayIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasPrefix = data + case "displayIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasSuffix = data + case "displayIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDEqualFold = data + case "displayIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContainsFold = 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 "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 "audienceID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceID = data + case "audienceIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDNEQ = data + case "audienceIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDIn = data + case "audienceIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDNotIn = data + case "audienceIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDContains = data + case "audienceIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDHasPrefix = data + case "audienceIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDHasSuffix = data + case "audienceIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDEqualFold = data + case "audienceIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDContainsFold = data + case "contactID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactID = data + case "contactIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNEQ = data + case "contactIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDIn = data + case "contactIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNotIn = data + case "contactIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDContains = data + case "contactIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDHasPrefix = data + case "contactIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDHasSuffix = data + case "contactIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ContactIDIsNil = data + case "contactIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNotNil = data + case "contactIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDEqualFold = data + case "contactIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "userIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDNEQ = data + case "userIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDIn = data + case "userIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDNotIn = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDContains = data + case "userIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDHasPrefix = data + case "userIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDHasSuffix = data + case "userIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UserIDIsNil = data + case "userIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UserIDNotNil = data + case "userIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDEqualFold = data + case "userIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDContainsFold = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupID = data + case "groupIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNEQ = data + case "groupIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDIn = data + case "groupIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNotIn = data + case "groupIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDContains = data + case "groupIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDHasPrefix = data + case "groupIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDHasSuffix = data + case "groupIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GroupIDIsNil = data + case "groupIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNotNil = data + case "groupIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDEqualFold = data + case "groupIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDContainsFold = data + case "identityHolderID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderID = data + case "identityHolderIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNEQ = data + case "identityHolderIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDIn = data + case "identityHolderIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNotIn = data + case "identityHolderIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDContains = data + case "identityHolderIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDHasPrefix = data + case "identityHolderIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDHasSuffix = data + case "identityHolderIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDIsNil = data + case "identityHolderIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNotNil = data + case "identityHolderIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDEqualFold = data + case "identityHolderIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDContainsFold = data + case "subscriberID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberID = data + case "subscriberIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNEQ")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNEQ = data + case "subscriberIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDIn = data + case "subscriberIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNotIn")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNotIn = data + case "subscriberIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDContains")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDContains = data + case "subscriberIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDHasPrefix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDHasPrefix = data + case "subscriberIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDHasSuffix")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDHasSuffix = data + case "subscriberIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDIsNil = data + case "subscriberIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNotNil = data + case "subscriberIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDEqualFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDEqualFold = data + case "subscriberIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDContainsFold")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDContainsFold = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Email = data + case "emailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailNEQ = data + case "emailIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailIn = data + case "emailNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailNotIn = data + case "emailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailContains = data + case "emailHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailHasPrefix = data + case "emailHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailHasSuffix = data + case "emailEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailEqualFold = data + case "emailContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailContainsFold = data + case "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullName = data + case "fullNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameNEQ = data + case "fullNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FullNameIn = data + case "fullNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FullNameNotIn = data + case "fullNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameContains = data + case "fullNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameHasPrefix = data + case "fullNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameHasSuffix = data + case "fullNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FullNameIsNil = data + case "fullNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FullNameNotNil = data + case "fullNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameEqualFold = data + case "fullNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameContainsFold = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasAudience": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudience")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudience = data + case "hasAudienceWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceWith = data + case "hasContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContact")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasContact = data + case "hasContactWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasContactWith")) + data, err := ec.unmarshalOContactWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐContactWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasContactWith = data + case "hasUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUser")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasUser = data + case "hasUserWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasUserWith")) + data, err := ec.unmarshalOUserWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUserWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasUserWith = data + case "hasGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroup")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasGroup = data + case "hasGroupWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasGroupWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasGroupWith = data + case "hasIdentityHolder": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolder")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHolder = data + case "hasIdentityHolderWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasIdentityHolderWith")) + data, err := ec.unmarshalOIdentityHolderWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐIdentityHolderWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasIdentityHolderWith = data + case "hasSubscriber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscriber")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasSubscriber = data + case "hasSubscriberWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubscriberWith")) + data, err := ec.unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasSubscriberWith = data + case "tagsHas": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tagsHas")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.TagsHas = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceOrder(ctx context.Context, obj any) (generated.AudienceOrder, error) { + var it generated.AudienceOrder + 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.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNAudienceOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceWhereInput(ctx context.Context, obj any) (generated.AudienceWhereInput, error) { + var it generated.AudienceWhereInput + 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", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "audienceType", "audienceTypeNEQ", "audienceTypeIn", "audienceTypeNotIn", "hasOwner", "hasOwnerWith", "hasBlockedGroups", "hasBlockedGroupsWith", "hasEditors", "hasEditorsWith", "hasViewers", "hasViewersWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasCampaigns", "hasCampaignsWith", "tagsHas"} + 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.unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(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 "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 "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 "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 "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 "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 "updatedByImpersonator": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonator")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonator = data + case "updatedByImpersonatorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNEQ = data + case "updatedByImpersonatorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIn = data + case "updatedByImpersonatorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotIn = data + case "updatedByImpersonatorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContains = data + case "updatedByImpersonatorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasPrefix = data + case "updatedByImpersonatorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasSuffix = data + case "updatedByImpersonatorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIsNil = data + case "updatedByImpersonatorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotNil = data + case "updatedByImpersonatorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorEqualFold = data + case "updatedByImpersonatorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContainsFold = data + case "displayID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayID = data + case "displayIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNEQ = data + case "displayIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDIn = data + case "displayIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNotIn = data + case "displayIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContains = data + case "displayIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasPrefix = data + case "displayIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasSuffix = data + case "displayIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDEqualFold = data + case "displayIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContainsFold = 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 "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 "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 "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "descriptionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNEQ = data + case "descriptionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DescriptionIn = data + case "descriptionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNotIn = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionContains = data + case "descriptionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionHasPrefix = data + case "descriptionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DescriptionIsNil = data + case "descriptionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNotNil = data + case "descriptionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionEqualFold = data + case "descriptionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionContainsFold = data + case "audienceType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceType")) + data, err := ec.unmarshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceType = data + case "audienceTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeNEQ")) + data, err := ec.unmarshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeNEQ = data + case "audienceTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeIn")) + data, err := ec.unmarshalOAudienceAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeIn = data + case "audienceTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeNotIn")) + data, err := ec.unmarshalOAudienceAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeNotIn = data + case "hasOwner": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwner")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasOwner = data + case "hasOwnerWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasOwnerWith")) + data, err := ec.unmarshalOOrganizationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasOwnerWith = data + case "hasBlockedGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBlockedGroups")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasBlockedGroups = data + case "hasBlockedGroupsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasBlockedGroupsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasBlockedGroupsWith = data + case "hasEditors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEditors")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasEditors = data + case "hasEditorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasEditorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasEditorsWith = data + case "hasViewers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasViewers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasViewers = data + case "hasViewersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasViewersWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasViewersWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasConnectedAssets = data - case "hasConnectedAssetsWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedAssetsWith")) - data, err := ec.unmarshalOAssetWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInputᚄ(ctx, v) + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasConnectedAssetsWith = data - case "hasConnectedFrom": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedFrom")) + it.HasAudienceMembersWith = data + case "hasCampaigns": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaigns")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) if err != nil { return it, err } - it.HasConnectedFrom = data - case "hasConnectedFromWith": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasConnectedFromWith")) - data, err := ec.unmarshalOAssetWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAssetWhereInputᚄ(ctx, v) + it.HasCampaigns = data + case "hasCampaignsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignsWith")) + data, err := ec.unmarshalOCampaignWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignWhereInputᚄ(ctx, v) if err != nil { return it, err } - it.HasConnectedFromWith = data + it.HasCampaignsWith = data case "tagsHas": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tagsHas")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -186296,13 +191985,6 @@ func (ec *executionContext) unmarshalInputAssetWhereInput(ctx context.Context, o return it, err } it.TagsHas = data - case "categoriesHas": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("categoriesHas")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.CategoriesHas = data } } return it, nil @@ -187670,7 +193352,7 @@ func (ec *executionContext) unmarshalInputCampaignWhereInput(ctx context.Context asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "internalOwner", "internalOwnerNEQ", "internalOwnerIn", "internalOwnerNotIn", "internalOwnerContains", "internalOwnerHasPrefix", "internalOwnerHasSuffix", "internalOwnerIsNil", "internalOwnerNotNil", "internalOwnerEqualFold", "internalOwnerContainsFold", "internalOwnerUserID", "internalOwnerUserIDNEQ", "internalOwnerUserIDIn", "internalOwnerUserIDNotIn", "internalOwnerUserIDContains", "internalOwnerUserIDHasPrefix", "internalOwnerUserIDHasSuffix", "internalOwnerUserIDIsNil", "internalOwnerUserIDNotNil", "internalOwnerUserIDEqualFold", "internalOwnerUserIDContainsFold", "internalOwnerGroupID", "internalOwnerGroupIDNEQ", "internalOwnerGroupIDIn", "internalOwnerGroupIDNotIn", "internalOwnerGroupIDContains", "internalOwnerGroupIDHasPrefix", "internalOwnerGroupIDHasSuffix", "internalOwnerGroupIDIsNil", "internalOwnerGroupIDNotNil", "internalOwnerGroupIDEqualFold", "internalOwnerGroupIDContainsFold", "workflowEligibleMarker", "workflowEligibleMarkerNEQ", "workflowEligibleMarkerIsNil", "workflowEligibleMarkerNotNil", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "campaignType", "campaignTypeNEQ", "campaignTypeIn", "campaignTypeNotIn", "status", "statusNEQ", "statusIn", "statusNotIn", "isActive", "isActiveNEQ", "scheduledAt", "scheduledAtGT", "scheduledAtGTE", "scheduledAtLT", "scheduledAtLTE", "scheduledAtIsNil", "scheduledAtNotNil", "launchedAt", "launchedAtGT", "launchedAtGTE", "launchedAtLT", "launchedAtLTE", "launchedAtIsNil", "launchedAtNotNil", "completedAt", "completedAtGT", "completedAtGTE", "completedAtLT", "completedAtLTE", "completedAtIsNil", "completedAtNotNil", "dueDate", "dueDateGT", "dueDateGTE", "dueDateLT", "dueDateLTE", "dueDateIsNil", "dueDateNotNil", "isRecurring", "isRecurringNEQ", "recurrenceFrequency", "recurrenceFrequencyNEQ", "recurrenceFrequencyIn", "recurrenceFrequencyNotIn", "recurrenceFrequencyIsNil", "recurrenceFrequencyNotNil", "recurrenceInterval", "recurrenceIntervalNEQ", "recurrenceIntervalGT", "recurrenceIntervalGTE", "recurrenceIntervalLT", "recurrenceIntervalLTE", "recurrenceIntervalIsNil", "recurrenceIntervalNotNil", "recurrenceTimezone", "recurrenceTimezoneNEQ", "recurrenceTimezoneIn", "recurrenceTimezoneNotIn", "recurrenceTimezoneContains", "recurrenceTimezoneHasPrefix", "recurrenceTimezoneHasSuffix", "recurrenceTimezoneIsNil", "recurrenceTimezoneNotNil", "recurrenceTimezoneEqualFold", "recurrenceTimezoneContainsFold", "lastRunAt", "lastRunAtGT", "lastRunAtGTE", "lastRunAtLT", "lastRunAtLTE", "lastRunAtIsNil", "lastRunAtNotNil", "nextRunAt", "nextRunAtGT", "nextRunAtGTE", "nextRunAtLT", "nextRunAtLTE", "nextRunAtIsNil", "nextRunAtNotNil", "recurrenceEndAt", "recurrenceEndAtGT", "recurrenceEndAtGTE", "recurrenceEndAtLT", "recurrenceEndAtLTE", "recurrenceEndAtIsNil", "recurrenceEndAtNotNil", "recipientCount", "recipientCountNEQ", "recipientCountGT", "recipientCountGTE", "recipientCountLT", "recipientCountLTE", "recipientCountIsNil", "recipientCountNotNil", "resendCount", "resendCountNEQ", "resendCountGT", "resendCountGTE", "resendCountLT", "resendCountLTE", "resendCountIsNil", "resendCountNotNil", "lastResentAt", "lastResentAtGT", "lastResentAtGTE", "lastResentAtLT", "lastResentAtLTE", "lastResentAtIsNil", "lastResentAtNotNil", "entityID", "entityIDNEQ", "entityIDIn", "entityIDNotIn", "entityIDContains", "entityIDHasPrefix", "entityIDHasSuffix", "entityIDIsNil", "entityIDNotNil", "entityIDEqualFold", "entityIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDIsNil", "templateIDNotNil", "templateIDEqualFold", "templateIDContainsFold", "assessmentID", "assessmentIDNEQ", "assessmentIDIn", "assessmentIDNotIn", "assessmentIDContains", "assessmentIDHasPrefix", "assessmentIDHasSuffix", "assessmentIDIsNil", "assessmentIDNotNil", "assessmentIDEqualFold", "assessmentIDContainsFold", "emailTemplateID", "emailTemplateIDNEQ", "emailTemplateIDIn", "emailTemplateIDNotIn", "emailTemplateIDContains", "emailTemplateIDHasPrefix", "emailTemplateIDHasSuffix", "emailTemplateIDIsNil", "emailTemplateIDNotNil", "emailTemplateIDEqualFold", "emailTemplateIDContainsFold", "integrationID", "integrationIDNEQ", "integrationIDIn", "integrationIDNotIn", "integrationIDContains", "integrationIDHasPrefix", "integrationIDHasSuffix", "integrationIDIsNil", "integrationIDNotNil", "integrationIDEqualFold", "integrationIDContainsFold", "emailBrandingID", "emailBrandingIDNEQ", "emailBrandingIDIn", "emailBrandingIDNotIn", "emailBrandingIDContains", "emailBrandingIDHasPrefix", "emailBrandingIDHasSuffix", "emailBrandingIDIsNil", "emailBrandingIDNotNil", "emailBrandingIDEqualFold", "emailBrandingIDContainsFold", "trustCenterID", "trustCenterIDNEQ", "trustCenterIDIn", "trustCenterIDNotIn", "trustCenterIDContains", "trustCenterIDHasPrefix", "trustCenterIDHasSuffix", "trustCenterIDIsNil", "trustCenterIDNotNil", "trustCenterIDEqualFold", "trustCenterIDContainsFold", "hasOwner", "hasOwnerWith", "hasBlockedGroups", "hasBlockedGroupsWith", "hasEditors", "hasEditorsWith", "hasViewers", "hasViewersWith", "hasInternalOwnerUser", "hasInternalOwnerUserWith", "hasInternalOwnerGroup", "hasInternalOwnerGroupWith", "hasAssessment", "hasAssessmentWith", "hasTemplate", "hasTemplateWith", "hasIntegration", "hasIntegrationWith", "hasEmailTemplate", "hasEmailTemplateWith", "hasEntity", "hasEntityWith", "hasTrustCenter", "hasTrustCenterWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasContacts", "hasContactsWith", "hasUsers", "hasUsersWith", "hasGroups", "hasGroupsWith", "hasIdentityHolders", "hasIdentityHoldersWith", "hasControls", "hasControlsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "tagsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "internalOwner", "internalOwnerNEQ", "internalOwnerIn", "internalOwnerNotIn", "internalOwnerContains", "internalOwnerHasPrefix", "internalOwnerHasSuffix", "internalOwnerIsNil", "internalOwnerNotNil", "internalOwnerEqualFold", "internalOwnerContainsFold", "internalOwnerUserID", "internalOwnerUserIDNEQ", "internalOwnerUserIDIn", "internalOwnerUserIDNotIn", "internalOwnerUserIDContains", "internalOwnerUserIDHasPrefix", "internalOwnerUserIDHasSuffix", "internalOwnerUserIDIsNil", "internalOwnerUserIDNotNil", "internalOwnerUserIDEqualFold", "internalOwnerUserIDContainsFold", "internalOwnerGroupID", "internalOwnerGroupIDNEQ", "internalOwnerGroupIDIn", "internalOwnerGroupIDNotIn", "internalOwnerGroupIDContains", "internalOwnerGroupIDHasPrefix", "internalOwnerGroupIDHasSuffix", "internalOwnerGroupIDIsNil", "internalOwnerGroupIDNotNil", "internalOwnerGroupIDEqualFold", "internalOwnerGroupIDContainsFold", "workflowEligibleMarker", "workflowEligibleMarkerNEQ", "workflowEligibleMarkerIsNil", "workflowEligibleMarkerNotNil", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "campaignType", "campaignTypeNEQ", "campaignTypeIn", "campaignTypeNotIn", "status", "statusNEQ", "statusIn", "statusNotIn", "isActive", "isActiveNEQ", "scheduledAt", "scheduledAtGT", "scheduledAtGTE", "scheduledAtLT", "scheduledAtLTE", "scheduledAtIsNil", "scheduledAtNotNil", "launchedAt", "launchedAtGT", "launchedAtGTE", "launchedAtLT", "launchedAtLTE", "launchedAtIsNil", "launchedAtNotNil", "completedAt", "completedAtGT", "completedAtGTE", "completedAtLT", "completedAtLTE", "completedAtIsNil", "completedAtNotNil", "dueDate", "dueDateGT", "dueDateGTE", "dueDateLT", "dueDateLTE", "dueDateIsNil", "dueDateNotNil", "isRecurring", "isRecurringNEQ", "recurrenceFrequency", "recurrenceFrequencyNEQ", "recurrenceFrequencyIn", "recurrenceFrequencyNotIn", "recurrenceFrequencyIsNil", "recurrenceFrequencyNotNil", "recurrenceInterval", "recurrenceIntervalNEQ", "recurrenceIntervalGT", "recurrenceIntervalGTE", "recurrenceIntervalLT", "recurrenceIntervalLTE", "recurrenceIntervalIsNil", "recurrenceIntervalNotNil", "recurrenceTimezone", "recurrenceTimezoneNEQ", "recurrenceTimezoneIn", "recurrenceTimezoneNotIn", "recurrenceTimezoneContains", "recurrenceTimezoneHasPrefix", "recurrenceTimezoneHasSuffix", "recurrenceTimezoneIsNil", "recurrenceTimezoneNotNil", "recurrenceTimezoneEqualFold", "recurrenceTimezoneContainsFold", "lastRunAt", "lastRunAtGT", "lastRunAtGTE", "lastRunAtLT", "lastRunAtLTE", "lastRunAtIsNil", "lastRunAtNotNil", "nextRunAt", "nextRunAtGT", "nextRunAtGTE", "nextRunAtLT", "nextRunAtLTE", "nextRunAtIsNil", "nextRunAtNotNil", "recurrenceEndAt", "recurrenceEndAtGT", "recurrenceEndAtGTE", "recurrenceEndAtLT", "recurrenceEndAtLTE", "recurrenceEndAtIsNil", "recurrenceEndAtNotNil", "recipientCount", "recipientCountNEQ", "recipientCountGT", "recipientCountGTE", "recipientCountLT", "recipientCountLTE", "recipientCountIsNil", "recipientCountNotNil", "resendCount", "resendCountNEQ", "resendCountGT", "resendCountGTE", "resendCountLT", "resendCountLTE", "resendCountIsNil", "resendCountNotNil", "lastResentAt", "lastResentAtGT", "lastResentAtGTE", "lastResentAtLT", "lastResentAtLTE", "lastResentAtIsNil", "lastResentAtNotNil", "entityID", "entityIDNEQ", "entityIDIn", "entityIDNotIn", "entityIDContains", "entityIDHasPrefix", "entityIDHasSuffix", "entityIDIsNil", "entityIDNotNil", "entityIDEqualFold", "entityIDContainsFold", "templateID", "templateIDNEQ", "templateIDIn", "templateIDNotIn", "templateIDContains", "templateIDHasPrefix", "templateIDHasSuffix", "templateIDIsNil", "templateIDNotNil", "templateIDEqualFold", "templateIDContainsFold", "assessmentID", "assessmentIDNEQ", "assessmentIDIn", "assessmentIDNotIn", "assessmentIDContains", "assessmentIDHasPrefix", "assessmentIDHasSuffix", "assessmentIDIsNil", "assessmentIDNotNil", "assessmentIDEqualFold", "assessmentIDContainsFold", "emailTemplateID", "emailTemplateIDNEQ", "emailTemplateIDIn", "emailTemplateIDNotIn", "emailTemplateIDContains", "emailTemplateIDHasPrefix", "emailTemplateIDHasSuffix", "emailTemplateIDIsNil", "emailTemplateIDNotNil", "emailTemplateIDEqualFold", "emailTemplateIDContainsFold", "integrationID", "integrationIDNEQ", "integrationIDIn", "integrationIDNotIn", "integrationIDContains", "integrationIDHasPrefix", "integrationIDHasSuffix", "integrationIDIsNil", "integrationIDNotNil", "integrationIDEqualFold", "integrationIDContainsFold", "emailBrandingID", "emailBrandingIDNEQ", "emailBrandingIDIn", "emailBrandingIDNotIn", "emailBrandingIDContains", "emailBrandingIDHasPrefix", "emailBrandingIDHasSuffix", "emailBrandingIDIsNil", "emailBrandingIDNotNil", "emailBrandingIDEqualFold", "emailBrandingIDContainsFold", "trustCenterID", "trustCenterIDNEQ", "trustCenterIDIn", "trustCenterIDNotIn", "trustCenterIDContains", "trustCenterIDHasPrefix", "trustCenterIDHasSuffix", "trustCenterIDIsNil", "trustCenterIDNotNil", "trustCenterIDEqualFold", "trustCenterIDContainsFold", "hasOwner", "hasOwnerWith", "hasBlockedGroups", "hasBlockedGroupsWith", "hasEditors", "hasEditorsWith", "hasViewers", "hasViewersWith", "hasInternalOwnerUser", "hasInternalOwnerUserWith", "hasInternalOwnerGroup", "hasInternalOwnerGroupWith", "hasAssessment", "hasAssessmentWith", "hasTemplate", "hasTemplateWith", "hasIntegration", "hasIntegrationWith", "hasEmailTemplate", "hasEmailTemplateWith", "hasEntity", "hasEntityWith", "hasTrustCenter", "hasTrustCenterWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasContacts", "hasContactsWith", "hasUsers", "hasUsersWith", "hasGroups", "hasGroupsWith", "hasIdentityHolders", "hasIdentityHoldersWith", "hasAudiences", "hasAudiencesWith", "hasControls", "hasControlsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "tagsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -190162,6 +195844,20 @@ func (ec *executionContext) unmarshalInputCampaignWhereInput(ctx context.Context return it, err } it.HasIdentityHoldersWith = data + case "hasAudiences": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudiences")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudiences = data + case "hasAudiencesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudiencesWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudiencesWith = data case "hasControls": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasControls")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -191249,7 +196945,7 @@ func (ec *executionContext) unmarshalInputContactWhereInput(ctx context.Context, asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameIsNil", "fullNameNotNil", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "externalID", "externalIDNEQ", "externalIDIn", "externalIDNotIn", "externalIDContains", "externalIDHasPrefix", "externalIDHasSuffix", "externalIDIsNil", "externalIDNotNil", "externalIDEqualFold", "externalIDContainsFold", "integrationID", "integrationIDNEQ", "integrationIDIn", "integrationIDNotIn", "integrationIDContains", "integrationIDHasPrefix", "integrationIDHasSuffix", "integrationIDIsNil", "integrationIDNotNil", "integrationIDEqualFold", "integrationIDContainsFold", "observedAt", "observedAtGT", "observedAtGTE", "observedAtLT", "observedAtLTE", "observedAtIsNil", "observedAtNotNil", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasFiles", "hasFilesWith", "hasSubscribers", "hasSubscribersWith", "tagsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameIsNil", "fullNameNotNil", "fullNameEqualFold", "fullNameContainsFold", "title", "titleNEQ", "titleIn", "titleNotIn", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "company", "companyNEQ", "companyIn", "companyNotIn", "companyContains", "companyHasPrefix", "companyHasSuffix", "companyIsNil", "companyNotNil", "companyEqualFold", "companyContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailIsNil", "emailNotNil", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "address", "addressNEQ", "addressIn", "addressNotIn", "addressContains", "addressHasPrefix", "addressHasSuffix", "addressIsNil", "addressNotNil", "addressEqualFold", "addressContainsFold", "status", "statusNEQ", "statusIn", "statusNotIn", "externalID", "externalIDNEQ", "externalIDIn", "externalIDNotIn", "externalIDContains", "externalIDHasPrefix", "externalIDHasSuffix", "externalIDIsNil", "externalIDNotNil", "externalIDEqualFold", "externalIDContainsFold", "integrationID", "integrationIDNEQ", "integrationIDIn", "integrationIDNotIn", "integrationIDContains", "integrationIDHasPrefix", "integrationIDHasSuffix", "integrationIDIsNil", "integrationIDNotNil", "integrationIDEqualFold", "integrationIDContainsFold", "observedAt", "observedAtGT", "observedAtGTE", "observedAtLT", "observedAtLTE", "observedAtIsNil", "observedAtNotNil", "hasOwner", "hasOwnerWith", "hasEntities", "hasEntitiesWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasFiles", "hasFilesWith", "hasSubscribers", "hasSubscribersWith", "tagsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -192474,6 +198170,20 @@ func (ec *executionContext) unmarshalInputContactWhereInput(ctx context.Context, return it, err } it.HasCampaignTargetsWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "hasFiles": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasFiles")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -199797,6 +205507,213 @@ func (ec *executionContext) unmarshalInputCreateAssetInput(ctx context.Context, return it, nil } +func (ec *executionContext) unmarshalInputCreateAudienceInput(ctx context.Context, obj any) (generated.CreateAudienceInput, error) { + var it generated.CreateAudienceInput + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "name", "description", "audienceType", "filters", "metadata", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "audienceMemberIDs", "campaignIDs"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "audienceType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceType")) + data, err := ec.unmarshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceType = data + case "filters": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filters")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Filters = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Metadata = 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 "blockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BlockedGroupIDs = data + case "editorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("editorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EditorIDs = data + case "viewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ViewerIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data + case "campaignIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.CampaignIDs = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputCreateAudienceMemberInput(ctx context.Context, obj any) (generated.CreateAudienceMemberInput, error) { + var it generated.CreateAudienceMemberInput + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "email", "fullName", "metadata", "ownerID", "audienceID", "contactID", "userID", "groupID", "identityHolderID", "subscriberID"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalNString2string(ctx, v) + if err != nil { + return it, err + } + it.Email = data + case "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullName = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Metadata = 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 "audienceID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.AudienceID = data + case "contactID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactID = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupID = data + case "identityHolderID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderID = data + case "subscriberID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberID = data + } + } + return it, nil +} + func (ec *executionContext) unmarshalInputCreateCampaignInput(ctx context.Context, obj any) (generated.CreateCampaignInput, error) { var it generated.CreateCampaignInput if obj == nil { @@ -199808,7 +205725,7 @@ func (ec *executionContext) unmarshalInputCreateCampaignInput(ctx context.Contex asMap[k] = v } - fieldsInOrder := [...]string{"tags", "internalOwner", "workflowEligibleMarker", "name", "description", "campaignType", "status", "isActive", "scheduledAt", "launchedAt", "completedAt", "dueDate", "isRecurring", "recurrenceFrequency", "recurrenceInterval", "recurrenceTimezone", "recurrenceCron", "lastRunAt", "nextRunAt", "recurrenceEndAt", "recipientCount", "resendCount", "lastResentAt", "metadata", "emailBrandingID", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalOwnerUserID", "internalOwnerGroupID", "assessmentID", "templateID", "integrationID", "emailTemplateID", "entityID", "trustCenterID", "campaignTargetIDs", "assessmentResponseIDs", "contactIDs", "userIDs", "groupIDs", "identityHolderIDs", "controlIDs", "workflowObjectRefIDs"} + fieldsInOrder := [...]string{"tags", "internalOwner", "workflowEligibleMarker", "name", "description", "campaignType", "status", "isActive", "scheduledAt", "launchedAt", "completedAt", "dueDate", "isRecurring", "recurrenceFrequency", "recurrenceInterval", "recurrenceTimezone", "recurrenceCron", "lastRunAt", "nextRunAt", "recurrenceEndAt", "recipientCount", "resendCount", "lastResentAt", "metadata", "emailBrandingID", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalOwnerUserID", "internalOwnerGroupID", "assessmentID", "templateID", "integrationID", "emailTemplateID", "entityID", "trustCenterID", "campaignTargetIDs", "assessmentResponseIDs", "contactIDs", "userIDs", "groupIDs", "identityHolderIDs", "audienceIDs", "controlIDs", "workflowObjectRefIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -200116,6 +206033,13 @@ func (ec *executionContext) unmarshalInputCreateCampaignInput(ctx context.Contex return it, err } it.IdentityHolderIDs = data + case "audienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDs = data case "controlIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -200381,7 +206305,7 @@ func (ec *executionContext) unmarshalInputCreateContactInput(ctx context.Context asMap[k] = v } - fieldsInOrder := [...]string{"tags", "fullName", "title", "company", "email", "phoneNumber", "address", "status", "externalID", "integrationID", "observedAt", "ownerID", "entityIDs", "campaignIDs", "campaignTargetIDs", "fileIDs", "subscriberIDs"} + fieldsInOrder := [...]string{"tags", "fullName", "title", "company", "email", "phoneNumber", "address", "status", "externalID", "integrationID", "observedAt", "ownerID", "entityIDs", "campaignIDs", "campaignTargetIDs", "audienceMemberIDs", "fileIDs", "subscriberIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -200493,6 +206417,13 @@ func (ec *executionContext) unmarshalInputCreateContactInput(ctx context.Context return it, err } it.CampaignTargetIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data case "fileIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fileIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -205671,7 +211602,7 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, asMap[k] = v } - fieldsInOrder := [...]string{"tags", "name", "description", "logoURL", "displayName", "oscalRole", "oscalPartyUUID", "oscalContactUuids", "scimExternalID", "scimDisplayName", "scimActive", "scimGroupMailing", "ownerID", "programEditorIDs", "programBlockedGroupIDs", "programViewerIDs", "riskEditorIDs", "riskBlockedGroupIDs", "riskViewerIDs", "controlObjectiveEditorIDs", "controlObjectiveBlockedGroupIDs", "controlObjectiveViewerIDs", "narrativeEditorIDs", "narrativeBlockedGroupIDs", "narrativeViewerIDs", "controlImplementationEditorIDs", "controlImplementationBlockedGroupIDs", "controlImplementationViewerIDs", "actionPlanEditorIDs", "actionPlanBlockedGroupIDs", "actionPlanViewerIDs", "platformEditorIDs", "platformBlockedGroupIDs", "platformViewerIDs", "campaignEditorIDs", "campaignBlockedGroupIDs", "campaignViewerIDs", "procedureEditorIDs", "procedureBlockedGroupIDs", "internalPolicyEditorIDs", "internalPolicyBlockedGroupIDs", "controlEditorIDs", "controlBlockedGroupIDs", "mappedControlEditorIDs", "mappedControlBlockedGroupIDs", "scanEditorIDs", "scanBlockedGroupIDs", "entityEditorIDs", "entityBlockedGroupIDs", "findingEditorIDs", "findingBlockedGroupIDs", "reviewEditorIDs", "reviewBlockedGroupIDs", "remediationEditorIDs", "remediationBlockedGroupIDs", "settingID", "eventIDs", "integrationIDs", "avatarFileID", "fileIDs", "taskIDs", "campaignIDs", "campaignTargetIDs", "createGroupSettings"} + fieldsInOrder := [...]string{"tags", "name", "description", "logoURL", "displayName", "oscalRole", "oscalPartyUUID", "oscalContactUuids", "scimExternalID", "scimDisplayName", "scimActive", "scimGroupMailing", "ownerID", "programEditorIDs", "programBlockedGroupIDs", "programViewerIDs", "riskEditorIDs", "riskBlockedGroupIDs", "riskViewerIDs", "controlObjectiveEditorIDs", "controlObjectiveBlockedGroupIDs", "controlObjectiveViewerIDs", "narrativeEditorIDs", "narrativeBlockedGroupIDs", "narrativeViewerIDs", "controlImplementationEditorIDs", "controlImplementationBlockedGroupIDs", "controlImplementationViewerIDs", "actionPlanEditorIDs", "actionPlanBlockedGroupIDs", "actionPlanViewerIDs", "platformEditorIDs", "platformBlockedGroupIDs", "platformViewerIDs", "campaignEditorIDs", "campaignBlockedGroupIDs", "campaignViewerIDs", "audienceEditorIDs", "audienceBlockedGroupIDs", "audienceViewerIDs", "procedureEditorIDs", "procedureBlockedGroupIDs", "internalPolicyEditorIDs", "internalPolicyBlockedGroupIDs", "controlEditorIDs", "controlBlockedGroupIDs", "mappedControlEditorIDs", "mappedControlBlockedGroupIDs", "scanEditorIDs", "scanBlockedGroupIDs", "entityEditorIDs", "entityBlockedGroupIDs", "findingEditorIDs", "findingBlockedGroupIDs", "reviewEditorIDs", "reviewBlockedGroupIDs", "remediationEditorIDs", "remediationBlockedGroupIDs", "settingID", "eventIDs", "integrationIDs", "avatarFileID", "fileIDs", "taskIDs", "campaignIDs", "campaignTargetIDs", "audienceMemberIDs", "createGroupSettings"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -205937,6 +211868,27 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, return it, err } it.CampaignViewerIDs = data + case "audienceEditorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceEditorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceEditorIDs = data + case "audienceBlockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceBlockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceBlockedGroupIDs = data + case "audienceViewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceViewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceViewerIDs = data case "procedureEditorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureEditorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -206119,6 +212071,13 @@ func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, return it, err } it.CampaignTargetIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data case "createGroupSettings": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("createGroupSettings")) data, err := ec.unmarshalOCreateGroupSettingInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, v) @@ -206415,7 +212374,7 @@ func (ec *executionContext) unmarshalInputCreateIdentityHolderInput(ctx context. asMap[k] = v } - fieldsInOrder := [...]string{"tags", "internalOwner", "environmentName", "scopeName", "workflowEligibleMarker", "fullName", "email", "alternateEmail", "emailAliases", "phoneNumber", "isOpenlaneUser", "identityHolderType", "status", "isActive", "title", "department", "team", "location", "startDate", "endDate", "externalUserID", "externalReferenceID", "metadata", "avatarRemoteURL", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalOwnerUserID", "internalOwnerGroupID", "environmentID", "scopeID", "employerID", "assessmentResponseIDs", "assessmentIDs", "templateIDs", "assetIDs", "entityIDs", "directoryAccountIDs", "controlIDs", "subcontrolIDs", "platformIDs", "campaignIDs", "taskIDs", "fileIDs", "findingIDs", "workflowObjectRefIDs", "accessPlatformIDs", "userID", "internalPolicyIDs"} + fieldsInOrder := [...]string{"tags", "internalOwner", "environmentName", "scopeName", "workflowEligibleMarker", "fullName", "email", "alternateEmail", "emailAliases", "phoneNumber", "isOpenlaneUser", "identityHolderType", "status", "isActive", "title", "department", "team", "location", "startDate", "endDate", "externalUserID", "externalReferenceID", "metadata", "avatarRemoteURL", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalOwnerUserID", "internalOwnerGroupID", "environmentID", "scopeID", "employerID", "assessmentResponseIDs", "assessmentIDs", "templateIDs", "assetIDs", "entityIDs", "directoryAccountIDs", "controlIDs", "subcontrolIDs", "platformIDs", "campaignIDs", "audienceMemberIDs", "taskIDs", "fileIDs", "findingIDs", "workflowObjectRefIDs", "accessPlatformIDs", "userID", "internalPolicyIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -206723,6 +212682,13 @@ func (ec *executionContext) unmarshalInputCreateIdentityHolderInput(ctx context. return it, err } it.CampaignIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data case "taskIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -208524,7 +214490,7 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co asMap[k] = v } - fieldsInOrder := [...]string{"tags", "name", "displayName", "description", "personalOrg", "avatarRemoteURL", "avatarUpdatedAt", "actionPlanCreatorIDs", "apiTokenCreatorIDs", "assessmentCreatorIDs", "assetCreatorIDs", "campaignCreatorIDs", "campaignTargetCreatorIDs", "checkResultCreatorIDs", "contactCreatorIDs", "controlCreatorIDs", "controlImplementationCreatorIDs", "controlObjectiveCreatorIDs", "customDomainCreatorIDs", "customTypeEnumCreatorIDs", "directoryAccountCreatorIDs", "directoryGroupCreatorIDs", "directoryMembershipCreatorIDs", "directorySyncRunCreatorIDs", "discussionCreatorIDs", "documentDataCreatorIDs", "emailTemplateCreatorIDs", "entityCreatorIDs", "entityTypeCreatorIDs", "evidenceCreatorIDs", "fileCreatorIDs", "findingCreatorIDs", "findingControlCreatorIDs", "groupCreatorIDs", "groupMembershipCreatorIDs", "groupSettingCreatorIDs", "hushCreatorIDs", "identityHolderCreatorIDs", "internalPolicyCreatorIDs", "inviteCreatorIDs", "mappedControlCreatorIDs", "narrativeCreatorIDs", "noteCreatorIDs", "notificationTemplateCreatorIDs", "orgMembershipCreatorIDs", "platformCreatorIDs", "procedureCreatorIDs", "programCreatorIDs", "programMembershipCreatorIDs", "remediationCreatorIDs", "reviewCreatorIDs", "riskCreatorIDs", "scanCreatorIDs", "slaDefinitionCreatorIDs", "standardCreatorIDs", "subcontrolCreatorIDs", "subprocessorCreatorIDs", "subscriberCreatorIDs", "systemDetailCreatorIDs", "tagDefinitionCreatorIDs", "taskCreatorIDs", "templateCreatorIDs", "trustCenterCreatorIDs", "trustCenterComplianceCreatorIDs", "trustCenterDocCreatorIDs", "trustCenterEntityCreatorIDs", "trustCenterFaqCreatorIDs", "trustCenterNdaRequestCreatorIDs", "trustCenterSubprocessorCreatorIDs", "trustCenterWatermarkConfigCreatorIDs", "vendorRiskScoreCreatorIDs", "vendorScoringConfigCreatorIDs", "vulnerabilityCreatorIDs", "workflowDefinitionCreatorIDs", "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", "dnsVerificationIDs", "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", "actionPlanCreatorIDs", "apiTokenCreatorIDs", "assessmentCreatorIDs", "assetCreatorIDs", "audienceCreatorIDs", "audienceMemberCreatorIDs", "campaignCreatorIDs", "campaignTargetCreatorIDs", "checkResultCreatorIDs", "contactCreatorIDs", "controlCreatorIDs", "controlImplementationCreatorIDs", "controlObjectiveCreatorIDs", "customDomainCreatorIDs", "customTypeEnumCreatorIDs", "directoryAccountCreatorIDs", "directoryGroupCreatorIDs", "directoryMembershipCreatorIDs", "directorySyncRunCreatorIDs", "discussionCreatorIDs", "documentDataCreatorIDs", "emailTemplateCreatorIDs", "entityCreatorIDs", "entityTypeCreatorIDs", "evidenceCreatorIDs", "fileCreatorIDs", "findingCreatorIDs", "findingControlCreatorIDs", "groupCreatorIDs", "groupMembershipCreatorIDs", "groupSettingCreatorIDs", "hushCreatorIDs", "identityHolderCreatorIDs", "internalPolicyCreatorIDs", "inviteCreatorIDs", "mappedControlCreatorIDs", "narrativeCreatorIDs", "noteCreatorIDs", "notificationTemplateCreatorIDs", "orgMembershipCreatorIDs", "platformCreatorIDs", "procedureCreatorIDs", "programCreatorIDs", "programMembershipCreatorIDs", "remediationCreatorIDs", "reviewCreatorIDs", "riskCreatorIDs", "scanCreatorIDs", "slaDefinitionCreatorIDs", "standardCreatorIDs", "subcontrolCreatorIDs", "subprocessorCreatorIDs", "subscriberCreatorIDs", "systemDetailCreatorIDs", "tagDefinitionCreatorIDs", "taskCreatorIDs", "templateCreatorIDs", "trustCenterCreatorIDs", "trustCenterComplianceCreatorIDs", "trustCenterDocCreatorIDs", "trustCenterEntityCreatorIDs", "trustCenterFaqCreatorIDs", "trustCenterNdaRequestCreatorIDs", "trustCenterSubprocessorCreatorIDs", "trustCenterWatermarkConfigCreatorIDs", "vendorRiskScoreCreatorIDs", "vendorScoringConfigCreatorIDs", "vulnerabilityCreatorIDs", "workflowDefinitionCreatorIDs", "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", "dnsVerificationIDs", "trustCenterIDs", "assetIDs", "scanIDs", "slaDefinitionIDs", "subprocessorIDs", "exportIDs", "audienceIDs", "audienceMemberIDs", "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 { @@ -208608,6 +214574,20 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.AssetCreatorIDs = data + case "audienceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceCreatorIDs = data + case "audienceMemberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberCreatorIDs = data case "campaignCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("campaignCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -209448,6 +215428,20 @@ func (ec *executionContext) unmarshalInputCreateOrganizationInput(ctx context.Co return it, err } it.ExportIDs = data + case "audienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data case "trustCenterWatermarkConfigIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("trustCenterWatermarkConfigIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -213849,7 +219843,7 @@ func (ec *executionContext) unmarshalInputCreateSubscriberInput(ctx context.Cont asMap[k] = v } - fieldsInOrder := [...]string{"tags", "email", "phoneNumber", "ownerID", "eventIDs", "trustCenterID", "campaignTargetIDs", "contactID", "userID"} + fieldsInOrder := [...]string{"tags", "email", "phoneNumber", "ownerID", "eventIDs", "trustCenterID", "campaignTargetIDs", "contactID", "userID", "audienceMemberIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -213919,6 +219913,13 @@ func (ec *executionContext) unmarshalInputCreateSubscriberInput(ctx context.Cont return it, err } it.UserID = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data } } return it, nil @@ -215842,7 +221843,7 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o asMap[k] = v } - fieldsInOrder := [...]string{"tags", "email", "firstName", "lastName", "displayName", "avatarRemoteURL", "avatarUpdatedAt", "lastSeen", "lastLoginProvider", "password", "sub", "authProvider", "role", "scimExternalID", "scimUsername", "scimActive", "scimPreferredLanguage", "scimLocale", "personalAccessTokenIDs", "tfaSettingIDs", "settingID", "subscriberIDs", "groupIDs", "organizationIDs", "webauthnIDs", "avatarFileID", "eventIDs", "actionPlanIDs", "campaignIDs", "campaignTargetIDs", "subcontrolIDs", "assignerTaskIDs", "assigneeTaskIDs", "programIDs", "programsOwnedIDs", "platformsOwnedIDs", "identityHolderProfileIDs", "impersonationEventIDs", "targetedImpersonationIDs"} + fieldsInOrder := [...]string{"tags", "email", "firstName", "lastName", "displayName", "avatarRemoteURL", "avatarUpdatedAt", "lastSeen", "lastLoginProvider", "password", "sub", "authProvider", "role", "scimExternalID", "scimUsername", "scimActive", "scimPreferredLanguage", "scimLocale", "personalAccessTokenIDs", "tfaSettingIDs", "settingID", "subscriberIDs", "groupIDs", "organizationIDs", "webauthnIDs", "avatarFileID", "eventIDs", "actionPlanIDs", "campaignIDs", "campaignTargetIDs", "audienceMemberIDs", "subcontrolIDs", "assignerTaskIDs", "assigneeTaskIDs", "programIDs", "programsOwnedIDs", "platformsOwnedIDs", "identityHolderProfileIDs", "impersonationEventIDs", "targetedImpersonationIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -216059,6 +222060,13 @@ func (ec *executionContext) unmarshalInputCreateUserInput(ctx context.Context, o return it, err } it.CampaignTargetIDs = data + case "audienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceMemberIDs = data case "subcontrolIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -249989,7 +255997,7 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "isManaged", "isManagedNEQ", "isManagedIsNil", "isManagedNotNil", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "oscalRole", "oscalRoleNEQ", "oscalRoleIn", "oscalRoleNotIn", "oscalRoleContains", "oscalRoleHasPrefix", "oscalRoleHasSuffix", "oscalRoleIsNil", "oscalRoleNotNil", "oscalRoleEqualFold", "oscalRoleContainsFold", "oscalPartyUUID", "oscalPartyUUIDNEQ", "oscalPartyUUIDIn", "oscalPartyUUIDNotIn", "oscalPartyUUIDContains", "oscalPartyUUIDHasPrefix", "oscalPartyUUIDHasSuffix", "oscalPartyUUIDIsNil", "oscalPartyUUIDNotNil", "oscalPartyUUIDEqualFold", "oscalPartyUUIDContainsFold", "scimExternalID", "scimExternalIDNEQ", "scimExternalIDIn", "scimExternalIDNotIn", "scimExternalIDContains", "scimExternalIDHasPrefix", "scimExternalIDHasSuffix", "scimExternalIDIsNil", "scimExternalIDNotNil", "scimExternalIDEqualFold", "scimExternalIDContainsFold", "scimDisplayName", "scimDisplayNameNEQ", "scimDisplayNameIn", "scimDisplayNameNotIn", "scimDisplayNameContains", "scimDisplayNameHasPrefix", "scimDisplayNameHasSuffix", "scimDisplayNameIsNil", "scimDisplayNameNotNil", "scimDisplayNameEqualFold", "scimDisplayNameContainsFold", "scimActive", "scimActiveNEQ", "scimActiveIsNil", "scimActiveNotNil", "scimGroupMailing", "scimGroupMailingNEQ", "scimGroupMailingIn", "scimGroupMailingNotIn", "scimGroupMailingContains", "scimGroupMailingHasPrefix", "scimGroupMailingHasSuffix", "scimGroupMailingIsNil", "scimGroupMailingNotNil", "scimGroupMailingEqualFold", "scimGroupMailingContainsFold", "hasOwner", "hasOwnerWith", "hasProgramEditors", "hasProgramEditorsWith", "hasProgramBlockedGroups", "hasProgramBlockedGroupsWith", "hasProgramViewers", "hasProgramViewersWith", "hasRiskEditors", "hasRiskEditorsWith", "hasRiskBlockedGroups", "hasRiskBlockedGroupsWith", "hasRiskViewers", "hasRiskViewersWith", "hasControlObjectiveEditors", "hasControlObjectiveEditorsWith", "hasControlObjectiveBlockedGroups", "hasControlObjectiveBlockedGroupsWith", "hasControlObjectiveViewers", "hasControlObjectiveViewersWith", "hasNarrativeEditors", "hasNarrativeEditorsWith", "hasNarrativeBlockedGroups", "hasNarrativeBlockedGroupsWith", "hasNarrativeViewers", "hasNarrativeViewersWith", "hasControlImplementationEditors", "hasControlImplementationEditorsWith", "hasControlImplementationBlockedGroups", "hasControlImplementationBlockedGroupsWith", "hasControlImplementationViewers", "hasControlImplementationViewersWith", "hasActionPlanEditors", "hasActionPlanEditorsWith", "hasActionPlanBlockedGroups", "hasActionPlanBlockedGroupsWith", "hasActionPlanViewers", "hasActionPlanViewersWith", "hasPlatformEditors", "hasPlatformEditorsWith", "hasPlatformBlockedGroups", "hasPlatformBlockedGroupsWith", "hasPlatformViewers", "hasPlatformViewersWith", "hasCampaignEditors", "hasCampaignEditorsWith", "hasCampaignBlockedGroups", "hasCampaignBlockedGroupsWith", "hasCampaignViewers", "hasCampaignViewersWith", "hasProcedureEditors", "hasProcedureEditorsWith", "hasProcedureBlockedGroups", "hasProcedureBlockedGroupsWith", "hasInternalPolicyEditors", "hasInternalPolicyEditorsWith", "hasInternalPolicyBlockedGroups", "hasInternalPolicyBlockedGroupsWith", "hasControlEditors", "hasControlEditorsWith", "hasControlBlockedGroups", "hasControlBlockedGroupsWith", "hasMappedControlEditors", "hasMappedControlEditorsWith", "hasMappedControlBlockedGroups", "hasMappedControlBlockedGroupsWith", "hasScanEditors", "hasScanEditorsWith", "hasScanBlockedGroups", "hasScanBlockedGroupsWith", "hasEntityEditors", "hasEntityEditorsWith", "hasEntityBlockedGroups", "hasEntityBlockedGroupsWith", "hasFindingEditors", "hasFindingEditorsWith", "hasFindingBlockedGroups", "hasFindingBlockedGroupsWith", "hasReviewEditors", "hasReviewEditorsWith", "hasReviewBlockedGroups", "hasReviewBlockedGroupsWith", "hasRemediationEditors", "hasRemediationEditorsWith", "hasRemediationBlockedGroups", "hasRemediationBlockedGroupsWith", "hasSetting", "hasSettingWith", "hasUsers", "hasUsersWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith", "hasAvatarFile", "hasAvatarFileWith", "hasFiles", "hasFilesWith", "hasTasks", "hasTasksWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasMembers", "hasMembersWith", "tagsHas", "oscalContactUuidsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "isManaged", "isManagedNEQ", "isManagedIsNil", "isManagedNotNil", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "oscalRole", "oscalRoleNEQ", "oscalRoleIn", "oscalRoleNotIn", "oscalRoleContains", "oscalRoleHasPrefix", "oscalRoleHasSuffix", "oscalRoleIsNil", "oscalRoleNotNil", "oscalRoleEqualFold", "oscalRoleContainsFold", "oscalPartyUUID", "oscalPartyUUIDNEQ", "oscalPartyUUIDIn", "oscalPartyUUIDNotIn", "oscalPartyUUIDContains", "oscalPartyUUIDHasPrefix", "oscalPartyUUIDHasSuffix", "oscalPartyUUIDIsNil", "oscalPartyUUIDNotNil", "oscalPartyUUIDEqualFold", "oscalPartyUUIDContainsFold", "scimExternalID", "scimExternalIDNEQ", "scimExternalIDIn", "scimExternalIDNotIn", "scimExternalIDContains", "scimExternalIDHasPrefix", "scimExternalIDHasSuffix", "scimExternalIDIsNil", "scimExternalIDNotNil", "scimExternalIDEqualFold", "scimExternalIDContainsFold", "scimDisplayName", "scimDisplayNameNEQ", "scimDisplayNameIn", "scimDisplayNameNotIn", "scimDisplayNameContains", "scimDisplayNameHasPrefix", "scimDisplayNameHasSuffix", "scimDisplayNameIsNil", "scimDisplayNameNotNil", "scimDisplayNameEqualFold", "scimDisplayNameContainsFold", "scimActive", "scimActiveNEQ", "scimActiveIsNil", "scimActiveNotNil", "scimGroupMailing", "scimGroupMailingNEQ", "scimGroupMailingIn", "scimGroupMailingNotIn", "scimGroupMailingContains", "scimGroupMailingHasPrefix", "scimGroupMailingHasSuffix", "scimGroupMailingIsNil", "scimGroupMailingNotNil", "scimGroupMailingEqualFold", "scimGroupMailingContainsFold", "hasOwner", "hasOwnerWith", "hasProgramEditors", "hasProgramEditorsWith", "hasProgramBlockedGroups", "hasProgramBlockedGroupsWith", "hasProgramViewers", "hasProgramViewersWith", "hasRiskEditors", "hasRiskEditorsWith", "hasRiskBlockedGroups", "hasRiskBlockedGroupsWith", "hasRiskViewers", "hasRiskViewersWith", "hasControlObjectiveEditors", "hasControlObjectiveEditorsWith", "hasControlObjectiveBlockedGroups", "hasControlObjectiveBlockedGroupsWith", "hasControlObjectiveViewers", "hasControlObjectiveViewersWith", "hasNarrativeEditors", "hasNarrativeEditorsWith", "hasNarrativeBlockedGroups", "hasNarrativeBlockedGroupsWith", "hasNarrativeViewers", "hasNarrativeViewersWith", "hasControlImplementationEditors", "hasControlImplementationEditorsWith", "hasControlImplementationBlockedGroups", "hasControlImplementationBlockedGroupsWith", "hasControlImplementationViewers", "hasControlImplementationViewersWith", "hasActionPlanEditors", "hasActionPlanEditorsWith", "hasActionPlanBlockedGroups", "hasActionPlanBlockedGroupsWith", "hasActionPlanViewers", "hasActionPlanViewersWith", "hasPlatformEditors", "hasPlatformEditorsWith", "hasPlatformBlockedGroups", "hasPlatformBlockedGroupsWith", "hasPlatformViewers", "hasPlatformViewersWith", "hasCampaignEditors", "hasCampaignEditorsWith", "hasCampaignBlockedGroups", "hasCampaignBlockedGroupsWith", "hasCampaignViewers", "hasCampaignViewersWith", "hasAudienceEditors", "hasAudienceEditorsWith", "hasAudienceBlockedGroups", "hasAudienceBlockedGroupsWith", "hasAudienceViewers", "hasAudienceViewersWith", "hasProcedureEditors", "hasProcedureEditorsWith", "hasProcedureBlockedGroups", "hasProcedureBlockedGroupsWith", "hasInternalPolicyEditors", "hasInternalPolicyEditorsWith", "hasInternalPolicyBlockedGroups", "hasInternalPolicyBlockedGroupsWith", "hasControlEditors", "hasControlEditorsWith", "hasControlBlockedGroups", "hasControlBlockedGroupsWith", "hasMappedControlEditors", "hasMappedControlEditorsWith", "hasMappedControlBlockedGroups", "hasMappedControlBlockedGroupsWith", "hasScanEditors", "hasScanEditorsWith", "hasScanBlockedGroups", "hasScanBlockedGroupsWith", "hasEntityEditors", "hasEntityEditorsWith", "hasEntityBlockedGroups", "hasEntityBlockedGroupsWith", "hasFindingEditors", "hasFindingEditorsWith", "hasFindingBlockedGroups", "hasFindingBlockedGroupsWith", "hasReviewEditors", "hasReviewEditorsWith", "hasReviewBlockedGroups", "hasReviewBlockedGroupsWith", "hasRemediationEditors", "hasRemediationEditorsWith", "hasRemediationBlockedGroups", "hasRemediationBlockedGroupsWith", "hasSetting", "hasSettingWith", "hasUsers", "hasUsersWith", "hasEvents", "hasEventsWith", "hasIntegrations", "hasIntegrationsWith", "hasAvatarFile", "hasAvatarFileWith", "hasFiles", "hasFilesWith", "hasTasks", "hasTasksWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasMembers", "hasMembersWith", "tagsHas", "oscalContactUuidsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -251522,6 +257530,48 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, err } it.HasCampaignViewersWith = data + case "hasAudienceEditors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceEditors")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceEditors = data + case "hasAudienceEditorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceEditorsWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceEditorsWith = data + case "hasAudienceBlockedGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceBlockedGroups")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceBlockedGroups = data + case "hasAudienceBlockedGroupsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceBlockedGroupsWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceBlockedGroupsWith = data + case "hasAudienceViewers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceViewers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceViewers = data + case "hasAudienceViewersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceViewersWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceViewersWith = data case "hasProcedureEditors": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasProcedureEditors")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -251900,6 +257950,20 @@ func (ec *executionContext) unmarshalInputGroupWhereInput(ctx context.Context, o return it, err } it.HasCampaignTargetsWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "hasMembers": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasMembers")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -253071,7 +259135,7 @@ func (ec *executionContext) unmarshalInputIdentityHolderWhereInput(ctx context.C asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "internalOwner", "internalOwnerNEQ", "internalOwnerIn", "internalOwnerNotIn", "internalOwnerContains", "internalOwnerHasPrefix", "internalOwnerHasSuffix", "internalOwnerIsNil", "internalOwnerNotNil", "internalOwnerEqualFold", "internalOwnerContainsFold", "internalOwnerUserID", "internalOwnerUserIDNEQ", "internalOwnerUserIDIn", "internalOwnerUserIDNotIn", "internalOwnerUserIDContains", "internalOwnerUserIDHasPrefix", "internalOwnerUserIDHasSuffix", "internalOwnerUserIDIsNil", "internalOwnerUserIDNotNil", "internalOwnerUserIDEqualFold", "internalOwnerUserIDContainsFold", "internalOwnerGroupID", "internalOwnerGroupIDNEQ", "internalOwnerGroupIDIn", "internalOwnerGroupIDNotIn", "internalOwnerGroupIDContains", "internalOwnerGroupIDHasPrefix", "internalOwnerGroupIDHasSuffix", "internalOwnerGroupIDIsNil", "internalOwnerGroupIDNotNil", "internalOwnerGroupIDEqualFold", "internalOwnerGroupIDContainsFold", "environmentName", "environmentNameNEQ", "environmentNameIn", "environmentNameNotIn", "environmentNameContains", "environmentNameHasPrefix", "environmentNameHasSuffix", "environmentNameIsNil", "environmentNameNotNil", "environmentNameEqualFold", "environmentNameContainsFold", "environmentID", "environmentIDNEQ", "environmentIDIn", "environmentIDNotIn", "environmentIDContains", "environmentIDHasPrefix", "environmentIDHasSuffix", "environmentIDIsNil", "environmentIDNotNil", "environmentIDEqualFold", "environmentIDContainsFold", "scopeName", "scopeNameNEQ", "scopeNameIn", "scopeNameNotIn", "scopeNameContains", "scopeNameHasPrefix", "scopeNameHasSuffix", "scopeNameIsNil", "scopeNameNotNil", "scopeNameEqualFold", "scopeNameContainsFold", "scopeID", "scopeIDNEQ", "scopeIDIn", "scopeIDNotIn", "scopeIDContains", "scopeIDHasPrefix", "scopeIDHasSuffix", "scopeIDIsNil", "scopeIDNotNil", "scopeIDEqualFold", "scopeIDContainsFold", "workflowEligibleMarker", "workflowEligibleMarkerNEQ", "workflowEligibleMarkerIsNil", "workflowEligibleMarkerNotNil", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "alternateEmail", "alternateEmailNEQ", "alternateEmailIn", "alternateEmailNotIn", "alternateEmailContains", "alternateEmailHasPrefix", "alternateEmailHasSuffix", "alternateEmailIsNil", "alternateEmailNotNil", "alternateEmailEqualFold", "alternateEmailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "isOpenlaneUser", "isOpenlaneUserNEQ", "isOpenlaneUserIsNil", "isOpenlaneUserNotNil", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "identityHolderType", "identityHolderTypeNEQ", "identityHolderTypeIn", "identityHolderTypeNotIn", "status", "statusNEQ", "statusIn", "statusNotIn", "isActive", "isActiveNEQ", "title", "titleNEQ", "titleIn", "titleNotIn", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "department", "departmentNEQ", "departmentIn", "departmentNotIn", "departmentContains", "departmentHasPrefix", "departmentHasSuffix", "departmentIsNil", "departmentNotNil", "departmentEqualFold", "departmentContainsFold", "team", "teamNEQ", "teamIn", "teamNotIn", "teamContains", "teamHasPrefix", "teamHasSuffix", "teamIsNil", "teamNotNil", "teamEqualFold", "teamContainsFold", "location", "locationNEQ", "locationIn", "locationNotIn", "locationContains", "locationHasPrefix", "locationHasSuffix", "locationIsNil", "locationNotNil", "locationEqualFold", "locationContainsFold", "startDate", "startDateGT", "startDateGTE", "startDateLT", "startDateLTE", "startDateIsNil", "startDateNotNil", "endDate", "endDateGT", "endDateGTE", "endDateLT", "endDateLTE", "endDateIsNil", "endDateNotNil", "employerEntityID", "employerEntityIDNEQ", "employerEntityIDIn", "employerEntityIDNotIn", "employerEntityIDContains", "employerEntityIDHasPrefix", "employerEntityIDHasSuffix", "employerEntityIDIsNil", "employerEntityIDNotNil", "employerEntityIDEqualFold", "employerEntityIDContainsFold", "externalUserID", "externalUserIDNEQ", "externalUserIDIn", "externalUserIDNotIn", "externalUserIDContains", "externalUserIDHasPrefix", "externalUserIDHasSuffix", "externalUserIDIsNil", "externalUserIDNotNil", "externalUserIDEqualFold", "externalUserIDContainsFold", "externalReferenceID", "externalReferenceIDNEQ", "externalReferenceIDIn", "externalReferenceIDNotIn", "externalReferenceIDContains", "externalReferenceIDHasPrefix", "externalReferenceIDHasSuffix", "externalReferenceIDIsNil", "externalReferenceIDNotNil", "externalReferenceIDEqualFold", "externalReferenceIDContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "hasOwner", "hasOwnerWith", "hasBlockedGroups", "hasBlockedGroupsWith", "hasEditors", "hasEditorsWith", "hasViewers", "hasViewersWith", "hasInternalOwnerUser", "hasInternalOwnerUserWith", "hasInternalOwnerGroup", "hasInternalOwnerGroupWith", "hasEnvironment", "hasEnvironmentWith", "hasScope", "hasScopeWith", "hasEmployer", "hasEmployerWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasAssessments", "hasAssessmentsWith", "hasTemplates", "hasTemplatesWith", "hasAssets", "hasAssetsWith", "hasEntities", "hasEntitiesWith", "hasDirectoryAccounts", "hasDirectoryAccountsWith", "hasControls", "hasControlsWith", "hasSubcontrols", "hasSubcontrolsWith", "hasPlatforms", "hasPlatformsWith", "hasCampaigns", "hasCampaignsWith", "hasTasks", "hasTasksWith", "hasFiles", "hasFilesWith", "hasFindings", "hasFindingsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "hasAccessPlatforms", "hasAccessPlatformsWith", "hasUser", "hasUserWith", "hasInternalPolicies", "hasInternalPoliciesWith", "tagsHas", "emailAliasesHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "internalOwner", "internalOwnerNEQ", "internalOwnerIn", "internalOwnerNotIn", "internalOwnerContains", "internalOwnerHasPrefix", "internalOwnerHasSuffix", "internalOwnerIsNil", "internalOwnerNotNil", "internalOwnerEqualFold", "internalOwnerContainsFold", "internalOwnerUserID", "internalOwnerUserIDNEQ", "internalOwnerUserIDIn", "internalOwnerUserIDNotIn", "internalOwnerUserIDContains", "internalOwnerUserIDHasPrefix", "internalOwnerUserIDHasSuffix", "internalOwnerUserIDIsNil", "internalOwnerUserIDNotNil", "internalOwnerUserIDEqualFold", "internalOwnerUserIDContainsFold", "internalOwnerGroupID", "internalOwnerGroupIDNEQ", "internalOwnerGroupIDIn", "internalOwnerGroupIDNotIn", "internalOwnerGroupIDContains", "internalOwnerGroupIDHasPrefix", "internalOwnerGroupIDHasSuffix", "internalOwnerGroupIDIsNil", "internalOwnerGroupIDNotNil", "internalOwnerGroupIDEqualFold", "internalOwnerGroupIDContainsFold", "environmentName", "environmentNameNEQ", "environmentNameIn", "environmentNameNotIn", "environmentNameContains", "environmentNameHasPrefix", "environmentNameHasSuffix", "environmentNameIsNil", "environmentNameNotNil", "environmentNameEqualFold", "environmentNameContainsFold", "environmentID", "environmentIDNEQ", "environmentIDIn", "environmentIDNotIn", "environmentIDContains", "environmentIDHasPrefix", "environmentIDHasSuffix", "environmentIDIsNil", "environmentIDNotNil", "environmentIDEqualFold", "environmentIDContainsFold", "scopeName", "scopeNameNEQ", "scopeNameIn", "scopeNameNotIn", "scopeNameContains", "scopeNameHasPrefix", "scopeNameHasSuffix", "scopeNameIsNil", "scopeNameNotNil", "scopeNameEqualFold", "scopeNameContainsFold", "scopeID", "scopeIDNEQ", "scopeIDIn", "scopeIDNotIn", "scopeIDContains", "scopeIDHasPrefix", "scopeIDHasSuffix", "scopeIDIsNil", "scopeIDNotNil", "scopeIDEqualFold", "scopeIDContainsFold", "workflowEligibleMarker", "workflowEligibleMarkerNEQ", "workflowEligibleMarkerIsNil", "workflowEligibleMarkerNotNil", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameEqualFold", "fullNameContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "alternateEmail", "alternateEmailNEQ", "alternateEmailIn", "alternateEmailNotIn", "alternateEmailContains", "alternateEmailHasPrefix", "alternateEmailHasSuffix", "alternateEmailIsNil", "alternateEmailNotNil", "alternateEmailEqualFold", "alternateEmailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "isOpenlaneUser", "isOpenlaneUserNEQ", "isOpenlaneUserIsNil", "isOpenlaneUserNotNil", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "identityHolderType", "identityHolderTypeNEQ", "identityHolderTypeIn", "identityHolderTypeNotIn", "status", "statusNEQ", "statusIn", "statusNotIn", "isActive", "isActiveNEQ", "title", "titleNEQ", "titleIn", "titleNotIn", "titleContains", "titleHasPrefix", "titleHasSuffix", "titleIsNil", "titleNotNil", "titleEqualFold", "titleContainsFold", "department", "departmentNEQ", "departmentIn", "departmentNotIn", "departmentContains", "departmentHasPrefix", "departmentHasSuffix", "departmentIsNil", "departmentNotNil", "departmentEqualFold", "departmentContainsFold", "team", "teamNEQ", "teamIn", "teamNotIn", "teamContains", "teamHasPrefix", "teamHasSuffix", "teamIsNil", "teamNotNil", "teamEqualFold", "teamContainsFold", "location", "locationNEQ", "locationIn", "locationNotIn", "locationContains", "locationHasPrefix", "locationHasSuffix", "locationIsNil", "locationNotNil", "locationEqualFold", "locationContainsFold", "startDate", "startDateGT", "startDateGTE", "startDateLT", "startDateLTE", "startDateIsNil", "startDateNotNil", "endDate", "endDateGT", "endDateGTE", "endDateLT", "endDateLTE", "endDateIsNil", "endDateNotNil", "employerEntityID", "employerEntityIDNEQ", "employerEntityIDIn", "employerEntityIDNotIn", "employerEntityIDContains", "employerEntityIDHasPrefix", "employerEntityIDHasSuffix", "employerEntityIDIsNil", "employerEntityIDNotNil", "employerEntityIDEqualFold", "employerEntityIDContainsFold", "externalUserID", "externalUserIDNEQ", "externalUserIDIn", "externalUserIDNotIn", "externalUserIDContains", "externalUserIDHasPrefix", "externalUserIDHasSuffix", "externalUserIDIsNil", "externalUserIDNotNil", "externalUserIDEqualFold", "externalUserIDContainsFold", "externalReferenceID", "externalReferenceIDNEQ", "externalReferenceIDIn", "externalReferenceIDNotIn", "externalReferenceIDContains", "externalReferenceIDHasPrefix", "externalReferenceIDHasSuffix", "externalReferenceIDIsNil", "externalReferenceIDNotNil", "externalReferenceIDEqualFold", "externalReferenceIDContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "hasOwner", "hasOwnerWith", "hasBlockedGroups", "hasBlockedGroupsWith", "hasEditors", "hasEditorsWith", "hasViewers", "hasViewersWith", "hasInternalOwnerUser", "hasInternalOwnerUserWith", "hasInternalOwnerGroup", "hasInternalOwnerGroupWith", "hasEnvironment", "hasEnvironmentWith", "hasScope", "hasScopeWith", "hasEmployer", "hasEmployerWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasAssessments", "hasAssessmentsWith", "hasTemplates", "hasTemplatesWith", "hasAssets", "hasAssetsWith", "hasEntities", "hasEntitiesWith", "hasDirectoryAccounts", "hasDirectoryAccountsWith", "hasControls", "hasControlsWith", "hasSubcontrols", "hasSubcontrolsWith", "hasPlatforms", "hasPlatformsWith", "hasCampaigns", "hasCampaignsWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasTasks", "hasTasksWith", "hasFiles", "hasFilesWith", "hasFindings", "hasFindingsWith", "hasWorkflowObjectRefs", "hasWorkflowObjectRefsWith", "hasAccessPlatforms", "hasAccessPlatformsWith", "hasUser", "hasUserWith", "hasInternalPolicies", "hasInternalPoliciesWith", "tagsHas", "emailAliasesHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -255612,6 +261676,20 @@ func (ec *executionContext) unmarshalInputIdentityHolderWhereInput(ctx context.C return it, err } it.HasCampaignsWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "hasTasks": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTasks")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -272713,7 +278791,7 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "slugName", "slugNameNEQ", "slugNameIn", "slugNameNotIn", "slugNameContains", "slugNameHasPrefix", "slugNameHasSuffix", "slugNameIsNil", "slugNameNotNil", "slugNameEqualFold", "slugNameContainsFold", "hasActionPlanCreators", "hasActionPlanCreatorsWith", "hasAPITokenCreators", "hasAPITokenCreatorsWith", "hasAssessmentCreators", "hasAssessmentCreatorsWith", "hasAssetCreators", "hasAssetCreatorsWith", "hasCampaignCreators", "hasCampaignCreatorsWith", "hasCampaignTargetCreators", "hasCampaignTargetCreatorsWith", "hasCheckResultCreators", "hasCheckResultCreatorsWith", "hasContactCreators", "hasContactCreatorsWith", "hasControlCreators", "hasControlCreatorsWith", "hasControlImplementationCreators", "hasControlImplementationCreatorsWith", "hasControlObjectiveCreators", "hasControlObjectiveCreatorsWith", "hasCustomDomainCreators", "hasCustomDomainCreatorsWith", "hasCustomTypeEnumCreators", "hasCustomTypeEnumCreatorsWith", "hasDirectoryAccountCreators", "hasDirectoryAccountCreatorsWith", "hasDirectoryGroupCreators", "hasDirectoryGroupCreatorsWith", "hasDirectoryMembershipCreators", "hasDirectoryMembershipCreatorsWith", "hasDirectorySyncRunCreators", "hasDirectorySyncRunCreatorsWith", "hasDiscussionCreators", "hasDiscussionCreatorsWith", "hasDocumentDataCreators", "hasDocumentDataCreatorsWith", "hasEmailTemplateCreators", "hasEmailTemplateCreatorsWith", "hasEntityCreators", "hasEntityCreatorsWith", "hasEntityTypeCreators", "hasEntityTypeCreatorsWith", "hasEvidenceCreators", "hasEvidenceCreatorsWith", "hasFileCreators", "hasFileCreatorsWith", "hasFindingCreators", "hasFindingCreatorsWith", "hasFindingControlCreators", "hasFindingControlCreatorsWith", "hasGroupCreators", "hasGroupCreatorsWith", "hasGroupMembershipCreators", "hasGroupMembershipCreatorsWith", "hasGroupSettingCreators", "hasGroupSettingCreatorsWith", "hasHushCreators", "hasHushCreatorsWith", "hasIdentityHolderCreators", "hasIdentityHolderCreatorsWith", "hasInternalPolicyCreators", "hasInternalPolicyCreatorsWith", "hasInviteCreators", "hasInviteCreatorsWith", "hasMappedControlCreators", "hasMappedControlCreatorsWith", "hasNarrativeCreators", "hasNarrativeCreatorsWith", "hasNoteCreators", "hasNoteCreatorsWith", "hasNotificationTemplateCreators", "hasNotificationTemplateCreatorsWith", "hasOrgMembershipCreators", "hasOrgMembershipCreatorsWith", "hasPlatformCreators", "hasPlatformCreatorsWith", "hasProcedureCreators", "hasProcedureCreatorsWith", "hasProgramCreators", "hasProgramCreatorsWith", "hasProgramMembershipCreators", "hasProgramMembershipCreatorsWith", "hasRemediationCreators", "hasRemediationCreatorsWith", "hasReviewCreators", "hasReviewCreatorsWith", "hasRiskCreators", "hasRiskCreatorsWith", "hasScanCreators", "hasScanCreatorsWith", "hasSLADefinitionCreators", "hasSLADefinitionCreatorsWith", "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", "hasVendorRiskScoreCreators", "hasVendorRiskScoreCreatorsWith", "hasVendorScoringConfigCreators", "hasVendorScoringConfigCreatorsWith", "hasVulnerabilityCreators", "hasVulnerabilityCreatorsWith", "hasWorkflowDefinitionCreators", "hasWorkflowDefinitionCreatorsWith", "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", "hasDNSVerifications", "hasDNSVerificationsWith", "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", "hasFindingControls", "hasFindingControlsWith", "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", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "parentOrganizationID", "parentOrganizationIDNEQ", "parentOrganizationIDIn", "parentOrganizationIDNotIn", "parentOrganizationIDContains", "parentOrganizationIDHasPrefix", "parentOrganizationIDHasSuffix", "parentOrganizationIDIsNil", "parentOrganizationIDNotNil", "parentOrganizationIDEqualFold", "parentOrganizationIDContainsFold", "personalOrg", "personalOrgNEQ", "personalOrgIsNil", "personalOrgNotNil", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "slugName", "slugNameNEQ", "slugNameIn", "slugNameNotIn", "slugNameContains", "slugNameHasPrefix", "slugNameHasSuffix", "slugNameIsNil", "slugNameNotNil", "slugNameEqualFold", "slugNameContainsFold", "hasActionPlanCreators", "hasActionPlanCreatorsWith", "hasAPITokenCreators", "hasAPITokenCreatorsWith", "hasAssessmentCreators", "hasAssessmentCreatorsWith", "hasAssetCreators", "hasAssetCreatorsWith", "hasAudienceCreators", "hasAudienceCreatorsWith", "hasAudienceMemberCreators", "hasAudienceMemberCreatorsWith", "hasCampaignCreators", "hasCampaignCreatorsWith", "hasCampaignTargetCreators", "hasCampaignTargetCreatorsWith", "hasCheckResultCreators", "hasCheckResultCreatorsWith", "hasContactCreators", "hasContactCreatorsWith", "hasControlCreators", "hasControlCreatorsWith", "hasControlImplementationCreators", "hasControlImplementationCreatorsWith", "hasControlObjectiveCreators", "hasControlObjectiveCreatorsWith", "hasCustomDomainCreators", "hasCustomDomainCreatorsWith", "hasCustomTypeEnumCreators", "hasCustomTypeEnumCreatorsWith", "hasDirectoryAccountCreators", "hasDirectoryAccountCreatorsWith", "hasDirectoryGroupCreators", "hasDirectoryGroupCreatorsWith", "hasDirectoryMembershipCreators", "hasDirectoryMembershipCreatorsWith", "hasDirectorySyncRunCreators", "hasDirectorySyncRunCreatorsWith", "hasDiscussionCreators", "hasDiscussionCreatorsWith", "hasDocumentDataCreators", "hasDocumentDataCreatorsWith", "hasEmailTemplateCreators", "hasEmailTemplateCreatorsWith", "hasEntityCreators", "hasEntityCreatorsWith", "hasEntityTypeCreators", "hasEntityTypeCreatorsWith", "hasEvidenceCreators", "hasEvidenceCreatorsWith", "hasFileCreators", "hasFileCreatorsWith", "hasFindingCreators", "hasFindingCreatorsWith", "hasFindingControlCreators", "hasFindingControlCreatorsWith", "hasGroupCreators", "hasGroupCreatorsWith", "hasGroupMembershipCreators", "hasGroupMembershipCreatorsWith", "hasGroupSettingCreators", "hasGroupSettingCreatorsWith", "hasHushCreators", "hasHushCreatorsWith", "hasIdentityHolderCreators", "hasIdentityHolderCreatorsWith", "hasInternalPolicyCreators", "hasInternalPolicyCreatorsWith", "hasInviteCreators", "hasInviteCreatorsWith", "hasMappedControlCreators", "hasMappedControlCreatorsWith", "hasNarrativeCreators", "hasNarrativeCreatorsWith", "hasNoteCreators", "hasNoteCreatorsWith", "hasNotificationTemplateCreators", "hasNotificationTemplateCreatorsWith", "hasOrgMembershipCreators", "hasOrgMembershipCreatorsWith", "hasPlatformCreators", "hasPlatformCreatorsWith", "hasProcedureCreators", "hasProcedureCreatorsWith", "hasProgramCreators", "hasProgramCreatorsWith", "hasProgramMembershipCreators", "hasProgramMembershipCreatorsWith", "hasRemediationCreators", "hasRemediationCreatorsWith", "hasReviewCreators", "hasReviewCreatorsWith", "hasRiskCreators", "hasRiskCreatorsWith", "hasScanCreators", "hasScanCreatorsWith", "hasSLADefinitionCreators", "hasSLADefinitionCreatorsWith", "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", "hasVendorRiskScoreCreators", "hasVendorRiskScoreCreatorsWith", "hasVendorScoringConfigCreators", "hasVendorScoringConfigCreatorsWith", "hasVulnerabilityCreators", "hasVulnerabilityCreatorsWith", "hasWorkflowDefinitionCreators", "hasWorkflowDefinitionCreatorsWith", "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", "hasDNSVerifications", "hasDNSVerificationsWith", "hasTrustCenters", "hasTrustCentersWith", "hasAssets", "hasAssetsWith", "hasScans", "hasScansWith", "hasSLADefinitions", "hasSLADefinitionsWith", "hasSubprocessors", "hasSubprocessorsWith", "hasExports", "hasExportsWith", "hasAudiences", "hasAudiencesWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasTrustCenterWatermarkConfigs", "hasTrustCenterWatermarkConfigsWith", "hasAssessments", "hasAssessmentsWith", "hasAssessmentResponses", "hasAssessmentResponsesWith", "hasCustomTypeEnums", "hasCustomTypeEnumsWith", "hasTagDefinitions", "hasTagDefinitionsWith", "hasRemediations", "hasRemediationsWith", "hasFindings", "hasFindingsWith", "hasFindingControls", "hasFindingControlsWith", "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 { @@ -273616,6 +279694,34 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasAssetCreatorsWith = data + case "hasAudienceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceCreators = data + case "hasAudienceCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceCreatorsWith = data + case "hasAudienceMemberCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMemberCreators")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMemberCreators = data + case "hasAudienceMemberCreatorsWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMemberCreatorsWith")) + data, err := ec.unmarshalOGroupWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐGroupWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMemberCreatorsWith = data case "hasCampaignCreators": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasCampaignCreators")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -275324,6 +281430,34 @@ func (ec *executionContext) unmarshalInputOrganizationWhereInput(ctx context.Con return it, err } it.HasExportsWith = data + case "hasAudiences": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudiences")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudiences = data + case "hasAudiencesWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudiencesWith")) + data, err := ec.unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudiencesWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "hasTrustCenterWatermarkConfigs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasTrustCenterWatermarkConfigs")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -302918,7 +309052,7 @@ func (ec *executionContext) unmarshalInputSubscriberWhereInput(ctx context.Conte asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "trustCenterID", "trustCenterIDNEQ", "trustCenterIDIn", "trustCenterIDNotIn", "trustCenterIDContains", "trustCenterIDHasPrefix", "trustCenterIDHasSuffix", "trustCenterIDIsNil", "trustCenterIDNotNil", "trustCenterIDEqualFold", "trustCenterIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "verifiedEmail", "verifiedEmailNEQ", "verifiedPhone", "verifiedPhoneNEQ", "active", "activeNEQ", "unsubscribed", "unsubscribedNEQ", "sendAttempts", "sendAttemptsNEQ", "sendAttemptsGT", "sendAttemptsGTE", "sendAttemptsLT", "sendAttemptsLTE", "contactID", "contactIDNEQ", "contactIDIn", "contactIDNotIn", "contactIDContains", "contactIDHasPrefix", "contactIDHasSuffix", "contactIDIsNil", "contactIDNotNil", "contactIDEqualFold", "contactIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith", "hasTrustCenter", "hasTrustCenterWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasContact", "hasContactWith", "hasUser", "hasUserWith", "tagsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "trustCenterID", "trustCenterIDNEQ", "trustCenterIDIn", "trustCenterIDNotIn", "trustCenterIDContains", "trustCenterIDHasPrefix", "trustCenterIDHasSuffix", "trustCenterIDIsNil", "trustCenterIDNotNil", "trustCenterIDEqualFold", "trustCenterIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "phoneNumber", "phoneNumberNEQ", "phoneNumberIn", "phoneNumberNotIn", "phoneNumberContains", "phoneNumberHasPrefix", "phoneNumberHasSuffix", "phoneNumberIsNil", "phoneNumberNotNil", "phoneNumberEqualFold", "phoneNumberContainsFold", "verifiedEmail", "verifiedEmailNEQ", "verifiedPhone", "verifiedPhoneNEQ", "active", "activeNEQ", "unsubscribed", "unsubscribedNEQ", "sendAttempts", "sendAttemptsNEQ", "sendAttemptsGT", "sendAttemptsGTE", "sendAttemptsLT", "sendAttemptsLTE", "contactID", "contactIDNEQ", "contactIDIn", "contactIDNotIn", "contactIDContains", "contactIDHasPrefix", "contactIDHasSuffix", "contactIDIsNil", "contactIDNotNil", "contactIDEqualFold", "contactIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "hasOwner", "hasOwnerWith", "hasEvents", "hasEventsWith", "hasTrustCenter", "hasTrustCenterWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasContact", "hasContactWith", "hasUser", "hasUserWith", "hasAudienceMembers", "hasAudienceMembersWith", "tagsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -303947,6 +310081,20 @@ func (ec *executionContext) unmarshalInputSubscriberWhereInput(ctx context.Conte return it, err } it.HasUserWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "tagsHas": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tagsHas")) data, err := ec.unmarshalOString2ᚖstring(ctx, v) @@ -323681,6 +329829,388 @@ func (ec *executionContext) unmarshalInputUpdateAssetInput(ctx context.Context, return it, nil } +func (ec *executionContext) unmarshalInputUpdateAudienceInput(ctx context.Context, obj any) (generated.UpdateAudienceInput, error) { + var it generated.UpdateAudienceInput + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "audienceType", "filters", "clearFilters", "metadata", "clearMetadata", "ownerID", "clearOwner", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "appendTags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AppendTags = data + case "clearTags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTags = data + case "name": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Name = data + case "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "clearDescription": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearDescription")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearDescription = data + case "audienceType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceType")) + data, err := ec.unmarshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceType = data + case "filters": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("filters")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Filters = data + case "clearFilters": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFilters")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearFilters = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Metadata = data + case "clearMetadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMetadata")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearMetadata = 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) + if err != nil { + return it, err + } + it.AddBlockedGroupIDs = data + case "removeBlockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeBlockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveBlockedGroupIDs = data + case "clearBlockedGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearBlockedGroups")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearBlockedGroups = data + case "addEditorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addEditorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddEditorIDs = data + case "removeEditorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeEditorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveEditorIDs = data + case "clearEditors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearEditors")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearEditors = data + case "addViewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addViewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddViewerIDs = data + case "removeViewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeViewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveViewerIDs = data + case "clearViewers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearViewers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearViewers = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data + case "addCampaignIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCampaignIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddCampaignIDs = data + case "removeCampaignIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeCampaignIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveCampaignIDs = data + case "clearCampaigns": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearCampaigns")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearCampaigns = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputUpdateAudienceMemberInput(ctx context.Context, obj any) (generated.UpdateAudienceMemberInput, error) { + var it generated.UpdateAudienceMemberInput + if obj == nil { + return it, nil + } + + asMap := map[string]any{} + for k, v := range obj.(map[string]any) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "fullName", "clearFullName", "metadata", "clearMetadata", "ownerID", "clearOwner", "contactID", "clearContact", "userID", "clearUser", "groupID", "clearGroup", "identityHolderID", "clearIdentityHolder", "subscriberID", "clearSubscriber"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.Tags = data + case "appendTags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("appendTags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AppendTags = data + case "clearTags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearTags")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearTags = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Email = data + case "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullName = data + case "clearFullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearFullName")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearFullName = data + case "metadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("metadata")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Metadata = data + case "clearMetadata": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearMetadata")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearMetadata = 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 "contactID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactID = data + case "clearContact": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearContact")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearContact = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "clearUser": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearUser")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearUser = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupID = data + case "clearGroup": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearGroup")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearGroup = data + case "identityHolderID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderID = data + case "clearIdentityHolder": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearIdentityHolder")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearIdentityHolder = data + case "subscriberID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberID = data + case "clearSubscriber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearSubscriber")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearSubscriber = data + } + } + return it, nil +} + func (ec *executionContext) unmarshalInputUpdateCampaignInput(ctx context.Context, obj any) (generated.UpdateCampaignInput, error) { var it generated.UpdateCampaignInput if obj == nil { @@ -323692,7 +330222,7 @@ func (ec *executionContext) unmarshalInputUpdateCampaignInput(ctx context.Contex asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalOwner", "clearInternalOwner", "workflowEligibleMarker", "clearWorkflowEligibleMarker", "name", "description", "clearDescription", "campaignType", "status", "isActive", "scheduledAt", "clearScheduledAt", "launchedAt", "clearLaunchedAt", "completedAt", "clearCompletedAt", "dueDate", "clearDueDate", "isRecurring", "recurrenceFrequency", "clearRecurrenceFrequency", "recurrenceInterval", "clearRecurrenceInterval", "recurrenceTimezone", "clearRecurrenceTimezone", "recurrenceCron", "clearRecurrenceCron", "lastRunAt", "clearLastRunAt", "nextRunAt", "clearNextRunAt", "recurrenceEndAt", "clearRecurrenceEndAt", "recipientCount", "clearRecipientCount", "resendCount", "clearResendCount", "lastResentAt", "clearLastResentAt", "metadata", "clearMetadata", "emailBrandingID", "clearEmailBrandingID", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "internalOwnerUserID", "clearInternalOwnerUser", "internalOwnerGroupID", "clearInternalOwnerGroup", "assessmentID", "clearAssessment", "templateID", "clearTemplate", "integrationID", "clearIntegration", "emailTemplateID", "clearEmailTemplate", "entityID", "clearEntity", "trustCenterID", "clearTrustCenter", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addContactIDs", "removeContactIDs", "clearContacts", "addUserIDs", "removeUserIDs", "clearUsers", "addGroupIDs", "removeGroupIDs", "clearGroups", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addControlIDs", "removeControlIDs", "clearControls", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalOwner", "clearInternalOwner", "workflowEligibleMarker", "clearWorkflowEligibleMarker", "name", "description", "clearDescription", "campaignType", "status", "isActive", "scheduledAt", "clearScheduledAt", "launchedAt", "clearLaunchedAt", "completedAt", "clearCompletedAt", "dueDate", "clearDueDate", "isRecurring", "recurrenceFrequency", "clearRecurrenceFrequency", "recurrenceInterval", "clearRecurrenceInterval", "recurrenceTimezone", "clearRecurrenceTimezone", "recurrenceCron", "clearRecurrenceCron", "lastRunAt", "clearLastRunAt", "nextRunAt", "clearNextRunAt", "recurrenceEndAt", "clearRecurrenceEndAt", "recipientCount", "clearRecipientCount", "resendCount", "clearResendCount", "lastResentAt", "clearLastResentAt", "metadata", "clearMetadata", "emailBrandingID", "clearEmailBrandingID", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "internalOwnerUserID", "clearInternalOwnerUser", "internalOwnerGroupID", "clearInternalOwnerGroup", "assessmentID", "clearAssessment", "templateID", "clearTemplate", "integrationID", "clearIntegration", "emailTemplateID", "clearEmailTemplate", "entityID", "clearEntity", "trustCenterID", "clearTrustCenter", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addContactIDs", "removeContactIDs", "clearContacts", "addUserIDs", "removeUserIDs", "clearUsers", "addGroupIDs", "removeGroupIDs", "clearGroups", "addIdentityHolderIDs", "removeIdentityHolderIDs", "clearIdentityHolders", "addAudienceIDs", "removeAudienceIDs", "clearAudiences", "addControlIDs", "removeControlIDs", "clearControls", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -324322,6 +330852,27 @@ func (ec *executionContext) unmarshalInputUpdateCampaignInput(ctx context.Contex return it, err } it.ClearIdentityHolders = data + case "addAudienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceIDs = data + case "removeAudienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceIDs = data + case "clearAudiences": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudiences")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudiences = data case "addControlIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addControlIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -324783,7 +331334,7 @@ func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "fullName", "clearFullName", "title", "clearTitle", "company", "clearCompany", "email", "clearEmail", "phoneNumber", "clearPhoneNumber", "address", "clearAddress", "status", "externalID", "clearExternalID", "integrationID", "clearIntegrationID", "observedAt", "clearObservedAt", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addFileIDs", "removeFileIDs", "clearFiles", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "fullName", "clearFullName", "title", "clearTitle", "company", "clearCompany", "email", "clearEmail", "phoneNumber", "clearPhoneNumber", "address", "clearAddress", "status", "externalID", "clearExternalID", "integrationID", "clearIntegrationID", "observedAt", "clearObservedAt", "ownerID", "clearOwner", "addEntityIDs", "removeEntityIDs", "clearEntities", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "addFileIDs", "removeFileIDs", "clearFiles", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -325021,6 +331572,27 @@ func (ec *executionContext) unmarshalInputUpdateContactInput(ctx context.Context return it, err } it.ClearCampaignTargets = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data case "addFileIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addFileIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -335262,7 +341834,7 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "logoURL", "clearLogoURL", "displayName", "oscalRole", "clearOscalRole", "oscalPartyUUID", "clearOscalPartyUUID", "oscalContactUuids", "appendOscalContactUuids", "clearOscalContactUuids", "scimExternalID", "clearScimExternalID", "scimDisplayName", "clearScimDisplayName", "scimActive", "clearScimActive", "scimGroupMailing", "clearScimGroupMailing", "ownerID", "clearOwner", "addProgramEditorIDs", "removeProgramEditorIDs", "clearProgramEditors", "addProgramBlockedGroupIDs", "removeProgramBlockedGroupIDs", "clearProgramBlockedGroups", "addProgramViewerIDs", "removeProgramViewerIDs", "clearProgramViewers", "addRiskEditorIDs", "removeRiskEditorIDs", "clearRiskEditors", "addRiskBlockedGroupIDs", "removeRiskBlockedGroupIDs", "clearRiskBlockedGroups", "addRiskViewerIDs", "removeRiskViewerIDs", "clearRiskViewers", "addControlObjectiveEditorIDs", "removeControlObjectiveEditorIDs", "clearControlObjectiveEditors", "addControlObjectiveBlockedGroupIDs", "removeControlObjectiveBlockedGroupIDs", "clearControlObjectiveBlockedGroups", "addControlObjectiveViewerIDs", "removeControlObjectiveViewerIDs", "clearControlObjectiveViewers", "addNarrativeEditorIDs", "removeNarrativeEditorIDs", "clearNarrativeEditors", "addNarrativeBlockedGroupIDs", "removeNarrativeBlockedGroupIDs", "clearNarrativeBlockedGroups", "addNarrativeViewerIDs", "removeNarrativeViewerIDs", "clearNarrativeViewers", "addControlImplementationEditorIDs", "removeControlImplementationEditorIDs", "clearControlImplementationEditors", "addControlImplementationBlockedGroupIDs", "removeControlImplementationBlockedGroupIDs", "clearControlImplementationBlockedGroups", "addControlImplementationViewerIDs", "removeControlImplementationViewerIDs", "clearControlImplementationViewers", "addActionPlanEditorIDs", "removeActionPlanEditorIDs", "clearActionPlanEditors", "addActionPlanBlockedGroupIDs", "removeActionPlanBlockedGroupIDs", "clearActionPlanBlockedGroups", "addActionPlanViewerIDs", "removeActionPlanViewerIDs", "clearActionPlanViewers", "addPlatformEditorIDs", "removePlatformEditorIDs", "clearPlatformEditors", "addPlatformBlockedGroupIDs", "removePlatformBlockedGroupIDs", "clearPlatformBlockedGroups", "addPlatformViewerIDs", "removePlatformViewerIDs", "clearPlatformViewers", "addCampaignEditorIDs", "removeCampaignEditorIDs", "clearCampaignEditors", "addCampaignBlockedGroupIDs", "removeCampaignBlockedGroupIDs", "clearCampaignBlockedGroups", "addCampaignViewerIDs", "removeCampaignViewerIDs", "clearCampaignViewers", "addProcedureEditorIDs", "removeProcedureEditorIDs", "clearProcedureEditors", "addProcedureBlockedGroupIDs", "removeProcedureBlockedGroupIDs", "clearProcedureBlockedGroups", "addInternalPolicyEditorIDs", "removeInternalPolicyEditorIDs", "clearInternalPolicyEditors", "addInternalPolicyBlockedGroupIDs", "removeInternalPolicyBlockedGroupIDs", "clearInternalPolicyBlockedGroups", "addControlEditorIDs", "removeControlEditorIDs", "clearControlEditors", "addControlBlockedGroupIDs", "removeControlBlockedGroupIDs", "clearControlBlockedGroups", "addMappedControlEditorIDs", "removeMappedControlEditorIDs", "clearMappedControlEditors", "addMappedControlBlockedGroupIDs", "removeMappedControlBlockedGroupIDs", "clearMappedControlBlockedGroups", "addScanEditorIDs", "removeScanEditorIDs", "clearScanEditors", "addScanBlockedGroupIDs", "removeScanBlockedGroupIDs", "clearScanBlockedGroups", "addEntityEditorIDs", "removeEntityEditorIDs", "clearEntityEditors", "addEntityBlockedGroupIDs", "removeEntityBlockedGroupIDs", "clearEntityBlockedGroups", "addFindingEditorIDs", "removeFindingEditorIDs", "clearFindingEditors", "addFindingBlockedGroupIDs", "removeFindingBlockedGroupIDs", "clearFindingBlockedGroups", "addReviewEditorIDs", "removeReviewEditorIDs", "clearReviewEditors", "addReviewBlockedGroupIDs", "removeReviewBlockedGroupIDs", "clearReviewBlockedGroups", "addRemediationEditorIDs", "removeRemediationEditorIDs", "clearRemediationEditors", "addRemediationBlockedGroupIDs", "removeRemediationBlockedGroupIDs", "clearRemediationBlockedGroups", "settingID", "clearSetting", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "avatarFileID", "clearAvatarFile", "addFileIDs", "removeFileIDs", "clearFiles", "addTaskIDs", "removeTaskIDs", "clearTasks", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addGroupMembers", "removeGroupMembers", "updateGroupSettings", "inheritGroupPermissions"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "name", "description", "clearDescription", "logoURL", "clearLogoURL", "displayName", "oscalRole", "clearOscalRole", "oscalPartyUUID", "clearOscalPartyUUID", "oscalContactUuids", "appendOscalContactUuids", "clearOscalContactUuids", "scimExternalID", "clearScimExternalID", "scimDisplayName", "clearScimDisplayName", "scimActive", "clearScimActive", "scimGroupMailing", "clearScimGroupMailing", "ownerID", "clearOwner", "addProgramEditorIDs", "removeProgramEditorIDs", "clearProgramEditors", "addProgramBlockedGroupIDs", "removeProgramBlockedGroupIDs", "clearProgramBlockedGroups", "addProgramViewerIDs", "removeProgramViewerIDs", "clearProgramViewers", "addRiskEditorIDs", "removeRiskEditorIDs", "clearRiskEditors", "addRiskBlockedGroupIDs", "removeRiskBlockedGroupIDs", "clearRiskBlockedGroups", "addRiskViewerIDs", "removeRiskViewerIDs", "clearRiskViewers", "addControlObjectiveEditorIDs", "removeControlObjectiveEditorIDs", "clearControlObjectiveEditors", "addControlObjectiveBlockedGroupIDs", "removeControlObjectiveBlockedGroupIDs", "clearControlObjectiveBlockedGroups", "addControlObjectiveViewerIDs", "removeControlObjectiveViewerIDs", "clearControlObjectiveViewers", "addNarrativeEditorIDs", "removeNarrativeEditorIDs", "clearNarrativeEditors", "addNarrativeBlockedGroupIDs", "removeNarrativeBlockedGroupIDs", "clearNarrativeBlockedGroups", "addNarrativeViewerIDs", "removeNarrativeViewerIDs", "clearNarrativeViewers", "addControlImplementationEditorIDs", "removeControlImplementationEditorIDs", "clearControlImplementationEditors", "addControlImplementationBlockedGroupIDs", "removeControlImplementationBlockedGroupIDs", "clearControlImplementationBlockedGroups", "addControlImplementationViewerIDs", "removeControlImplementationViewerIDs", "clearControlImplementationViewers", "addActionPlanEditorIDs", "removeActionPlanEditorIDs", "clearActionPlanEditors", "addActionPlanBlockedGroupIDs", "removeActionPlanBlockedGroupIDs", "clearActionPlanBlockedGroups", "addActionPlanViewerIDs", "removeActionPlanViewerIDs", "clearActionPlanViewers", "addPlatformEditorIDs", "removePlatformEditorIDs", "clearPlatformEditors", "addPlatformBlockedGroupIDs", "removePlatformBlockedGroupIDs", "clearPlatformBlockedGroups", "addPlatformViewerIDs", "removePlatformViewerIDs", "clearPlatformViewers", "addCampaignEditorIDs", "removeCampaignEditorIDs", "clearCampaignEditors", "addCampaignBlockedGroupIDs", "removeCampaignBlockedGroupIDs", "clearCampaignBlockedGroups", "addCampaignViewerIDs", "removeCampaignViewerIDs", "clearCampaignViewers", "addAudienceEditorIDs", "removeAudienceEditorIDs", "clearAudienceEditors", "addAudienceBlockedGroupIDs", "removeAudienceBlockedGroupIDs", "clearAudienceBlockedGroups", "addAudienceViewerIDs", "removeAudienceViewerIDs", "clearAudienceViewers", "addProcedureEditorIDs", "removeProcedureEditorIDs", "clearProcedureEditors", "addProcedureBlockedGroupIDs", "removeProcedureBlockedGroupIDs", "clearProcedureBlockedGroups", "addInternalPolicyEditorIDs", "removeInternalPolicyEditorIDs", "clearInternalPolicyEditors", "addInternalPolicyBlockedGroupIDs", "removeInternalPolicyBlockedGroupIDs", "clearInternalPolicyBlockedGroups", "addControlEditorIDs", "removeControlEditorIDs", "clearControlEditors", "addControlBlockedGroupIDs", "removeControlBlockedGroupIDs", "clearControlBlockedGroups", "addMappedControlEditorIDs", "removeMappedControlEditorIDs", "clearMappedControlEditors", "addMappedControlBlockedGroupIDs", "removeMappedControlBlockedGroupIDs", "clearMappedControlBlockedGroups", "addScanEditorIDs", "removeScanEditorIDs", "clearScanEditors", "addScanBlockedGroupIDs", "removeScanBlockedGroupIDs", "clearScanBlockedGroups", "addEntityEditorIDs", "removeEntityEditorIDs", "clearEntityEditors", "addEntityBlockedGroupIDs", "removeEntityBlockedGroupIDs", "clearEntityBlockedGroups", "addFindingEditorIDs", "removeFindingEditorIDs", "clearFindingEditors", "addFindingBlockedGroupIDs", "removeFindingBlockedGroupIDs", "clearFindingBlockedGroups", "addReviewEditorIDs", "removeReviewEditorIDs", "clearReviewEditors", "addReviewBlockedGroupIDs", "removeReviewBlockedGroupIDs", "clearReviewBlockedGroups", "addRemediationEditorIDs", "removeRemediationEditorIDs", "clearRemediationEditors", "addRemediationBlockedGroupIDs", "removeRemediationBlockedGroupIDs", "clearRemediationBlockedGroups", "settingID", "clearSetting", "addEventIDs", "removeEventIDs", "clearEvents", "addIntegrationIDs", "removeIntegrationIDs", "clearIntegrations", "avatarFileID", "clearAvatarFile", "addFileIDs", "removeFileIDs", "clearFiles", "addTaskIDs", "removeTaskIDs", "clearTasks", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "addGroupMembers", "removeGroupMembers", "updateGroupSettings", "inheritGroupPermissions"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -335955,6 +342527,69 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, return it, err } it.ClearCampaignViewers = data + case "addAudienceEditorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceEditorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceEditorIDs = data + case "removeAudienceEditorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceEditorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceEditorIDs = data + case "clearAudienceEditors": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceEditors")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceEditors = data + case "addAudienceBlockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceBlockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceBlockedGroupIDs = data + case "removeAudienceBlockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceBlockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceBlockedGroupIDs = data + case "clearAudienceBlockedGroups": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceBlockedGroups")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceBlockedGroups = data + case "addAudienceViewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceViewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceViewerIDs = data + case "removeAudienceViewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceViewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceViewerIDs = data + case "clearAudienceViewers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceViewers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceViewers = data case "addProcedureEditorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addProcedureEditorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -336487,6 +343122,27 @@ func (ec *executionContext) unmarshalInputUpdateGroupInput(ctx context.Context, return it, err } it.ClearCampaignTargets = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data case "addGroupMembers": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addGroupMembers")) data, err := ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, v) @@ -336937,7 +343593,7 @@ func (ec *executionContext) unmarshalInputUpdateIdentityHolderInput(ctx context. asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalOwner", "clearInternalOwner", "environmentName", "clearEnvironmentName", "scopeName", "clearScopeName", "workflowEligibleMarker", "clearWorkflowEligibleMarker", "fullName", "email", "alternateEmail", "clearAlternateEmail", "emailAliases", "appendEmailAliases", "clearEmailAliases", "phoneNumber", "clearPhoneNumber", "isOpenlaneUser", "clearIsOpenlaneUser", "identityHolderType", "status", "isActive", "title", "clearTitle", "department", "clearDepartment", "team", "clearTeam", "location", "clearLocation", "startDate", "clearStartDate", "endDate", "clearEndDate", "externalUserID", "clearExternalUserID", "externalReferenceID", "clearExternalReferenceID", "metadata", "clearMetadata", "avatarRemoteURL", "clearAvatarRemoteURL", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "internalOwnerUserID", "clearInternalOwnerUser", "internalOwnerGroupID", "clearInternalOwnerGroup", "environmentID", "clearEnvironment", "scopeID", "clearScope", "employerID", "clearEmployer", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addAssessmentIDs", "removeAssessmentIDs", "clearAssessments", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addAssetIDs", "removeAssetIDs", "clearAssets", "addEntityIDs", "removeEntityIDs", "clearEntities", "addDirectoryAccountIDs", "removeDirectoryAccountIDs", "clearDirectoryAccounts", "addControlIDs", "removeControlIDs", "clearControls", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addTaskIDs", "removeTaskIDs", "clearTasks", "addFileIDs", "removeFileIDs", "clearFiles", "addFindingIDs", "removeFindingIDs", "clearFindings", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs", "addAccessPlatformIDs", "removeAccessPlatformIDs", "clearAccessPlatforms", "userID", "clearUser", "addInternalPolicyIDs", "removeInternalPolicyIDs", "clearInternalPolicies"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "internalOwner", "clearInternalOwner", "environmentName", "clearEnvironmentName", "scopeName", "clearScopeName", "workflowEligibleMarker", "clearWorkflowEligibleMarker", "fullName", "email", "alternateEmail", "clearAlternateEmail", "emailAliases", "appendEmailAliases", "clearEmailAliases", "phoneNumber", "clearPhoneNumber", "isOpenlaneUser", "clearIsOpenlaneUser", "identityHolderType", "status", "isActive", "title", "clearTitle", "department", "clearDepartment", "team", "clearTeam", "location", "clearLocation", "startDate", "clearStartDate", "endDate", "clearEndDate", "externalUserID", "clearExternalUserID", "externalReferenceID", "clearExternalReferenceID", "metadata", "clearMetadata", "avatarRemoteURL", "clearAvatarRemoteURL", "addBlockedGroupIDs", "removeBlockedGroupIDs", "clearBlockedGroups", "addEditorIDs", "removeEditorIDs", "clearEditors", "addViewerIDs", "removeViewerIDs", "clearViewers", "internalOwnerUserID", "clearInternalOwnerUser", "internalOwnerGroupID", "clearInternalOwnerGroup", "environmentID", "clearEnvironment", "scopeID", "clearScope", "employerID", "clearEmployer", "addAssessmentResponseIDs", "removeAssessmentResponseIDs", "clearAssessmentResponses", "addAssessmentIDs", "removeAssessmentIDs", "clearAssessments", "addTemplateIDs", "removeTemplateIDs", "clearTemplates", "addAssetIDs", "removeAssetIDs", "clearAssets", "addEntityIDs", "removeEntityIDs", "clearEntities", "addDirectoryAccountIDs", "removeDirectoryAccountIDs", "clearDirectoryAccounts", "addControlIDs", "removeControlIDs", "clearControls", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addPlatformIDs", "removePlatformIDs", "clearPlatforms", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "addTaskIDs", "removeTaskIDs", "clearTasks", "addFileIDs", "removeFileIDs", "clearFiles", "addFindingIDs", "removeFindingIDs", "clearFindings", "addWorkflowObjectRefIDs", "removeWorkflowObjectRefIDs", "clearWorkflowObjectRefs", "addAccessPlatformIDs", "removeAccessPlatformIDs", "clearAccessPlatforms", "userID", "clearUser", "addInternalPolicyIDs", "removeInternalPolicyIDs", "clearInternalPolicies"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -337602,6 +344258,27 @@ func (ec *executionContext) unmarshalInputUpdateIdentityHolderInput(ctx context. return it, err } it.ClearCampaigns = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data case "addTaskIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTaskIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -340751,7 +347428,7 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co asMap[k] = v } - 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", "addCustomDomainCreatorIDs", "removeCustomDomainCreatorIDs", "clearCustomDomainCreators", "addCustomTypeEnumCreatorIDs", "removeCustomTypeEnumCreatorIDs", "clearCustomTypeEnumCreators", "addDirectoryAccountCreatorIDs", "removeDirectoryAccountCreatorIDs", "clearDirectoryAccountCreators", "addDirectoryGroupCreatorIDs", "removeDirectoryGroupCreatorIDs", "clearDirectoryGroupCreators", "addDirectoryMembershipCreatorIDs", "removeDirectoryMembershipCreatorIDs", "clearDirectoryMembershipCreators", "addDirectorySyncRunCreatorIDs", "removeDirectorySyncRunCreatorIDs", "clearDirectorySyncRunCreators", "addDiscussionCreatorIDs", "removeDiscussionCreatorIDs", "clearDiscussionCreators", "addDocumentDataCreatorIDs", "removeDocumentDataCreatorIDs", "clearDocumentDataCreators", "addEmailTemplateCreatorIDs", "removeEmailTemplateCreatorIDs", "clearEmailTemplateCreators", "addEntityCreatorIDs", "removeEntityCreatorIDs", "clearEntityCreators", "addEntityTypeCreatorIDs", "removeEntityTypeCreatorIDs", "clearEntityTypeCreators", "addEvidenceCreatorIDs", "removeEvidenceCreatorIDs", "clearEvidenceCreators", "addFileCreatorIDs", "removeFileCreatorIDs", "clearFileCreators", "addFindingCreatorIDs", "removeFindingCreatorIDs", "clearFindingCreators", "addFindingControlCreatorIDs", "removeFindingControlCreatorIDs", "clearFindingControlCreators", "addGroupCreatorIDs", "removeGroupCreatorIDs", "clearGroupCreators", "addGroupMembershipCreatorIDs", "removeGroupMembershipCreatorIDs", "clearGroupMembershipCreators", "addGroupSettingCreatorIDs", "removeGroupSettingCreatorIDs", "clearGroupSettingCreators", "addHushCreatorIDs", "removeHushCreatorIDs", "clearHushCreators", "addIdentityHolderCreatorIDs", "removeIdentityHolderCreatorIDs", "clearIdentityHolderCreators", "addInternalPolicyCreatorIDs", "removeInternalPolicyCreatorIDs", "clearInternalPolicyCreators", "addInviteCreatorIDs", "removeInviteCreatorIDs", "clearInviteCreators", "addMappedControlCreatorIDs", "removeMappedControlCreatorIDs", "clearMappedControlCreators", "addNarrativeCreatorIDs", "removeNarrativeCreatorIDs", "clearNarrativeCreators", "addNoteCreatorIDs", "removeNoteCreatorIDs", "clearNoteCreators", "addNotificationTemplateCreatorIDs", "removeNotificationTemplateCreatorIDs", "clearNotificationTemplateCreators", "addOrgMembershipCreatorIDs", "removeOrgMembershipCreatorIDs", "clearOrgMembershipCreators", "addPlatformCreatorIDs", "removePlatformCreatorIDs", "clearPlatformCreators", "addProcedureCreatorIDs", "removeProcedureCreatorIDs", "clearProcedureCreators", "addProgramCreatorIDs", "removeProgramCreatorIDs", "clearProgramCreators", "addProgramMembershipCreatorIDs", "removeProgramMembershipCreatorIDs", "clearProgramMembershipCreators", "addRemediationCreatorIDs", "removeRemediationCreatorIDs", "clearRemediationCreators", "addReviewCreatorIDs", "removeReviewCreatorIDs", "clearReviewCreators", "addRiskCreatorIDs", "removeRiskCreatorIDs", "clearRiskCreators", "addScanCreatorIDs", "removeScanCreatorIDs", "clearScanCreators", "addSLADefinitionCreatorIDs", "removeSLADefinitionCreatorIDs", "clearSLADefinitionCreators", "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", "addVendorRiskScoreCreatorIDs", "removeVendorRiskScoreCreatorIDs", "clearVendorRiskScoreCreators", "addVendorScoringConfigCreatorIDs", "removeVendorScoringConfigCreatorIDs", "clearVendorScoringConfigCreators", "addVulnerabilityCreatorIDs", "removeVulnerabilityCreatorIDs", "clearVulnerabilityCreators", "addWorkflowDefinitionCreatorIDs", "removeWorkflowDefinitionCreatorIDs", "clearWorkflowDefinitionCreators", "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", "addDNSVerificationIDs", "removeDNSVerificationIDs", "clearDNSVerifications", "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", "addAudienceCreatorIDs", "removeAudienceCreatorIDs", "clearAudienceCreators", "addAudienceMemberCreatorIDs", "removeAudienceMemberCreatorIDs", "clearAudienceMemberCreators", "addCampaignCreatorIDs", "removeCampaignCreatorIDs", "clearCampaignCreators", "addCampaignTargetCreatorIDs", "removeCampaignTargetCreatorIDs", "clearCampaignTargetCreators", "addCheckResultCreatorIDs", "removeCheckResultCreatorIDs", "clearCheckResultCreators", "addContactCreatorIDs", "removeContactCreatorIDs", "clearContactCreators", "addControlCreatorIDs", "removeControlCreatorIDs", "clearControlCreators", "addControlImplementationCreatorIDs", "removeControlImplementationCreatorIDs", "clearControlImplementationCreators", "addControlObjectiveCreatorIDs", "removeControlObjectiveCreatorIDs", "clearControlObjectiveCreators", "addCustomDomainCreatorIDs", "removeCustomDomainCreatorIDs", "clearCustomDomainCreators", "addCustomTypeEnumCreatorIDs", "removeCustomTypeEnumCreatorIDs", "clearCustomTypeEnumCreators", "addDirectoryAccountCreatorIDs", "removeDirectoryAccountCreatorIDs", "clearDirectoryAccountCreators", "addDirectoryGroupCreatorIDs", "removeDirectoryGroupCreatorIDs", "clearDirectoryGroupCreators", "addDirectoryMembershipCreatorIDs", "removeDirectoryMembershipCreatorIDs", "clearDirectoryMembershipCreators", "addDirectorySyncRunCreatorIDs", "removeDirectorySyncRunCreatorIDs", "clearDirectorySyncRunCreators", "addDiscussionCreatorIDs", "removeDiscussionCreatorIDs", "clearDiscussionCreators", "addDocumentDataCreatorIDs", "removeDocumentDataCreatorIDs", "clearDocumentDataCreators", "addEmailTemplateCreatorIDs", "removeEmailTemplateCreatorIDs", "clearEmailTemplateCreators", "addEntityCreatorIDs", "removeEntityCreatorIDs", "clearEntityCreators", "addEntityTypeCreatorIDs", "removeEntityTypeCreatorIDs", "clearEntityTypeCreators", "addEvidenceCreatorIDs", "removeEvidenceCreatorIDs", "clearEvidenceCreators", "addFileCreatorIDs", "removeFileCreatorIDs", "clearFileCreators", "addFindingCreatorIDs", "removeFindingCreatorIDs", "clearFindingCreators", "addFindingControlCreatorIDs", "removeFindingControlCreatorIDs", "clearFindingControlCreators", "addGroupCreatorIDs", "removeGroupCreatorIDs", "clearGroupCreators", "addGroupMembershipCreatorIDs", "removeGroupMembershipCreatorIDs", "clearGroupMembershipCreators", "addGroupSettingCreatorIDs", "removeGroupSettingCreatorIDs", "clearGroupSettingCreators", "addHushCreatorIDs", "removeHushCreatorIDs", "clearHushCreators", "addIdentityHolderCreatorIDs", "removeIdentityHolderCreatorIDs", "clearIdentityHolderCreators", "addInternalPolicyCreatorIDs", "removeInternalPolicyCreatorIDs", "clearInternalPolicyCreators", "addInviteCreatorIDs", "removeInviteCreatorIDs", "clearInviteCreators", "addMappedControlCreatorIDs", "removeMappedControlCreatorIDs", "clearMappedControlCreators", "addNarrativeCreatorIDs", "removeNarrativeCreatorIDs", "clearNarrativeCreators", "addNoteCreatorIDs", "removeNoteCreatorIDs", "clearNoteCreators", "addNotificationTemplateCreatorIDs", "removeNotificationTemplateCreatorIDs", "clearNotificationTemplateCreators", "addOrgMembershipCreatorIDs", "removeOrgMembershipCreatorIDs", "clearOrgMembershipCreators", "addPlatformCreatorIDs", "removePlatformCreatorIDs", "clearPlatformCreators", "addProcedureCreatorIDs", "removeProcedureCreatorIDs", "clearProcedureCreators", "addProgramCreatorIDs", "removeProgramCreatorIDs", "clearProgramCreators", "addProgramMembershipCreatorIDs", "removeProgramMembershipCreatorIDs", "clearProgramMembershipCreators", "addRemediationCreatorIDs", "removeRemediationCreatorIDs", "clearRemediationCreators", "addReviewCreatorIDs", "removeReviewCreatorIDs", "clearReviewCreators", "addRiskCreatorIDs", "removeRiskCreatorIDs", "clearRiskCreators", "addScanCreatorIDs", "removeScanCreatorIDs", "clearScanCreators", "addSLADefinitionCreatorIDs", "removeSLADefinitionCreatorIDs", "clearSLADefinitionCreators", "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", "addVendorRiskScoreCreatorIDs", "removeVendorRiskScoreCreatorIDs", "clearVendorRiskScoreCreators", "addVendorScoringConfigCreatorIDs", "removeVendorScoringConfigCreatorIDs", "clearVendorScoringConfigCreators", "addVulnerabilityCreatorIDs", "removeVulnerabilityCreatorIDs", "clearVulnerabilityCreators", "addWorkflowDefinitionCreatorIDs", "removeWorkflowDefinitionCreatorIDs", "clearWorkflowDefinitionCreators", "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", "addDNSVerificationIDs", "removeDNSVerificationIDs", "clearDNSVerifications", "addTrustCenterIDs", "removeTrustCenterIDs", "clearTrustCenters", "addAssetIDs", "removeAssetIDs", "clearAssets", "addScanIDs", "removeScanIDs", "clearScans", "addSLADefinitionIDs", "removeSLADefinitionIDs", "clearSLADefinitions", "addSubprocessorIDs", "removeSubprocessorIDs", "clearSubprocessors", "addExportIDs", "removeExportIDs", "clearExports", "addAudienceIDs", "removeAudienceIDs", "clearAudiences", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "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 { @@ -340912,6 +347589,48 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearAssetCreators = data + case "addAudienceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceCreatorIDs = data + case "removeAudienceCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceCreatorIDs = data + case "clearAudienceCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceCreators = data + case "addAudienceMemberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberCreatorIDs = data + case "removeAudienceMemberCreatorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberCreatorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberCreatorIDs = data + case "clearAudienceMemberCreators": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMemberCreators")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMemberCreators = data case "addCampaignCreatorIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addCampaignCreatorIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -343397,6 +350116,48 @@ func (ec *executionContext) unmarshalInputUpdateOrganizationInput(ctx context.Co return it, err } it.ClearExports = data + case "addAudienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceIDs = data + case "removeAudienceIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceIDs = data + case "clearAudiences": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudiences")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudiences = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data case "addTrustCenterWatermarkConfigIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addTrustCenterWatermarkConfigIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -353098,7 +359859,7 @@ func (ec *executionContext) unmarshalInputUpdateSubscriberInput(ctx context.Cont asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "phoneNumber", "clearPhoneNumber", "unsubscribed", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "contactID", "clearContact", "userID", "clearUser"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "phoneNumber", "clearPhoneNumber", "unsubscribed", "ownerID", "clearOwner", "addEventIDs", "removeEventIDs", "clearEvents", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "contactID", "clearContact", "userID", "clearUser", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -353238,6 +359999,27 @@ func (ec *executionContext) unmarshalInputUpdateSubscriberInput(ctx context.Cont return it, err } it.ClearUser = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data } } return it, nil @@ -356897,7 +363679,7 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o asMap[k] = v } - fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "firstName", "clearFirstName", "lastName", "clearLastName", "displayName", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarUpdatedAt", "clearAvatarUpdatedAt", "lastSeen", "clearLastSeen", "lastLoginProvider", "clearLastLoginProvider", "password", "clearPassword", "sub", "clearSub", "authProvider", "role", "clearRole", "scimExternalID", "clearScimExternalID", "scimUsername", "clearScimUsername", "scimActive", "clearScimActive", "scimPreferredLanguage", "clearScimPreferredLanguage", "scimLocale", "clearScimLocale", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addTfaSettingIDs", "removeTfaSettingIDs", "clearTfaSettings", "settingID", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addGroupIDs", "removeGroupIDs", "clearGroups", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addWebauthnIDs", "removeWebauthnIDs", "clearWebauthns", "avatarFileID", "clearAvatarFile", "addEventIDs", "removeEventIDs", "clearEvents", "addActionPlanIDs", "removeActionPlanIDs", "clearActionPlans", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addAssignerTaskIDs", "removeAssignerTaskIDs", "clearAssignerTasks", "addAssigneeTaskIDs", "removeAssigneeTaskIDs", "clearAssigneeTasks", "addProgramIDs", "removeProgramIDs", "clearPrograms", "addProgramsOwnedIDs", "removeProgramsOwnedIDs", "clearProgramsOwned", "addPlatformsOwnedIDs", "removePlatformsOwnedIDs", "clearPlatformsOwned", "addIdentityHolderProfileIDs", "removeIdentityHolderProfileIDs", "clearIdentityHolderProfiles", "addImpersonationEventIDs", "removeImpersonationEventIDs", "clearImpersonationEvents", "addTargetedImpersonationIDs", "removeTargetedImpersonationIDs", "clearTargetedImpersonations"} + fieldsInOrder := [...]string{"tags", "appendTags", "clearTags", "email", "firstName", "clearFirstName", "lastName", "clearLastName", "displayName", "avatarRemoteURL", "clearAvatarRemoteURL", "avatarUpdatedAt", "clearAvatarUpdatedAt", "lastSeen", "clearLastSeen", "lastLoginProvider", "clearLastLoginProvider", "password", "clearPassword", "sub", "clearSub", "authProvider", "role", "clearRole", "scimExternalID", "clearScimExternalID", "scimUsername", "clearScimUsername", "scimActive", "clearScimActive", "scimPreferredLanguage", "clearScimPreferredLanguage", "scimLocale", "clearScimLocale", "addPersonalAccessTokenIDs", "removePersonalAccessTokenIDs", "clearPersonalAccessTokens", "addTfaSettingIDs", "removeTfaSettingIDs", "clearTfaSettings", "settingID", "addSubscriberIDs", "removeSubscriberIDs", "clearSubscribers", "addGroupIDs", "removeGroupIDs", "clearGroups", "addOrganizationIDs", "removeOrganizationIDs", "clearOrganizations", "addWebauthnIDs", "removeWebauthnIDs", "clearWebauthns", "avatarFileID", "clearAvatarFile", "addEventIDs", "removeEventIDs", "clearEvents", "addActionPlanIDs", "removeActionPlanIDs", "clearActionPlans", "addCampaignIDs", "removeCampaignIDs", "clearCampaigns", "addCampaignTargetIDs", "removeCampaignTargetIDs", "clearCampaignTargets", "addAudienceMemberIDs", "removeAudienceMemberIDs", "clearAudienceMembers", "addSubcontrolIDs", "removeSubcontrolIDs", "clearSubcontrols", "addAssignerTaskIDs", "removeAssignerTaskIDs", "clearAssignerTasks", "addAssigneeTaskIDs", "removeAssigneeTaskIDs", "clearAssigneeTasks", "addProgramIDs", "removeProgramIDs", "clearPrograms", "addProgramsOwnedIDs", "removeProgramsOwnedIDs", "clearProgramsOwned", "addPlatformsOwnedIDs", "removePlatformsOwnedIDs", "clearPlatformsOwned", "addIdentityHolderProfileIDs", "removeIdentityHolderProfileIDs", "clearIdentityHolderProfiles", "addImpersonationEventIDs", "removeImpersonationEventIDs", "clearImpersonationEvents", "addTargetedImpersonationIDs", "removeTargetedImpersonationIDs", "clearTargetedImpersonations"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -357373,6 +364155,27 @@ func (ec *executionContext) unmarshalInputUpdateUserInput(ctx context.Context, o return it, err } it.ClearCampaignTargets = data + case "addAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AddAudienceMemberIDs = data + case "removeAudienceMemberIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("removeAudienceMemberIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RemoveAudienceMemberIDs = data + case "clearAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("clearAudienceMembers")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ClearAudienceMembers = data case "addSubcontrolIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("addSubcontrolIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -360654,7 +367457,7 @@ func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, ob asMap[k] = v } - fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "lastLoginProvider", "lastLoginProviderNEQ", "lastLoginProviderIn", "lastLoginProviderNotIn", "lastLoginProviderIsNil", "lastLoginProviderNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil", "scimExternalID", "scimExternalIDNEQ", "scimExternalIDIn", "scimExternalIDNotIn", "scimExternalIDContains", "scimExternalIDHasPrefix", "scimExternalIDHasSuffix", "scimExternalIDIsNil", "scimExternalIDNotNil", "scimExternalIDEqualFold", "scimExternalIDContainsFold", "scimUsername", "scimUsernameNEQ", "scimUsernameIn", "scimUsernameNotIn", "scimUsernameContains", "scimUsernameHasPrefix", "scimUsernameHasSuffix", "scimUsernameIsNil", "scimUsernameNotNil", "scimUsernameEqualFold", "scimUsernameContainsFold", "scimActive", "scimActiveNEQ", "scimActiveIsNil", "scimActiveNotNil", "scimPreferredLanguage", "scimPreferredLanguageNEQ", "scimPreferredLanguageIn", "scimPreferredLanguageNotIn", "scimPreferredLanguageContains", "scimPreferredLanguageHasPrefix", "scimPreferredLanguageHasSuffix", "scimPreferredLanguageIsNil", "scimPreferredLanguageNotNil", "scimPreferredLanguageEqualFold", "scimPreferredLanguageContainsFold", "scimLocale", "scimLocaleNEQ", "scimLocaleIn", "scimLocaleNotIn", "scimLocaleContains", "scimLocaleHasPrefix", "scimLocaleHasSuffix", "scimLocaleIsNil", "scimLocaleNotNil", "scimLocaleEqualFold", "scimLocaleContainsFold", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasTfaSettings", "hasTfaSettingsWith", "hasSetting", "hasSettingWith", "hasSubscribers", "hasSubscribersWith", "hasGroups", "hasGroupsWith", "hasOrganizations", "hasOrganizationsWith", "hasWebauthns", "hasWebauthnsWith", "hasAvatarFile", "hasAvatarFileWith", "hasEvents", "hasEventsWith", "hasActionPlans", "hasActionPlansWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasSubcontrols", "hasSubcontrolsWith", "hasAssignerTasks", "hasAssignerTasksWith", "hasAssigneeTasks", "hasAssigneeTasksWith", "hasPrograms", "hasProgramsWith", "hasProgramsOwned", "hasProgramsOwnedWith", "hasPlatformsOwned", "hasPlatformsOwnedWith", "hasIdentityHolderProfiles", "hasIdentityHolderProfilesWith", "hasGroupMemberships", "hasGroupMembershipsWith", "hasOrgMemberships", "hasOrgMembershipsWith", "hasProgramMemberships", "hasProgramMembershipsWith", "tagsHas"} + fieldsInOrder := [...]string{"not", "and", "or", "id", "idNEQ", "idIn", "idNotIn", "idEqualFold", "idContainsFold", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "firstName", "firstNameNEQ", "firstNameIn", "firstNameNotIn", "firstNameContains", "firstNameHasPrefix", "firstNameHasSuffix", "firstNameIsNil", "firstNameNotNil", "firstNameEqualFold", "firstNameContainsFold", "lastName", "lastNameNEQ", "lastNameIn", "lastNameNotIn", "lastNameContains", "lastNameHasPrefix", "lastNameHasSuffix", "lastNameIsNil", "lastNameNotNil", "lastNameEqualFold", "lastNameContainsFold", "displayName", "displayNameNEQ", "displayNameIn", "displayNameNotIn", "displayNameContains", "displayNameHasPrefix", "displayNameHasSuffix", "displayNameEqualFold", "displayNameContainsFold", "avatarRemoteURL", "avatarRemoteURLNEQ", "avatarRemoteURLIn", "avatarRemoteURLNotIn", "avatarRemoteURLContains", "avatarRemoteURLHasPrefix", "avatarRemoteURLHasSuffix", "avatarRemoteURLIsNil", "avatarRemoteURLNotNil", "avatarRemoteURLEqualFold", "avatarRemoteURLContainsFold", "avatarLocalFileID", "avatarLocalFileIDNEQ", "avatarLocalFileIDIn", "avatarLocalFileIDNotIn", "avatarLocalFileIDContains", "avatarLocalFileIDHasPrefix", "avatarLocalFileIDHasSuffix", "avatarLocalFileIDIsNil", "avatarLocalFileIDNotNil", "avatarLocalFileIDEqualFold", "avatarLocalFileIDContainsFold", "avatarUpdatedAt", "avatarUpdatedAtGT", "avatarUpdatedAtGTE", "avatarUpdatedAtLT", "avatarUpdatedAtLTE", "avatarUpdatedAtIsNil", "avatarUpdatedAtNotNil", "lastSeen", "lastSeenGT", "lastSeenGTE", "lastSeenLT", "lastSeenLTE", "lastSeenIsNil", "lastSeenNotNil", "lastLoginProvider", "lastLoginProviderNEQ", "lastLoginProviderIn", "lastLoginProviderNotIn", "lastLoginProviderIsNil", "lastLoginProviderNotNil", "sub", "subNEQ", "subIn", "subNotIn", "subContains", "subHasPrefix", "subHasSuffix", "subIsNil", "subNotNil", "subEqualFold", "subContainsFold", "authProvider", "authProviderNEQ", "authProviderIn", "authProviderNotIn", "role", "roleNEQ", "roleIn", "roleNotIn", "roleIsNil", "roleNotNil", "scimExternalID", "scimExternalIDNEQ", "scimExternalIDIn", "scimExternalIDNotIn", "scimExternalIDContains", "scimExternalIDHasPrefix", "scimExternalIDHasSuffix", "scimExternalIDIsNil", "scimExternalIDNotNil", "scimExternalIDEqualFold", "scimExternalIDContainsFold", "scimUsername", "scimUsernameNEQ", "scimUsernameIn", "scimUsernameNotIn", "scimUsernameContains", "scimUsernameHasPrefix", "scimUsernameHasSuffix", "scimUsernameIsNil", "scimUsernameNotNil", "scimUsernameEqualFold", "scimUsernameContainsFold", "scimActive", "scimActiveNEQ", "scimActiveIsNil", "scimActiveNotNil", "scimPreferredLanguage", "scimPreferredLanguageNEQ", "scimPreferredLanguageIn", "scimPreferredLanguageNotIn", "scimPreferredLanguageContains", "scimPreferredLanguageHasPrefix", "scimPreferredLanguageHasSuffix", "scimPreferredLanguageIsNil", "scimPreferredLanguageNotNil", "scimPreferredLanguageEqualFold", "scimPreferredLanguageContainsFold", "scimLocale", "scimLocaleNEQ", "scimLocaleIn", "scimLocaleNotIn", "scimLocaleContains", "scimLocaleHasPrefix", "scimLocaleHasSuffix", "scimLocaleIsNil", "scimLocaleNotNil", "scimLocaleEqualFold", "scimLocaleContainsFold", "hasPersonalAccessTokens", "hasPersonalAccessTokensWith", "hasTfaSettings", "hasTfaSettingsWith", "hasSetting", "hasSettingWith", "hasSubscribers", "hasSubscribersWith", "hasGroups", "hasGroupsWith", "hasOrganizations", "hasOrganizationsWith", "hasWebauthns", "hasWebauthnsWith", "hasAvatarFile", "hasAvatarFileWith", "hasEvents", "hasEventsWith", "hasActionPlans", "hasActionPlansWith", "hasCampaigns", "hasCampaignsWith", "hasCampaignTargets", "hasCampaignTargetsWith", "hasAudienceMembers", "hasAudienceMembersWith", "hasSubcontrols", "hasSubcontrolsWith", "hasAssignerTasks", "hasAssignerTasksWith", "hasAssigneeTasks", "hasAssigneeTasksWith", "hasPrograms", "hasProgramsWith", "hasProgramsOwned", "hasProgramsOwnedWith", "hasPlatformsOwned", "hasPlatformsOwnedWith", "hasIdentityHolderProfiles", "hasIdentityHolderProfilesWith", "hasGroupMemberships", "hasGroupMembershipsWith", "hasOrgMemberships", "hasOrgMembershipsWith", "hasProgramMemberships", "hasProgramMembershipsWith", "tagsHas"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { @@ -362264,6 +369067,20 @@ func (ec *executionContext) unmarshalInputUserWhereInput(ctx context.Context, ob return it, err } it.HasCampaignTargetsWith = data + case "hasAudienceMembers": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembers")) + data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembers = data + case "hasAudienceMembersWith": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasAudienceMembersWith")) + data, err := ec.unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.HasAudienceMembersWith = data case "hasSubcontrols": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("hasSubcontrols")) data, err := ec.unmarshalOBoolean2ᚖbool(ctx, v) @@ -379055,6 +385872,16 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } return ec._Campaign(ctx, sel, obj) + case *generated.AudienceMember: + if obj == nil { + return graphql.Null + } + return ec._AudienceMember(ctx, sel, obj) + case *generated.Audience: + if obj == nil { + return graphql.Null + } + return ec._Audience(ctx, sel, obj) case *generated.Asset: if obj == nil { return graphql.Null @@ -382435,7 +389262,577 @@ 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 "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._Asset_viewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "internalOwnerUser": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_internalOwnerUser(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "internalOwnerGroup": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_internalOwnerGroup(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "assetSubtype": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_assetSubtype(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "assetDataClassification": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_assetDataClassification(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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, 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) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_scope(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "accessModel": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_accessModel(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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, fs *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) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "securityTier": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_securityTier(ctx, field, obj) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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, 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) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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._Asset_scans(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_entities(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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._Asset_platforms(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "systemDetails": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Asset_systemDetails(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "outOfScopePlatforms": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382444,7 +389841,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._Asset_outOfScopePlatforms(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -382473,7 +389870,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 "internalOwnerUser": + case "identityHolders": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382482,8 +389879,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_internalOwnerUser(ctx, field, obj) - if res == graphql.RequiredNull { + res = ec._Asset_identityHolders(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382511,7 +389908,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 "internalOwnerGroup": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382520,8 +389917,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_internalOwnerGroup(ctx, field, obj) - if res == graphql.RequiredNull { + res = ec._Asset_controls(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382549,7 +389946,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 "assetSubtype": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382558,8 +389955,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_assetSubtype(ctx, field, obj) - if res == graphql.RequiredNull { + res = ec._Asset_subcontrols(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382587,7 +389984,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 "assetDataClassification": + case "internalPolicies": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382596,8 +389993,8 @@ 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) - if res == graphql.RequiredNull { + res = ec._Asset_internalPolicies(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382625,7 +390022,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 "environment": + case "findings": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382634,8 +390031,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_environment(ctx, field, obj) - if res == graphql.RequiredNull { + res = ec._Asset_findings(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382663,7 +390060,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 "vulnerabilities": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382672,8 +390069,8 @@ 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) - if res == graphql.RequiredNull { + res = ec._Asset_vulnerabilities(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382701,7 +390098,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 "reviews": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382710,8 +390107,8 @@ 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) - if res == graphql.RequiredNull { + res = ec._Asset_reviews(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382739,7 +390136,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 "remediations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382748,8 +390145,8 @@ 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) - if res == graphql.RequiredNull { + res = ec._Asset_remediations(ctx, field, obj) + if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382777,7 +390174,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 "securityTier": + case "sourcePlatform": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382786,7 +390183,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_securityTier(ctx, field, obj) + res = ec._Asset_sourcePlatform(ctx, field, obj) if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } @@ -382815,7 +390212,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 "criticality": + case "integration": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382824,7 +390221,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_criticality(ctx, field, obj) + res = ec._Asset_integration(ctx, field, obj) if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } @@ -382853,7 +390250,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 "connectedAssets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382862,7 +390259,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._Asset_connectedAssets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -382891,7 +390288,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 "connectedFrom": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382900,7 +390297,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._Asset_connectedFrom(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -382929,7 +390326,201 @@ 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": + 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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var assetConnectionImplementors = []string{"AssetConnection"} + +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) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssetConnection") + case "edges": + out.Values[i] = ec._AssetConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._AssetConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AssetConnection_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var assetEdgeImplementors = []string{"AssetEdge"} + +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) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssetEdge") + case "node": + out.Values[i] = ec._AssetEdge_node(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "cursor": + out.Values[i] = ec._AssetEdge_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceImplementors = []string{"Audience", "Node"} + +func (ec *executionContext) _Audience(ctx context.Context, sel ast.SelectionSet, obj *generated.Audience) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("Audience") + case "id": + out.Values[i] = ec._Audience_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Audience_createdAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedAt": + out.Values[i] = ec._Audience_updatedAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._Audience_createdBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedBy": + out.Values[i] = ec._Audience_updatedBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedByImpersonator": + out.Values[i] = ec._Audience_updatedByImpersonator(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "displayID": + out.Values[i] = ec._Audience_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._Audience_tags(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "ownerID": + out.Values[i] = ec._Audience_ownerID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "name": + out.Values[i] = ec._Audience_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._Audience_description(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "audienceType": + out.Values[i] = ec._Audience_audienceType(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "filters": + out.Values[i] = ec._Audience_filters(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "metadata": + out.Values[i] = ec._Audience_metadata(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382938,8 +390529,8 @@ 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) - if res == graphql.Null { + res = ec._Audience_owner(ctx, field, obj) + if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -382967,7 +390558,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 "systemDetails": + case "blockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -382976,7 +390567,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_systemDetails(ctx, field, obj) + res = ec._Audience_blockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383005,7 +390596,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 "outOfScopePlatforms": + case "editors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383014,7 +390605,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._Audience_editors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383043,7 +390634,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 "viewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383052,7 +390643,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._Audience_viewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383081,7 +390672,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 "audienceMembers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383090,7 +390681,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._Audience_audienceMembers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383119,7 +390710,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 "campaigns": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383128,7 +390719,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._Audience_campaigns(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383157,7 +390748,221 @@ 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": + 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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceConnectionImplementors = []string{"AudienceConnection"} + +func (ec *executionContext) _AudienceConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AudienceConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceConnection") + case "edges": + out.Values[i] = ec._AudienceConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._AudienceConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AudienceConnection_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceEdgeImplementors = []string{"AudienceEdge"} + +func (ec *executionContext) _AudienceEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AudienceEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceEdge") + case "node": + out.Values[i] = ec._AudienceEdge_node(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "cursor": + out.Values[i] = ec._AudienceEdge_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberImplementors = []string{"AudienceMember", "Node"} + +func (ec *executionContext) _AudienceMember(ctx context.Context, sel ast.SelectionSet, obj *generated.AudienceMember) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceMember") + case "id": + out.Values[i] = ec._AudienceMember_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._AudienceMember_createdAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedAt": + out.Values[i] = ec._AudienceMember_updatedAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "createdBy": + out.Values[i] = ec._AudienceMember_createdBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedBy": + out.Values[i] = ec._AudienceMember_updatedBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "updatedByImpersonator": + out.Values[i] = ec._AudienceMember_updatedByImpersonator(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "displayID": + out.Values[i] = ec._AudienceMember_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "tags": + out.Values[i] = ec._AudienceMember_tags(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "ownerID": + out.Values[i] = ec._AudienceMember_ownerID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "audienceID": + out.Values[i] = ec._AudienceMember_audienceID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "contactID": + out.Values[i] = ec._AudienceMember_contactID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._AudienceMember_userID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "groupID": + out.Values[i] = ec._AudienceMember_groupID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "identityHolderID": + out.Values[i] = ec._AudienceMember_identityHolderID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "subscriberID": + out.Values[i] = ec._AudienceMember_subscriberID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "email": + out.Values[i] = ec._AudienceMember_email(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "fullName": + out.Values[i] = ec._AudienceMember_fullName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "metadata": + out.Values[i] = ec._AudienceMember_metadata(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + atomic.AddUint32(&out.Invalids, 1) + } + case "owner": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383166,8 +390971,8 @@ 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) - if res == graphql.Null { + res = ec._AudienceMember_owner(ctx, field, obj) + if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -383195,7 +391000,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 "findings": + case "audience": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383204,7 +391009,7 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_findings(ctx, field, obj) + res = ec._AudienceMember_audience(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -383233,7 +391038,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 "vulnerabilities": + case "contact": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383242,8 +391047,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_vulnerabilities(ctx, field, obj) - if res == graphql.Null { + res = ec._AudienceMember_contact(ctx, field, obj) + if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -383271,7 +391076,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 "reviews": + case "user": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383280,8 +391085,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_reviews(ctx, field, obj) - if res == graphql.Null { + res = ec._AudienceMember_user(ctx, field, obj) + if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -383309,7 +391114,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 "remediations": + case "group": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383318,8 +391123,8 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Asset_remediations(ctx, field, obj) - if res == graphql.Null { + res = ec._AudienceMember_group(ctx, field, obj) + if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } return res @@ -383347,7 +391152,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 "identityHolder": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383356,7 +391161,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._AudienceMember_identityHolder(ctx, field, obj) if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } @@ -383385,7 +391190,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 "integration": + case "subscriber": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -383394,7 +391199,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._AudienceMember_subscriber(ctx, field, obj) if res == graphql.RequiredNull { atomic.AddUint32(&fs.Invalids, 1) } @@ -383422,82 +391227,6 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob continue } - out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "connectedAssets": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_connectedAssets(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) - }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // 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 "connectedFrom": - field := field - - innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Asset_connectedFrom(ctx, field, obj) - if res == graphql.Null { - atomic.AddUint32(&fs.Invalids, 1) - } - return res - } - - if field.IsDeferred() { - deferredFieldSet.AddField(field) - fieldIndex := len(deferredFieldSet.Values) - 1 - deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { - return innerFunc(ctx, deferredFieldSet) - }) - - for _, deferrable := range field.Deferrables { - view, ok := deferLabelToView[deferrable.Label] - if !ok { - view = deferredFieldSet.NewView() - deferLabelToView[deferrable.Label] = view - } - view.AddIndices(fieldIndex) - } - - // 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)) @@ -383520,10 +391249,10 @@ func (ec *executionContext) _Asset(ctx context.Context, sel ast.SelectionSet, ob return out } -var assetConnectionImplementors = []string{"AssetConnection"} +var audienceMemberConnectionImplementors = []string{"AudienceMemberConnection"} -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) _AudienceMemberConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.AudienceMemberConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberConnectionImplementors) out := graphql.NewFieldSet(fields) deferredFieldSet := graphql.NewFieldSet(nil) @@ -383531,19 +391260,19 @@ func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.Select for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetConnection") + out.Values[i] = graphql.MarshalString("AudienceMemberConnection") case "edges": - out.Values[i] = ec._AssetConnection_edges(ctx, field, obj) + out.Values[i] = ec._AudienceMemberConnection_edges(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "pageInfo": - out.Values[i] = ec._AssetConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._AudienceMemberConnection_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._AudienceMemberConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -383568,10 +391297,10 @@ func (ec *executionContext) _AssetConnection(ctx context.Context, sel ast.Select return out } -var assetEdgeImplementors = []string{"AssetEdge"} +var audienceMemberEdgeImplementors = []string{"AudienceMemberEdge"} -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) _AudienceMemberEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.AudienceMemberEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberEdgeImplementors) out := graphql.NewFieldSet(fields) deferredFieldSet := graphql.NewFieldSet(nil) @@ -383579,14 +391308,14 @@ func (ec *executionContext) _AssetEdge(ctx context.Context, sel ast.SelectionSet for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetEdge") + out.Values[i] = graphql.MarshalString("AudienceMemberEdge") case "node": - out.Values[i] = ec._AssetEdge_node(ctx, field, obj) + out.Values[i] = ec._AudienceMemberEdge_node(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "cursor": - out.Values[i] = ec._AssetEdge_cursor(ctx, field, obj) + out.Values[i] = ec._AudienceMemberEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -384511,6 +392240,44 @@ func (ec *executionContext) _Campaign(ctx context.Context, sel ast.SelectionSet, continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audiences": + 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._Campaign_audiences(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 @@ -386164,6 +393931,44 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceMembers": + 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_audienceMembers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 @@ -402906,7 +410711,121 @@ 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 "controlImplementationBlockedGroups": + 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_controlImplementationBlockedGroups(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "controlImplementationViewers": + 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_controlImplementationViewers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "actionPlanEditors": + 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_actionPlanEditors(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "actionPlanBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -402915,7 +410834,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._Group_actionPlanBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -402944,7 +410863,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 "actionPlanViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -402953,7 +410872,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._Group_actionPlanViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -402982,7 +410901,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 "platformEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -402991,7 +410910,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._Group_platformEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403020,7 +410939,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 "platformBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403029,7 +410948,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._Group_platformBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403058,7 +410977,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 "platformViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403067,7 +410986,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._Group_platformViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403096,7 +411015,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 "campaignEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403105,7 +411024,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._Group_campaignEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403134,7 +411053,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 "platformBlockedGroups": + case "campaignBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403143,7 +411062,7 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Group_platformBlockedGroups(ctx, field, obj) + res = ec._Group_campaignBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403172,7 +411091,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 "campaignViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403181,7 +411100,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._Group_campaignViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403210,7 +411129,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 "audienceEditors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403219,7 +411138,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._Group_audienceEditors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403248,7 +411167,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 "audienceBlockedGroups": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403257,7 +411176,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._Group_audienceBlockedGroups(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -403286,7 +411205,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 "audienceViewers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -403295,7 +411214,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._Group_audienceViewers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -404349,6 +412268,44 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceMembers": + 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_audienceMembers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "members": field := field @@ -406365,6 +414322,44 @@ func (ec *executionContext) _IdentityHolder(ctx context.Context, sel ast.Selecti continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceMembers": + 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._IdentityHolder_audienceMembers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 @@ -414031,6 +422026,82 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceCreators": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_audienceCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "audienceMemberCreators": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_audienceMemberCreators(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "campaignCreators": field := field @@ -417984,7 +426055,83 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "risks": + case "risks": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_risks(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "controlObjectives": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Organization_controlObjectives(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 "narratives": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -417993,7 +426140,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_risks(ctx, field, obj) + res = ec._Organization_narratives(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418022,7 +426169,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 "controlObjectives": + case "controls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418031,7 +426178,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controlObjectives(ctx, field, obj) + res = ec._Organization_controls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418060,7 +426207,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 "narratives": + case "subcontrols": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418069,7 +426216,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_narratives(ctx, field, obj) + res = ec._Organization_subcontrols(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418098,7 +426245,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 "controls": + case "controlImplementations": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418107,7 +426254,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controls(ctx, field, obj) + res = ec._Organization_controlImplementations(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418136,7 +426283,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 "subcontrols": + case "mappedControls": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418145,7 +426292,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_subcontrols(ctx, field, obj) + res = ec._Organization_mappedControls(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418174,7 +426321,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 "controlImplementations": + case "evidence": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418183,7 +426330,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_controlImplementations(ctx, field, obj) + res = ec._Organization_evidence(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418212,7 +426359,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 "mappedControls": + case "standards": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418221,7 +426368,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_mappedControls(ctx, field, obj) + res = ec._Organization_standards(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418250,7 +426397,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 "evidence": + case "actionPlans": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418259,7 +426406,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_evidence(ctx, field, obj) + res = ec._Organization_actionPlans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418288,7 +426435,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 "standards": + case "customDomains": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418297,7 +426444,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_standards(ctx, field, obj) + res = ec._Organization_customDomains(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418326,7 +426473,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 "actionPlans": + case "dnsVerifications": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418335,7 +426482,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_actionPlans(ctx, field, obj) + res = ec._Organization_dnsVerifications(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418364,7 +426511,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 "customDomains": + case "trustCenters": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418373,7 +426520,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_customDomains(ctx, field, obj) + res = ec._Organization_trustCenters(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418402,7 +426549,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 "dnsVerifications": + case "assets": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418411,7 +426558,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_dnsVerifications(ctx, field, obj) + res = ec._Organization_assets(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418440,7 +426587,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 "trustCenters": + case "scans": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418449,7 +426596,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_trustCenters(ctx, field, obj) + res = ec._Organization_scans(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418478,7 +426625,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 "assets": + case "slaDefinitions": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418487,7 +426634,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_assets(ctx, field, obj) + res = ec._Organization_slaDefinitions(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418516,7 +426663,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 "scans": + case "subprocessors": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418525,7 +426672,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_scans(ctx, field, obj) + res = ec._Organization_subprocessors(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418554,7 +426701,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 "slaDefinitions": + case "exports": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418563,7 +426710,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_slaDefinitions(ctx, field, obj) + res = ec._Organization_exports(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418592,7 +426739,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 "subprocessors": + case "audiences": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418601,7 +426748,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_subprocessors(ctx, field, obj) + res = ec._Organization_audiences(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -418630,7 +426777,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 "exports": + case "audienceMembers": field := field innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { @@ -418639,7 +426786,7 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection ec.Error(ctx, ec.Recover(ctx, r)) } }() - res = ec._Organization_exports(ctx, field, obj) + res = ec._Organization_audienceMembers(ctx, field, obj) if res == graphql.Null { atomic.AddUint32(&fs.Invalids, 1) } @@ -425645,6 +433792,50 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audiences": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audiences(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceMembers": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceMembers(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "campaigns": field := field @@ -427581,6 +435772,50 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audience": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audience(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceMember": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceMember(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "campaign": field := field @@ -429033,6 +437268,50 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceSearch": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceSearch(ctx, field) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceMemberSearch": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceMemberSearch(ctx, field) + if res == graphql.RequiredNull { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "campaignSearch": field := field @@ -438796,6 +447075,44 @@ func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSe continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceMembers": + 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._Subscriber_audienceMembers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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)) @@ -446594,6 +454911,44 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj continue } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + case "audienceMembers": + 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._User_audienceMembers(ctx, field, obj) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + if field.IsDeferred() { + deferredFieldSet.AddField(field) + fieldIndex := len(deferredFieldSet.Values) - 1 + deferredFieldSet.Concurrently(fieldIndex, func(ctx context.Context) graphql.Marshaler { + return innerFunc(ctx, deferredFieldSet) + }) + + for _, deferrable := range field.Deferrables { + view, ok := deferLabelToView[deferrable.Label] + if !ok { + view = deferredFieldSet.NewView() + deferLabelToView[deferrable.Label] = view + } + view.AddIndices(fieldIndex) + } + + // 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 @@ -454352,6 +462707,124 @@ func (ec *executionContext) unmarshalNAssetWhereInput2ᚖgithubᚗcomᚋtheopenl return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalNAudience2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx context.Context, sel ast.SelectionSet, v generated.Audience) graphql.Marshaler { + return ec._Audience(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx context.Context, sel ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._Audience(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAudienceAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, v any) (enums.AudienceType, error) { + var res enums.AudienceType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, sel ast.SelectionSet, v enums.AudienceType) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNAudienceConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx context.Context, sel ast.SelectionSet, v generated.AudienceConnection) graphql.Marshaler { + return ec._AudienceConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMember2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx context.Context, sel ast.SelectionSet, v generated.AudienceMember) graphql.Marshaler { + return ec._AudienceMember(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMember(ctx, sel, v) +} + +func (ec *executionContext) marshalNAudienceMemberConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx context.Context, sel ast.SelectionSet, v generated.AudienceMemberConnection) graphql.Marshaler { + return ec._AudienceMemberConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAudienceMemberOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrder(ctx context.Context, v any) (*generated.AudienceMemberOrder, error) { + res, err := ec.unmarshalInputAudienceMemberOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNAudienceMemberOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderField(ctx context.Context, v any) (*generated.AudienceMemberOrderField, error) { + var res = new(generated.AudienceMemberOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceMemberOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMemberOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalNAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + res, err := ec.unmarshalInputAudienceMemberWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNAudienceOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrder(ctx context.Context, v any) (*generated.AudienceOrder, error) { + res, err := ec.unmarshalInputAudienceOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNAudienceOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderField(ctx context.Context, v any) (*generated.AudienceOrderField, error) { + var res = new(generated.AudienceOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderField(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalNAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + res, err := ec.unmarshalInputAudienceWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalNCampaign2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaign(ctx context.Context, sel ast.SelectionSet, v generated.Campaign) graphql.Marshaler { return ec._Campaign(ctx, sel, &v) } @@ -454900,6 +463373,26 @@ func (ec *executionContext) unmarshalNCreateAssetInput2ᚖgithubᚗcomᚋtheopen return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalNCreateAudienceInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInput(ctx context.Context, v any) (generated.CreateAudienceInput, error) { + res, err := ec.unmarshalInputCreateAudienceInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateAudienceInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInput(ctx context.Context, v any) (*generated.CreateAudienceInput, error) { + res, err := ec.unmarshalInputCreateAudienceInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateAudienceMemberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInput(ctx context.Context, v any) (generated.CreateAudienceMemberInput, error) { + res, err := ec.unmarshalInputCreateAudienceMemberInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateAudienceMemberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInput(ctx context.Context, v any) (*generated.CreateAudienceMemberInput, error) { + res, err := ec.unmarshalInputCreateAudienceMemberInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNCreateCampaignInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateCampaignInput(ctx context.Context, v any) (generated.CreateCampaignInput, error) { res, err := ec.unmarshalInputCreateCampaignInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -459993,6 +468486,16 @@ func (ec *executionContext) unmarshalNUpdateAssetInput2githubᚗcomᚋtheopenlan return res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalNUpdateAudienceInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceInput(ctx context.Context, v any) (generated.UpdateAudienceInput, error) { + res, err := ec.unmarshalInputUpdateAudienceInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNUpdateAudienceMemberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateAudienceMemberInput(ctx context.Context, v any) (generated.UpdateAudienceMemberInput, error) { + res, err := ec.unmarshalInputUpdateAudienceMemberInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNUpdateCampaignInput2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐUpdateCampaignInput(ctx context.Context, v any) (generated.UpdateCampaignInput, error) { res, err := ec.unmarshalInputUpdateCampaignInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -462084,6 +470587,248 @@ func (ec *executionContext) unmarshalOAssetWhereInput2ᚖgithubᚗcomᚋtheopenl return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOAudience2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Audience) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOAudience2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudience(ctx context.Context, sel ast.SelectionSet, v *generated.Audience) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._Audience(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAudienceAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx context.Context, v any) ([]enums.AudienceType, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]enums.AudienceType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAudienceAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.AudienceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudienceAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, v any) (*enums.AudienceType, error) { + if v == nil { + return nil, nil + } + var res = new(enums.AudienceType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAudienceAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, sel ast.SelectionSet, v *enums.AudienceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) marshalOAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalOAudienceEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.AudienceEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalOAudienceEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceEdge(ctx, sel, v[i]) + }) + + return ret +} + +func (ec *executionContext) marshalOAudienceEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceEdge(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceEdge(ctx, sel, v) +} + +func (ec *executionContext) marshalOAudienceMember2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.AudienceMember) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) marshalOAudienceMember2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMember(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMember) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceMember(ctx, sel, v) +} + +func (ec *executionContext) marshalOAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceMemberConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalOAudienceMemberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.AudienceMemberEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalOAudienceMemberEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberEdge(ctx, sel, v[i]) + }) + + return ret +} + +func (ec *executionContext) marshalOAudienceMemberEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberEdge(ctx context.Context, sel ast.SelectionSet, v *generated.AudienceMemberEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceMemberEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAudienceMemberOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrderᚄ(ctx context.Context, v any) ([]*generated.AudienceMemberOrder, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.AudienceMemberOrder, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceMemberOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberOrder(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceMemberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInputᚄ(ctx context.Context, v any) ([]*generated.AudienceMemberWhereInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.AudienceMemberWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceMemberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberWhereInput(ctx context.Context, v any) (*generated.AudienceMemberWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceMemberWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOAudienceOrder2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrderᚄ(ctx context.Context, v any) ([]*generated.AudienceOrder, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.AudienceOrder, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceOrder(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInputᚄ(ctx context.Context, v any) ([]*generated.AudienceWhereInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.AudienceWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceWhereInput(ctx context.Context, v any) (*generated.AudienceWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOCampaign2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCampaignᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Campaign) graphql.Marshaler { if v == nil { return graphql.Null @@ -463542,6 +472287,40 @@ func (ec *executionContext) unmarshalOCreateAssetInput2ᚕᚖgithubᚗcomᚋtheo return res, nil } +func (ec *executionContext) unmarshalOCreateAudienceInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInputᚄ(ctx context.Context, v any) ([]*generated.CreateAudienceInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.CreateAudienceInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateAudienceInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOCreateAudienceMemberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInputᚄ(ctx context.Context, v any) ([]*generated.CreateAudienceMemberInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*generated.CreateAudienceMemberInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateAudienceMemberInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateAudienceMemberInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + func (ec *executionContext) unmarshalOCreateCampaignInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐCreateCampaignInputᚄ(ctx context.Context, v any) ([]*generated.CreateCampaignInput, error) { if v == nil { return nil, nil diff --git a/internal/graphapi/generated/root_.generated.go b/internal/graphapi/generated/root_.generated.go index 809d7c353c..5959d7f0fd 100644 --- a/internal/graphapi/generated/root_.generated.go +++ b/internal/graphapi/generated/root_.generated.go @@ -524,6 +524,133 @@ type ComplexityRoot struct { Asset func(childComplexity int) int } + Audience struct { + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int + AudienceType func(childComplexity int) int + BlockedGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Campaigns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayID func(childComplexity int) int + Editors func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + Filters func(childComplexity int) int + ID func(childComplexity int) int + Metadata func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UpdatedByImpersonator func(childComplexity int) int + Viewers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + } + + AudienceBulkCreatePayload struct { + Audiences func(childComplexity int) int + } + + AudienceBulkDeletePayload struct { + DeletedIDs func(childComplexity int) int + Error func(childComplexity int) int + NotDeletedIDs func(childComplexity int) int + } + + AudienceBulkUpdatePayload struct { + Audiences func(childComplexity int) int + UpdatedIDs func(childComplexity int) int + } + + AudienceConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + AudienceCreatePayload struct { + Audience func(childComplexity int) int + } + + AudienceDeletePayload struct { + DeletedID func(childComplexity int) int + } + + AudienceEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + AudienceMember struct { + Audience func(childComplexity int) int + AudienceID func(childComplexity int) int + Contact func(childComplexity int) int + ContactID func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DisplayID func(childComplexity int) int + Email func(childComplexity int) int + FullName func(childComplexity int) int + Group func(childComplexity int) int + GroupID func(childComplexity int) int + ID func(childComplexity int) int + IdentityHolder func(childComplexity int) int + IdentityHolderID func(childComplexity int) int + Metadata func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Subscriber func(childComplexity int) int + SubscriberID func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UpdatedByImpersonator func(childComplexity int) int + User func(childComplexity int) int + UserID func(childComplexity int) int + } + + AudienceMemberBulkCreatePayload struct { + AudienceMembers func(childComplexity int) int + } + + AudienceMemberBulkDeletePayload struct { + DeletedIDs func(childComplexity int) int + Error func(childComplexity int) int + NotDeletedIDs func(childComplexity int) int + } + + AudienceMemberBulkUpdatePayload struct { + AudienceMembers func(childComplexity int) int + UpdatedIDs func(childComplexity int) int + } + + AudienceMemberConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + AudienceMemberCreatePayload struct { + AudienceMember func(childComplexity int) int + } + + AudienceMemberDeletePayload struct { + DeletedID func(childComplexity int) int + } + + AudienceMemberEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + AudienceMemberUpdatePayload struct { + AudienceMember func(childComplexity int) int + } + + AudienceUpdatePayload struct { + Audience func(childComplexity int) int + } + BulkUpdateStatusPayload struct { TotalUpdated func(childComplexity int) int } @@ -533,6 +660,7 @@ type ComplexityRoot struct { Assessment func(childComplexity int) int AssessmentID func(childComplexity int) int AssessmentResponses func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssessmentResponseOrder, where *generated.AssessmentResponseWhereInput) int + Audiences func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int BlockedGroups 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 CampaignType func(childComplexity int) int @@ -765,6 +893,7 @@ type ComplexityRoot struct { Contact struct { Address func(childComplexity int) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) 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 Company func(childComplexity int) int @@ -2599,6 +2728,10 @@ type ComplexityRoot struct { ActionPlanEditors func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ActionPlanOrder, where *generated.ActionPlanWhereInput) int ActionPlanViewers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ActionPlanOrder, where *generated.ActionPlanWhereInput) int AdditionalRoles func(childComplexity int) int + AudienceBlockedGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int + AudienceEditors func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int + AudienceViewers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int AvatarFile func(childComplexity int) int AvatarLocalFileID func(childComplexity int) int CampaignBlockedGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) int @@ -2916,6 +3049,7 @@ type ComplexityRoot struct { 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 Assets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssetOrder, where *generated.AssetWhereInput) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int AvatarRemoteURL func(childComplexity int) int BlockedGroups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int Campaigns func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignOrder, where *generated.CampaignWhereInput) int @@ -3407,12 +3541,18 @@ type ComplexityRoot struct { CreateAssessmentResponse func(childComplexity int, input generated.CreateAssessmentResponseInput) int CreateAssessmentTemplate func(childComplexity int, input model.CreateAssessmentTemplateInput) int CreateAsset func(childComplexity int, input generated.CreateAssetInput) int + CreateAudience func(childComplexity int, input generated.CreateAudienceInput) int + CreateAudienceMember func(childComplexity int, input generated.CreateAudienceMemberInput) int CreateBulkAPIToken func(childComplexity int, input []*generated.CreateAPITokenInput) int CreateBulkActionPlan func(childComplexity int, input []*generated.CreateActionPlanInput) int CreateBulkAsset func(childComplexity int, input []*generated.CreateAssetInput) int + CreateBulkAudience func(childComplexity int, input []*generated.CreateAudienceInput) int + CreateBulkAudienceMember func(childComplexity int, input []*generated.CreateAudienceMemberInput) int CreateBulkCSVAPIToken func(childComplexity int, input graphql.Upload) int CreateBulkCSVActionPlan func(childComplexity int, input graphql.Upload) int CreateBulkCSVAsset func(childComplexity int, input graphql.Upload) int + CreateBulkCSVAudience func(childComplexity int, input graphql.Upload) int + CreateBulkCSVAudienceMember func(childComplexity int, input graphql.Upload) int CreateBulkCSVCampaign func(childComplexity int, input graphql.Upload) int CreateBulkCSVCampaignTarget func(childComplexity int, input graphql.Upload) int CreateBulkCSVCheckResult func(childComplexity int, input graphql.Upload) int @@ -3635,10 +3775,14 @@ type ComplexityRoot struct { DeleteAssessment func(childComplexity int, id string) int DeleteAssessmentResponse func(childComplexity int, id string) int DeleteAsset func(childComplexity int, id string) int + DeleteAudience func(childComplexity int, id string) int + DeleteAudienceMember func(childComplexity int, id string) int DeleteBulkAPIToken func(childComplexity int, ids []string) int DeleteBulkActionPlan func(childComplexity int, ids []string) int DeleteBulkAssessment func(childComplexity int, ids []string) int DeleteBulkAsset func(childComplexity int, ids []string) int + DeleteBulkAudience func(childComplexity int, ids []string) int + DeleteBulkAudienceMember func(childComplexity int, ids []string) int DeleteBulkCheckResult func(childComplexity int, ids []string) int DeleteBulkContact func(childComplexity int, ids []string) int DeleteBulkControl func(childComplexity int, ids []string) int @@ -3787,12 +3931,18 @@ type ComplexityRoot struct { UpdateActionPlan func(childComplexity int, id string, input generated.UpdateActionPlanInput) int UpdateAssessment func(childComplexity int, id string, input generated.UpdateAssessmentInput) int UpdateAsset func(childComplexity int, id string, input generated.UpdateAssetInput) int + UpdateAudience func(childComplexity int, id string, input generated.UpdateAudienceInput) int + UpdateAudienceMember func(childComplexity int, id string, input generated.UpdateAudienceMemberInput) int UpdateBulkAPIToken func(childComplexity int, ids []string, input generated.UpdateAPITokenInput) int UpdateBulkActionPlan func(childComplexity int, ids []string, input generated.UpdateActionPlanInput) int UpdateBulkAsset func(childComplexity int, ids []string, input generated.UpdateAssetInput) int + UpdateBulkAudience func(childComplexity int, ids []string, input generated.UpdateAudienceInput) int + UpdateBulkAudienceMember func(childComplexity int, ids []string, input generated.UpdateAudienceMemberInput) int UpdateBulkCSVAPIToken func(childComplexity int, input graphql.Upload) int UpdateBulkCSVActionPlan func(childComplexity int, input graphql.Upload) int UpdateBulkCSVAsset func(childComplexity int, input graphql.Upload) int + UpdateBulkCSVAudience func(childComplexity int, input graphql.Upload) int + UpdateBulkCSVAudienceMember func(childComplexity int, input graphql.Upload) int UpdateBulkCSVCheckResult func(childComplexity int, input graphql.Upload) int UpdateBulkCSVContact func(childComplexity int, input graphql.Upload) int UpdateBulkCSVControl func(childComplexity int, input graphql.Upload) int @@ -4414,6 +4564,10 @@ type ComplexityRoot struct { 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 + AudienceCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + AudienceMemberCreators func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.GroupOrder, where *generated.GroupWhereInput) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int + Audiences func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int AvatarFile func(childComplexity int) int AvatarLocalFileID func(childComplexity int) int AvatarRemoteURL func(childComplexity int) int @@ -5163,6 +5317,12 @@ type ComplexityRoot struct { Asset func(childComplexity int, id string) int AssetSearch func(childComplexity int, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) int Assets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AssetOrder, where *generated.AssetWhereInput) int + Audience func(childComplexity int, id string) int + AudienceMember func(childComplexity int, id string) int + AudienceMemberSearch func(childComplexity int, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int + AudienceSearch func(childComplexity int, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) int + Audiences func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceOrder, where *generated.AudienceWhereInput) int Campaign func(childComplexity int, id string) int CampaignSearch func(childComplexity int, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) int CampaignTarget func(childComplexity int, id string) int @@ -5894,6 +6054,8 @@ type ComplexityRoot struct { AssessmentResponses func(childComplexity int) int Assessments func(childComplexity int) int Assets func(childComplexity int) int + AudienceMembers func(childComplexity int) int + Audiences func(childComplexity int) int CampaignTargets func(childComplexity int) int Campaigns func(childComplexity int) int Contacts func(childComplexity int) int @@ -6190,6 +6352,7 @@ type ComplexityRoot struct { Subscriber struct { Active func(childComplexity int) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int CampaignTargets func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.CampaignTargetOrder, where *generated.CampaignTargetWhereInput) int Contact func(childComplexity int) int ContactID func(childComplexity int) int @@ -7147,6 +7310,7 @@ type ComplexityRoot struct { ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.ActionPlanOrder, where *generated.ActionPlanWhereInput) int AssigneeTasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TaskOrder, where *generated.TaskWhereInput) int AssignerTasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.TaskOrder, where *generated.TaskWhereInput) int + AudienceMembers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy []*generated.AudienceMemberOrder, where *generated.AudienceMemberWhereInput) int AuthProvider func(childComplexity int) int AvatarFile func(childComplexity int) int AvatarLocalFileID func(childComplexity int) int @@ -10146,6 +10310,487 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.AssetUpdatePayload.Asset(childComplexity), true + case "Audience.audienceMembers": + if e.ComplexityRoot.Audience.AudienceMembers == nil { + break + } + + args, err := ec.field_Audience_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Audience.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true + case "Audience.audienceType": + if e.ComplexityRoot.Audience.AudienceType == nil { + break + } + + return e.ComplexityRoot.Audience.AudienceType(childComplexity), true + case "Audience.blockedGroups": + if e.ComplexityRoot.Audience.BlockedGroups == nil { + break + } + + args, err := ec.field_Audience_blockedGroups_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Audience.BlockedGroups(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 "Audience.campaigns": + if e.ComplexityRoot.Audience.Campaigns == nil { + break + } + + args, err := ec.field_Audience_campaigns_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Audience.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 "Audience.createdAt": + if e.ComplexityRoot.Audience.CreatedAt == nil { + break + } + + return e.ComplexityRoot.Audience.CreatedAt(childComplexity), true + case "Audience.createdBy": + if e.ComplexityRoot.Audience.CreatedBy == nil { + break + } + + return e.ComplexityRoot.Audience.CreatedBy(childComplexity), true + case "Audience.description": + if e.ComplexityRoot.Audience.Description == nil { + break + } + + return e.ComplexityRoot.Audience.Description(childComplexity), true + case "Audience.displayID": + if e.ComplexityRoot.Audience.DisplayID == nil { + break + } + + return e.ComplexityRoot.Audience.DisplayID(childComplexity), true + case "Audience.editors": + if e.ComplexityRoot.Audience.Editors == nil { + break + } + + args, err := ec.field_Audience_editors_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Audience.Editors(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 "Audience.filters": + if e.ComplexityRoot.Audience.Filters == nil { + break + } + + return e.ComplexityRoot.Audience.Filters(childComplexity), true + case "Audience.id": + if e.ComplexityRoot.Audience.ID == nil { + break + } + + return e.ComplexityRoot.Audience.ID(childComplexity), true + case "Audience.metadata": + if e.ComplexityRoot.Audience.Metadata == nil { + break + } + + return e.ComplexityRoot.Audience.Metadata(childComplexity), true + case "Audience.name": + if e.ComplexityRoot.Audience.Name == nil { + break + } + + return e.ComplexityRoot.Audience.Name(childComplexity), true + case "Audience.owner": + if e.ComplexityRoot.Audience.Owner == nil { + break + } + + return e.ComplexityRoot.Audience.Owner(childComplexity), true + case "Audience.ownerID": + if e.ComplexityRoot.Audience.OwnerID == nil { + break + } + + return e.ComplexityRoot.Audience.OwnerID(childComplexity), true + case "Audience.tags": + if e.ComplexityRoot.Audience.Tags == nil { + break + } + + return e.ComplexityRoot.Audience.Tags(childComplexity), true + case "Audience.updatedAt": + if e.ComplexityRoot.Audience.UpdatedAt == nil { + break + } + + return e.ComplexityRoot.Audience.UpdatedAt(childComplexity), true + case "Audience.updatedBy": + if e.ComplexityRoot.Audience.UpdatedBy == nil { + break + } + + return e.ComplexityRoot.Audience.UpdatedBy(childComplexity), true + case "Audience.updatedByImpersonator": + if e.ComplexityRoot.Audience.UpdatedByImpersonator == nil { + break + } + + return e.ComplexityRoot.Audience.UpdatedByImpersonator(childComplexity), true + case "Audience.viewers": + if e.ComplexityRoot.Audience.Viewers == nil { + break + } + + args, err := ec.field_Audience_viewers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Audience.Viewers(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 "AudienceBulkCreatePayload.audiences": + if e.ComplexityRoot.AudienceBulkCreatePayload.Audiences == nil { + break + } + + return e.ComplexityRoot.AudienceBulkCreatePayload.Audiences(childComplexity), true + + case "AudienceBulkDeletePayload.deletedIDs": + if e.ComplexityRoot.AudienceBulkDeletePayload.DeletedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceBulkDeletePayload.DeletedIDs(childComplexity), true + case "AudienceBulkDeletePayload.error": + if e.ComplexityRoot.AudienceBulkDeletePayload.Error == nil { + break + } + + return e.ComplexityRoot.AudienceBulkDeletePayload.Error(childComplexity), true + case "AudienceBulkDeletePayload.notDeletedIDs": + if e.ComplexityRoot.AudienceBulkDeletePayload.NotDeletedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceBulkDeletePayload.NotDeletedIDs(childComplexity), true + + case "AudienceBulkUpdatePayload.audiences": + if e.ComplexityRoot.AudienceBulkUpdatePayload.Audiences == nil { + break + } + + return e.ComplexityRoot.AudienceBulkUpdatePayload.Audiences(childComplexity), true + case "AudienceBulkUpdatePayload.updatedIDs": + if e.ComplexityRoot.AudienceBulkUpdatePayload.UpdatedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceBulkUpdatePayload.UpdatedIDs(childComplexity), true + + case "AudienceConnection.edges": + if e.ComplexityRoot.AudienceConnection.Edges == nil { + break + } + + return e.ComplexityRoot.AudienceConnection.Edges(childComplexity), true + case "AudienceConnection.pageInfo": + if e.ComplexityRoot.AudienceConnection.PageInfo == nil { + break + } + + return e.ComplexityRoot.AudienceConnection.PageInfo(childComplexity), true + case "AudienceConnection.totalCount": + if e.ComplexityRoot.AudienceConnection.TotalCount == nil { + break + } + + return e.ComplexityRoot.AudienceConnection.TotalCount(childComplexity), true + + case "AudienceCreatePayload.audience": + if e.ComplexityRoot.AudienceCreatePayload.Audience == nil { + break + } + + return e.ComplexityRoot.AudienceCreatePayload.Audience(childComplexity), true + + case "AudienceDeletePayload.deletedID": + if e.ComplexityRoot.AudienceDeletePayload.DeletedID == nil { + break + } + + return e.ComplexityRoot.AudienceDeletePayload.DeletedID(childComplexity), true + + case "AudienceEdge.cursor": + if e.ComplexityRoot.AudienceEdge.Cursor == nil { + break + } + + return e.ComplexityRoot.AudienceEdge.Cursor(childComplexity), true + case "AudienceEdge.node": + if e.ComplexityRoot.AudienceEdge.Node == nil { + break + } + + return e.ComplexityRoot.AudienceEdge.Node(childComplexity), true + + case "AudienceMember.audience": + if e.ComplexityRoot.AudienceMember.Audience == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Audience(childComplexity), true + case "AudienceMember.audienceID": + if e.ComplexityRoot.AudienceMember.AudienceID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.AudienceID(childComplexity), true + case "AudienceMember.contact": + if e.ComplexityRoot.AudienceMember.Contact == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Contact(childComplexity), true + case "AudienceMember.contactID": + if e.ComplexityRoot.AudienceMember.ContactID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.ContactID(childComplexity), true + case "AudienceMember.createdAt": + if e.ComplexityRoot.AudienceMember.CreatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceMember.CreatedAt(childComplexity), true + case "AudienceMember.createdBy": + if e.ComplexityRoot.AudienceMember.CreatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceMember.CreatedBy(childComplexity), true + case "AudienceMember.displayID": + if e.ComplexityRoot.AudienceMember.DisplayID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.DisplayID(childComplexity), true + case "AudienceMember.email": + if e.ComplexityRoot.AudienceMember.Email == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Email(childComplexity), true + case "AudienceMember.fullName": + if e.ComplexityRoot.AudienceMember.FullName == nil { + break + } + + return e.ComplexityRoot.AudienceMember.FullName(childComplexity), true + case "AudienceMember.group": + if e.ComplexityRoot.AudienceMember.Group == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Group(childComplexity), true + case "AudienceMember.groupID": + if e.ComplexityRoot.AudienceMember.GroupID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.GroupID(childComplexity), true + case "AudienceMember.id": + if e.ComplexityRoot.AudienceMember.ID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.ID(childComplexity), true + case "AudienceMember.identityHolder": + if e.ComplexityRoot.AudienceMember.IdentityHolder == nil { + break + } + + return e.ComplexityRoot.AudienceMember.IdentityHolder(childComplexity), true + case "AudienceMember.identityHolderID": + if e.ComplexityRoot.AudienceMember.IdentityHolderID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.IdentityHolderID(childComplexity), true + case "AudienceMember.metadata": + if e.ComplexityRoot.AudienceMember.Metadata == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Metadata(childComplexity), true + case "AudienceMember.owner": + if e.ComplexityRoot.AudienceMember.Owner == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Owner(childComplexity), true + case "AudienceMember.ownerID": + if e.ComplexityRoot.AudienceMember.OwnerID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.OwnerID(childComplexity), true + case "AudienceMember.subscriber": + if e.ComplexityRoot.AudienceMember.Subscriber == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Subscriber(childComplexity), true + case "AudienceMember.subscriberID": + if e.ComplexityRoot.AudienceMember.SubscriberID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.SubscriberID(childComplexity), true + case "AudienceMember.tags": + if e.ComplexityRoot.AudienceMember.Tags == nil { + break + } + + return e.ComplexityRoot.AudienceMember.Tags(childComplexity), true + case "AudienceMember.updatedAt": + if e.ComplexityRoot.AudienceMember.UpdatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceMember.UpdatedAt(childComplexity), true + case "AudienceMember.updatedBy": + if e.ComplexityRoot.AudienceMember.UpdatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceMember.UpdatedBy(childComplexity), true + case "AudienceMember.updatedByImpersonator": + if e.ComplexityRoot.AudienceMember.UpdatedByImpersonator == nil { + break + } + + return e.ComplexityRoot.AudienceMember.UpdatedByImpersonator(childComplexity), true + case "AudienceMember.user": + if e.ComplexityRoot.AudienceMember.User == nil { + break + } + + return e.ComplexityRoot.AudienceMember.User(childComplexity), true + case "AudienceMember.userID": + if e.ComplexityRoot.AudienceMember.UserID == nil { + break + } + + return e.ComplexityRoot.AudienceMember.UserID(childComplexity), true + + case "AudienceMemberBulkCreatePayload.audienceMembers": + if e.ComplexityRoot.AudienceMemberBulkCreatePayload.AudienceMembers == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkCreatePayload.AudienceMembers(childComplexity), true + + case "AudienceMemberBulkDeletePayload.deletedIDs": + if e.ComplexityRoot.AudienceMemberBulkDeletePayload.DeletedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkDeletePayload.DeletedIDs(childComplexity), true + case "AudienceMemberBulkDeletePayload.error": + if e.ComplexityRoot.AudienceMemberBulkDeletePayload.Error == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkDeletePayload.Error(childComplexity), true + case "AudienceMemberBulkDeletePayload.notDeletedIDs": + if e.ComplexityRoot.AudienceMemberBulkDeletePayload.NotDeletedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkDeletePayload.NotDeletedIDs(childComplexity), true + + case "AudienceMemberBulkUpdatePayload.audienceMembers": + if e.ComplexityRoot.AudienceMemberBulkUpdatePayload.AudienceMembers == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkUpdatePayload.AudienceMembers(childComplexity), true + case "AudienceMemberBulkUpdatePayload.updatedIDs": + if e.ComplexityRoot.AudienceMemberBulkUpdatePayload.UpdatedIDs == nil { + break + } + + return e.ComplexityRoot.AudienceMemberBulkUpdatePayload.UpdatedIDs(childComplexity), true + + case "AudienceMemberConnection.edges": + if e.ComplexityRoot.AudienceMemberConnection.Edges == nil { + break + } + + return e.ComplexityRoot.AudienceMemberConnection.Edges(childComplexity), true + case "AudienceMemberConnection.pageInfo": + if e.ComplexityRoot.AudienceMemberConnection.PageInfo == nil { + break + } + + return e.ComplexityRoot.AudienceMemberConnection.PageInfo(childComplexity), true + case "AudienceMemberConnection.totalCount": + if e.ComplexityRoot.AudienceMemberConnection.TotalCount == nil { + break + } + + return e.ComplexityRoot.AudienceMemberConnection.TotalCount(childComplexity), true + + case "AudienceMemberCreatePayload.audienceMember": + if e.ComplexityRoot.AudienceMemberCreatePayload.AudienceMember == nil { + break + } + + return e.ComplexityRoot.AudienceMemberCreatePayload.AudienceMember(childComplexity), true + + case "AudienceMemberDeletePayload.deletedID": + if e.ComplexityRoot.AudienceMemberDeletePayload.DeletedID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberDeletePayload.DeletedID(childComplexity), true + + case "AudienceMemberEdge.cursor": + if e.ComplexityRoot.AudienceMemberEdge.Cursor == nil { + break + } + + return e.ComplexityRoot.AudienceMemberEdge.Cursor(childComplexity), true + case "AudienceMemberEdge.node": + if e.ComplexityRoot.AudienceMemberEdge.Node == nil { + break + } + + return e.ComplexityRoot.AudienceMemberEdge.Node(childComplexity), true + + case "AudienceMemberUpdatePayload.audienceMember": + if e.ComplexityRoot.AudienceMemberUpdatePayload.AudienceMember == nil { + break + } + + return e.ComplexityRoot.AudienceMemberUpdatePayload.AudienceMember(childComplexity), true + + case "AudienceUpdatePayload.audience": + if e.ComplexityRoot.AudienceUpdatePayload.Audience == nil { + break + } + + return e.ComplexityRoot.AudienceUpdatePayload.Audience(childComplexity), true + case "BulkUpdateStatusPayload.totalUpdated": if e.ComplexityRoot.BulkUpdateStatusPayload.TotalUpdated == nil { break @@ -10182,6 +10827,17 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Campaign.AssessmentResponses(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AssessmentResponseOrder), args["where"].(*generated.AssessmentResponseWhereInput)), true + case "Campaign.audiences": + if e.ComplexityRoot.Campaign.Audiences == nil { + break + } + + args, err := ec.field_Campaign_audiences_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Campaign.Audiences(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true case "Campaign.blockedGroups": if e.ComplexityRoot.Campaign.BlockedGroups == nil { break @@ -11222,6 +11878,17 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Contact.Address(childComplexity), true + case "Contact.audienceMembers": + if e.ComplexityRoot.Contact.AudienceMembers == nil { + break + } + + args, err := ec.field_Contact_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Contact.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true case "Contact.campaignTargets": if e.ComplexityRoot.Contact.CampaignTargets == nil { break @@ -19698,6 +20365,50 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Group.AdditionalRoles(childComplexity), true + case "Group.audienceBlockedGroups": + if e.ComplexityRoot.Group.AudienceBlockedGroups == nil { + break + } + + args, err := ec.field_Group_audienceBlockedGroups_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Group.AudienceBlockedGroups(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true + case "Group.audienceEditors": + if e.ComplexityRoot.Group.AudienceEditors == nil { + break + } + + args, err := ec.field_Group_audienceEditors_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Group.AudienceEditors(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true + case "Group.audienceMembers": + if e.ComplexityRoot.Group.AudienceMembers == nil { + break + } + + args, err := ec.field_Group_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Group.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true + case "Group.audienceViewers": + if e.ComplexityRoot.Group.AudienceViewers == nil { + break + } + + args, err := ec.field_Group_audienceViewers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Group.AudienceViewers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true case "Group.avatarFile": if e.ComplexityRoot.Group.AvatarFile == nil { break @@ -21217,6 +21928,17 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.IdentityHolder.Assets(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AssetOrder), args["where"].(*generated.AssetWhereInput)), true + case "IdentityHolder.audienceMembers": + if e.ComplexityRoot.IdentityHolder.AudienceMembers == nil { + break + } + + args, err := ec.field_IdentityHolder_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.IdentityHolder.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true case "IdentityHolder.avatarRemoteURL": if e.ComplexityRoot.IdentityHolder.AvatarRemoteURL == nil { break @@ -23703,6 +24425,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.CreateAsset(childComplexity, args["input"].(generated.CreateAssetInput)), true + case "Mutation.createAudience": + if e.ComplexityRoot.Mutation.CreateAudience == nil { + break + } + + args, err := ec.field_Mutation_createAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateAudience(childComplexity, args["input"].(generated.CreateAudienceInput)), true + case "Mutation.createAudienceMember": + if e.ComplexityRoot.Mutation.CreateAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_createAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateAudienceMember(childComplexity, args["input"].(generated.CreateAudienceMemberInput)), true case "Mutation.createBulkAPIToken": if e.ComplexityRoot.Mutation.CreateBulkAPIToken == nil { break @@ -23736,6 +24480,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.CreateBulkAsset(childComplexity, args["input"].([]*generated.CreateAssetInput)), true + case "Mutation.createBulkAudience": + if e.ComplexityRoot.Mutation.CreateBulkAudience == nil { + break + } + + args, err := ec.field_Mutation_createBulkAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateBulkAudience(childComplexity, args["input"].([]*generated.CreateAudienceInput)), true + case "Mutation.createBulkAudienceMember": + if e.ComplexityRoot.Mutation.CreateBulkAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_createBulkAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateBulkAudienceMember(childComplexity, args["input"].([]*generated.CreateAudienceMemberInput)), true case "Mutation.createBulkCSVAPIToken": if e.ComplexityRoot.Mutation.CreateBulkCSVAPIToken == nil { break @@ -23769,6 +24535,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.CreateBulkCSVAsset(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVAudience": + if e.ComplexityRoot.Mutation.CreateBulkCSVAudience == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateBulkCSVAudience(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.createBulkCSVAudienceMember": + if e.ComplexityRoot.Mutation.CreateBulkCSVAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.CreateBulkCSVAudienceMember(childComplexity, args["input"].(graphql.Upload)), true case "Mutation.createBulkCSVCampaign": if e.ComplexityRoot.Mutation.CreateBulkCSVCampaign == nil { break @@ -26211,6 +26999,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.DeleteAsset(childComplexity, args["id"].(string)), true + case "Mutation.deleteAudience": + if e.ComplexityRoot.Mutation.DeleteAudience == nil { + break + } + + args, err := ec.field_Mutation_deleteAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.DeleteAudience(childComplexity, args["id"].(string)), true + case "Mutation.deleteAudienceMember": + if e.ComplexityRoot.Mutation.DeleteAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_deleteAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.DeleteAudienceMember(childComplexity, args["id"].(string)), true case "Mutation.deleteBulkAPIToken": if e.ComplexityRoot.Mutation.DeleteBulkAPIToken == nil { break @@ -26255,6 +27065,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.DeleteBulkAsset(childComplexity, args["ids"].([]string)), true + case "Mutation.deleteBulkAudience": + if e.ComplexityRoot.Mutation.DeleteBulkAudience == nil { + break + } + + args, err := ec.field_Mutation_deleteBulkAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.DeleteBulkAudience(childComplexity, args["ids"].([]string)), true + case "Mutation.deleteBulkAudienceMember": + if e.ComplexityRoot.Mutation.DeleteBulkAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_deleteBulkAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.DeleteBulkAudienceMember(childComplexity, args["ids"].([]string)), true case "Mutation.deleteBulkCheckResult": if e.ComplexityRoot.Mutation.DeleteBulkCheckResult == nil { break @@ -27878,6 +28710,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.UpdateAsset(childComplexity, args["id"].(string), args["input"].(generated.UpdateAssetInput)), true + case "Mutation.updateAudience": + if e.ComplexityRoot.Mutation.UpdateAudience == nil { + break + } + + args, err := ec.field_Mutation_updateAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateAudience(childComplexity, args["id"].(string), args["input"].(generated.UpdateAudienceInput)), true + case "Mutation.updateAudienceMember": + if e.ComplexityRoot.Mutation.UpdateAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_updateAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateAudienceMember(childComplexity, args["id"].(string), args["input"].(generated.UpdateAudienceMemberInput)), true case "Mutation.updateBulkAPIToken": if e.ComplexityRoot.Mutation.UpdateBulkAPIToken == nil { break @@ -27911,6 +28765,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.UpdateBulkAsset(childComplexity, args["ids"].([]string), args["input"].(generated.UpdateAssetInput)), true + case "Mutation.updateBulkAudience": + if e.ComplexityRoot.Mutation.UpdateBulkAudience == nil { + break + } + + args, err := ec.field_Mutation_updateBulkAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateBulkAudience(childComplexity, args["ids"].([]string), args["input"].(generated.UpdateAudienceInput)), true + case "Mutation.updateBulkAudienceMember": + if e.ComplexityRoot.Mutation.UpdateBulkAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_updateBulkAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateBulkAudienceMember(childComplexity, args["ids"].([]string), args["input"].(generated.UpdateAudienceMemberInput)), true case "Mutation.updateBulkCSVAPIToken": if e.ComplexityRoot.Mutation.UpdateBulkCSVAPIToken == nil { break @@ -27944,6 +28820,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Mutation.UpdateBulkCSVAsset(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.updateBulkCSVAudience": + if e.ComplexityRoot.Mutation.UpdateBulkCSVAudience == nil { + break + } + + args, err := ec.field_Mutation_updateBulkCSVAudience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateBulkCSVAudience(childComplexity, args["input"].(graphql.Upload)), true + case "Mutation.updateBulkCSVAudienceMember": + if e.ComplexityRoot.Mutation.UpdateBulkCSVAudienceMember == nil { + break + } + + args, err := ec.field_Mutation_updateBulkCSVAudienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Mutation.UpdateBulkCSVAudienceMember(childComplexity, args["input"].(graphql.Upload)), true case "Mutation.updateBulkCSVCheckResult": if e.ComplexityRoot.Mutation.UpdateBulkCSVCheckResult == nil { break @@ -31843,6 +32741,50 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Organization.Assets(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AssetOrder), args["where"].(*generated.AssetWhereInput)), true + case "Organization.audienceCreators": + if e.ComplexityRoot.Organization.AudienceCreators == nil { + break + } + + args, err := ec.field_Organization_audienceCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.AudienceCreators(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.audienceMemberCreators": + if e.ComplexityRoot.Organization.AudienceMemberCreators == nil { + break + } + + args, err := ec.field_Organization_audienceMemberCreators_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.AudienceMemberCreators(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.audienceMembers": + if e.ComplexityRoot.Organization.AudienceMembers == nil { + break + } + + args, err := ec.field_Organization_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true + case "Organization.audiences": + if e.ComplexityRoot.Organization.Audiences == nil { + break + } + + args, err := ec.field_Organization_audiences_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Organization.Audiences(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true case "Organization.avatarFile": if e.ComplexityRoot.Organization.AvatarFile == nil { break @@ -36412,6 +37354,72 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Query.Assets(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AssetOrder), args["where"].(*generated.AssetWhereInput)), true + case "Query.audience": + if e.ComplexityRoot.Query.Audience == nil { + break + } + + args, err := ec.field_Query_audience_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.Audience(childComplexity, args["id"].(string)), true + case "Query.audienceMember": + if e.ComplexityRoot.Query.AudienceMember == nil { + break + } + + args, err := ec.field_Query_audienceMember_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceMember(childComplexity, args["id"].(string)), true + case "Query.audienceMemberSearch": + if e.ComplexityRoot.Query.AudienceMemberSearch == nil { + break + } + + args, err := ec.field_Query_audienceMemberSearch_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceMemberSearch(childComplexity, args["query"].(string), args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int)), true + case "Query.audienceMembers": + if e.ComplexityRoot.Query.AudienceMembers == nil { + break + } + + args, err := ec.field_Query_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true + case "Query.audienceSearch": + if e.ComplexityRoot.Query.AudienceSearch == nil { + break + } + + args, err := ec.field_Query_audienceSearch_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceSearch(childComplexity, args["query"].(string), args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int)), true + case "Query.audiences": + if e.ComplexityRoot.Query.Audiences == nil { + break + } + + args, err := ec.field_Query_audiences_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.Audiences(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceOrder), args["where"].(*generated.AudienceWhereInput)), true case "Query.campaign": if e.ComplexityRoot.Query.Campaign == nil { break @@ -41377,6 +42385,18 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.SearchResults.Assets(childComplexity), true + case "SearchResults.audienceMembers": + if e.ComplexityRoot.SearchResults.AudienceMembers == nil { + break + } + + return e.ComplexityRoot.SearchResults.AudienceMembers(childComplexity), true + case "SearchResults.audiences": + if e.ComplexityRoot.SearchResults.Audiences == nil { + break + } + + return e.ComplexityRoot.SearchResults.Audiences(childComplexity), true case "SearchResults.campaignTargets": if e.ComplexityRoot.SearchResults.CampaignTargets == nil { break @@ -42812,6 +43832,17 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Subscriber.Active(childComplexity), true + case "Subscriber.audienceMembers": + if e.ComplexityRoot.Subscriber.AudienceMembers == nil { + break + } + + args, err := ec.field_Subscriber_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Subscriber.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true case "Subscriber.campaignTargets": if e.ComplexityRoot.Subscriber.CampaignTargets == nil { break @@ -46744,6 +47775,17 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.User.AssignerTasks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.TaskOrder), args["where"].(*generated.TaskWhereInput)), true + case "User.audienceMembers": + if e.ComplexityRoot.User.AudienceMembers == nil { + break + } + + args, err := ec.field_User_audienceMembers_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.User.AudienceMembers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].([]*generated.AudienceMemberOrder), args["where"].(*generated.AudienceMemberWhereInput)), true case "User.authProvider": if e.ComplexityRoot.User.AuthProvider == nil { break @@ -50614,6 +51656,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputAssessmentWhereInput, ec.unmarshalInputAssetOrder, ec.unmarshalInputAssetWhereInput, + ec.unmarshalInputAudienceMemberOrder, + ec.unmarshalInputAudienceMemberWhereInput, + ec.unmarshalInputAudienceOrder, + ec.unmarshalInputAudienceWhereInput, ec.unmarshalInputCampaignOrder, ec.unmarshalInputCampaignTargetOrder, ec.unmarshalInputCampaignTargetWhereInput, @@ -50639,6 +51685,8 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputCreateAssessmentResponseInput, ec.unmarshalInputCreateAssessmentTemplateInput, ec.unmarshalInputCreateAssetInput, + ec.unmarshalInputCreateAudienceInput, + ec.unmarshalInputCreateAudienceMemberInput, ec.unmarshalInputCreateCampaignInput, ec.unmarshalInputCreateCampaignTargetInput, ec.unmarshalInputCreateCampaignWithTargetsInput, @@ -50875,6 +51923,8 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputUpdateActionPlanInput, ec.unmarshalInputUpdateAssessmentInput, ec.unmarshalInputUpdateAssetInput, + ec.unmarshalInputUpdateAudienceInput, + ec.unmarshalInputUpdateAudienceMemberInput, ec.unmarshalInputUpdateCampaignInput, ec.unmarshalInputUpdateCampaignTargetInput, ec.unmarshalInputUpdateCheckResultInput, @@ -52047,6 +53097,340 @@ type AssetBulkUpdatePayload { """ error: String } +`, BuiltIn: false}, + {Name: "../schema/audience.graphql", Input: `extend type Query { + """ + Look up audience by ID + """ + audience( + """ + ID of the audience + """ + id: ID! + ): Audience! +} + +extend type Mutation{ + """ + Create a new audience + """ + createAudience( + """ + values of the audience + """ + input: CreateAudienceInput! + ): AudienceCreatePayload! + """ + Create multiple new audiences + """ + createBulkAudience( + """ + values of the audience + """ + input: [CreateAudienceInput!] + ): AudienceBulkCreatePayload! + """ + Create multiple new audiences via file upload + """ + createBulkCSVAudience( + """ + csv file containing values of the audience + """ + input: Upload! + ): AudienceBulkCreatePayload! + """ + Update multiple existing audiences + """ + updateBulkAudience( + """ + IDs of the audiences to update + """ + ids: [ID!]! + """ + values to update the audiences with + """ + input: UpdateAudienceInput! + ): AudienceBulkUpdatePayload! + """ + Update multiple existing audiences via file upload + """ + updateBulkCSVAudience( + """ + csv file containing values of the audience, must include ID column + """ + input: Upload! + ): AudienceBulkUpdatePayload! + """ + Update an existing audience + """ + updateAudience( + """ + ID of the audience + """ + id: ID! + """ + New values for the audience + """ + input: UpdateAudienceInput! + ): AudienceUpdatePayload! + """ + Delete an existing audience + """ + deleteAudience( + """ + ID of the audience + """ + id: ID! + ): AudienceDeletePayload! + """ + Delete multiple audiences + """ + deleteBulkAudience( + """ + IDs of the audiences to delete + """ + ids: [ID!]! + ): AudienceBulkDeletePayload! +} + +""" +Return response for createAudience mutation +""" +type AudienceCreatePayload { + """ + Created audience + """ + audience: Audience! +} + +""" +Return response for updateAudience mutation +""" +type AudienceUpdatePayload { + """ + Updated audience + """ + audience: Audience! +} + +""" +Return response for deleteAudience mutation +""" +type AudienceDeletePayload { + """ + Deleted audience ID + """ + deletedID: ID! +} + +""" +Return response for createBulkAudience mutation +""" +type AudienceBulkCreatePayload { + """ + Created audiences + """ + audiences: [Audience!] +} + +""" +Return response for updateBulkAudience mutation +""" +type AudienceBulkUpdatePayload { + """ + Updated audiences + """ + audiences: [Audience!] + """ + IDs of the updated audiences + """ + updatedIDs: [ID!] +} + +""" +Return response for deleteBulkAudience mutation +""" +type AudienceBulkDeletePayload { + """ + Deleted audience IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audiences that were not deleted + """ + notDeletedIDs: [ID!] +} +`, BuiltIn: false}, + {Name: "../schema/audiencemember.graphql", Input: `extend type Query { + """ + Look up audienceMember by ID + """ + audienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMember! +} + +extend type Mutation{ + """ + Create a new audienceMember + """ + createAudienceMember( + """ + values of the audienceMember + """ + input: CreateAudienceMemberInput! + ): AudienceMemberCreatePayload! + """ + Create multiple new audienceMembers + """ + createBulkAudienceMember( + """ + values of the audienceMember + """ + input: [CreateAudienceMemberInput!] + ): AudienceMemberBulkCreatePayload! + """ + Create multiple new audienceMembers via file upload + """ + createBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember + """ + input: Upload! + ): AudienceMemberBulkCreatePayload! + """ + Update multiple existing audienceMembers + """ + updateBulkAudienceMember( + """ + IDs of the audienceMembers to update + """ + ids: [ID!]! + """ + values to update the audienceMembers with + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberBulkUpdatePayload! + """ + Update multiple existing audienceMembers via file upload + """ + updateBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember, must include ID column + """ + input: Upload! + ): AudienceMemberBulkUpdatePayload! + """ + Update an existing audienceMember + """ + updateAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + """ + New values for the audienceMember + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberUpdatePayload! + """ + Delete an existing audienceMember + """ + deleteAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMemberDeletePayload! + """ + Delete multiple audienceMembers + """ + deleteBulkAudienceMember( + """ + IDs of the audienceMembers to delete + """ + ids: [ID!]! + ): AudienceMemberBulkDeletePayload! +} + +""" +Return response for createAudienceMember mutation +""" +type AudienceMemberCreatePayload { + """ + Created audienceMember + """ + audienceMember: AudienceMember! +} + +""" +Return response for updateAudienceMember mutation +""" +type AudienceMemberUpdatePayload { + """ + Updated audienceMember + """ + audienceMember: AudienceMember! +} + +""" +Return response for deleteAudienceMember mutation +""" +type AudienceMemberDeletePayload { + """ + Deleted audienceMember ID + """ + deletedID: ID! +} + +""" +Return response for createBulkAudienceMember mutation +""" +type AudienceMemberBulkCreatePayload { + """ + Created audienceMembers + """ + audienceMembers: [AudienceMember!] +} + +""" +Return response for updateBulkAudienceMember mutation +""" +type AudienceMemberBulkUpdatePayload { + """ + Updated audienceMembers + """ + audienceMembers: [AudienceMember!] + """ + IDs of the updated audienceMembers + """ + updatedIDs: [ID!] +} + +""" +Return response for deleteBulkAudienceMember mutation +""" +type AudienceMemberBulkDeletePayload { + """ + Deleted audienceMember IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audienceMembers that were not deleted + """ + notDeletedIDs: [ID!] +} `, BuiltIn: false}, {Name: "../schema/campaign.graphql", Input: `extend type Campaign { """ @@ -60078,6 +61462,808 @@ input AssetWhereInput { """ categoriesHas: String } +type Audience implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType! + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + owner: Organization + blockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + editors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + viewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! + 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! +} +""" +AudienceAudienceType is enum for the field audience_type +""" +enum AudienceAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC +} +""" +A connection to a list of items. +""" +type AudienceConnection { + """ + A list of edges. + """ + edges: [AudienceEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceEdge { + """ + The item at the end of the edge. + """ + node: Audience + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type AudienceMember implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the audience this member belongs to + """ + audienceID: ID! + """ + the contact associated with this audience member + """ + contactID: ID + """ + the user associated with this audience member + """ + userID: ID + """ + the group associated with this audience member + """ + groupID: ID + """ + the identity holder associated with this audience member + """ + identityHolderID: ID + """ + the subscriber associated with this audience member + """ + subscriberID: ID + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + owner: Organization + audience: Audience! + contact: Contact + user: User + group: Group + identityHolder: IdentityHolder + subscriber: Subscriber +} +""" +A connection to a list of items. +""" +type AudienceMemberConnection { + """ + A list of edges. + """ + edges: [AudienceMemberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceMemberEdge { + """ + The item at the end of the edge. + """ + node: AudienceMember + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +Ordering options for AudienceMember connections +""" +input AudienceMemberOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMembers. + """ + field: AudienceMemberOrderField! +} +""" +Properties by which AudienceMember connections can be ordered. +""" +enum AudienceMemberOrderField { + created_at + updated_at + email + full_name +} +""" +AudienceMemberWhereInput is used for filtering AudienceMember objects. +Input was generated by ent. +""" +input AudienceMemberWhereInput { + not: AudienceMemberWhereInput + and: [AudienceMemberWhereInput!] + or: [AudienceMemberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + audience_id field predicates + """ + audienceID: ID + audienceIDNEQ: ID + audienceIDIn: [ID!] + audienceIDNotIn: [ID!] + audienceIDContains: ID + audienceIDHasPrefix: ID + audienceIDHasSuffix: ID + audienceIDEqualFold: ID + audienceIDContainsFold: ID + """ + contact_id field predicates + """ + contactID: ID + contactIDNEQ: ID + contactIDIn: [ID!] + contactIDNotIn: [ID!] + contactIDContains: ID + contactIDHasPrefix: ID + contactIDHasSuffix: ID + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: ID + contactIDContainsFold: ID + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + identity_holder_id field predicates + """ + identityHolderID: ID + identityHolderIDNEQ: ID + identityHolderIDIn: [ID!] + identityHolderIDNotIn: [ID!] + identityHolderIDContains: ID + identityHolderIDHasPrefix: ID + identityHolderIDHasSuffix: ID + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: ID + identityHolderIDContainsFold: ID + """ + subscriber_id field predicates + """ + subscriberID: ID + subscriberIDNEQ: ID + subscriberIDIn: [ID!] + subscriberIDNotIn: [ID!] + subscriberIDContains: ID + subscriberIDHasPrefix: ID + subscriberIDHasSuffix: ID + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: ID + subscriberIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + audience edge predicates + """ + hasAudience: Boolean + hasAudienceWith: [AudienceWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + identity_holder edge predicates + """ + hasIdentityHolder: Boolean + hasIdentityHolderWith: [IdentityHolderWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} +""" +Ordering options for Audience connections +""" +input AudienceOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Audiences. + """ + field: AudienceOrderField! +} +""" +Properties by which Audience connections can be ordered. +""" +enum AudienceOrderField { + created_at + updated_at + name + AUDIENCE_TYPE +} +""" +AudienceWhereInput is used for filtering Audience objects. +Input was generated by ent. +""" +input AudienceWhereInput { + not: AudienceWhereInput + and: [AudienceWhereInput!] + or: [AudienceWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceAudienceType + audienceTypeNEQ: AudienceAudienceType + audienceTypeIn: [AudienceAudienceType!] + audienceTypeNotIn: [AudienceAudienceType!] + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ + campaigns edge predicates + """ + hasCampaigns: Boolean + hasCampaignsWith: [CampaignWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} type Campaign implements Node @modules(names: ["compliance_module","trust_center_module"]) { id: ID! createdAt: Time @@ -60322,139 +62508,170 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center """ where: GroupWhereInput ): GroupConnection! - internalOwnerUser: User - internalOwnerGroup: Group - assessment: Assessment - template: Template - integration: Integration - emailTemplate: EmailTemplate - entity: Entity - trustCenter: TrustCenter - 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! - 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! - 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! - 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! - groups( + internalOwnerUser: User + internalOwnerGroup: Group + assessment: Assessment + template: Template + integration: Integration + emailTemplate: EmailTemplate + entity: Entity + trustCenter: TrustCenter + 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! + 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! + 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! + 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! + 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! + identityHolders( """ Returns the elements in the list that come after the specified cursor. """ @@ -60476,16 +62693,16 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center last: Int """ - Ordering options for Groups returned from the connection. + Ordering options for IdentityHolders returned from the connection. """ - orderBy: [GroupOrder!] + orderBy: [IdentityHolderOrder!] """ - Filtering options for Groups returned from the connection. + Filtering options for IdentityHolders returned from the connection. """ - where: GroupWhereInput - ): GroupConnection! - identityHolders( + where: IdentityHolderWhereInput + ): IdentityHolderConnection! + audiences( """ Returns the elements in the list that come after the specified cursor. """ @@ -60507,15 +62724,15 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center last: Int """ - Ordering options for IdentityHolders returned from the connection. + Ordering options for Audiences returned from the connection. """ - orderBy: [IdentityHolderOrder!] + orderBy: [AudienceOrder!] """ - Filtering options for IdentityHolders returned from the connection. + Filtering options for Audiences returned from the connection. """ - where: IdentityHolderWhereInput - ): IdentityHolderConnection! + where: AudienceWhereInput + ): AudienceConnection! controls( """ Returns the elements in the list that come after the specified cursor. @@ -61634,6 +63851,11 @@ input CampaignWhereInput { hasIdentityHolders: Boolean hasIdentityHoldersWith: [IdentityHolderWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ controls edge predicates """ hasControls: Boolean @@ -62262,6 +64484,37 @@ type Contact implements Node @modules(names: ["entity_management_module","compli """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! files( """ Returns the elements in the list that come after the specified cursor. @@ -62636,6 +64889,11 @@ input ContactWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ files edge predicates """ hasFiles: Boolean @@ -66367,6 +68625,71 @@ input CreateAssetInput { connectedFromIDs: [ID!] } """ +CreateAudienceInput is used for create Audience object. +Input was generated by ent. +""" +input CreateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + audienceMemberIDs: [ID!] + campaignIDs: [ID!] +} +""" +CreateAudienceMemberInput is used for create AudienceMember object. +Input was generated by ent. +""" +input CreateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + ownerID: ID + audienceID: ID! + contactID: ID + userID: ID + groupID: ID + identityHolderID: ID + subscriberID: ID +} +""" CreateCampaignInput is used for create Campaign object. Input was generated by ent. """ @@ -66489,6 +68812,7 @@ input CreateCampaignInput { userIDs: [ID!] groupIDs: [ID!] identityHolderIDs: [ID!] + audienceIDs: [ID!] controlIDs: [ID!] workflowObjectRefIDs: [ID!] } @@ -66626,6 +68950,7 @@ input CreateContactInput { entityIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] fileIDs: [ID!] subscriberIDs: [ID!] } @@ -68410,6 +70735,9 @@ input CreateGroupInput { campaignEditorIDs: [ID!] campaignBlockedGroupIDs: [ID!] campaignViewerIDs: [ID!] + audienceEditorIDs: [ID!] + audienceBlockedGroupIDs: [ID!] + audienceViewerIDs: [ID!] procedureEditorIDs: [ID!] procedureBlockedGroupIDs: [ID!] internalPolicyEditorIDs: [ID!] @@ -68436,6 +70764,7 @@ input CreateGroupInput { taskIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] } """ CreateGroupMembershipInput is used for create GroupMembership object. @@ -68641,6 +70970,7 @@ input CreateIdentityHolderInput { subcontrolIDs: [ID!] platformIDs: [ID!] campaignIDs: [ID!] + audienceMemberIDs: [ID!] taskIDs: [ID!] fileIDs: [ID!] findingIDs: [ID!] @@ -69275,6 +71605,8 @@ input CreateOrganizationInput { apiTokenCreatorIDs: [ID!] assessmentCreatorIDs: [ID!] assetCreatorIDs: [ID!] + audienceCreatorIDs: [ID!] + audienceMemberCreatorIDs: [ID!] campaignCreatorIDs: [ID!] campaignTargetCreatorIDs: [ID!] checkResultCreatorIDs: [ID!] @@ -69395,6 +71727,8 @@ input CreateOrganizationInput { slaDefinitionIDs: [ID!] subprocessorIDs: [ID!] exportIDs: [ID!] + audienceIDs: [ID!] + audienceMemberIDs: [ID!] trustCenterWatermarkConfigIDs: [ID!] impersonationEventIDs: [ID!] assessmentIDs: [ID!] @@ -70792,6 +73126,7 @@ input CreateSubscriberInput { campaignTargetIDs: [ID!] contactID: ID userID: ID + audienceMemberIDs: [ID!] } """ CreateSystemDetailInput is used for create SystemDetail object. @@ -71489,6 +73824,7 @@ input CreateUserInput { actionPlanIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] subcontrolIDs: [ID!] assignerTaskIDs: [ID!] assigneeTaskIDs: [ID!] @@ -81652,6 +83988,8 @@ ExportExportType is enum for the field export_type enum ExportExportType @goModel(model: "github.com/theopenlane/core/common/enums.ExportType") { ASSESSMENT ASSET + AUDIENCE + AUDIENCE_MEMBER CAMPAIGN CHECK_RESULT CONTACT @@ -85665,6 +88003,99 @@ type Group implements Node { """ where: CampaignWhereInput ): CampaignConnection! + audienceEditors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceBlockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceViewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! procedureEditors( """ Returns the elements in the list that come after the specified cursor. @@ -86371,16 +88802,47 @@ type Group implements Node { last: Int """ - Ordering options for Tasks returned from the connection. + Ordering options for Tasks returned from the connection. + """ + orderBy: [TaskOrder!] + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + 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: [TaskOrder!] + orderBy: [CampaignOrder!] """ - Filtering options for Tasks returned from the connection. + Filtering options for Campaigns returned from the connection. """ - where: TaskWhereInput - ): TaskConnection! - campaigns( + where: CampaignWhereInput + ): CampaignConnection! + campaignTargets( """ Returns the elements in the list that come after the specified cursor. """ @@ -86402,16 +88864,16 @@ type Group implements Node { last: Int """ - Ordering options for Campaigns returned from the connection. + Ordering options for CampaignTargets returned from the connection. """ - orderBy: [CampaignOrder!] + orderBy: [CampaignTargetOrder!] """ - Filtering options for Campaigns returned from the connection. + Filtering options for CampaignTargets returned from the connection. """ - where: CampaignWhereInput - ): CampaignConnection! - campaignTargets( + where: CampaignTargetWhereInput + ): CampaignTargetConnection! + audienceMembers( """ Returns the elements in the list that come after the specified cursor. """ @@ -86433,15 +88895,15 @@ type Group implements Node { last: Int """ - Ordering options for CampaignTargets returned from the connection. + Ordering options for AudienceMembers returned from the connection. """ - orderBy: [CampaignTargetOrder!] + orderBy: [AudienceMemberOrder!] """ - Filtering options for CampaignTargets returned from the connection. + Filtering options for AudienceMembers returned from the connection. """ - where: CampaignTargetWhereInput - ): CampaignTargetConnection! + where: AudienceMemberWhereInput + ): AudienceMemberConnection! members( """ Returns the elements in the list that come after the specified cursor. @@ -87296,6 +89758,21 @@ input GroupWhereInput { hasCampaignViewers: Boolean hasCampaignViewersWith: [CampaignWhereInput!] """ + audience_editors edge predicates + """ + hasAudienceEditors: Boolean + hasAudienceEditorsWith: [AudienceWhereInput!] + """ + audience_blocked_groups edge predicates + """ + hasAudienceBlockedGroups: Boolean + hasAudienceBlockedGroupsWith: [AudienceWhereInput!] + """ + audience_viewers edge predicates + """ + hasAudienceViewers: Boolean + hasAudienceViewersWith: [AudienceWhereInput!] + """ procedure_editors edge predicates """ hasProcedureEditors: Boolean @@ -87431,6 +89908,11 @@ input GroupWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ members edge predicates """ hasMembers: Boolean @@ -88404,6 +90886,37 @@ type IdentityHolder implements Node @modules(names: ["compliance_module","regist """ where: CampaignWhereInput ): CampaignConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! tasks( """ Returns the elements in the list that come after the specified cursor. @@ -89210,6 +91723,11 @@ input IdentityHolderWhereInput { hasCampaigns: Boolean hasCampaignsWith: [CampaignWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ tasks edge predicates """ hasTasks: Boolean @@ -96086,6 +98604,68 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! + audienceCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMemberCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! campaignCreators( """ Returns the elements in the list that come after the specified cursor. @@ -99748,6 +102328,68 @@ type Organization implements Node { """ where: ExportWhereInput ): ExportConnection! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! trustCenterWatermarkConfigs( """ Returns the elements in the list that come after the specified cursor. @@ -101348,6 +103990,16 @@ input OrganizationWhereInput { hasAssetCreators: Boolean hasAssetCreatorsWith: [GroupWhereInput!] """ + audience_creators edge predicates + """ + hasAudienceCreators: Boolean + hasAudienceCreatorsWith: [GroupWhereInput!] + """ + audience_member_creators edge predicates + """ + hasAudienceMemberCreators: Boolean + hasAudienceMemberCreatorsWith: [GroupWhereInput!] + """ campaign_creators edge predicates """ hasCampaignCreators: Boolean @@ -101958,6 +104610,16 @@ input OrganizationWhereInput { hasExports: Boolean hasExportsWith: [ExportWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ trust_center_watermark_configs edge predicates """ hasTrustCenterWatermarkConfigs: Boolean @@ -107384,6 +110046,68 @@ type Query { """ where: AssetWhereInput ): AssetConnection! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! campaigns( """ Returns the elements in the list that come after the specified cursor. @@ -118111,6 +120835,37 @@ type Subscriber implements Node { ): CampaignTargetConnection! contact: Contact user: User + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! } """ A connection to a list of items. @@ -118387,6 +121142,11 @@ input SubscriberWhereInput { hasUser: Boolean hasUserWith: [UserWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ Filter for tagsHas to contain a specific value """ tagsHas: String @@ -125865,6 +128625,96 @@ input UpdateAssetInput { clearConnectedFrom: Boolean } """ +UpdateAudienceInput is used for update Audience object. +Input was generated by ent. +""" +input UpdateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the audience + """ + name: String + """ + the description of the audience + """ + description: String + clearDescription: Boolean + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + clearFilters: Boolean + """ + additional metadata about the audience + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean + addCampaignIDs: [ID!] + removeCampaignIDs: [ID!] + clearCampaigns: Boolean +} +""" +UpdateAudienceMemberInput is used for update AudienceMember object. +Input was generated by ent. +""" +input UpdateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the email address for this audience member + """ + email: String + """ + the name of this audience member, if known + """ + fullName: String + clearFullName: Boolean + """ + additional metadata about the audience member + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + contactID: ID + clearContact: Boolean + userID: ID + clearUser: Boolean + groupID: ID + clearGroup: Boolean + identityHolderID: ID + clearIdentityHolder: Boolean + subscriberID: ID + clearSubscriber: Boolean +} +""" UpdateCampaignInput is used for update Campaign object. Input was generated by ent. """ @@ -126033,6 +128883,9 @@ input UpdateCampaignInput { addIdentityHolderIDs: [ID!] removeIdentityHolderIDs: [ID!] clearIdentityHolders: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean addControlIDs: [ID!] removeControlIDs: [ID!] clearControls: Boolean @@ -126216,6 +129069,9 @@ input UpdateContactInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addFileIDs: [ID!] removeFileIDs: [ID!] clearFiles: Boolean @@ -128695,6 +131551,15 @@ input UpdateGroupInput { addCampaignViewerIDs: [ID!] removeCampaignViewerIDs: [ID!] clearCampaignViewers: Boolean + addAudienceEditorIDs: [ID!] + removeAudienceEditorIDs: [ID!] + clearAudienceEditors: Boolean + addAudienceBlockedGroupIDs: [ID!] + removeAudienceBlockedGroupIDs: [ID!] + clearAudienceBlockedGroups: Boolean + addAudienceViewerIDs: [ID!] + removeAudienceViewerIDs: [ID!] + clearAudienceViewers: Boolean addProcedureEditorIDs: [ID!] removeProcedureEditorIDs: [ID!] clearProcedureEditors: Boolean @@ -128771,6 +131636,9 @@ input UpdateGroupInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean } """ UpdateGroupMembershipInput is used for update GroupMembership object. @@ -129037,6 +131905,9 @@ input UpdateIdentityHolderInput { addCampaignIDs: [ID!] removeCampaignIDs: [ID!] clearCampaigns: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTaskIDs: [ID!] removeTaskIDs: [ID!] clearTasks: Boolean @@ -129810,6 +132681,12 @@ input UpdateOrganizationInput { addAssetCreatorIDs: [ID!] removeAssetCreatorIDs: [ID!] clearAssetCreators: Boolean + addAudienceCreatorIDs: [ID!] + removeAudienceCreatorIDs: [ID!] + clearAudienceCreators: Boolean + addAudienceMemberCreatorIDs: [ID!] + removeAudienceMemberCreatorIDs: [ID!] + clearAudienceMemberCreators: Boolean addCampaignCreatorIDs: [ID!] removeCampaignCreatorIDs: [ID!] clearCampaignCreators: Boolean @@ -130165,6 +133042,12 @@ input UpdateOrganizationInput { addExportIDs: [ID!] removeExportIDs: [ID!] clearExports: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTrustCenterWatermarkConfigIDs: [ID!] removeTrustCenterWatermarkConfigIDs: [ID!] clearTrustCenterWatermarkConfigs: Boolean @@ -132269,6 +135152,9 @@ input UpdateSubscriberInput { clearContact: Boolean userID: ID clearUser: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean } """ UpdateSystemDetailInput is used for update SystemDetail object. @@ -133233,6 +136119,9 @@ input UpdateUserInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addSubcontrolIDs: [ID!] removeSubcontrolIDs: [ID!] clearSubcontrols: Boolean @@ -134211,6 +137100,37 @@ type User implements Node { """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! subcontrols( """ Returns the elements in the list that come after the specified cursor. @@ -135241,6 +138161,11 @@ input UserWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ subcontrols edge predicates """ hasSubcontrols: Boolean @@ -147810,6 +150735,56 @@ type ScanBulkDeletePayload { last: Int ): AssetConnection """ + Search across Audience objects + """ + audienceSearch( + """ + Query string to search across objects + """ + query: String! + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + """ + Returns the first _n_ elements from the list. + """ + first: Int + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceConnection + """ + Search across AudienceMember objects + """ + audienceMemberSearch( + """ + Query string to search across objects + """ + query: String! + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + """ + Returns the first _n_ elements from the list. + """ + first: Int + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceMemberConnection + """ Search across Campaign objects """ campaignSearch( @@ -148698,6 +151673,8 @@ type SearchResults{ assessments: AssessmentConnection assessmentResponses: AssessmentResponseConnection assets: AssetConnection + audiences: AudienceConnection + audienceMembers: AudienceMemberConnection campaigns: CampaignConnection campaignTargets: CampaignTargetConnection contacts: ContactConnection @@ -154362,6 +157339,260 @@ func (ec *executionContext) childFields_AssetUpdatePayload(ctx context.Context, return nil, fmt.Errorf("no field named %q was found under type AssetUpdatePayload", field.Name) } +func (ec *executionContext) childFields_Audience(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Audience_id(ctx, field) + case "createdAt": + return ec.fieldContext_Audience_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Audience_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Audience_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Audience_updatedBy(ctx, field) + case "updatedByImpersonator": + return ec.fieldContext_Audience_updatedByImpersonator(ctx, field) + case "displayID": + return ec.fieldContext_Audience_displayID(ctx, field) + case "tags": + return ec.fieldContext_Audience_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Audience_ownerID(ctx, field) + case "name": + return ec.fieldContext_Audience_name(ctx, field) + case "description": + return ec.fieldContext_Audience_description(ctx, field) + case "audienceType": + return ec.fieldContext_Audience_audienceType(ctx, field) + case "filters": + return ec.fieldContext_Audience_filters(ctx, field) + case "metadata": + return ec.fieldContext_Audience_metadata(ctx, field) + case "owner": + return ec.fieldContext_Audience_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Audience_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Audience_editors(ctx, field) + case "viewers": + return ec.fieldContext_Audience_viewers(ctx, field) + case "audienceMembers": + return ec.fieldContext_Audience_audienceMembers(ctx, field) + case "campaigns": + return ec.fieldContext_Audience_campaigns(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Audience", field.Name) +} + +func (ec *executionContext) childFields_AudienceBulkCreatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audiences": + return ec.fieldContext_AudienceBulkCreatePayload_audiences(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceBulkCreatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceBulkDeletePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedIDs": + return ec.fieldContext_AudienceBulkDeletePayload_deletedIDs(ctx, field) + case "error": + return ec.fieldContext_AudienceBulkDeletePayload_error(ctx, field) + case "notDeletedIDs": + return ec.fieldContext_AudienceBulkDeletePayload_notDeletedIDs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceBulkDeletePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceBulkUpdatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audiences": + return ec.fieldContext_AudienceBulkUpdatePayload_audiences(ctx, field) + case "updatedIDs": + return ec.fieldContext_AudienceBulkUpdatePayload_updatedIDs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceBulkUpdatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceConnection(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_AudienceConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AudienceConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AudienceConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceConnection", field.Name) +} + +func (ec *executionContext) childFields_AudienceCreatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audience": + return ec.fieldContext_AudienceCreatePayload_audience(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceCreatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceDeletePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_AudienceDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceDeletePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceEdge(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AudienceEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AudienceEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceEdge", field.Name) +} + +func (ec *executionContext) childFields_AudienceMember(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AudienceMember_id(ctx, field) + case "createdAt": + return ec.fieldContext_AudienceMember_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_AudienceMember_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_AudienceMember_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_AudienceMember_updatedBy(ctx, field) + case "updatedByImpersonator": + return ec.fieldContext_AudienceMember_updatedByImpersonator(ctx, field) + case "displayID": + return ec.fieldContext_AudienceMember_displayID(ctx, field) + case "tags": + return ec.fieldContext_AudienceMember_tags(ctx, field) + case "ownerID": + return ec.fieldContext_AudienceMember_ownerID(ctx, field) + case "audienceID": + return ec.fieldContext_AudienceMember_audienceID(ctx, field) + case "contactID": + return ec.fieldContext_AudienceMember_contactID(ctx, field) + case "userID": + return ec.fieldContext_AudienceMember_userID(ctx, field) + case "groupID": + return ec.fieldContext_AudienceMember_groupID(ctx, field) + case "identityHolderID": + return ec.fieldContext_AudienceMember_identityHolderID(ctx, field) + case "subscriberID": + return ec.fieldContext_AudienceMember_subscriberID(ctx, field) + case "email": + return ec.fieldContext_AudienceMember_email(ctx, field) + case "fullName": + return ec.fieldContext_AudienceMember_fullName(ctx, field) + case "metadata": + return ec.fieldContext_AudienceMember_metadata(ctx, field) + case "owner": + return ec.fieldContext_AudienceMember_owner(ctx, field) + case "audience": + return ec.fieldContext_AudienceMember_audience(ctx, field) + case "contact": + return ec.fieldContext_AudienceMember_contact(ctx, field) + case "user": + return ec.fieldContext_AudienceMember_user(ctx, field) + case "group": + return ec.fieldContext_AudienceMember_group(ctx, field) + case "identityHolder": + return ec.fieldContext_AudienceMember_identityHolder(ctx, field) + case "subscriber": + return ec.fieldContext_AudienceMember_subscriber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMember", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberBulkCreatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audienceMembers": + return ec.fieldContext_AudienceMemberBulkCreatePayload_audienceMembers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberBulkCreatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberBulkDeletePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedIDs": + return ec.fieldContext_AudienceMemberBulkDeletePayload_deletedIDs(ctx, field) + case "error": + return ec.fieldContext_AudienceMemberBulkDeletePayload_error(ctx, field) + case "notDeletedIDs": + return ec.fieldContext_AudienceMemberBulkDeletePayload_notDeletedIDs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberBulkDeletePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberBulkUpdatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audienceMembers": + return ec.fieldContext_AudienceMemberBulkUpdatePayload_audienceMembers(ctx, field) + case "updatedIDs": + return ec.fieldContext_AudienceMemberBulkUpdatePayload_updatedIDs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberBulkUpdatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberConnection(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_AudienceMemberConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AudienceMemberConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AudienceMemberConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberConnection", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberCreatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audienceMember": + return ec.fieldContext_AudienceMemberCreatePayload_audienceMember(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberCreatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberDeletePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "deletedID": + return ec.fieldContext_AudienceMemberDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberDeletePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberEdge(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AudienceMemberEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AudienceMemberEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberEdge", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberUpdatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audienceMember": + return ec.fieldContext_AudienceMemberUpdatePayload_audienceMember(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberUpdatePayload", field.Name) +} + +func (ec *executionContext) childFields_AudienceUpdatePayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "audience": + return ec.fieldContext_AudienceUpdatePayload_audience(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceUpdatePayload", field.Name) +} + func (ec *executionContext) childFields_BulkUpdateStatusPayload(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "totalUpdated": @@ -154490,6 +157721,8 @@ func (ec *executionContext) childFields_Campaign(ctx context.Context, field grap return ec.fieldContext_Campaign_groups(ctx, field) case "identityHolders": return ec.fieldContext_Campaign_identityHolders(ctx, field) + case "audiences": + return ec.fieldContext_Campaign_audiences(ctx, field) case "controls": return ec.fieldContext_Campaign_controls(ctx, field) case "workflowObjectRefs": @@ -154886,6 +158119,8 @@ func (ec *executionContext) childFields_Contact(ctx context.Context, field graph return ec.fieldContext_Contact_campaigns(ctx, field) case "campaignTargets": return ec.fieldContext_Contact_campaignTargets(ctx, field) + case "audienceMembers": + return ec.fieldContext_Contact_audienceMembers(ctx, field) case "files": return ec.fieldContext_Contact_files(ctx, field) case "subscribers": @@ -158580,6 +161815,12 @@ func (ec *executionContext) childFields_Group(ctx context.Context, field graphql return ec.fieldContext_Group_campaignBlockedGroups(ctx, field) case "campaignViewers": return ec.fieldContext_Group_campaignViewers(ctx, field) + case "audienceEditors": + return ec.fieldContext_Group_audienceEditors(ctx, field) + case "audienceBlockedGroups": + return ec.fieldContext_Group_audienceBlockedGroups(ctx, field) + case "audienceViewers": + return ec.fieldContext_Group_audienceViewers(ctx, field) case "procedureEditors": return ec.fieldContext_Group_procedureEditors(ctx, field) case "procedureBlockedGroups": @@ -158634,6 +161875,8 @@ func (ec *executionContext) childFields_Group(ctx context.Context, field graphql return ec.fieldContext_Group_campaigns(ctx, field) case "campaignTargets": return ec.fieldContext_Group_campaignTargets(ctx, field) + case "audienceMembers": + return ec.fieldContext_Group_audienceMembers(ctx, field) case "members": return ec.fieldContext_Group_members(ctx, field) case "permissions": @@ -159228,6 +162471,8 @@ func (ec *executionContext) childFields_IdentityHolder(ctx context.Context, fiel return ec.fieldContext_IdentityHolder_platforms(ctx, field) case "campaigns": return ec.fieldContext_IdentityHolder_campaigns(ctx, field) + case "audienceMembers": + return ec.fieldContext_IdentityHolder_audienceMembers(ctx, field) case "tasks": return ec.fieldContext_IdentityHolder_tasks(ctx, field) case "files": @@ -160966,6 +164211,10 @@ func (ec *executionContext) childFields_Organization(ctx context.Context, field return ec.fieldContext_Organization_assessmentCreators(ctx, field) case "assetCreators": return ec.fieldContext_Organization_assetCreators(ctx, field) + case "audienceCreators": + return ec.fieldContext_Organization_audienceCreators(ctx, field) + case "audienceMemberCreators": + return ec.fieldContext_Organization_audienceMemberCreators(ctx, field) case "campaignCreators": return ec.fieldContext_Organization_campaignCreators(ctx, field) case "campaignTargetCreators": @@ -161210,6 +164459,10 @@ func (ec *executionContext) childFields_Organization(ctx context.Context, field return ec.fieldContext_Organization_subprocessors(ctx, field) case "exports": return ec.fieldContext_Organization_exports(ctx, field) + case "audiences": + return ec.fieldContext_Organization_audiences(ctx, field) + case "audienceMembers": + return ec.fieldContext_Organization_audienceMembers(ctx, field) case "trustCenterWatermarkConfigs": return ec.fieldContext_Organization_trustCenterWatermarkConfigs(ctx, field) case "assessments": @@ -163396,6 +166649,10 @@ func (ec *executionContext) childFields_SearchResults(ctx context.Context, field return ec.fieldContext_SearchResults_assessmentResponses(ctx, field) case "assets": return ec.fieldContext_SearchResults_assets(ctx, field) + case "audiences": + return ec.fieldContext_SearchResults_audiences(ctx, field) + case "audienceMembers": + return ec.fieldContext_SearchResults_audienceMembers(ctx, field) case "campaigns": return ec.fieldContext_SearchResults_campaigns(ctx, field) case "campaignTargets": @@ -164022,6 +167279,8 @@ func (ec *executionContext) childFields_Subscriber(ctx context.Context, field gr return ec.fieldContext_Subscriber_contact(ctx, field) case "user": return ec.fieldContext_Subscriber_user(ctx, field) + case "audienceMembers": + return ec.fieldContext_Subscriber_audienceMembers(ctx, field) } return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) } @@ -165932,6 +169191,8 @@ func (ec *executionContext) childFields_User(ctx context.Context, field graphql. return ec.fieldContext_User_campaigns(ctx, field) case "campaignTargets": return ec.fieldContext_User_campaignTargets(ctx, field) + case "audienceMembers": + return ec.fieldContext_User_audienceMembers(ctx, field) case "subcontrols": return ec.fieldContext_User_subcontrols(ctx, field) case "assignerTasks": diff --git a/internal/graphapi/generated/search.generated.go b/internal/graphapi/generated/search.generated.go index 5429bffd81..edc4c53713 100644 --- a/internal/graphapi/generated/search.generated.go +++ b/internal/graphapi/generated/search.generated.go @@ -210,6 +210,70 @@ func (ec *executionContext) fieldContext_SearchResults_assets(_ context.Context, return fc, nil } +func (ec *executionContext) _SearchResults_audiences(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_SearchResults_audiences(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Audiences, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceConnection) graphql.Marshaler { + return ec.marshalOAudienceConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceConnection(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_SearchResults_audiences(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SearchResults", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceConnection(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _SearchResults_audienceMembers(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_SearchResults_audienceMembers(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AudienceMembers, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *generated.AudienceMemberConnection) graphql.Marshaler { + return ec.marshalOAudienceMemberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋgeneratedᚐAudienceMemberConnection(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_SearchResults_audienceMembers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SearchResults", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceMemberConnection(ctx, field) + }, + } + return fc, nil +} + func (ec *executionContext) _SearchResults_campaigns(ctx context.Context, field graphql.CollectedField, obj *model.SearchResults) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -1416,6 +1480,16 @@ func (ec *executionContext) _SearchResults(ctx context.Context, sel ast.Selectio if out.Values[i] == graphql.RequiredNull { out.Invalids++ } + case "audiences": + out.Values[i] = ec._SearchResults_audiences(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "audienceMembers": + out.Values[i] = ec._SearchResults_audienceMembers(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } case "campaigns": out.Values[i] = ec._SearchResults_campaigns(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { diff --git a/internal/graphapi/history/ent.resolvers.go b/internal/graphapi/history/ent.resolvers.go index 081b0697a9..9fd2ab4a8d 100644 --- a/internal/graphapi/history/ent.resolvers.go +++ b/internal/graphapi/history/ent.resolvers.go @@ -163,6 +163,70 @@ func (r *queryResolver) AssetHistories(ctx context.Context, after *entgql.Cursor return res, err } +// AudienceHistories is the resolver for the audienceHistories field. +func (r *queryResolver) AudienceHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceHistoryOrder, where *historygenerated.AudienceHistoryWhereInput) (*historygenerated.AudienceHistoryConnection, error) { + // set page limit if nothing was set + first, last = graphutils.SetFirstLastDefaults(first, last, r.maxResultLimit) + + if orderBy == nil { + orderBy = &historygenerated.AudienceHistoryOrder{ + Field: historygenerated.AudienceHistoryOrderFieldCreatedAt, + Direction: entgql.OrderDirectionDesc, + } + } + + query, err := withTransactionalMutation(ctx).AudienceHistory.Query().CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencehistory"}) + } + + res, err := query.Paginate( + ctx, + after, + first, + before, + last, + historygenerated.WithAudienceHistoryOrder(orderBy), + historygenerated.WithAudienceHistoryFilter(where.Filter)) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencehistory"}) + } + + return res, err +} + +// AudienceMemberHistories is the resolver for the audienceMemberHistories field. +func (r *queryResolver) AudienceMemberHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceMemberHistoryOrder, where *historygenerated.AudienceMemberHistoryWhereInput) (*historygenerated.AudienceMemberHistoryConnection, error) { + // set page limit if nothing was set + first, last = graphutils.SetFirstLastDefaults(first, last, r.maxResultLimit) + + if orderBy == nil { + orderBy = &historygenerated.AudienceMemberHistoryOrder{ + Field: historygenerated.AudienceMemberHistoryOrderFieldCreatedAt, + Direction: entgql.OrderDirectionDesc, + } + } + + query, err := withTransactionalMutation(ctx).AudienceMemberHistory.Query().CollectFields(ctx) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencememberhistory"}) + } + + res, err := query.Paginate( + ctx, + after, + first, + before, + last, + historygenerated.WithAudienceMemberHistoryOrder(orderBy), + historygenerated.WithAudienceMemberHistoryFilter(where.Filter)) + if err != nil { + return nil, parseRequestError(ctx, err, common.Action{Action: common.ActionGet, Object: "audiencememberhistory"}) + } + + return res, err +} + // CampaignHistories is the resolver for the campaignHistories field. func (r *queryResolver) CampaignHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.CampaignHistoryOrder, where *historygenerated.CampaignHistoryWhereInput) (*historygenerated.CampaignHistoryConnection, error) { // set page limit if nothing was set diff --git a/internal/graphapi/historygenerated/ent.generated.go b/internal/graphapi/historygenerated/ent.generated.go index 2d2e349166..5a7c026b64 100644 --- a/internal/graphapi/historygenerated/ent.generated.go +++ b/internal/graphapi/historygenerated/ent.generated.go @@ -30,6 +30,8 @@ type QueryResolver interface { AssessmentHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssessmentHistoryOrder, where *historygenerated.AssessmentHistoryWhereInput) (*historygenerated.AssessmentHistoryConnection, error) AssessmentResponseHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssessmentResponseHistoryOrder, where *historygenerated.AssessmentResponseHistoryWhereInput) (*historygenerated.AssessmentResponseHistoryConnection, error) AssetHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssetHistoryOrder, where *historygenerated.AssetHistoryWhereInput) (*historygenerated.AssetHistoryConnection, error) + AudienceHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceHistoryOrder, where *historygenerated.AudienceHistoryWhereInput) (*historygenerated.AudienceHistoryConnection, error) + AudienceMemberHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceMemberHistoryOrder, where *historygenerated.AudienceMemberHistoryWhereInput) (*historygenerated.AudienceMemberHistoryConnection, error) CampaignHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.CampaignHistoryOrder, where *historygenerated.CampaignHistoryWhereInput) (*historygenerated.CampaignHistoryConnection, error) CampaignTargetHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.CampaignTargetHistoryOrder, where *historygenerated.CampaignTargetHistoryWhereInput) (*historygenerated.CampaignTargetHistoryConnection, error) ContactHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.ContactHistoryOrder, where *historygenerated.ContactHistoryWhereInput) (*historygenerated.ContactHistoryConnection, error) @@ -328,6 +330,114 @@ func (ec *executionContext) field_Query_assetHistories_args(ctx context.Context, return args, nil } +func (ec *executionContext) field_Query_audienceHistories_args(ctx 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) (*historygenerated.AudienceHistoryOrder, error) { + return ec.unmarshalOAudienceHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryOrder(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*historygenerated.AudienceHistoryWhereInput, error) { + return ec.unmarshalOAudienceHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + +func (ec *executionContext) field_Query_audienceMemberHistories_args(ctx 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) (*historygenerated.AudienceMemberHistoryOrder, error) { + return ec.unmarshalOAudienceMemberHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryOrder(ctx, v) + }) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := graphql.ProcessArgField(ctx, rawArgs, "where", + func(ctx context.Context, v any) (*historygenerated.AudienceMemberHistoryWhereInput, error) { + return ec.unmarshalOAudienceMemberHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInput(ctx, v) + }) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} + func (ec *executionContext) field_Query_campaignHistories_args(ctx context.Context, rawArgs map[string]any) (map[string]any, error) { var err error args := map[string]any{} @@ -7972,13 +8082,13 @@ func (ec *executionContext) fieldContext_AssetHistoryEdge_cursor(_ context.Conte return graphql.NewScalarFieldContext("AssetHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CampaignHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_id(ctx, field) + return ec.fieldContext_AudienceHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -7991,17 +8101,17 @@ func (ec *executionContext) _CampaignHistory_id(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_historyTime(ctx, field) + return ec.fieldContext_AudienceHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -8014,17 +8124,17 @@ func (ec *executionContext) _CampaignHistory_historyTime(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_ref(ctx, field) + return ec.fieldContext_AudienceHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -8037,40 +8147,40 @@ func (ec *executionContext) _CampaignHistory_ref(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_operation(ctx, field) + return ec.fieldContext_AudienceHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNCampaignHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNAudienceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type AudienceHistoryOpType does not have child fields")) } -func (ec *executionContext) _CampaignHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_createdAt(ctx, field) + return ec.fieldContext_AudienceHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -8083,17 +8193,17 @@ func (ec *executionContext) _CampaignHistory_createdAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_updatedAt(ctx, field) + return ec.fieldContext_AudienceHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -8106,17 +8216,17 @@ func (ec *executionContext) _CampaignHistory_updatedAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_createdBy(ctx, field) + return ec.fieldContext_AudienceHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -8129,17 +8239,17 @@ func (ec *executionContext) _CampaignHistory_createdBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_updatedBy(ctx, field) + return ec.fieldContext_AudienceHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -8152,17 +8262,17 @@ func (ec *executionContext) _CampaignHistory_updatedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_AudienceHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -8175,17 +8285,17 @@ func (ec *executionContext) _CampaignHistory_updatedByImpersonator(ctx context.C false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_displayID(ctx, field) + return ec.fieldContext_AudienceHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -8198,17 +8308,17 @@ func (ec *executionContext) _CampaignHistory_displayID(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_tags(ctx, field) + return ec.fieldContext_AudienceHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -8221,17 +8331,17 @@ func (ec *executionContext) _CampaignHistory_tags(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_ownerID(ctx, field) + return ec.fieldContext_AudienceHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -8244,43 +8354,43 @@ func (ec *executionContext) _CampaignHistory_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_internalOwner(ctx, field) + return ec.fieldContext_AudienceHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, 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_CampaignHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_internalOwnerUserID(ctx, field) + return ec.fieldContext_AudienceHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8290,342 +8400,369 @@ func (ec *executionContext) _CampaignHistory_internalOwnerUserID(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_audienceType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_internalOwnerGroupID(ctx, field) + return ec.fieldContext_AudienceHistory_audienceType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.AudienceType, 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.AudienceType) graphql.Marshaler { + return ec.marshalNAudienceHistoryAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_audienceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type AudienceHistoryAudienceType does not have child fields")) } -func (ec *executionContext) _CampaignHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_filters(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_AudienceHistory_filters(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Filters, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_filters(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _CampaignHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_name(ctx, field) + return ec.fieldContext_AudienceHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _CampaignHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_description(ctx, field) + return ec.fieldContext_AudienceHistoryConnection_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 []*historygenerated.AudienceHistoryEdge) graphql.Marshaler { + return ec.marshalOAudienceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _CampaignHistory_campaignType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_campaignType(ctx, field) + return ec.fieldContext_AudienceHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignType, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.CampaignType) graphql.Marshaler { - return ec.marshalNCampaignHistoryCampaignType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignType(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_CampaignHistory_campaignType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryCampaignType does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceHistoryConnection", + 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) _CampaignHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_status(ctx, field) + return ec.fieldContext_AudienceHistoryConnection_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.CampaignStatus) graphql.Marshaler { - return ec.marshalNCampaignHistoryCampaignStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignStatus(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_CampaignHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryCampaignStatus does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CampaignHistory_isActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_isActive(ctx, field) + return ec.fieldContext_AudienceHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsActive, nil + return obj.Node, 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 *historygenerated.AudienceHistory) graphql.Marshaler { + return ec.marshalOAudienceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistory(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AudienceHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_AudienceHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _CampaignHistory_scheduledAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_scheduledAt(ctx, field) + return ec.fieldContext_AudienceHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScheduledAt, 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_CampaignHistory_scheduledAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CampaignHistory_launchedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_launchedAt(ctx, field) + return ec.fieldContext_AudienceMemberHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LaunchedAt, nil + return obj.ID, 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.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_launchedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignHistory_completedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_completedAt(ctx, field) + return ec.fieldContext_AudienceMemberHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.HistoryTime, 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.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_dueDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_dueDate(ctx, field) + return ec.fieldContext_AudienceMemberHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DueDate, nil + return obj.Ref, 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_CampaignHistory_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_isRecurring(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_isRecurring(ctx, field) + return ec.fieldContext_AudienceMemberHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsRecurring, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNAudienceMemberHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_isRecurring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type AudienceMemberHistoryOpType does not have child fields")) } -func (ec *executionContext) _CampaignHistory_recurrenceFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recurrenceFrequency(ctx, field) + return ec.fieldContext_AudienceMemberHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceFrequency, nil + return obj.CreatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOCampaignHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(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_CampaignHistory_recurrenceFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryFrequency does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_recurrenceInterval(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recurrenceInterval(ctx, field) + return ec.fieldContext_AudienceMemberHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceInterval, nil + return obj.UpdatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_recurrenceInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignHistory_recurrenceTimezone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recurrenceTimezone(ctx, field) + return ec.fieldContext_AudienceMemberHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceTimezone, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8635,181 +8772,158 @@ func (ec *executionContext) _CampaignHistory_recurrenceTimezone(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_recurrenceTimezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_recurrenceCron(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recurrenceCron(ctx, field) + return ec.fieldContext_AudienceMemberHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecurrenceCron, nil + return obj.UpdatedBy, 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 string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_recurrenceCron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_lastRunAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_lastRunAt(ctx, field) + return ec.fieldContext_AudienceMemberHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastRunAt, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_lastRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_nextRunAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_nextRunAt(ctx, field) + return ec.fieldContext_AudienceMemberHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NextRunAt, nil + return obj.DisplayID, 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.marshalNString2string(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_CampaignHistory_nextRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) -} - -func (ec *executionContext) _CampaignHistory_recurrenceEndAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recurrenceEndAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.RecurrenceEndAt, 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_CampaignHistory_recurrenceEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_recipientCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_recipientCount(ctx, field) + return ec.fieldContext_AudienceMemberHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecipientCount, 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_CampaignHistory_recipientCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_resendCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_resendCount(ctx, field) + return ec.fieldContext_AudienceMemberHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResendCount, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_resendCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_lastResentAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_audienceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_lastResentAt(ctx, field) + return ec.fieldContext_AudienceMemberHistory_audienceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastResentAt, nil + return obj.AudienceID, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignHistory_lastResentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_audienceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_entityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_contactID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_entityID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_contactID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityID, nil + return obj.ContactID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8819,20 +8933,20 @@ func (ec *executionContext) _CampaignHistory_entityID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_templateID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateID, nil + return obj.UserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8842,20 +8956,20 @@ func (ec *executionContext) _CampaignHistory_templateID(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_assessmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_assessmentID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_groupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentID, nil + return obj.GroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8865,43 +8979,43 @@ func (ec *executionContext) _CampaignHistory_assessmentID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_identityHolderID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_metadata(ctx, field) + return ec.fieldContext_AudienceMemberHistory_identityHolderID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.IdentityHolderID, 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_CampaignHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_identityHolderID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_subscriberID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_emailTemplateID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_subscriberID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailTemplateID, nil + return obj.SubscriberID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8911,43 +9025,43 @@ func (ec *executionContext) _CampaignHistory_emailTemplateID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_integrationID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, 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_CampaignHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_emailBrandingID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_emailBrandingID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailBrandingID, nil + return obj.FullName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -8957,72 +9071,72 @@ func (ec *executionContext) _CampaignHistory_emailBrandingID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignHistory_emailBrandingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistory_trustCenterID(ctx, field) + return ec.fieldContext_AudienceMemberHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.Metadata, 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_CampaignHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _CampaignHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistoryConnection_edges(ctx, field) + return ec.fieldContext_AudienceMemberHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.CampaignHistoryEdge) graphql.Marshaler { - return ec.marshalOCampaignHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.AudienceMemberHistoryEdge) graphql.Marshaler { + return ec.marshalOAudienceMemberHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignHistoryConnection", + Object: "AudienceMemberHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignHistoryEdge(ctx, field) + return ec.childFields_AudienceMemberHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_AudienceMemberHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -9035,9 +9149,9 @@ func (ec *executionContext) _CampaignHistoryConnection_pageInfo(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_CampaignHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignHistoryConnection", + Object: "AudienceMemberHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -9048,13 +9162,13 @@ func (ec *executionContext) fieldContext_CampaignHistoryConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _CampaignHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_AudienceMemberHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -9067,49 +9181,49 @@ func (ec *executionContext) _CampaignHistoryConnection_totalCount(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_CampaignHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CampaignHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistoryEdge_node(ctx, field) + return ec.fieldContext_AudienceMemberHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.CampaignHistory) graphql.Marshaler { - return ec.marshalOCampaignHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.AudienceMemberHistory) graphql.Marshaler { + return ec.marshalOAudienceMemberHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_AudienceMemberHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CampaignHistoryEdge", + Object: "AudienceMemberHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignHistory(ctx, field) + return ec.childFields_AudienceMemberHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CampaignHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _AudienceMemberHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.AudienceMemberHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignHistoryEdge_cursor(ctx, field) + return ec.fieldContext_AudienceMemberHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -9122,17 +9236,17 @@ func (ec *executionContext) _CampaignHistoryEdge_cursor(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_CampaignHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_AudienceMemberHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("AudienceMemberHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_id(ctx, field) + return ec.fieldContext_CampaignHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -9145,17 +9259,17 @@ func (ec *executionContext) _CampaignTargetHistory_id(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_historyTime(ctx, field) + return ec.fieldContext_CampaignHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -9168,17 +9282,17 @@ func (ec *executionContext) _CampaignTargetHistory_historyTime(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_ref(ctx, field) + return ec.fieldContext_CampaignHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -9191,40 +9305,40 @@ func (ec *executionContext) _CampaignTargetHistory_ref(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_operation(ctx, field) + return ec.fieldContext_CampaignHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNCampaignTargetHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNCampaignHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type CampaignTargetHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryOpType does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_createdAt(ctx, field) + return ec.fieldContext_CampaignHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -9237,17 +9351,17 @@ func (ec *executionContext) _CampaignTargetHistory_createdAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_updatedAt(ctx, field) + return ec.fieldContext_CampaignHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -9260,17 +9374,17 @@ func (ec *executionContext) _CampaignTargetHistory_updatedAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_createdBy(ctx, field) + return ec.fieldContext_CampaignHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -9283,17 +9397,17 @@ func (ec *executionContext) _CampaignTargetHistory_createdBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_updatedBy(ctx, field) + return ec.fieldContext_CampaignHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -9306,17 +9420,17 @@ func (ec *executionContext) _CampaignTargetHistory_updatedBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_CampaignHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -9329,66 +9443,66 @@ func (ec *executionContext) _CampaignTargetHistory_updatedByImpersonator(ctx con false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_ownerID(ctx, field) + return ec.fieldContext_CampaignHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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_CampaignTargetHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_CampaignHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, 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_CampaignTargetHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_campaignID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_campaignID(ctx, field) + return ec.fieldContext_CampaignHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CampaignID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9398,20 +9512,20 @@ func (ec *executionContext) _CampaignTargetHistory_campaignID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_contactID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_contactID(ctx, field) + return ec.fieldContext_CampaignHistory_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContactID, nil + return obj.InternalOwner, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9421,20 +9535,20 @@ func (ec *executionContext) _CampaignTargetHistory_contactID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_userID(ctx, field) + return ec.fieldContext_CampaignHistory_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.InternalOwnerUserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9444,20 +9558,20 @@ func (ec *executionContext) _CampaignTargetHistory_userID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_groupID(ctx, field) + return ec.fieldContext_CampaignHistory_internalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GroupID, nil + return obj.InternalOwnerGroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9467,43 +9581,43 @@ func (ec *executionContext) _CampaignTargetHistory_groupID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_subscriberID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_subscriberID(ctx, field) + return ec.fieldContext_CampaignHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubscriberID, 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_CampaignTargetHistory_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_email(ctx, field) + return ec.fieldContext_CampaignHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9513,20 +9627,20 @@ func (ec *executionContext) _CampaignTargetHistory_email(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_fullName(ctx, field) + return ec.fieldContext_CampaignHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullName, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -9536,484 +9650,457 @@ func (ec *executionContext) _CampaignTargetHistory_fullName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_campaignType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_status(ctx, field) + return ec.fieldContext_CampaignHistory_campaignType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.CampaignType, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.AssessmentResponseStatus) graphql.Marshaler { - return ec.marshalNCampaignTargetHistoryAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.CampaignType) graphql.Marshaler { + return ec.marshalNCampaignHistoryCampaignType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type CampaignTargetHistoryAssessmentResponseStatus does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_campaignType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryCampaignType does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_sentAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_sentAt(ctx, field) + return ec.fieldContext_CampaignHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SentAt, nil + return obj.Status, 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.CampaignStatus) graphql.Marshaler { + return ec.marshalNCampaignHistoryCampaignStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_sentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryCampaignStatus does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_completedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_isActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_completedAt(ctx, field) + return ec.fieldContext_CampaignHistory_isActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CompletedAt, nil + return obj.IsActive, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_scheduledAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistory_metadata(ctx, field) + return ec.fieldContext_CampaignHistory_scheduledAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.ScheduledAt, 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 *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_scheduledAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_launchedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistoryConnection_edges(ctx, field) + return ec.fieldContext_CampaignHistory_launchedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.LaunchedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.CampaignTargetHistoryEdge) graphql.Marshaler { - return ec.marshalOCampaignTargetHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignTargetHistoryEdge(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_CampaignTargetHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTargetHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_CampaignHistory_launchedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_completedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_CampaignHistory_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.CompletedAt, 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 *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTargetHistoryConnection", - 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_CampaignHistory_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_dueDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_CampaignHistory_dueDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.DueDate, 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 *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_isRecurring(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistoryEdge_node(ctx, field) + return ec.fieldContext_CampaignHistory_isRecurring(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.IsRecurring, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.CampaignTargetHistory) graphql.Marshaler { - return ec.marshalOCampaignTargetHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignTargetHistory(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_CampaignTargetHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "CampaignTargetHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CampaignTargetHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_CampaignHistory_isRecurring(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CampaignTargetHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recurrenceFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CampaignTargetHistoryEdge_cursor(ctx, field) + return ec.fieldContext_CampaignHistory_recurrenceFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.RecurrenceFrequency, 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.Frequency) graphql.Marshaler { + return ec.marshalOCampaignHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CampaignTargetHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CampaignTargetHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recurrenceFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type CampaignHistoryFrequency does not have child fields")) } -func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recurrenceInterval(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_id(ctx, field) + return ec.fieldContext_CampaignHistory_recurrenceInterval(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.RecurrenceInterval, 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.marshalOInt2int(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recurrenceInterval(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recurrenceTimezone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_historyTime(ctx, field) + return ec.fieldContext_CampaignHistory_recurrenceTimezone(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.RecurrenceTimezone, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recurrenceTimezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recurrenceCron(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_ref(ctx, field) + return ec.fieldContext_CampaignHistory_recurrenceCron(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.RecurrenceCron, 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.Cron) graphql.Marshaler { + return ec.marshalOString2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCron(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recurrenceCron(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_lastRunAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_operation(ctx, field) + return ec.fieldContext_CampaignHistory_lastRunAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.LastRunAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ContactHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_lastRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_nextRunAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_createdAt(ctx, field) + return ec.fieldContext_CampaignHistory_nextRunAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.NextRunAt, 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_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_nextRunAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recurrenceEndAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_updatedAt(ctx, field) + return ec.fieldContext_CampaignHistory_recurrenceEndAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.RecurrenceEndAt, 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_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recurrenceEndAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_recipientCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_createdBy(ctx, field) + return ec.fieldContext_CampaignHistory_recipientCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.RecipientCount, 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_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_recipientCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_resendCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_updatedBy(ctx, field) + return ec.fieldContext_CampaignHistory_resendCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.ResendCount, 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_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_resendCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ContactHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_lastResentAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_CampaignHistory_lastResentAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.LastResentAt, 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_ContactHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_lastResentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_entityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_tags(ctx, field) + return ec.fieldContext_CampaignHistory_entityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.EntityID, 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_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_entityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_ownerID(ctx, field) + return ec.fieldContext_CampaignHistory_templateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.TemplateID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10023,20 +10110,20 @@ func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_assessmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_fullName(ctx, field) + return ec.fieldContext_CampaignHistory_assessmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullName, nil + return obj.AssessmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10046,89 +10133,43 @@ func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_title(ctx, field) + return ec.fieldContext_CampaignHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + return obj.Metadata, 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_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_company(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Company, 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_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_email(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Email, 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_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) + return ec.fieldContext_CampaignHistory_emailTemplateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhoneNumber, nil + return obj.EmailTemplateID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10138,20 +10179,20 @@ func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_address(ctx, field) + return ec.fieldContext_CampaignHistory_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Address, nil + return obj.IntegrationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10161,43 +10202,20 @@ func (ec *executionContext) _ContactHistory_address(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_status(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Status, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ContactHistoryUserStatus does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_emailBrandingID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_externalID(ctx, field) + return ec.fieldContext_CampaignHistory_emailBrandingID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + return obj.EmailBrandingID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10207,20 +10225,20 @@ func (ec *executionContext) _ContactHistory_externalID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ContactHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_emailBrandingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_integrationID(ctx, field) + return ec.fieldContext_CampaignHistory_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10230,72 +10248,49 @@ func (ec *executionContext) _ContactHistory_integrationID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_ContactHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ContactHistory_observedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistory_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_ContactHistory_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) + return ec.fieldContext_CampaignHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ContactHistoryEdge) graphql.Marshaler { - return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐContactHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.CampaignHistoryEdge) graphql.Marshaler { + return ec.marshalOCampaignHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", + Object: "CampaignHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ContactHistoryEdge(ctx, field) + return ec.childFields_CampaignHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_CampaignHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -10308,9 +10303,9 @@ func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", + Object: "CampaignHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -10321,13 +10316,13 @@ func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_CampaignHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -10340,49 +10335,49 @@ func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistoryEdge_node(ctx, field) + return ec.fieldContext_CampaignHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ContactHistory) graphql.Marshaler { - return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐContactHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.CampaignHistory) graphql.Marshaler { + return ec.marshalOCampaignHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_CampaignHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ContactHistoryEdge", + Object: "CampaignHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ContactHistory(ctx, field) + return ec.childFields_CampaignHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) + return ec.fieldContext_CampaignHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -10395,17 +10390,17 @@ func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ContactHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CampaignHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_id(ctx, field) + return ec.fieldContext_CampaignTargetHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -10418,17 +10413,17 @@ func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphq true, ) } -func (ec *executionContext) fieldContext_ControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_historyTime(ctx, field) + return ec.fieldContext_CampaignTargetHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -10441,17 +10436,17 @@ func (ec *executionContext) _ControlHistory_historyTime(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_ControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_ref(ctx, field) + return ec.fieldContext_CampaignTargetHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -10464,40 +10459,40 @@ func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_ControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_operation(ctx, field) + return ec.fieldContext_CampaignTargetHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNCampaignTargetHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type CampaignTargetHistoryOpType does not have child fields")) } -func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_createdAt(ctx, field) + return ec.fieldContext_CampaignTargetHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -10510,17 +10505,17 @@ func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_updatedAt(ctx, field) + return ec.fieldContext_CampaignTargetHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -10533,17 +10528,17 @@ func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_createdBy(ctx, field) + return ec.fieldContext_CampaignTargetHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -10556,17 +10551,17 @@ func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_updatedBy(ctx, field) + return ec.fieldContext_CampaignTargetHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -10579,17 +10574,17 @@ func (ec *executionContext) _ControlHistory_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_CampaignTargetHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -10602,109 +10597,91 @@ func (ec *executionContext) _ControlHistory_updatedByImpersonator(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_ControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_displayID(ctx, field) + return ec.fieldContext_CampaignTargetHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.OwnerID, 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_ControlHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_tags(ctx, field) + return ec.fieldContext_CampaignTargetHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.WorkflowEligibleMarker, 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_ControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_campaignID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_externalUUID(ctx, field) + return ec.fieldContext_CampaignTargetHistory_campaignID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.CampaignID, 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_ControlHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_campaignID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_contactID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_title(ctx, field) + return ec.fieldContext_CampaignTargetHistory_contactID(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.ContactID, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -10712,40 +10689,22 @@ func (ec *executionContext) _ControlHistory_title(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_ControlHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_contactID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_description(ctx, field) + return ec.fieldContext_CampaignTargetHistory_userID(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.UserID, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -10753,89 +10712,89 @@ func (ec *executionContext) _ControlHistory_description(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ControlHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_descriptionJSON(ctx, field) + return ec.fieldContext_CampaignTargetHistory_groupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DescriptionJSON, nil + return obj.GroupID, 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_ControlHistory_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_aliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_subscriberID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_aliases(ctx, field) + return ec.fieldContext_CampaignTargetHistory_subscriberID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Aliases, nil + return obj.SubscriberID, 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_ControlHistory_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_subscriberID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_referenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_referenceID(ctx, field) + return ec.fieldContext_CampaignTargetHistory_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReferenceID, 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_ControlHistory_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_auditorReferenceID(ctx, field) + return ec.fieldContext_CampaignTargetHistory_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReferenceID, nil + return obj.FullName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -10845,383 +10804,302 @@ func (ec *executionContext) _ControlHistory_auditorReferenceID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_ControlHistory_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_responsiblePartyID(ctx, field) + return ec.fieldContext_CampaignTargetHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResponsiblePartyID, 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.AssessmentResponseStatus) graphql.Marshaler { + return ec.marshalNCampaignTargetHistoryAssessmentResponseStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAssessmentResponseStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type CampaignTargetHistoryAssessmentResponseStatus does not have child fields")) } -func (ec *executionContext) _ControlHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_sentAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_status(ctx, field) + return ec.fieldContext_CampaignTargetHistory_sentAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.SentAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlStatus) graphql.Marshaler { - return ec.marshalOControlHistoryControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(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_ControlHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlStatus does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_sentAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ControlHistory_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_completedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_implementationStatus(ctx, field) + return ec.fieldContext_CampaignTargetHistory_completedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationStatus, nil + return obj.CompletedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlImplementationStatus) graphql.Marshaler { - return ec.marshalOControlHistoryControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(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_ControlHistory_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlImplementationStatus does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_completedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ControlHistory_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_implementationDescription(ctx, field) + return ec.fieldContext_CampaignTargetHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationDescription, nil + return obj.Metadata, 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_ControlHistory_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _ControlHistory_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_publicRepresentation(ctx, field) + return ec.fieldContext_CampaignTargetHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PublicRepresentation, 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 []*historygenerated.CampaignTargetHistoryEdge) graphql.Marshaler { + return ec.marshalOCampaignTargetHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignTargetHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTargetHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignTargetHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_source(ctx, field) + return ec.fieldContext_CampaignTargetHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, 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 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 + return obj.PageInfo, nil }, - func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { - return ec.marshalOControlHistoryControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(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_ControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlSource does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTargetHistoryConnection", + 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) _ControlHistory_sourceName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_sourceName(ctx, field) + return ec.fieldContext_CampaignTargetHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceName, nil + return obj.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ControlHistory_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_referenceFramework(ctx, field) + return ec.fieldContext_CampaignTargetHistoryEdge_node(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.Node, 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 *historygenerated.CampaignTargetHistory) graphql.Marshaler { + return ec.marshalOCampaignTargetHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignTargetHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CampaignTargetHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CampaignTargetHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _ControlHistory_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CampaignTargetHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CampaignTargetHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_referenceFrameworkRevision(ctx, field) + return ec.fieldContext_CampaignTargetHistoryEdge_cursor(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.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CampaignTargetHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CampaignTargetHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ControlHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_category(ctx, field) + return ec.fieldContext_ContactHistory_id(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.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_ControlHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlHistory_categoryID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_categoryID(ctx, field) + return ec.fieldContext_ContactHistory_historyTime(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.HistoryTime, 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 time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_subcategory(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_subcategory(ctx, field) + return ec.fieldContext_ContactHistory_ref(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.Ref, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -11229,250 +11107,250 @@ func (ec *executionContext) _ControlHistory_subcategory(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ControlHistory_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_mappedCategories(ctx, field) + return ec.fieldContext_ContactHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappedCategories, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ContactHistoryOpType does not have child fields")) } -func (ec *executionContext) _ControlHistory_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_assessmentObjectives(ctx, field) + return ec.fieldContext_ContactHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentObjectives, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_assessmentMethods(ctx, field) + return ec.fieldContext_ContactHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentMethods, nil + return obj.UpdatedAt, 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_ControlHistory_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlHistory_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_controlQuestions(ctx, field) + return ec.fieldContext_ContactHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlQuestions, 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_ControlHistory_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_implementationGuidance(ctx, field) + return ec.fieldContext_ContactHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationGuidance, nil + return obj.UpdatedBy, 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_ControlHistory_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_exampleEvidence(ctx, field) + return ec.fieldContext_ContactHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExampleEvidence, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_references(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_references(ctx, field) + return ec.fieldContext_ContactHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.References, nil + return obj.Tags, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Reference does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_testingProcedures(ctx, field) + return ec.fieldContext_ContactHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TestingProcedures, nil + return obj.OwnerID, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_evidenceRequests(ctx, field) + return ec.fieldContext_ContactHistory_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EvidenceRequests, nil + return obj.FullName, 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 string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_controlOwnerID(ctx, field) + return ec.fieldContext_ContactHistory_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlOwnerID, 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_ControlHistory_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_delegateID(ctx, field) + return ec.fieldContext_ContactHistory_company(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, nil + return obj.Company, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -11482,20 +11360,20 @@ func (ec *executionContext) _ControlHistory_delegateID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ControlHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_ownerID(ctx, field) + return ec.fieldContext_ContactHistory_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 { @@ -11505,125 +11383,89 @@ func (ec *executionContext) _ControlHistory_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_systemOwned(ctx, field) + return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.PhoneNumber, 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_ControlHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_internalNotes(ctx, field) + return ec.fieldContext_ContactHistory_address(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.Address, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_systemInternalID(ctx, field) + return ec.fieldContext_ContactHistory_status(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.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.UserStatus) graphql.Marshaler { + return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ControlHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type ContactHistoryUserStatus does not have child fields")) } -func (ec *executionContext) _ControlHistory_controlKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_controlKindName(ctx, field) + return ec.fieldContext_ContactHistory_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlKindName, nil + return obj.ExternalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -11633,20 +11475,20 @@ func (ec *executionContext) _ControlHistory_controlKindName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_ControlHistory_controlKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_controlKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_controlKindID(ctx, field) + return ec.fieldContext_ContactHistory_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlKindID, nil + return obj.IntegrationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -11656,274 +11498,72 @@ func (ec *executionContext) _ControlHistory_controlKindID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_ControlHistory_controlKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistory_observedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_environmentName(ctx, field) + return ec.fieldContext_ContactHistory_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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_ControlHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistory_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ControlHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_environmentID(ctx, field) + return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.Edges, 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_ControlHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_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_ControlHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_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.marshalOString2string(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_workflowEligibleMarker(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, 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_ControlHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_refCode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_refCode(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 - }, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) - }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_ControlHistory_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_standardID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_standardID(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.StandardID, 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_ControlHistory_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_trustCenterVisibility(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TrustCenterVisibility, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterControlVisibility) graphql.Marshaler { - return ec.marshalOControlHistoryTrustCenterControlVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterControlVisibility(ctx, selections, v) - }, - true, - false, - ) -} -func (ec *executionContext) fieldContext_ControlHistory_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryTrustCenterControlVisibility does not have child fields")) -} - -func (ec *executionContext) _ControlHistory_isTrustCenterControl(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistory_isTrustCenterControl(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.IsTrustCenterControl, 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_ControlHistory_isTrustCenterControl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) -} - -func (ec *executionContext) _ControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistoryConnection_edges(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Edges, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ControlHistoryEdge) graphql.Marshaler { - return ec.marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ContactHistoryEdge) graphql.Marshaler { + return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐContactHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlHistoryConnection", + Object: "ContactHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlHistoryEdge(ctx, field) + return ec.childFields_ContactHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -11936,9 +11576,9 @@ func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlHistoryConnection", + Object: "ContactHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -11949,13 +11589,13 @@ func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _ControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -11968,49 +11608,49 @@ func (ec *executionContext) _ControlHistoryConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_ControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistoryEdge_node(ctx, field) + return ec.fieldContext_ContactHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ControlHistory) graphql.Marshaler { - return ec.marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ContactHistory) graphql.Marshaler { + return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐContactHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlHistoryEdge", + Object: "ContactHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlHistory(ctx, field) + return ec.childFields_ContactHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ContactHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -12023,17 +11663,17 @@ func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_ControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ContactHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_id(ctx, field) + return ec.fieldContext_ControlHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -12046,17 +11686,17 @@ func (ec *executionContext) _ControlImplementationHistory_id(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_historyTime(ctx, field) + return ec.fieldContext_ControlHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -12069,17 +11709,17 @@ func (ec *executionContext) _ControlImplementationHistory_historyTime(ctx contex true, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_ref(ctx, field) + return ec.fieldContext_ControlHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -12092,40 +11732,40 @@ func (ec *executionContext) _ControlImplementationHistory_ref(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_operation(ctx, field) + return ec.fieldContext_ControlHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNControlImplementationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ControlImplementationHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryOpType does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_createdAt(ctx, field) + return ec.fieldContext_ControlHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -12138,17 +11778,17 @@ func (ec *executionContext) _ControlImplementationHistory_createdAt(ctx context. false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -12161,17 +11801,17 @@ func (ec *executionContext) _ControlImplementationHistory_updatedAt(ctx context. false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_createdBy(ctx, field) + return ec.fieldContext_ControlHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -12184,17 +11824,17 @@ func (ec *executionContext) _ControlImplementationHistory_createdBy(ctx context. false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -12207,17 +11847,17 @@ func (ec *executionContext) _ControlImplementationHistory_updatedBy(ctx context. false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -12230,263 +11870,263 @@ func (ec *executionContext) _ControlImplementationHistory_updatedByImpersonator( false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_tags(ctx, field) + return ec.fieldContext_ControlHistory_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_ControlImplementationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_ownerID(ctx, field) + return ec.fieldContext_ControlHistory_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.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_ControlImplementationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_systemOwned(ctx, field) + return ec.fieldContext_ControlHistory_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_ControlImplementationHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_internalNotes(ctx, field) + return ec.fieldContext_ControlHistory_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_ControlImplementationHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_systemInternalID(ctx, field) + return ec.fieldContext_ControlHistory_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_ControlImplementationHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_descriptionJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_status(ctx, field) + return ec.fieldContext_ControlHistory_descriptionJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.DescriptionJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOControlImplementationHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(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_ControlImplementationHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ControlImplementationHistoryDocumentStatus does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_descriptionJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_implementationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_aliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_implementationDate(ctx, field) + return ec.fieldContext_ControlHistory_aliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImplementationDate, nil + return obj.Aliases, 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_ControlImplementationHistory_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_verified(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_referenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_verified(ctx, field) + return ec.fieldContext_ControlHistory_referenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Verified, nil + return obj.ReferenceID, 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_ControlImplementationHistory_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_referenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_verificationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_verificationDate(ctx, field) + return ec.fieldContext_ControlHistory_auditorReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VerificationDate, nil + return obj.AuditorReferenceID, 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_ControlImplementationHistory_verificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_responsiblePartyID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_details(ctx, field) + return ec.fieldContext_ControlHistory_responsiblePartyID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.ResponsiblePartyID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -12496,233 +12136,360 @@ func (ec *executionContext) _ControlImplementationHistory_details(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_responsiblePartyID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistory_detailsJSON(ctx, field) + return ec.fieldContext_ControlHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, 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.ControlStatus) graphql.Marshaler { + return ec.marshalOControlHistoryControlStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlStatus does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlHistory_implementationStatus(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ImplementationStatus, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ControlImplementationHistoryEdge) graphql.Marshaler { - return ec.marshalOControlImplementationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlImplementationHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlImplementationStatus) graphql.Marshaler { + return ec.marshalOControlHistoryControlImplementationStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlImplementationStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlImplementationHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ControlHistory_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlImplementationStatus does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_implementationDescription(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlHistory_implementationDescription(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ImplementationDescription, 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_ControlImplementationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlImplementationHistoryConnection", - 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_ControlHistory_implementationDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_publicRepresentation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlHistory_publicRepresentation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.PublicRepresentation, 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, + false, + ) +} +func (ec *executionContext) fieldContext_ControlHistory_publicRepresentation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_source(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Source, 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 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.marshalOControlHistoryControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryControlSource does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_sourceName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistoryEdge_node(ctx, field) + return ec.fieldContext_ControlHistory_sourceName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.SourceName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ControlImplementationHistory) graphql.Marshaler { - return ec.marshalOControlImplementationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlImplementationHistory(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_ControlImplementationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlImplementationHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlImplementationHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ControlHistory_sourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlImplementationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_referenceFramework(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlImplementationHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ControlHistory_referenceFramework(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ReferenceFramework, 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, + false, + ) +} +func (ec *executionContext) fieldContext_ControlHistory_referenceFramework(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_referenceFrameworkRevision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_referenceFrameworkRevision(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 + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ControlImplementationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlImplementationHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_referenceFrameworkRevision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_id(ctx, field) + return ec.fieldContext_ControlHistory_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_ControlObjectiveHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_categoryID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) + return ec.fieldContext_ControlHistory_categoryID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.CategoryID, 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, 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, - true, + false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_subcategory(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) + return ec.fieldContext_ControlHistory_subcategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + 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 }, - nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { return ec.marshalOString2string(ctx, selections, v) }, @@ -12730,204 +12497,250 @@ func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_mappedCategories(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) + return ec.fieldContext_ControlHistory_mappedCategories(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.MappedCategories, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_ControlHistory_mappedCategories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_assessmentObjectives(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_assessmentObjectives(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AssessmentObjectives, 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) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_assessmentObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type AssessmentObjective does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_assessmentMethods(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) + return ec.fieldContext_ControlHistory_assessmentMethods(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.AssessmentMethods, 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.AssessmentMethod) graphql.Marshaler { + return ec.marshalOAssessmentMethod2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐAssessmentMethodᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_assessmentMethods(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type AssessmentMethod does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_controlQuestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlHistory_controlQuestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ControlQuestions, 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_ControlObjectiveHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_controlQuestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_implementationGuidance(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) + return ec.fieldContext_ControlHistory_implementationGuidance(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.ImplementationGuidance, 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.ImplementationGuidance) graphql.Marshaler { + return ec.marshalOImplementationGuidance2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐImplementationGuidanceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_implementationGuidance(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ImplementationGuidance does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_exampleEvidence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlHistory_exampleEvidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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_ControlObjectiveHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_exampleEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ExampleEvidence does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_references(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlHistory_references(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.References, 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.Reference) graphql.Marshaler { + return ec.marshalOReference2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐReferenceᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Reference does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_testingProcedures(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_displayID(ctx, field) + return ec.fieldContext_ControlHistory_testingProcedures(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.TestingProcedures, 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.TestingProcedures) graphql.Marshaler { + return ec.marshalOTestingProcedures2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐTestingProceduresᚄ(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_ControlHistory_testingProcedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type TestingProcedures does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_evidenceRequests(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_evidenceRequests(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EvidenceRequests, 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) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_evidenceRequests(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type EvidenceRequests does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_controlOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) + return ec.fieldContext_ControlHistory_controlOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.ControlOwnerID, 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_ControlObjectiveHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_controlOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_revision(ctx, field) + return ec.fieldContext_ControlHistory_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.DelegateID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -12937,17 +12750,17 @@ func (ec *executionContext) _ControlObjectiveHistory_revision(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) + return ec.fieldContext_ControlHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -12960,17 +12773,17 @@ func (ec *executionContext) _ControlObjectiveHistory_ownerID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_systemOwned(ctx, field) + return ec.fieldContext_ControlHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -12983,17 +12796,17 @@ func (ec *executionContext) _ControlObjectiveHistory_systemOwned(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_internalNotes(ctx, field) + return ec.fieldContext_ControlHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -13024,17 +12837,17 @@ func (ec *executionContext) _ControlObjectiveHistory_internalNotes(ctx context.C false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_systemInternalID(ctx, field) + return ec.fieldContext_ControlHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -13065,43 +12878,43 @@ func (ec *executionContext) _ControlObjectiveHistory_systemInternalID(ctx contex false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_controlKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_name(ctx, field) + return ec.fieldContext_ControlHistory_controlKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.ControlKindName, 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_ControlObjectiveHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_controlKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_desiredOutcome(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_controlKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_desiredOutcome(ctx, field) + return ec.fieldContext_ControlHistory_controlKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DesiredOutcome, nil + return obj.ControlKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -13111,89 +12924,89 @@ func (ec *executionContext) _ControlObjectiveHistory_desiredOutcome(ctx context. false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_desiredOutcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_controlKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_desiredOutcomeJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_desiredOutcomeJSON(ctx, field) + return ec.fieldContext_ControlHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DesiredOutcomeJSON, nil + return obj.EnvironmentName, 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_ControlObjectiveHistory_desiredOutcomeJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_status(ctx, field) + return ec.fieldContext_ControlHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.EnvironmentID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ObjectiveStatus) graphql.Marshaler { - return ec.marshalOControlObjectiveHistoryObjectiveStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐObjectiveStatus(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_ControlObjectiveHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryObjectiveStatus does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_source(ctx, field) + return ec.fieldContext_ControlHistory_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 enums.ControlSource) graphql.Marshaler { - return ec.marshalOControlObjectiveHistoryControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(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_ControlObjectiveHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryControlSource does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) + return ec.fieldContext_ControlHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlObjectiveType, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -13203,43 +13016,84 @@ func (ec *executionContext) _ControlObjectiveHistory_controlObjectiveType(ctx co false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_category(ctx, field) + return ec.fieldContext_ControlHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Category, 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_ControlObjectiveHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistory_subcategory(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_refCode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistory_subcategory(ctx, field) + return ec.fieldContext_ControlHistory_refCode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Subcategory, 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 + }, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ControlHistory_refCode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_standardID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_standardID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.StandardID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -13249,49 +13103,95 @@ func (ec *executionContext) _ControlObjectiveHistory_subcategory(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistory_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistory_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistory_trustCenterVisibility(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlHistory_trustCenterVisibility(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.TrustCenterVisibility, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v enums.TrustCenterControlVisibility) graphql.Marshaler { + return ec.marshalOControlHistoryTrustCenterControlVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTrustCenterControlVisibility(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ControlHistory_trustCenterVisibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type ControlHistoryTrustCenterControlVisibility does not have child fields")) +} + +func (ec *executionContext) _ControlHistory_isTrustCenterControl(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistory_isTrustCenterControl(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.IsTrustCenterControl, 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_ControlHistory_isTrustCenterControl(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ControlObjectiveHistoryEdge) graphql.Marshaler { - return ec.marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlObjectiveHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ControlHistoryEdge) graphql.Marshaler { + return ec.marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryConnection", + Object: "ControlHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveHistoryEdge(ctx, field) + return ec.childFields_ControlHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -13304,9 +13204,9 @@ func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx cont true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryConnection", + Object: "ControlHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -13317,13 +13217,13 @@ func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageI return fc, nil } -func (ec *executionContext) _ControlObjectiveHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -13336,49 +13236,49 @@ func (ec *executionContext) _ControlObjectiveHistoryConnection_totalCount(ctx co true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ControlObjectiveHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) + return ec.fieldContext_ControlHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ControlObjectiveHistory) graphql.Marshaler { - return ec.marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlObjectiveHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ControlHistory) graphql.Marshaler { + return ec.marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryEdge", + Object: "ControlHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ControlObjectiveHistory(ctx, field) + return ec.childFields_ControlHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -13391,17 +13291,17 @@ func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ControlObjectiveHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_id(ctx, field) + return ec.fieldContext_ControlImplementationHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -13414,17 +13314,17 @@ func (ec *executionContext) _CustomDomainHistory_id(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_historyTime(ctx, field) + return ec.fieldContext_ControlImplementationHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -13437,17 +13337,17 @@ func (ec *executionContext) _CustomDomainHistory_historyTime(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_ref(ctx, field) + return ec.fieldContext_ControlImplementationHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -13460,40 +13360,40 @@ func (ec *executionContext) _CustomDomainHistory_ref(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_operation(ctx, field) + return ec.fieldContext_ControlImplementationHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNCustomDomainHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNControlImplementationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type CustomDomainHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ControlImplementationHistoryOpType does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_createdAt(ctx, field) + return ec.fieldContext_ControlImplementationHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -13506,17 +13406,17 @@ func (ec *executionContext) _CustomDomainHistory_createdAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlImplementationHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -13529,17 +13429,17 @@ func (ec *executionContext) _CustomDomainHistory_updatedAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_createdBy(ctx, field) + return ec.fieldContext_ControlImplementationHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -13552,17 +13452,17 @@ func (ec *executionContext) _CustomDomainHistory_createdBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlImplementationHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -13575,17 +13475,17 @@ func (ec *executionContext) _CustomDomainHistory_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlImplementationHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -13598,17 +13498,17 @@ func (ec *executionContext) _CustomDomainHistory_updatedByImpersonator(ctx conte false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_tags(ctx, field) + return ec.fieldContext_ControlImplementationHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -13621,17 +13521,17 @@ func (ec *executionContext) _CustomDomainHistory_tags(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_ownerID(ctx, field) + return ec.fieldContext_ControlImplementationHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -13644,17 +13544,17 @@ func (ec *executionContext) _CustomDomainHistory_ownerID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_systemOwned(ctx, field) + return ec.fieldContext_ControlImplementationHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -13667,17 +13567,17 @@ func (ec *executionContext) _CustomDomainHistory_systemOwned(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_internalNotes(ctx, field) + return ec.fieldContext_ControlImplementationHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -13708,17 +13608,17 @@ func (ec *executionContext) _CustomDomainHistory_internalNotes(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_systemInternalID(ctx, field) + return ec.fieldContext_ControlImplementationHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -13749,89 +13649,112 @@ func (ec *executionContext) _CustomDomainHistory_systemInternalID(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_cnameRecord(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_cnameRecord(ctx, field) + return ec.fieldContext_ControlImplementationHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CnameRecord, nil + return obj.Status, 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 enums.DocumentStatus) graphql.Marshaler { + return ec.marshalOControlImplementationHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_cnameRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type ControlImplementationHistoryDocumentStatus does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_mappableDomainID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_implementationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_mappableDomainID(ctx, field) + return ec.fieldContext_ControlImplementationHistory_implementationDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappableDomainID, nil + return obj.ImplementationDate, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_ControlImplementationHistory_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ControlImplementationHistory_verified(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ControlImplementationHistory_verified(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Verified, 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_CustomDomainHistory_mappableDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_dnsVerificationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_verificationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_dnsVerificationID(ctx, field) + return ec.fieldContext_ControlImplementationHistory_verificationDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DNSVerificationID, nil + return obj.VerificationDate, 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_CustomDomainHistory_dnsVerificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_verificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_trustCenterID(ctx, field) + return ec.fieldContext_ControlImplementationHistory_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.Details, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -13841,72 +13764,72 @@ func (ec *executionContext) _CustomDomainHistory_trustCenterID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _CustomDomainHistory_domainType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistory_domainType(ctx, field) + return ec.fieldContext_ControlImplementationHistory_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DomainType, nil + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.CustomDomainType) graphql.Marshaler { - return ec.marshalNCustomDomainHistoryCustomDomainType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCustomDomainType(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_CustomDomainHistory_domainType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type CustomDomainHistoryCustomDomainType does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistory", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _CustomDomainHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlImplementationHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.CustomDomainHistoryEdge) graphql.Marshaler { - return ec.marshalOCustomDomainHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCustomDomainHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ControlImplementationHistoryEdge) graphql.Marshaler { + return ec.marshalOControlImplementationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlImplementationHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainHistoryConnection", + Object: "ControlImplementationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomainHistoryEdge(ctx, field) + return ec.childFields_ControlImplementationHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomDomainHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlImplementationHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -13919,9 +13842,9 @@ func (ec *executionContext) _CustomDomainHistoryConnection_pageInfo(ctx context. true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainHistoryConnection", + Object: "ControlImplementationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -13932,13 +13855,13 @@ func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_pageInfo( return fc, nil } -func (ec *executionContext) _CustomDomainHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlImplementationHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -13951,49 +13874,49 @@ func (ec *executionContext) _CustomDomainHistoryConnection_totalCount(ctx contex true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _CustomDomainHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistoryEdge_node(ctx, field) + return ec.fieldContext_ControlImplementationHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.CustomDomainHistory) graphql.Marshaler { - return ec.marshalOCustomDomainHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCustomDomainHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ControlImplementationHistory) graphql.Marshaler { + return ec.marshalOControlImplementationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlImplementationHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_CustomDomainHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlImplementationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "CustomDomainHistoryEdge", + Object: "ControlImplementationHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_CustomDomainHistory(ctx, field) + return ec.childFields_ControlImplementationHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _CustomDomainHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlImplementationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlImplementationHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_CustomDomainHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ControlImplementationHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -14006,17 +13929,17 @@ func (ec *executionContext) _CustomDomainHistoryEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_CustomDomainHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("CustomDomainHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlImplementationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlImplementationHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_id(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -14029,17 +13952,17 @@ func (ec *executionContext) _DiscussionHistory_id(ctx context.Context, field gra true, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_historyTime(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -14052,17 +13975,17 @@ func (ec *executionContext) _DiscussionHistory_historyTime(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_ref(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -14075,40 +13998,40 @@ func (ec *executionContext) _DiscussionHistory_ref(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_operation(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNDiscussionHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type DiscussionHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryOpType does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_createdAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -14121,17 +14044,17 @@ func (ec *executionContext) _DiscussionHistory_createdAt(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -14144,17 +14067,17 @@ func (ec *executionContext) _DiscussionHistory_updatedAt(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_createdBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -14167,17 +14090,17 @@ func (ec *executionContext) _DiscussionHistory_createdBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -14190,17 +14113,17 @@ func (ec *executionContext) _DiscussionHistory_updatedBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -14213,369 +14136,378 @@ func (ec *executionContext) _DiscussionHistory_updatedByImpersonator(ctx context false, ) } -func (ec *executionContext) fieldContext_DiscussionHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_ownerID(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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_DiscussionHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_externalID(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, 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_DiscussionHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistory_isResolved(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistory_isResolved(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsResolved, nil + return obj.Revision, 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_DiscussionHistory_isResolved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.DiscussionHistoryEdge) graphql.Marshaler { - return ec.marshalODiscussionHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDiscussionHistoryEdge(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_DiscussionHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DiscussionHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ControlObjectiveHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.SystemOwned, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DiscussionHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionHistoryConnection", - 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_ControlObjectiveHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _DiscussionHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(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_DiscussionHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistoryEdge_node(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.DiscussionHistory) graphql.Marshaler { - return ec.marshalODiscussionHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDiscussionHistory(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_DiscussionHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DiscussionHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DiscussionHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ControlObjectiveHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DiscussionHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DiscussionHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Name, 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.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_DiscussionHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DiscussionHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_desiredOutcome(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_id(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_desiredOutcome(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.DesiredOutcome, 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_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_desiredOutcome(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_desiredOutcomeJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_desiredOutcomeJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.DesiredOutcomeJSON, 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 []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_desiredOutcomeJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_ref(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, 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.ObjectiveStatus) graphql.Marshaler { + return ec.marshalOControlObjectiveHistoryObjectiveStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐObjectiveStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryObjectiveStatus does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_operation(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.Source, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ControlSource) graphql.Marshaler { + return ec.marshalOControlObjectiveHistoryControlSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐControlSource(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type DocumentDataHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type ControlObjectiveHistoryControlSource does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ControlObjectiveType, 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_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Category, 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_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistory_subcategory(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_subcategory(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Subcategory, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -14585,181 +14517,208 @@ func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistory_subcategory(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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 []*historygenerated.ControlObjectiveHistoryEdge) graphql.Marshaler { + return ec.marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlObjectiveHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlObjectiveHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _DocumentDataHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.PageInfo, 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.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_tags(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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 *historygenerated.ControlObjectiveHistory) graphql.Marshaler { + return ec.marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐControlObjectiveHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ControlObjectiveHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _DocumentDataHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_environmentName(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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_DocumentDataHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ControlObjectiveHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_environmentID(ctx, field) + return ec.fieldContext_CustomDomainHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, 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_DocumentDataHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_scopeName(ctx, field) + return ec.fieldContext_CustomDomainHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.HistoryTime, 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_DocumentDataHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_scopeID(ctx, field) + return ec.fieldContext_CustomDomainHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -14769,369 +14728,355 @@ func (ec *executionContext) _DocumentDataHistory_scopeID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) + return ec.fieldContext_CustomDomainHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateID, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNCustomDomainHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type CustomDomainHistoryOpType does not have child fields")) } -func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistory_data(ctx, field) + return ec.fieldContext_CustomDomainHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Data, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) + return ec.fieldContext_CustomDomainHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.DocumentDataHistoryEdge) graphql.Marshaler { - return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDocumentDataHistoryEdge(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_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentDataHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_CustomDomainHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_CustomDomainHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.CreatedBy, 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_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_CustomDomainHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_CustomDomainHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.UpdatedBy, 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_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) + return ec.fieldContext_CustomDomainHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.DocumentDataHistory) graphql.Marshaler { - return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDocumentDataHistory(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_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_DocumentDataHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_CustomDomainHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) + return ec.fieldContext_CustomDomainHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Tags, 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_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("DocumentDataHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_id(ctx, field) + return ec.fieldContext_CustomDomainHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_historyTime(ctx, field) + return ec.fieldContext_CustomDomainHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.SystemOwned, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_ref(ctx, field) + return ec.fieldContext_CustomDomainHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, 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_EmailTemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_operation(ctx, field) + return ec.fieldContext_CustomDomainHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNEmailTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return obj.SystemInternalID, nil }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_EmailTemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryOpType does not have child fields")) -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _EmailTemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_createdAt(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.CreatedAt, 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 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_EmailTemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_cnameRecord(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_updatedAt(ctx, field) + return ec.fieldContext_CustomDomainHistory_cnameRecord(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.CnameRecord, 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_EmailTemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_cnameRecord(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_mappableDomainID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_createdBy(ctx, field) + return ec.fieldContext_CustomDomainHistory_mappableDomainID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.MappableDomainID, 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_EmailTemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_mappableDomainID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_dnsVerificationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_updatedBy(ctx, field) + return ec.fieldContext_CustomDomainHistory_dnsVerificationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.DNSVerificationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -15141,447 +15086,415 @@ func (ec *executionContext) _EmailTemplateHistory_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_dnsVerificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_CustomDomainHistory_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistory_domainType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_revision(ctx, field) + return ec.fieldContext_CustomDomainHistory_domainType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.DomainType, 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.CustomDomainType) graphql.Marshaler { + return ec.marshalNCustomDomainHistoryCustomDomainType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCustomDomainType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistory_domainType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistory", field, false, false, errors.New("field of type CustomDomainHistoryCustomDomainType does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_ownerID(ctx, field) + return ec.fieldContext_CustomDomainHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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 []*historygenerated.CustomDomainHistoryEdge) graphql.Marshaler { + return ec.marshalOCustomDomainHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCustomDomainHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomDomainHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomDomainHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EmailTemplateHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_systemOwned(ctx, field) + return ec.fieldContext_CustomDomainHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomDomainHistoryConnection", + 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) _EmailTemplateHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_internalNotes(ctx, field) + return ec.fieldContext_CustomDomainHistoryConnection_totalCount(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.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_systemInternalID(ctx, field) + return ec.fieldContext_CustomDomainHistoryEdge_node(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.Node, 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 *historygenerated.CustomDomainHistory) graphql.Marshaler { + return ec.marshalOCustomDomainHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCustomDomainHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "CustomDomainHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_CustomDomainHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EmailTemplateHistory_key(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _CustomDomainHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.CustomDomainHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_key(ctx, field) + return ec.fieldContext_CustomDomainHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Key, 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_EmailTemplateHistory_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_CustomDomainHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("CustomDomainHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_name(ctx, field) + return ec.fieldContext_DiscussionHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, 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_EmailTemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_description(ctx, field) + return ec.fieldContext_DiscussionHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.HistoryTime, 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_EmailTemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_format(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_format(ctx, field) + return ec.fieldContext_DiscussionHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Format, nil + return obj.Ref, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.NotificationTemplateFormat) graphql.Marshaler { - return ec.marshalOEmailTemplateHistoryNotificationTemplateFormat2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationTemplateFormat(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_EmailTemplateHistory_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryNotificationTemplateFormat does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_locale(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_locale(ctx, field) + return ec.fieldContext_DiscussionHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Locale, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNDiscussionHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_locale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type DiscussionHistoryOpType does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_metadata(ctx, field) + return ec.fieldContext_DiscussionHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) -} - -func (ec *executionContext) _EmailTemplateHistory_active(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_active(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.Active, 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_EmailTemplateHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_version(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_version(ctx, field) + return ec.fieldContext_DiscussionHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Version, 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_EmailTemplateHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_templateContext(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_templateContext(ctx, field) + return ec.fieldContext_DiscussionHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateContext, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TemplateContext) graphql.Marshaler { - return ec.marshalOEmailTemplateHistoryTemplateContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateContext(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_EmailTemplateHistory_templateContext(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryTemplateContext does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_defaults(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_defaults(ctx, field) + return ec.fieldContext_DiscussionHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Defaults, 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_EmailTemplateHistory_defaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_integrationID(ctx, field) + return ec.fieldContext_DiscussionHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.UpdatedByImpersonator, 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_EmailTemplateHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_workflowDefinitionID(ctx, field) + return ec.fieldContext_DiscussionHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowDefinitionID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -15591,20 +15504,20 @@ func (ec *executionContext) _EmailTemplateHistory_workflowDefinitionID(ctx conte false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_workflowInstanceID(ctx, field) + return ec.fieldContext_DiscussionHistory_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowInstanceID, nil + return obj.ExternalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -15614,72 +15527,72 @@ func (ec *executionContext) _EmailTemplateHistory_workflowInstanceID(ctx context false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistory_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistory_isResolved(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistory_trustCenterID(ctx, field) + return ec.fieldContext_DiscussionHistory_isResolved(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.IsResolved, 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_EmailTemplateHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistory_isResolved(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistoryConnection_edges(ctx, field) + return ec.fieldContext_DiscussionHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.EmailTemplateHistoryEdge) graphql.Marshaler { - return ec.marshalOEmailTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEmailTemplateHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.DiscussionHistoryEdge) graphql.Marshaler { + return ec.marshalODiscussionHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDiscussionHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiscussionHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EmailTemplateHistoryConnection", + Object: "DiscussionHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateHistoryEdge(ctx, field) + return ec.childFields_DiscussionHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _EmailTemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_DiscussionHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -15692,9 +15605,9 @@ func (ec *executionContext) _EmailTemplateHistoryConnection_pageInfo(ctx context true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiscussionHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EmailTemplateHistoryConnection", + Object: "DiscussionHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -15705,13 +15618,13 @@ func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_pageInfo return fc, nil } -func (ec *executionContext) _EmailTemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_DiscussionHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -15724,49 +15637,49 @@ func (ec *executionContext) _EmailTemplateHistoryConnection_totalCount(ctx conte true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EmailTemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistoryEdge_node(ctx, field) + return ec.fieldContext_DiscussionHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.EmailTemplateHistory) graphql.Marshaler { - return ec.marshalOEmailTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEmailTemplateHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.DiscussionHistory) graphql.Marshaler { + return ec.marshalODiscussionHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDiscussionHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DiscussionHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EmailTemplateHistoryEdge", + Object: "DiscussionHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EmailTemplateHistory(ctx, field) + return ec.childFields_DiscussionHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _EmailTemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _DiscussionHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DiscussionHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EmailTemplateHistoryEdge_cursor(ctx, field) + return ec.fieldContext_DiscussionHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -15779,17 +15692,17 @@ func (ec *executionContext) _EmailTemplateHistoryEdge_cursor(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_EmailTemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EmailTemplateHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_DiscussionHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DiscussionHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_id(ctx, field) + return ec.fieldContext_DocumentDataHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -15802,17 +15715,17 @@ func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql true, ) } -func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_historyTime(ctx, field) + return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -15825,17 +15738,17 @@ func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_ref(ctx, field) + return ec.fieldContext_DocumentDataHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -15848,40 +15761,40 @@ func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_operation(ctx, field) + return ec.fieldContext_DocumentDataHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type DocumentDataHistoryOpType does not have child fields")) } -func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_createdAt(ctx, field) + return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -15894,17 +15807,17 @@ func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_updatedAt(ctx, field) + return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -15917,17 +15830,17 @@ func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_createdBy(ctx, field) + return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -15940,17 +15853,17 @@ func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_updatedBy(ctx, field) + return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -15963,17 +15876,17 @@ func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_DocumentDataHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -15986,17 +15899,17 @@ func (ec *executionContext) _EntityHistory_updatedByImpersonator(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_EntityHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_tags(ctx, field) + return ec.fieldContext_DocumentDataHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -16009,17 +15922,17 @@ func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_ownerID(ctx, field) + return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.OwnerID, nil @@ -16032,20 +15945,20 @@ func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_internalOwner(ctx, field) + return ec.fieldContext_DocumentDataHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, nil + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16055,20 +15968,20 @@ func (ec *executionContext) _EntityHistory_internalOwner(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EntityHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_internalOwnerUserID(ctx, field) + return ec.fieldContext_DocumentDataHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16078,20 +15991,20 @@ func (ec *executionContext) _EntityHistory_internalOwnerUserID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_EntityHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_internalOwnerGroupID(ctx, field) + return ec.fieldContext_DocumentDataHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16101,20 +16014,20 @@ func (ec *executionContext) _EntityHistory_internalOwnerGroupID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_EntityHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_reviewedBy(ctx, field) + return ec.fieldContext_DocumentDataHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedBy, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16124,20 +16037,20 @@ func (ec *executionContext) _EntityHistory_reviewedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_reviewedByUserID(ctx, field) + return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByUserID, nil + return obj.TemplateID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16147,240 +16060,231 @@ func (ec *executionContext) _EntityHistory_reviewedByUserID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_reviewedByGroupID(ctx, field) + return ec.fieldContext_DocumentDataHistory_data(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByGroupID, nil + return obj.Data, 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.marshalNMap2map(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _EntityHistory_lastReviewedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_lastReviewedAt(ctx, field) + return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastReviewedAt, 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 []*historygenerated.DocumentDataHistoryEdge) graphql.Marshaler { + return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDocumentDataHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_lastReviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DocumentDataHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EntityHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_systemOwned(ctx, field) + return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_PageInfo(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EntityHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_internalNotes(ctx, field) + return ec.fieldContext_DocumentDataHistoryConnection_totalCount(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.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EntityHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_systemInternalID(ctx, field) + return ec.fieldContext_DocumentDataHistoryEdge_node(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.Node, 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 *historygenerated.DocumentDataHistory) graphql.Marshaler { + return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐDocumentDataHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_DocumentDataHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EntityHistory_entityRelationshipStateName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entityRelationshipStateName(ctx, field) + return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityRelationshipStateName, 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_EntityHistory_entityRelationshipStateName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("DocumentDataHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _EntityHistory_entityRelationshipStateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entityRelationshipStateID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityRelationshipStateID, 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_EntityHistory_entityRelationshipStateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _EntityHistory_entitySecurityQuestionnaireStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entitySecurityQuestionnaireStatusName(ctx, field) + return ec.fieldContext_EmailTemplateHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntitySecurityQuestionnaireStatusName, nil + return obj.HistoryTime, 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_EntityHistory_entitySecurityQuestionnaireStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_entitySecurityQuestionnaireStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entitySecurityQuestionnaireStatusID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntitySecurityQuestionnaireStatusID, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16390,89 +16294,89 @@ func (ec *executionContext) _EntityHistory_entitySecurityQuestionnaireStatusID(c false, ) } -func (ec *executionContext) fieldContext_EntityHistory_entitySecurityQuestionnaireStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_entitySourceTypeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entitySourceTypeName(ctx, field) + return ec.fieldContext_EmailTemplateHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntitySourceTypeName, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNEmailTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_entitySourceTypeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryOpType does not have child fields")) } -func (ec *executionContext) _EntityHistory_entitySourceTypeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entitySourceTypeID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntitySourceTypeID, 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_EntityHistory_entitySourceTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_environmentName(ctx, field) + return ec.fieldContext_EmailTemplateHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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_EntityHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_environmentID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16482,20 +16386,20 @@ func (ec *executionContext) _EntityHistory_environmentID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EntityHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_scopeName(ctx, field) + return ec.fieldContext_EmailTemplateHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.UpdatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16505,43 +16409,43 @@ func (ec *executionContext) _EntityHistory_scopeName(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_scopeID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.UpdatedByImpersonator, 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_EntityHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_name(ctx, field) + return ec.fieldContext_EmailTemplateHistory_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Revision, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16551,20 +16455,20 @@ func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_displayName(ctx, field) + return ec.fieldContext_EmailTemplateHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16574,342 +16478,378 @@ func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_description(ctx, field) + return ec.fieldContext_EmailTemplateHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, 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_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_domains(ctx, field) + return ec.fieldContext_EmailTemplateHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Domains, 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_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_aliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_aliases(ctx, field) + return ec.fieldContext_EmailTemplateHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Aliases, nil + return obj.SystemInternalID, 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_EntityHistory_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_key(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) + return ec.fieldContext_EmailTemplateHistory_key(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EntityTypeID, nil + return obj.Key, 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_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_status(ctx, field) + return ec.fieldContext_EmailTemplateHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.EntityStatus) graphql.Marshaler { - return ec.marshalOEntityHistoryEntityStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐEntityStatus(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_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryEntityStatus does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_approvedForUse(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_approvedForUse(ctx, field) + return ec.fieldContext_EmailTemplateHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovedForUse, nil + return obj.Description, 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_EntityHistory_approvedForUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_linkedAssetIds(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_format(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_linkedAssetIds(ctx, field) + return ec.fieldContext_EmailTemplateHistory_format(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LinkedAssetIds, nil + return obj.Format, 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.NotificationTemplateFormat) graphql.Marshaler { + return ec.marshalOEmailTemplateHistoryNotificationTemplateFormat2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationTemplateFormat(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_linkedAssetIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryNotificationTemplateFormat does not have child fields")) } -func (ec *executionContext) _EntityHistory_hasSoc2(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_locale(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_hasSoc2(ctx, field) + return ec.fieldContext_EmailTemplateHistory_locale(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HasSoc2, nil + return obj.Locale, 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_EntityHistory_hasSoc2(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_locale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_soc2PeriodEnd(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_soc2PeriodEnd(ctx, field) + return ec.fieldContext_EmailTemplateHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Soc2PeriodEnd, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_soc2PeriodEnd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _EntityHistory_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_active(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_contractStartDate(ctx, field) + return ec.fieldContext_EmailTemplateHistory_active(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContractStartDate, nil + return obj.Active, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_contractStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EntityHistory_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_version(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_contractEndDate(ctx, field) + return ec.fieldContext_EmailTemplateHistory_version(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContractEndDate, nil + return obj.Version, 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_EntityHistory_contractEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EntityHistory_autoRenews(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_templateContext(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_autoRenews(ctx, field) + return ec.fieldContext_EmailTemplateHistory_templateContext(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AutoRenews, nil + return obj.TemplateContext, 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.TemplateContext) graphql.Marshaler { + return ec.marshalOEmailTemplateHistoryTemplateContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateContext(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_autoRenews(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_templateContext(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type EmailTemplateHistoryTemplateContext does not have child fields")) } -func (ec *executionContext) _EntityHistory_terminationNoticeDays(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_defaults(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_terminationNoticeDays(ctx, field) + return ec.fieldContext_EmailTemplateHistory_defaults(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TerminationNoticeDays, nil + return obj.Defaults, 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_EntityHistory_terminationNoticeDays(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_defaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _EntityHistory_annualSpend(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_annualSpend(ctx, field) + return ec.fieldContext_EmailTemplateHistory_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AnnualSpend, nil + return obj.IntegrationID, 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_EntityHistory_annualSpend(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_spendCurrency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_spendCurrency(ctx, field) + return ec.fieldContext_EmailTemplateHistory_workflowDefinitionID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SpendCurrency, nil + return obj.WorkflowDefinitionID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16919,20 +16859,20 @@ func (ec *executionContext) _EntityHistory_spendCurrency(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EntityHistory_spendCurrency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_billingModel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_workflowInstanceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_billingModel(ctx, field) + return ec.fieldContext_EmailTemplateHistory_workflowInstanceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingModel, nil + return obj.WorkflowInstanceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16942,20 +16882,20 @@ func (ec *executionContext) _EntityHistory_billingModel(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_EntityHistory_billingModel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_workflowInstanceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_renewalRisk(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_renewalRisk(ctx, field) + return ec.fieldContext_EmailTemplateHistory_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RenewalRisk, nil + return obj.TrustCenterID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -16965,158 +16905,208 @@ func (ec *executionContext) _EntityHistory_renewalRisk(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_EntityHistory_renewalRisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_ssoEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_ssoEnforced(ctx, field) + return ec.fieldContext_EmailTemplateHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOEnforced, nil + return obj.Edges, 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 []*historygenerated.EmailTemplateHistoryEdge) graphql.Marshaler { + return ec.marshalOEmailTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEmailTemplateHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_ssoEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EmailTemplateHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EmailTemplateHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EntityHistory_mfaSupported(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_mfaSupported(ctx, field) + return ec.fieldContext_EmailTemplateHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MfaSupported, nil + return obj.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_mfaSupported(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EmailTemplateHistoryConnection", + 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) _EntityHistory_mfaEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_mfaEnforced(ctx, field) + return ec.fieldContext_EmailTemplateHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MfaEnforced, 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_EntityHistory_mfaEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EntityHistory_statusPageURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_statusPageURL(ctx, field) + return ec.fieldContext_EmailTemplateHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StatusPageURL, 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 *historygenerated.EmailTemplateHistory) graphql.Marshaler { + return ec.marshalOEmailTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEmailTemplateHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_statusPageURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EmailTemplateHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EmailTemplateHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _EntityHistory_providedServices(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EmailTemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EmailTemplateHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_providedServices(ctx, field) + return ec.fieldContext_EmailTemplateHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProvidedServices, 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_EntityHistory_providedServices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EmailTemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EmailTemplateHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _EntityHistory_links(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_links(ctx, field) + return ec.fieldContext_EntityHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Links, 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_EntityHistory_links(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _EntityHistory_riskRating(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_riskRating(ctx, field) + return ec.fieldContext_EntityHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskRating, nil + return obj.HistoryTime, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_EntityHistory_ref(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17126,227 +17116,227 @@ func (ec *executionContext) _EntityHistory_riskRating(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_riskRating(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_riskScore(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_riskScore(ctx, field) + return ec.fieldContext_EntityHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskScore, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_EntityHistory_riskScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryOpType does not have child fields")) } -func (ec *executionContext) _EntityHistory_riskScoreCoverage(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_riskScoreCoverage(ctx, field) + return ec.fieldContext_EntityHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RiskScoreCoverage, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_riskScoreCoverage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_tier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_tier(ctx, field) + return ec.fieldContext_EntityHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tier, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.VendorTier) graphql.Marshaler { - return ec.marshalOEntityHistoryVendorTier2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorTier(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_EntityHistory_tier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryVendorTier does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _EntityHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_reviewFrequency(ctx, field) + return ec.fieldContext_EntityHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOEntityHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(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_EntityHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryFrequency does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_nextReviewAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_nextReviewAt(ctx, field) + return ec.fieldContext_EntityHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NextReviewAt, nil + return obj.UpdatedBy, 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_EntityHistory_nextReviewAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_contractRenewalAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_contractRenewalAt(ctx, field) + return ec.fieldContext_EntityHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContractRenewalAt, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_contractRenewalAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_vendorMetadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_vendorMetadata(ctx, field) + return ec.fieldContext_EntityHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VendorMetadata, 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_EntityHistory_vendorMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_logoRemoteURL(ctx, field) + return ec.fieldContext_EntityHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoRemoteURL, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityHistory_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_logoFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_logoFileID(ctx, field) + return ec.fieldContext_EntityHistory_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoFileID, nil + return obj.InternalOwner, 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_EntityHistory_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_externalID(ctx, field) + return ec.fieldContext_EntityHistory_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, nil + return obj.InternalOwnerUserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17356,231 +17346,240 @@ func (ec *executionContext) _EntityHistory_externalID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_EntityHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistory_observedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistory_observedAt(ctx, field) + return ec.fieldContext_EntityHistory_internalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObservedAt, nil + return obj.InternalOwnerGroupID, 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_EntityHistory_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) + return ec.fieldContext_EntityHistory_reviewedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ReviewedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.EntityHistoryEdge) graphql.Marshaler { - return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityHistoryEdge(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_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EntityHistory_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_EntityHistory_reviewedByUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ReviewedByUserID, 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_EntityHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PageInfo(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EntityHistory_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_EntityHistory_reviewedByGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ReviewedByGroupID, 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_EntityHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_lastReviewedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistoryEdge_node(ctx, field) + return ec.fieldContext_EntityHistory_lastReviewedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.LastReviewedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.EntityHistory) graphql.Marshaler { - return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityHistory(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_EntityHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EntityHistory_lastReviewedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) + return ec.fieldContext_EntityHistory_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_EntityHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_id(ctx, field) + return ec.fieldContext_EntityHistory_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_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) + return ec.fieldContext_EntityHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.SystemInternalID, 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, 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_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entityRelationshipStateName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_ref(ctx, field) + return ec.fieldContext_EntityHistory_entityRelationshipStateName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.EntityRelationshipStateName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17590,89 +17589,89 @@ func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entityRelationshipStateName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entityRelationshipStateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_operation(ctx, field) + return ec.fieldContext_EntityHistory_entityRelationshipStateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.EntityRelationshipStateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type EntityTypeHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entityRelationshipStateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entitySecurityQuestionnaireStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) + return ec.fieldContext_EntityHistory_entitySecurityQuestionnaireStatusName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.EntitySecurityQuestionnaireStatusName, 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_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entitySecurityQuestionnaireStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entitySecurityQuestionnaireStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) + return ec.fieldContext_EntityHistory_entitySecurityQuestionnaireStatusID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.EntitySecurityQuestionnaireStatusID, 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_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entitySecurityQuestionnaireStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entitySourceTypeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) + return ec.fieldContext_EntityHistory_entitySourceTypeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.EntitySourceTypeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17682,20 +17681,20 @@ func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entitySourceTypeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entitySourceTypeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) + return ec.fieldContext_EntityHistory_entitySourceTypeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.EntitySourceTypeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17705,66 +17704,66 @@ func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entitySourceTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_EntityHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.EnvironmentName, 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_EntityTypeHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_tags(ctx, field) + return ec.fieldContext_EntityHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.EnvironmentID, 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_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) + return ec.fieldContext_EntityHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -17774,612 +17773,549 @@ func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_systemOwned(ctx, field) + return ec.fieldContext_EntityHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.ScopeID, 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_EntityTypeHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_internalNotes(ctx, field) + return ec.fieldContext_EntityHistory_name(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.Name, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_systemInternalID(ctx, field) + return ec.fieldContext_EntityHistory_displayName(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.DisplayName, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistory_name(ctx, field) + return ec.fieldContext_EntityHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Description, 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_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) + return ec.fieldContext_EntityHistory_domains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.Domains, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.EntityTypeHistoryEdge) graphql.Marshaler { - return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityTypeHistoryEdge(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_EntityTypeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityTypeHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_aliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_EntityHistory_aliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Aliases, 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_EntityTypeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", - 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_EntityHistory_aliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.EntityTypeID, 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_EntityTypeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) + return ec.fieldContext_EntityHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.EntityTypeHistory) graphql.Marshaler { - return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityTypeHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.EntityStatus) graphql.Marshaler { + return ec.marshalOEntityHistoryEntityStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐEntityStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EntityTypeHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryEntityStatus does not have child fields")) } -func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_approvedForUse(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) + return ec.fieldContext_EntityHistory_approvedForUse(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.ApprovedForUse, 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_EntityTypeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EntityTypeHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_approvedForUse(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_linkedAssetIds(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_id(ctx, field) + return ec.fieldContext_EntityHistory_linkedAssetIds(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.LinkedAssetIds, 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 []string) graphql.Marshaler { + return ec.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_linkedAssetIds(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_hasSoc2(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_historyTime(ctx, field) + return ec.fieldContext_EntityHistory_hasSoc2(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.HasSoc2, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_hasSoc2(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_soc2PeriodEnd(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_ref(ctx, field) + return ec.fieldContext_EntityHistory_soc2PeriodEnd(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.Soc2PeriodEnd, 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_EvidenceHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_soc2PeriodEnd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_contractStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_operation(ctx, field) + return ec.fieldContext_EntityHistory_contractStartDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.ContractStartDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNEvidenceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_EvidenceHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_contractStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_contractEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_createdAt(ctx, field) + return ec.fieldContext_EntityHistory_contractEndDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ContractEndDate, 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_EvidenceHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_contractEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_autoRenews(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_updatedAt(ctx, field) + return ec.fieldContext_EntityHistory_autoRenews(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.AutoRenews, 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_EvidenceHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_autoRenews(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_terminationNoticeDays(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_createdBy(ctx, field) + return ec.fieldContext_EntityHistory_terminationNoticeDays(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.TerminationNoticeDays, 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_EvidenceHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_terminationNoticeDays(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_annualSpend(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_updatedBy(ctx, field) + return ec.fieldContext_EntityHistory_annualSpend(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.AnnualSpend, 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_EvidenceHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_annualSpend(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_spendCurrency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_EntityHistory_spendCurrency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.SpendCurrency, 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_EvidenceHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_spendCurrency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_billingModel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_displayID(ctx, field) + return ec.fieldContext_EntityHistory_billingModel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.BillingModel, 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_EvidenceHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_billingModel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_renewalRisk(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_tags(ctx, field) + return ec.fieldContext_EntityHistory_renewalRisk(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.RenewalRisk, 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_EvidenceHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_renewalRisk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_ssoEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_ownerID(ctx, field) + return ec.fieldContext_EntityHistory_ssoEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.SSOEnforced, 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_EvidenceHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_ssoEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_mfaSupported(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_environmentName(ctx, field) + return ec.fieldContext_EntityHistory_mfaSupported(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.MfaSupported, 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_EvidenceHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_mfaSupported(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_mfaEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_environmentID(ctx, field) + return ec.fieldContext_EntityHistory_mfaEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.MfaEnforced, 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_EvidenceHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_mfaEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_statusPageURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_scopeName(ctx, field) + return ec.fieldContext_EntityHistory_statusPageURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.StatusPageURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -18389,181 +18325,181 @@ func (ec *executionContext) _EvidenceHistory_scopeName(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_statusPageURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_providedServices(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_scopeID(ctx, field) + return ec.fieldContext_EntityHistory_providedServices(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.ProvidedServices, 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_EvidenceHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_providedServices(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_links(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_EntityHistory_links(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Links, 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_EvidenceHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_links(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_riskRating(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_externalUUID(ctx, field) + return ec.fieldContext_EntityHistory_riskRating(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.RiskRating, 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_EvidenceHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_riskRating(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_riskScore(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_name(ctx, field) + return ec.fieldContext_EntityHistory_riskScore(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.RiskScore, 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 int) graphql.Marshaler { + return ec.marshalOInt2int(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_riskScore(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_riskScoreCoverage(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_description(ctx, field) + return ec.fieldContext_EntityHistory_riskScoreCoverage(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.RiskScoreCoverage, 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_EvidenceHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_riskScoreCoverage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_collectionProcedure(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_tier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_collectionProcedure(ctx, field) + return ec.fieldContext_EntityHistory_tier(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CollectionProcedure, nil + return obj.Tier, 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.VendorTier) graphql.Marshaler { + return ec.marshalOEntityHistoryVendorTier2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVendorTier(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_collectionProcedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_tier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryVendorTier does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_creationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_creationDate(ctx, field) + return ec.fieldContext_EntityHistory_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreationDate, nil + return obj.ReviewFrequency, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { - return ec.marshalNDateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { + return ec.marshalOEntityHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_creationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type EntityHistoryFrequency does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_renewalDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_nextReviewAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_renewalDate(ctx, field) + return ec.fieldContext_EntityHistory_nextReviewAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RenewalDate, nil + return obj.NextReviewAt, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { @@ -18573,187 +18509,187 @@ func (ec *executionContext) _EvidenceHistory_renewalDate(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_renewalDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_nextReviewAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_contractRenewalAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_source(ctx, field) + return ec.fieldContext_EntityHistory_contractRenewalAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.ContractRenewalAt, 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_EvidenceHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_contractRenewalAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_isAutomated(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_vendorMetadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_isAutomated(ctx, field) + return ec.fieldContext_EntityHistory_vendorMetadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsAutomated, nil + return obj.VendorMetadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EvidenceHistory_isAutomated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_vendorMetadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_logoRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_url(ctx, field) + return ec.fieldContext_EntityHistory_logoRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URL, 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_EvidenceHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_logoRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_logoFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_status(ctx, field) + return ec.fieldContext_EntityHistory_logoFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.LogoFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.EvidenceStatus) graphql.Marshaler { - return ec.marshalOEvidenceHistoryEvidenceStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐEvidenceStatus(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_EvidenceHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryEvidenceStatus does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_logoFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_reviewFrequency(ctx, field) + return ec.fieldContext_EntityHistory_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil + return obj.ExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOEvidenceHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(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_EvidenceHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryFrequency does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _EvidenceHistory_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistory_observedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistory_auditorReferenceID(ctx, field) + return ec.fieldContext_EntityHistory_observedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReferenceID, 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_EvidenceHistory_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistory_observedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _EvidenceHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistoryConnection_edges(ctx, field) + return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.EvidenceHistoryEdge) graphql.Marshaler { - return ec.marshalOEvidenceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEvidenceHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.EntityHistoryEdge) graphql.Marshaler { + return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EvidenceHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EvidenceHistoryConnection", + Object: "EntityHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceHistoryEdge(ctx, field) + return ec.childFields_EntityHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _EvidenceHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -18766,9 +18702,9 @@ func (ec *executionContext) _EvidenceHistoryConnection_pageInfo(ctx context.Cont true, ) } -func (ec *executionContext) fieldContext_EvidenceHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EvidenceHistoryConnection", + Object: "EntityHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -18779,13 +18715,13 @@ func (ec *executionContext) fieldContext_EvidenceHistoryConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _EvidenceHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -18798,49 +18734,49 @@ func (ec *executionContext) _EvidenceHistoryConnection_totalCount(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_EvidenceHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _EvidenceHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistoryEdge_node(ctx, field) + return ec.fieldContext_EntityHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.EvidenceHistory) graphql.Marshaler { - return ec.marshalOEvidenceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEvidenceHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.EntityHistory) graphql.Marshaler { + return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_EvidenceHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EvidenceHistoryEdge", + Object: "EntityHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_EvidenceHistory(ctx, field) + return ec.childFields_EntityHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _EvidenceHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_EvidenceHistoryEdge_cursor(ctx, field) + return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -18853,17 +18789,17 @@ func (ec *executionContext) _EvidenceHistoryEdge_cursor(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_EvidenceHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("EvidenceHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_EntityHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_id(ctx, field) + return ec.fieldContext_EntityTypeHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -18876,17 +18812,17 @@ func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.C true, ) } -func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_historyTime(ctx, field) + return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -18899,17 +18835,17 @@ func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_ref(ctx, field) + return ec.fieldContext_EntityTypeHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -18922,40 +18858,40 @@ func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_operation(ctx, field) + return ec.fieldContext_EntityTypeHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type FileHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type EntityTypeHistoryOpType does not have child fields")) } -func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_createdAt(ctx, field) + return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -18968,17 +18904,17 @@ func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_updatedAt(ctx, field) + return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -18991,17 +18927,17 @@ func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_createdBy(ctx, field) + return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -19014,17 +18950,17 @@ func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_updatedBy(ctx, field) + return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -19037,17 +18973,17 @@ func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_EntityTypeHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -19060,17 +18996,17 @@ func (ec *executionContext) _FileHistory_updatedByImpersonator(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_FileHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_tags(ctx, field) + return ec.fieldContext_EntityTypeHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -19083,17 +19019,40 @@ func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql false, ) } -func (ec *executionContext) fieldContext_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_systemOwned(ctx, field) + return ec.fieldContext_EntityTypeHistory_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.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _EntityTypeHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_EntityTypeHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemOwned, nil @@ -19106,17 +19065,17 @@ func (ec *executionContext) _FileHistory_systemOwned(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FileHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _FileHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_internalNotes(ctx, field) + return ec.fieldContext_EntityTypeHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { return obj.InternalNotes, nil @@ -19147,17 +19106,17 @@ func (ec *executionContext) _FileHistory_internalNotes(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FileHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_systemInternalID(ctx, field) + return ec.fieldContext_EntityTypeHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.SystemInternalID, nil @@ -19188,296 +19147,323 @@ func (ec *executionContext) _FileHistory_systemInternalID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_FileHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_environmentName(ctx, field) + return ec.fieldContext_EntityTypeHistory_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_FileHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_environmentID(ctx, field) + return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, 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 []*historygenerated.EntityTypeHistoryEdge) graphql.Marshaler { + return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityTypeHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FileHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityTypeHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FileHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_scopeName(ctx, field) + return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, 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_FileHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistoryConnection", + 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) _FileHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_scopeID(ctx, field) + return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, 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_FileHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FileHistory_categoryName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_categoryName(ctx, field) + return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CategoryName, 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 *historygenerated.EntityTypeHistory) graphql.Marshaler { + return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEntityTypeHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FileHistory_categoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EntityTypeHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FileHistory_categoryID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_categoryID(ctx, field) + return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CategoryID, 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_FileHistory_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EntityTypeHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _FileHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_name(ctx, field) + return ec.fieldContext_EvidenceHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, 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_FileHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_providedFileName(ctx, field) + return ec.fieldContext_EvidenceHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProvidedFileName, nil + return obj.HistoryTime, 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 time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) + return ec.fieldContext_EvidenceHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProvidedFileExtension, nil + return obj.Ref, 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_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_providedFileSize(ctx, field) + return ec.fieldContext_EvidenceHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProvidedFileSize, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNEvidenceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryOpType does not have child fields")) } -func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) + return ec.fieldContext_EvidenceHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PersistedFileSize, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) + return ec.fieldContext_EvidenceHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetectedMimeType, 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_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_md5Hash(ctx, field) + return ec.fieldContext_EvidenceHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Md5Hash, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19487,112 +19473,112 @@ func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_detectedContentType(ctx, field) + return ec.fieldContext_EvidenceHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetectedContentType, 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, - true, + false, ) } -func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storeKey(ctx, field) + return ec.fieldContext_EvidenceHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StoreKey, nil + return obj.UpdatedByImpersonator, 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_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_categoryType(ctx, field) + return ec.fieldContext_EvidenceHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CategoryType, 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_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_uri(ctx, field) + return ec.fieldContext_EvidenceHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URI, 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_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storageScheme(ctx, field) + return ec.fieldContext_EvidenceHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StorageScheme, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19602,20 +19588,20 @@ func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storageVolume(ctx, field) + return ec.fieldContext_EvidenceHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StorageVolume, nil + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19625,20 +19611,20 @@ func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storagePath(ctx, field) + return ec.fieldContext_EvidenceHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StoragePath, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19648,43 +19634,43 @@ func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_metadata(ctx, field) + return ec.fieldContext_EvidenceHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.ScopeName, 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_FileHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storageRegion(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storageRegion(ctx, field) + return ec.fieldContext_EvidenceHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StorageRegion, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19694,254 +19680,227 @@ func (ec *executionContext) _FileHistory_storageRegion(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FileHistory_storageRegion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistory_storageProvider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_storageProvider(ctx, field) + return ec.fieldContext_EvidenceHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StorageProvider, 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_FileHistory_storageProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _FileHistory_lastAccessedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistory_lastAccessedAt(ctx, field) + return ec.fieldContext_EvidenceHistory_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastAccessedAt, nil + return obj.ExternalUUID, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FileHistory_lastAccessedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistoryConnection_edges(ctx, field) + return ec.fieldContext_EvidenceHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.FileHistoryEdge) graphql.Marshaler { - return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFileHistoryEdge(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_FileHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EvidenceHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_EvidenceHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Description, 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_FileHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", - 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_EvidenceHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_collectionProcedure(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_EvidenceHistory_collectionProcedure(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.CollectionProcedure, 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_FileHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_collectionProcedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_creationDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistoryEdge_node(ctx, field) + return ec.fieldContext_EvidenceHistory_creationDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.CreationDate, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.FileHistory) graphql.Marshaler { - return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFileHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *models.DateTime) graphql.Marshaler { + return ec.marshalNDateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FileHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FileHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FileHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_EvidenceHistory_creationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_renewalDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) + return ec.fieldContext_EvidenceHistory_renewalDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.RenewalDate, 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 *models.DateTime) graphql.Marshaler { + return ec.marshalODateTime2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐDateTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FileHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_renewalDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_id(ctx, field) + return ec.fieldContext_EvidenceHistory_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Source, 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_FindingControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_isAutomated(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_historyTime(ctx, field) + return ec.fieldContext_EvidenceHistory_isAutomated(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.IsAutomated, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_isAutomated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_ref(ctx, field) + return ec.fieldContext_EvidenceHistory_url(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.URL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -19951,250 +19910,277 @@ func (ec *executionContext) _FindingControlHistory_ref(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_operation(ctx, field) + return ec.fieldContext_EvidenceHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNFindingControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.EvidenceStatus) graphql.Marshaler { + return ec.marshalOEvidenceHistoryEvidenceStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐEvidenceStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type FindingControlHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryEvidenceStatus does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_createdAt(ctx, field) + return ec.fieldContext_EvidenceHistory_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ReviewFrequency, 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.Frequency) graphql.Marshaler { + return ec.marshalOEvidenceHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type EvidenceHistoryFrequency does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistory_auditorReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_updatedAt(ctx, field) + return ec.fieldContext_EvidenceHistory_auditorReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.AuditorReferenceID, 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_FindingControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistory_auditorReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_createdBy(ctx, field) + return ec.fieldContext_EvidenceHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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 []*historygenerated.EvidenceHistoryEdge) graphql.Marshaler { + return ec.marshalOEvidenceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEvidenceHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EvidenceHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EvidenceHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_updatedBy(ctx, field) + return ec.fieldContext_EvidenceHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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_FindingControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EvidenceHistoryConnection", + 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) _FindingControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_EvidenceHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_ownerID(ctx, field) + return ec.fieldContext_EvidenceHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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 *historygenerated.EvidenceHistory) graphql.Marshaler { + return ec.marshalOEvidenceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐEvidenceHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EvidenceHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_EvidenceHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingControlHistory_findingID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _EvidenceHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.EvidenceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_findingID(ctx, field) + return ec.fieldContext_EvidenceHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FindingID, 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_FindingControlHistory_findingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_EvidenceHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("EvidenceHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_controlID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_controlID(ctx, field) + return ec.fieldContext_FileHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlID, 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_FindingControlHistory_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_standardID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_standardID(ctx, field) + return ec.fieldContext_FileHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StandardID, nil + return obj.HistoryTime, 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_FindingControlHistory_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_externalStandard(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_externalStandard(ctx, field) + return ec.fieldContext_FileHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalStandard, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20204,323 +20190,332 @@ func (ec *executionContext) _FindingControlHistory_externalStandard(ctx context. false, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_externalStandard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_externalStandardVersion(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_externalStandardVersion(ctx, field) + return ec.fieldContext_FileHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalStandardVersion, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingControlHistory_externalStandardVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type FileHistoryOpType does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_externalControlID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_externalControlID(ctx, field) + return ec.fieldContext_FileHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalControlID, 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_FindingControlHistory_externalControlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_source(ctx, field) + return ec.fieldContext_FileHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, 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_FindingControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_metadata(ctx, field) + return ec.fieldContext_FileHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.CreatedBy, 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_FindingControlHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistory_discoveredAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistory_discoveredAt(ctx, field) + return ec.fieldContext_FileHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DiscoveredAt, nil + return obj.UpdatedBy, 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_FindingControlHistory_discoveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistoryConnection_edges(ctx, field) + return ec.fieldContext_FileHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.FindingControlHistoryEdge) graphql.Marshaler { - return ec.marshalOFindingControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingControlHistoryEdge(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_FindingControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingControlHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingControlHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FileHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_FileHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Tags, 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_FindingControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingControlHistoryConnection", - 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_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_FileHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.SystemOwned, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FindingControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _FindingControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistoryEdge_node(ctx, field) + return ec.fieldContext_FileHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.FindingControlHistory) graphql.Marshaler { - return ec.marshalOFindingControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingControlHistory(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_FindingControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingControlHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingControlHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FileHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingControlHistoryEdge_cursor(ctx, field) + return ec.fieldContext_FileHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.SystemInternalID, 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) { + 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_FindingControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_id(ctx, field) + return ec.fieldContext_FileHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.EnvironmentName, 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_FindingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_historyTime(ctx, field) + return ec.fieldContext_FileHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.EnvironmentID, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FindingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_ref(ctx, field) + return ec.fieldContext_FileHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.ScopeName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20530,89 +20525,89 @@ func (ec *executionContext) _FindingHistory_ref(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_FindingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_operation(ctx, field) + return ec.fieldContext_FileHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNFindingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_FindingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type FindingHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_categoryName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_createdAt(ctx, field) + return ec.fieldContext_FileHistory_categoryName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.CategoryName, 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_FindingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_categoryName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_categoryID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_updatedAt(ctx, field) + return ec.fieldContext_FileHistory_categoryID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, 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, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_categoryID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_createdBy(ctx, field) + return ec.fieldContext_FileHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Name, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20622,112 +20617,112 @@ func (ec *executionContext) _FindingHistory_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FindingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_updatedBy(ctx, field) + return ec.fieldContext_FileHistory_providedFileName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.ProvidedFileName, 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_FindingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.ProvidedFileExtension, 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_FindingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_displayID(ctx, field) + return ec.fieldContext_FileHistory_providedFileSize(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.ProvidedFileSize, 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 int64) graphql.Marshaler { + return ec.marshalOInt2int64(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_FindingHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FindingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_tags(ctx, field) + return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.PersistedFileSize, 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 int64) graphql.Marshaler { + return ec.marshalOInt2int64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FindingHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_ownerID(ctx, field) + return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.DetectedMimeType, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20737,20 +20732,20 @@ func (ec *executionContext) _FindingHistory_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_FindingHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_reviewedBy(ctx, field) + return ec.fieldContext_FileHistory_md5Hash(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedBy, nil + return obj.Md5Hash, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20760,43 +20755,43 @@ func (ec *executionContext) _FindingHistory_reviewedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FindingHistory_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_reviewedByUserID(ctx, field) + return ec.fieldContext_FileHistory_detectedContentType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByUserID, nil + return obj.DetectedContentType, 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_FindingHistory_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_reviewedByGroupID(ctx, field) + return ec.fieldContext_FileHistory_storeKey(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewedByGroupID, nil + return obj.StoreKey, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20806,20 +20801,20 @@ func (ec *executionContext) _FindingHistory_reviewedByGroupID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_FindingHistory_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_assignedTo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_assignedTo(ctx, field) + return ec.fieldContext_FileHistory_categoryType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedTo, nil + return obj.CategoryType, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20829,20 +20824,20 @@ func (ec *executionContext) _FindingHistory_assignedTo(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_FindingHistory_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_assignedToUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_assignedToUserID(ctx, field) + return ec.fieldContext_FileHistory_uri(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToUserID, nil + return obj.URI, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20852,20 +20847,20 @@ func (ec *executionContext) _FindingHistory_assignedToUserID(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_FindingHistory_assignedToUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_assignedToGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_assignedToGroupID(ctx, field) + return ec.fieldContext_FileHistory_storageScheme(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssignedToGroupID, nil + return obj.StorageScheme, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -20875,125 +20870,89 @@ func (ec *executionContext) _FindingHistory_assignedToGroupID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_FindingHistory_assignedToGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_systemOwned(ctx, field) + return ec.fieldContext_FileHistory_storageVolume(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.StorageVolume, 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_FindingHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_internalNotes(ctx, field) + return ec.fieldContext_FileHistory_storagePath(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.StoragePath, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_systemInternalID(ctx, field) + return ec.fieldContext_FileHistory_metadata(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.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _FindingHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storageRegion(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_environmentName(ctx, field) + return ec.fieldContext_FileHistory_storageRegion(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.StorageRegion, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -21003,20 +20962,20 @@ func (ec *executionContext) _FindingHistory_environmentName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storageRegion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_storageProvider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_environmentID(ctx, field) + return ec.fieldContext_FileHistory_storageProvider(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.StorageProvider, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -21026,204 +20985,231 @@ func (ec *executionContext) _FindingHistory_environmentID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_FindingHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_storageProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistory_lastAccessedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_scopeName(ctx, field) + return ec.fieldContext_FileHistory_lastAccessedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.LastAccessedAt, 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_FindingHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistory_lastAccessedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_scopeID(ctx, field) + return ec.fieldContext_FileHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, 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 []*historygenerated.FileHistoryEdge) graphql.Marshaler { + return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFileHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_FileHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingHistory_findingStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_findingStatusName(ctx, field) + return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FindingStatusName, 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_FindingHistory_findingStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistoryConnection", + 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) _FindingHistory_findingStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_findingStatusID(ctx, field) + return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FindingStatusID, 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_FindingHistory_findingStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FindingHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_FileHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Node, 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 *historygenerated.FileHistory) graphql.Marshaler { + return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFileHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FileHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_FileHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FileHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_externalID(ctx, field) + return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalID, 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_FindingHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FileHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _FindingHistory_securityLevel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_securityLevel(ctx, field) + return ec.fieldContext_FindingControlHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityLevel, nil + return obj.ID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SecurityLevel) graphql.Marshaler { - return ec.marshalOFindingHistorySecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(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_FindingHistory_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type FindingHistorySecurityLevel does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _FindingHistory_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_externalOwnerID(ctx, field) + return ec.fieldContext_FindingControlHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalOwnerID, nil + return obj.HistoryTime, 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_FindingHistory_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_source(ctx, field) + return ec.fieldContext_FindingControlHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -21233,89 +21219,89 @@ func (ec *executionContext) _FindingHistory_source(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_FindingHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_resourceName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_resourceName(ctx, field) + return ec.fieldContext_FindingControlHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ResourceName, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNFindingControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingHistory_resourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type FindingControlHistoryOpType does not have child fields")) } -func (ec *executionContext) _FindingHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_displayName(ctx, field) + return ec.fieldContext_FindingControlHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, 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_FindingHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_state(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_state(ctx, field) + return ec.fieldContext_FindingControlHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.State, 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_FindingHistory_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_category(ctx, field) + return ec.fieldContext_FindingControlHistory_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 { @@ -21325,66 +21311,66 @@ func (ec *executionContext) _FindingHistory_category(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FindingHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_categories(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_categories(ctx, field) + return ec.fieldContext_FindingControlHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Categories, 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_FindingHistory_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_findingClass(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_findingClass(ctx, field) + return ec.fieldContext_FindingControlHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FindingClass, nil + return obj.UpdatedByImpersonator, 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_FindingHistory_findingClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_severity(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_severity(ctx, field) + return ec.fieldContext_FindingControlHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Severity, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -21394,112 +21380,112 @@ func (ec *executionContext) _FindingHistory_severity(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FindingHistory_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_numericSeverity(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_findingID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_numericSeverity(ctx, field) + return ec.fieldContext_FindingControlHistory_findingID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NumericSeverity, nil + return obj.FindingID, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingHistory_numericSeverity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_findingID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_score(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_controlID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_score(ctx, field) + return ec.fieldContext_FindingControlHistory_controlID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Score, nil + return obj.ControlID, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingHistory_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_controlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_impact(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_standardID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_impact(ctx, field) + return ec.fieldContext_FindingControlHistory_standardID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Impact, nil + return obj.StandardID, 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_FindingHistory_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_standardID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_exploitability(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_externalStandard(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_exploitability(ctx, field) + return ec.fieldContext_FindingControlHistory_externalStandard(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Exploitability, nil + return obj.ExternalStandard, 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_FindingHistory_exploitability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_externalStandard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_priority(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_externalStandardVersion(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_priority(ctx, field) + return ec.fieldContext_FindingControlHistory_externalStandardVersion(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Priority, nil + return obj.ExternalStandardVersion, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -21509,783 +21495,819 @@ func (ec *executionContext) _FindingHistory_priority(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_FindingHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_externalStandardVersion(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_open(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_externalControlID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_open(ctx, field) + return ec.fieldContext_FindingControlHistory_externalControlID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Open, nil + return obj.ExternalControlID, 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_FindingHistory_open(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_externalControlID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_blocksProduction(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_blocksProduction(ctx, field) + return ec.fieldContext_FindingControlHistory_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BlocksProduction, nil + return obj.Source, 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_FindingHistory_blocksProduction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_production(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_production(ctx, field) + return ec.fieldContext_FindingControlHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Production, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_production(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _FindingHistory_public(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistory_discoveredAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_public(ctx, field) + return ec.fieldContext_FindingControlHistory_discoveredAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Public, nil + return obj.DiscoveredAt, 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_FindingHistory_public(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistory_discoveredAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _FindingHistory_validated(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_validated(ctx, field) + return ec.fieldContext_FindingControlHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Validated, nil + return obj.Edges, 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 []*historygenerated.FindingControlHistoryEdge) graphql.Marshaler { + return ec.marshalOFindingControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingControlHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_validated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FindingControlHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_FindingControlHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingHistory_assessmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_assessmentID(ctx, field) + return ec.fieldContext_FindingControlHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AssessmentID, 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_FindingHistory_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FindingControlHistoryConnection", + 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) _FindingHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_description(ctx, field) + return ec.fieldContext_FindingControlHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, 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_FindingHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _FindingHistory_recommendation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_recommendation(ctx, field) + return ec.fieldContext_FindingControlHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Recommendation, 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 *historygenerated.FindingControlHistory) graphql.Marshaler { + return ec.marshalOFindingControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingControlHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_recommendation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FindingControlHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_FindingControlHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _FindingHistory_recommendedActions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_recommendedActions(ctx, field) + return ec.fieldContext_FindingControlHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RecommendedActions, 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_FindingHistory_recommendedActions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _FindingHistory_references(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_references(ctx, field) + return ec.fieldContext_FindingHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.References, 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_FindingHistory_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _FindingHistory_stepsToReproduce(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_stepsToReproduce(ctx, field) + return ec.fieldContext_FindingHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StepsToReproduce, nil + return obj.HistoryTime, 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.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingHistory_stepsToReproduce(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_targets(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_targets(ctx, field) + return ec.fieldContext_FindingHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Targets, nil + return obj.Ref, 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_FindingHistory_targets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FindingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_targetDetails(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_targetDetails(ctx, field) + return ec.fieldContext_FindingHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TargetDetails, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNFindingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_FindingHistory_targetDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type FindingHistoryOpType does not have child fields")) } -func (ec *executionContext) _FindingHistory_vector(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_vector(ctx, field) + return ec.fieldContext_FindingHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Vector, 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_FindingHistory_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_remediationSLA(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_remediationSLA(ctx, field) + return ec.fieldContext_FindingHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RemediationSLA, nil + return obj.UpdatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_remediationSLA(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _FindingHistory_eventTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_eventTime(ctx, field) + return ec.fieldContext_FindingHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EventTime, nil + return obj.CreatedBy, 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_FindingHistory_eventTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_reportedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_reportedAt(ctx, field) + return ec.fieldContext_FindingHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReportedAt, nil + return obj.UpdatedBy, 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_FindingHistory_reportedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_sourceUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_sourceUpdatedAt(ctx, field) + return ec.fieldContext_FindingHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceUpdatedAt, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_FindingHistory_sourceUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_externalURI(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_externalURI(ctx, field) + return ec.fieldContext_FindingHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalURI, 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_FindingHistory_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FindingHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_metadata(ctx, field) + return ec.fieldContext_FindingHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, 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_FindingHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistory_rawPayload(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistory_rawPayload(ctx, field) + return ec.fieldContext_FindingHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.RawPayload, nil + return obj.OwnerID, 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_FindingHistory_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_reviewedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistoryConnection_edges(ctx, field) + return ec.fieldContext_FindingHistory_reviewedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ReviewedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.FindingHistoryEdge) graphql.Marshaler { - return ec.marshalOFindingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingHistoryEdge(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_FindingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FindingHistory_reviewedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_reviewedByUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_FindingHistory_reviewedByUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ReviewedByUserID, 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_FindingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingHistoryConnection", - 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_FindingHistory_reviewedByUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_reviewedByGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_FindingHistory_reviewedByGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ReviewedByGroupID, 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_FindingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_reviewedByGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_assignedTo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistoryEdge_node(ctx, field) + return ec.fieldContext_FindingHistory_assignedTo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.AssignedTo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.FindingHistory) graphql.Marshaler { - return ec.marshalOFindingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingHistory(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_FindingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "FindingHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_FindingHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FindingHistory_assignedTo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _FindingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_assignedToUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_FindingHistoryEdge_cursor(ctx, field) + return ec.fieldContext_FindingHistory_assignedToUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.AssignedToUserID, 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_FindingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("FindingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_assignedToUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_assignedToGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_id(ctx, field) + return ec.fieldContext_FindingHistory_assignedToGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.AssignedToGroupID, 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_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_assignedToGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_historyTime(ctx, field) + return ec.fieldContext_FindingHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.SystemOwned, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_ref(ctx, field) + return ec.fieldContext_FindingHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, 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_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_operation(ctx, field) + return ec.fieldContext_FindingHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type GroupHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_createdAt(ctx, field) + return ec.fieldContext_FindingHistory_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_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_updatedAt(ctx, field) + return ec.fieldContext_FindingHistory_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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_createdBy(ctx, field) + return ec.fieldContext_FindingHistory_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 { @@ -22295,20 +22317,20 @@ func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_updatedBy(ctx, field) + return ec.fieldContext_FindingHistory_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 { @@ -22318,89 +22340,89 @@ func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_findingStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_FindingHistory_findingStatusName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.FindingStatusName, 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_GroupHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_findingStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_findingStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_displayID(ctx, field) + return ec.fieldContext_FindingHistory_findingStatusID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.FindingStatusID, 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_GroupHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_findingStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_tags(ctx, field) + return ec.fieldContext_FindingHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.WorkflowEligibleMarker, 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_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_externalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_ownerID(ctx, field) + return ec.fieldContext_FindingHistory_externalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.ExternalID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -22410,43 +22432,43 @@ func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_externalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_securityLevel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_name(ctx, field) + return ec.fieldContext_FindingHistory_securityLevel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.SecurityLevel, 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 enums.SecurityLevel) graphql.Marshaler { + return ec.marshalOFindingHistorySecurityLevel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSecurityLevel(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_securityLevel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type FindingHistorySecurityLevel does not have child fields")) } -func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_externalOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_description(ctx, field) + return ec.fieldContext_FindingHistory_externalOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.ExternalOwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -22456,43 +22478,43 @@ func (ec *executionContext) _GroupHistory_description(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_externalOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_isManaged(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_isManaged(ctx, field) + return ec.fieldContext_FindingHistory_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsManaged, nil + return obj.Source, 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_GroupHistory_isManaged(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_resourceName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) + return ec.fieldContext_FindingHistory_resourceName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GravatarLogoURL, nil + return obj.ResourceName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -22502,20 +22524,20 @@ func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_resourceName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_logoURL(ctx, field) + return ec.fieldContext_FindingHistory_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LogoURL, nil + return obj.DisplayName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -22525,415 +22547,434 @@ func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_state(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_avatarLocalFileID(ctx, field) + return ec.fieldContext_FindingHistory_state(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarLocalFileID, nil + return obj.State, 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_GroupHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_state(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_category(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_displayName(ctx, field) + return ec.fieldContext_FindingHistory_category(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.Category, 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_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_category(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_oscalRole(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_categories(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_oscalRole(ctx, field) + return ec.fieldContext_FindingHistory_categories(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OscalRole, nil + return obj.Categories, 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_GroupHistory_oscalRole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_categories(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_oscalPartyUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_findingClass(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_oscalPartyUUID(ctx, field) + return ec.fieldContext_FindingHistory_findingClass(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OscalPartyUUID, nil + return obj.FindingClass, 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_GroupHistory_oscalPartyUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_findingClass(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_oscalContactUuids(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_severity(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_oscalContactUuids(ctx, field) + return ec.fieldContext_FindingHistory_severity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OscalContactUuids, nil + return obj.Severity, 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_GroupHistory_oscalContactUuids(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_severity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistory_scimExternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_numericSeverity(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_scimExternalID(ctx, field) + return ec.fieldContext_FindingHistory_numericSeverity(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimExternalID, nil + return obj.NumericSeverity, 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.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupHistory_scimExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_numericSeverity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _GroupHistory_scimDisplayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_score(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_scimDisplayName(ctx, field) + return ec.fieldContext_FindingHistory_score(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimDisplayName, 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.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupHistory_scimDisplayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_score(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _GroupHistory_scimActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_impact(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_scimActive(ctx, field) + return ec.fieldContext_FindingHistory_impact(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimActive, 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 float64) graphql.Marshaler { + return ec.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupHistory_scimActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _GroupHistory_scimGroupMailing(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_exploitability(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistory_scimGroupMailing(ctx, field) + return ec.fieldContext_FindingHistory_exploitability(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScimGroupMailing, nil + return obj.Exploitability, 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.marshalOFloat2float64(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupHistory_scimGroupMailing(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_exploitability(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_priority(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) + return ec.fieldContext_FindingHistory_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 []*historygenerated.GroupHistoryEdge) graphql.Marshaler { - return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupHistoryEdge(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_GroupHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FindingHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_open(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_FindingHistory_open(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Open, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", - 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_FindingHistory_open(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_blocksProduction(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_FindingHistory_blocksProduction(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.BlocksProduction, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_blocksProduction(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_production(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistoryEdge_node(ctx, field) + return ec.fieldContext_FindingHistory_production(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Production, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.GroupHistory) graphql.Marshaler { - return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupHistory(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_GroupHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_FindingHistory_production(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_public(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) + return ec.fieldContext_FindingHistory_public(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Public, 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, + false, + ) +} +func (ec *executionContext) fieldContext_FindingHistory_public(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _FindingHistory_validated(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_FindingHistory_validated(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Validated, 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_GroupHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_validated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_assessmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_id(ctx, field) + return ec.fieldContext_FindingHistory_assessmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.AssessmentID, 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_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_assessmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) + return ec.fieldContext_FindingHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.Description, 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.marshalOString2string(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_FindingHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _FindingHistory_recommendation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_FindingHistory_recommendation(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Recommendation, 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_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_recommendation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_recommendedActions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) + return ec.fieldContext_FindingHistory_recommendedActions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.RecommendedActions, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -22943,89 +22984,112 @@ func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_recommendedActions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_references(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) + return ec.fieldContext_FindingHistory_references(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.References, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_FindingHistory_references(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _FindingHistory_stepsToReproduce(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_FindingHistory_stepsToReproduce(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.StepsToReproduce, 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_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type GroupMembershipHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_stepsToReproduce(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_targets(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) + return ec.fieldContext_FindingHistory_targets(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.Targets, 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_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_targets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_targetDetails(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) + return ec.fieldContext_FindingHistory_targetDetails(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.TargetDetails, 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_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_targetDetails(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_vector(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) + return ec.fieldContext_FindingHistory_vector(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.Vector, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -23035,164 +23099,210 @@ func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_vector(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_remediationSLA(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) + return ec.fieldContext_FindingHistory_remediationSLA(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.RemediationSLA, 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_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_remediationSLA(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_eventTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_FindingHistory_eventTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.EventTime, 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_GroupMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_eventTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_reportedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_role(ctx, field) + return ec.fieldContext_FindingHistory_reportedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.ReportedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { - return ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(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_FindingHistory_reportedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +} + +func (ec *executionContext) _FindingHistory_sourceUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_FindingHistory_sourceUpdatedAt(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.SourceUpdatedAt, 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_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type GroupMembershipHistoryRole does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_sourceUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_externalURI(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) + return ec.fieldContext_FindingHistory_externalURI(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GroupID, nil + return obj.ExternalURI, 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_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_externalURI(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistory_userID(ctx, field) + return ec.fieldContext_FindingHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_FindingHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) +} + +func (ec *executionContext) _FindingHistory_rawPayload(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_FindingHistory_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_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistory_rawPayload(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) + return ec.fieldContext_FindingHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.GroupMembershipHistoryEdge) graphql.Marshaler { - return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupMembershipHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.FindingHistoryEdge) graphql.Marshaler { + return ec.marshalOFindingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FindingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "FindingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupMembershipHistoryEdge(ctx, field) + return ec.childFields_FindingHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_FindingHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -23205,9 +23315,9 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx conte true, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FindingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "FindingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -23218,13 +23328,13 @@ func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageIn return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_FindingHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -23237,49 +23347,49 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx con true, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) + return ec.fieldContext_FindingHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.GroupMembershipHistory) graphql.Marshaler { - return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupMembershipHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.FindingHistory) graphql.Marshaler { + return ec.marshalOFindingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐFindingHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FindingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryEdge", + Object: "FindingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupMembershipHistory(ctx, field) + return ec.childFields_FindingHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _FindingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.FindingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) + return ec.fieldContext_FindingHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -23292,17 +23402,17 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupMembershipHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_FindingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("FindingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_id(ctx, field) + return ec.fieldContext_GroupHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -23315,17 +23425,17 @@ func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) + return ec.fieldContext_GroupHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -23338,17 +23448,17 @@ func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_ref(ctx, field) + return ec.fieldContext_GroupHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -23361,40 +23471,40 @@ func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_operation(ctx, field) + return ec.fieldContext_GroupHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type GroupHistoryOpType does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) + return ec.fieldContext_GroupHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -23407,17 +23517,17 @@ func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) + return ec.fieldContext_GroupHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -23430,17 +23540,17 @@ func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) + return ec.fieldContext_GroupHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -23453,17 +23563,17 @@ func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) + return ec.fieldContext_GroupHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -23476,17 +23586,17 @@ func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_GroupHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -23499,112 +23609,112 @@ func (ec *executionContext) _GroupSettingHistory_updatedByImpersonator(ctx conte false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) + return ec.fieldContext_GroupHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Visibility, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Visibility) graphql.Marshaler { - return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVisibility(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_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryVisibility does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) + return ec.fieldContext_GroupHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JoinPolicy, nil + return obj.Tags, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.JoinPolicy) graphql.Marshaler { - return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐJoinPolicy(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_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) + return ec.fieldContext_GroupHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SyncToSlack, nil + return obj.OwnerID, 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_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) + return ec.fieldContext_GroupHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SyncToGithub, 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_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) + return ec.fieldContext_GroupHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GroupID, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -23614,520 +23724,484 @@ func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_isManaged(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) + return ec.fieldContext_GroupHistory_isManaged(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.IsManaged, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.GroupSettingHistoryEdge) graphql.Marshaler { - return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupSettingHistoryEdge(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_GroupSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupSettingHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_GroupHistory_isManaged(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.GravatarLogoURL, 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_GroupSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", - 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_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_GroupHistory_logoURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.LogoURL, 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_GroupSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) + return ec.fieldContext_GroupHistory_avatarLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.AvatarLocalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.GroupSettingHistory) graphql.Marshaler { - return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupSettingHistory(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_GroupSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_GroupSettingHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_GroupHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) + return ec.fieldContext_GroupHistory_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.DisplayName, 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.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("GroupSettingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_oscalRole(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_id(ctx, field) + return ec.fieldContext_GroupHistory_oscalRole(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.OscalRole, 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 *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_oscalRole(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_oscalPartyUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_historyTime(ctx, field) + return ec.fieldContext_GroupHistory_oscalPartyUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.OscalPartyUUID, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_oscalPartyUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_oscalContactUuids(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_ref(ctx, field) + return ec.fieldContext_GroupHistory_oscalContactUuids(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.OscalContactUuids, 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_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_oscalContactUuids(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_scimExternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_operation(ctx, field) + return ec.fieldContext_GroupHistory_scimExternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.ScimExternalID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type HushHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_scimExternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_scimDisplayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_createdAt(ctx, field) + return ec.fieldContext_GroupHistory_scimDisplayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ScimDisplayName, 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_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_scimDisplayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_scimActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_updatedAt(ctx, field) + return ec.fieldContext_GroupHistory_scimActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ScimActive, 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_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_scimActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistory_scimGroupMailing(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_createdBy(ctx, field) + return ec.fieldContext_GroupHistory_scimGroupMailing(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.ScimGroupMailing, 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_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistory_scimGroupMailing(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_updatedBy(ctx, field) + return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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 []*historygenerated.GroupHistoryEdge) graphql.Marshaler { + return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _HushHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.PageInfo, 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.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_HushHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistoryConnection", + 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) _HushHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_ownerID(ctx, field) + return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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_HushHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _HushHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_systemOwned(ctx, field) + return ec.fieldContext_GroupHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Node, 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 *historygenerated.GroupHistory) graphql.Marshaler { + return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_HushHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _HushHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_internalNotes(ctx, field) + return ec.fieldContext_GroupHistoryEdge_cursor(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.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_HushHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _HushHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_systemInternalID(ctx, field) + return ec.fieldContext_GroupMembershipHistory_id(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.ID, 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.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_HushHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_name(ctx, field) + return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.HistoryTime, 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 time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_description(ctx, field) + return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -24137,187 +24211,256 @@ func (ec *executionContext) _HushHistory_description(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_kind(ctx, field) + return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Kind, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type GroupMembershipHistoryOpType does not have child fields")) } -func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_secretName(ctx, field) + return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecretName, 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_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _HushHistory_credentialSet(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_credentialSet(ctx, field) + return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CredentialSet, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v models.CredentialSet) graphql.Marshaler { - return ec.marshalOCredentialSet2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCredentialSet(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_HushHistory_credentialSet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type CredentialSet does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _HushHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_metadata(ctx, field) + return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.CreatedBy, 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_HushHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_lastUsedAt(ctx, field) + return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastUsedAt, nil + return obj.UpdatedBy, 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_HushHistory_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _HushHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistory_expiresAt(ctx, field) + return ec.fieldContext_GroupMembershipHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExpiresAt, nil + return obj.UpdatedByImpersonator, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_HushHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) -} +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} -func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistoryConnection_edges(ctx, field) + return ec.fieldContext_GroupMembershipHistory_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.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type GroupMembershipHistoryRole does not have child fields")) +} + +func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.GroupID, 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_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_GroupMembershipHistory_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.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.HushHistoryEdge) graphql.Marshaler { - return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐHushHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.GroupMembershipHistoryEdge) graphql.Marshaler { + return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupMembershipHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "GroupMembershipHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_HushHistoryEdge(ctx, field) + return ec.childFields_GroupMembershipHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -24330,9 +24473,9 @@ func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "GroupMembershipHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -24343,13 +24486,13 @@ func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -24362,49 +24505,49 @@ func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistoryEdge_node(ctx, field) + return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.HushHistory) graphql.Marshaler { - return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐHushHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.GroupMembershipHistory) graphql.Marshaler { + return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupMembershipHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryEdge", + Object: "GroupMembershipHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_HushHistory(ctx, field) + return ec.childFields_GroupMembershipHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) + return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -24417,17 +24560,17 @@ func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("HushHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupMembershipHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_id(ctx, field) + return ec.fieldContext_GroupSettingHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -24440,17 +24583,17 @@ func (ec *executionContext) _IdentityHolderHistory_id(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_historyTime(ctx, field) + return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -24463,17 +24606,17 @@ func (ec *executionContext) _IdentityHolderHistory_historyTime(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_ref(ctx, field) + return ec.fieldContext_GroupSettingHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -24486,40 +24629,40 @@ func (ec *executionContext) _IdentityHolderHistory_ref(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_operation(ctx, field) + return ec.fieldContext_GroupSettingHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNIdentityHolderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryOpType does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_createdAt(ctx, field) + return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -24532,17 +24675,17 @@ func (ec *executionContext) _IdentityHolderHistory_createdAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_updatedAt(ctx, field) + return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -24555,17 +24698,17 @@ func (ec *executionContext) _IdentityHolderHistory_updatedAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_createdBy(ctx, field) + return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -24578,17 +24721,17 @@ func (ec *executionContext) _IdentityHolderHistory_createdBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_updatedBy(ctx, field) + return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -24601,17 +24744,17 @@ func (ec *executionContext) _IdentityHolderHistory_updatedBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_GroupSettingHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -24624,135 +24767,112 @@ func (ec *executionContext) _IdentityHolderHistory_updatedByImpersonator(ctx con false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_displayID(ctx, field) + return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.Visibility, 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 enums.Visibility) graphql.Marshaler { + return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐVisibility(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryVisibility does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_tags(ctx, field) + return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.JoinPolicy, 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.JoinPolicy) graphql.Marshaler { + return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐJoinPolicy(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_IdentityHolderHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _IdentityHolderHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_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.marshalOString2string(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_internalOwner(ctx, field) + return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwner, nil + return obj.SyncToSlack, 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_IdentityHolderHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_internalOwnerUserID(ctx, field) + return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerUserID, nil + return obj.SyncToGithub, 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_IdentityHolderHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_internalOwnerGroupID(ctx, field) + return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalOwnerGroupID, nil + return obj.GroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -24762,181 +24882,208 @@ func (ec *executionContext) _IdentityHolderHistory_internalOwnerGroupID(ctx cont false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_environmentName(ctx, field) + return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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 []*historygenerated.GroupSettingHistoryEdge) graphql.Marshaler { + return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupSettingHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupSettingHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _IdentityHolderHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_environmentID(ctx, field) + return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, 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_IdentityHolderHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistoryConnection", + 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) _IdentityHolderHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_scopeName(ctx, field) + return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, 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_IdentityHolderHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_scopeID(ctx, field) + return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, 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 *historygenerated.GroupSettingHistory) graphql.Marshaler { + return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐGroupSettingHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_GroupSettingHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _IdentityHolderHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("GroupSettingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_fullName(ctx, field) + return ec.fieldContext_HushHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FullName, 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_IdentityHolderHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_email(ctx, field) + return ec.fieldContext_HushHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Email, nil + return obj.HistoryTime, 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 time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_alternateEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_alternateEmail(ctx, field) + return ec.fieldContext_HushHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AlternateEmail, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -24946,89 +25093,89 @@ func (ec *executionContext) _IdentityHolderHistory_alternateEmail(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_alternateEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_emailAliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_emailAliases(ctx, field) + return ec.fieldContext_HushHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailAliases, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_emailAliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type HushHistoryOpType does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_phoneNumber(ctx, field) + return ec.fieldContext_HushHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhoneNumber, 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_IdentityHolderHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_isOpenlaneUser(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_isOpenlaneUser(ctx, field) + return ec.fieldContext_HushHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsOpenlaneUser, nil + return obj.UpdatedAt, 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_IdentityHolderHistory_isOpenlaneUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_userID(ctx, field) + return ec.fieldContext_HushHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -25038,227 +25185,263 @@ func (ec *executionContext) _IdentityHolderHistory_userID(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_identityHolderType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_identityHolderType(ctx, field) + return ec.fieldContext_HushHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityHolderType, nil + return obj.UpdatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.IdentityHolderType) graphql.Marshaler { - return ec.marshalNIdentityHolderHistoryIdentityHolderType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐIdentityHolderType(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_IdentityHolderHistory_identityHolderType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryIdentityHolderType does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_status(ctx, field) + return ec.fieldContext_HushHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.UserStatus) graphql.Marshaler { - return ec.marshalNIdentityHolderHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(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_IdentityHolderHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryUserStatus does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_isActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_isActive(ctx, field) + return ec.fieldContext_HushHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsActive, nil + return obj.OwnerID, 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_IdentityHolderHistory_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_title(ctx, field) + return ec.fieldContext_HushHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, 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_IdentityHolderHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_department(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_department(ctx, field) + return ec.fieldContext_HushHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Department, 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_IdentityHolderHistory_department(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_team(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_team(ctx, field) + return ec.fieldContext_HushHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Team, nil + return obj.SystemInternalID, 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_IdentityHolderHistory_team(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_location(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_location(ctx, field) + return ec.fieldContext_HushHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Location, 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_IdentityHolderHistory_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_startDate(ctx, field) + return ec.fieldContext_HushHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartDate, nil + return obj.Description, 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_IdentityHolderHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_endDate(ctx, field) + return ec.fieldContext_HushHistory_kind(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EndDate, nil + return obj.Kind, 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_IdentityHolderHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_employerEntityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_employerEntityID(ctx, field) + return ec.fieldContext_HushHistory_secretName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmployerEntityID, nil + return obj.SecretName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -25268,141 +25451,141 @@ func (ec *executionContext) _IdentityHolderHistory_employerEntityID(ctx context. false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_employerEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_externalUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_credentialSet(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_externalUserID(ctx, field) + return ec.fieldContext_HushHistory_credentialSet(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUserID, nil + return obj.CredentialSet, 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.CredentialSet) graphql.Marshaler { + return ec.marshalOCredentialSet2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋmodelsᚐCredentialSet(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_externalUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_credentialSet(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type CredentialSet does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_externalReferenceID(ctx, field) + return ec.fieldContext_HushHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalReferenceID, nil + return obj.Metadata, 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_IdentityHolderHistory_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_metadata(ctx, field) + return ec.fieldContext_HushHistory_lastUsedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.LastUsedAt, 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 *time.Time) graphql.Marshaler { + return ec.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistory_avatarRemoteURL(ctx, field) + return ec.fieldContext_HushHistory_expiresAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarRemoteURL, nil + return obj.ExpiresAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_HushHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistoryConnection_edges(ctx, field) + return ec.fieldContext_HushHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.IdentityHolderHistoryEdge) graphql.Marshaler { - return ec.marshalOIdentityHolderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐIdentityHolderHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.HushHistoryEdge) graphql.Marshaler { + return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐHushHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IdentityHolderHistoryConnection", + Object: "HushHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderHistoryEdge(ctx, field) + return ec.childFields_HushHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _IdentityHolderHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -25415,9 +25598,9 @@ func (ec *executionContext) _IdentityHolderHistoryConnection_pageInfo(ctx contex true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IdentityHolderHistoryConnection", + Object: "HushHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -25428,13 +25611,13 @@ func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_pageInf return fc, nil } -func (ec *executionContext) _IdentityHolderHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -25447,49 +25630,49 @@ func (ec *executionContext) _IdentityHolderHistoryConnection_totalCount(ctx cont true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _IdentityHolderHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistoryEdge_node(ctx, field) + return ec.fieldContext_HushHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.IdentityHolderHistory) graphql.Marshaler { - return ec.marshalOIdentityHolderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐIdentityHolderHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.HushHistory) graphql.Marshaler { + return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐHushHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IdentityHolderHistoryEdge", + Object: "HushHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_IdentityHolderHistory(ctx, field) + return ec.childFields_HushHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _IdentityHolderHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.HushHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_IdentityHolderHistoryEdge_cursor(ctx, field) + return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -25502,17 +25685,17 @@ func (ec *executionContext) _IdentityHolderHistoryEdge_cursor(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_IdentityHolderHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("IdentityHolderHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("HushHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_id(ctx, field) + return ec.fieldContext_IdentityHolderHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -25525,17 +25708,17 @@ func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) + return ec.fieldContext_IdentityHolderHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -25548,17 +25731,17 @@ func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_ref(ctx, field) + return ec.fieldContext_IdentityHolderHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -25571,40 +25754,40 @@ func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_operation(ctx, field) + return ec.fieldContext_IdentityHolderHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNIdentityHolderHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryOpType does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) + return ec.fieldContext_IdentityHolderHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -25617,17 +25800,17 @@ func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) + return ec.fieldContext_IdentityHolderHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -25640,17 +25823,17 @@ func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) + return ec.fieldContext_IdentityHolderHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -25663,17 +25846,17 @@ func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) + return ec.fieldContext_IdentityHolderHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -25686,17 +25869,17 @@ func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_IdentityHolderHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -25709,17 +25892,17 @@ func (ec *executionContext) _InternalPolicyHistory_updatedByImpersonator(ctx con false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_displayID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -25732,17 +25915,17 @@ func (ec *executionContext) _InternalPolicyHistory_displayID(ctx context.Context true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_tags(ctx, field) + return ec.fieldContext_IdentityHolderHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -25755,20 +25938,20 @@ func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_revision(ctx, field) + return ec.fieldContext_IdentityHolderHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -25778,20 +25961,20 @@ func (ec *executionContext) _InternalPolicyHistory_revision(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.InternalOwner, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -25801,309 +25984,227 @@ func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_systemOwned(ctx, field) + return ec.fieldContext_IdentityHolderHistory_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.InternalOwnerUserID, 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_InternalPolicyHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_internalNotes(ctx, field) + return ec.fieldContext_IdentityHolderHistory_internalOwnerGroupID(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.InternalOwnerGroupID, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_systemInternalID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_environmentName(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.EnvironmentName, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_name(ctx, field) + return ec.fieldContext_IdentityHolderHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.EnvironmentID, 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_InternalPolicyHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_status(ctx, field) + return ec.fieldContext_IdentityHolderHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOInternalPolicyHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(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_InternalPolicyHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryDocumentStatus does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_managementMode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_managementMode(ctx, field) + return ec.fieldContext_IdentityHolderHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ManagementMode, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { - return ec.marshalOInternalPolicyHistoryDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(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_InternalPolicyHistory_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryDocumentManagementMode does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_details(ctx, field) + return ec.fieldContext_IdentityHolderHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, 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_InternalPolicyHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_detailsJSON(ctx, field) + return ec.fieldContext_IdentityHolderHistory_fullName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil + return obj.FullName, 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, - ) -} -func (ec *executionContext) fieldContext_InternalPolicyHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Any does not have child fields")) -} - -func (ec *executionContext) _InternalPolicyHistory_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_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_InternalPolicyHistory_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_reviewDue(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_email(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_reviewDue(ctx, field) + return ec.fieldContext_IdentityHolderHistory_email(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewDue, nil + return obj.Email, 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, - ) -} -func (ec *executionContext) fieldContext_InternalPolicyHistory_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) -} - -func (ec *executionContext) _InternalPolicyHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_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.marshalOInternalPolicyHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) - }, true, - false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryFrequency does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_approverID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_alternateEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_approverID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_alternateEmail(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApproverID, nil + return obj.AlternateEmail, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26113,43 +26214,43 @@ func (ec *executionContext) _InternalPolicyHistory_approverID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_alternateEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_emailAliases(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_delegateID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_emailAliases(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, nil + return obj.EmailAliases, 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_InternalPolicyHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_emailAliases(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_summary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_summary(ctx, field) + return ec.fieldContext_IdentityHolderHistory_phoneNumber(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Summary, nil + return obj.PhoneNumber, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26159,250 +26260,204 @@ func (ec *executionContext) _InternalPolicyHistory_summary(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_isOpenlaneUser(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_tagSuggestions(ctx, field) + return ec.fieldContext_IdentityHolderHistory_isOpenlaneUser(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TagSuggestions, nil + return obj.IsOpenlaneUser, 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_InternalPolicyHistory_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_isOpenlaneUser(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_dismissedTagSuggestions(ctx, field) + return ec.fieldContext_IdentityHolderHistory_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedTagSuggestions, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_identityHolderType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_controlSuggestions(ctx, field) + return ec.fieldContext_IdentityHolderHistory_identityHolderType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlSuggestions, nil + return obj.IdentityHolderType, 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.IdentityHolderType) graphql.Marshaler { + return ec.marshalNIdentityHolderHistoryIdentityHolderType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐIdentityHolderType(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_InternalPolicyHistory_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _InternalPolicyHistory_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_dismissedControlSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DismissedControlSuggestions, 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_InternalPolicyHistory_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_identityHolderType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryIdentityHolderType does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_improvementSuggestions(ctx, field) + return ec.fieldContext_IdentityHolderHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImprovementSuggestions, nil + return obj.Status, 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.UserStatus) graphql.Marshaler { + return ec.marshalNIdentityHolderHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐUserStatus(ctx, selections, v) }, true, - false, - ) -} -func (ec *executionContext) fieldContext_InternalPolicyHistory_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _InternalPolicyHistory_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_dismissedImprovementSuggestions(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.DismissedImprovementSuggestions, 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_InternalPolicyHistory_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type IdentityHolderHistoryUserStatus does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_isActive(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_url(ctx, field) + return ec.fieldContext_IdentityHolderHistory_isActive(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URL, nil + return obj.IsActive, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_isActive(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_fileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_fileID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, 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_InternalPolicyHistory_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_externalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_department(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_externalFileID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_department(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalFileID, nil + return obj.Department, 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_InternalPolicyHistory_externalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_department(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_externalContents(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_team(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_externalContents(ctx, field) + return ec.fieldContext_IdentityHolderHistory_team(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalContents, nil + return obj.Team, 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_InternalPolicyHistory_externalContents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_team(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_internalPolicyKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_location(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_internalPolicyKindName(ctx, field) + return ec.fieldContext_IdentityHolderHistory_location(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalPolicyKindName, nil + return obj.Location, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26412,66 +26467,66 @@ func (ec *executionContext) _InternalPolicyHistory_internalPolicyKindName(ctx co false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_internalPolicyKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_location(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_internalPolicyKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_internalPolicyKindID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_startDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalPolicyKindID, nil + return obj.StartDate, 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_InternalPolicyHistory_internalPolicyKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_environmentName(ctx, field) + return ec.fieldContext_IdentityHolderHistory_endDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, nil + return obj.EndDate, 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_InternalPolicyHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_employerEntityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_environmentID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_employerEntityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.EmployerEntityID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26481,20 +26536,20 @@ func (ec *executionContext) _InternalPolicyHistory_environmentID(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_employerEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_externalUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_scopeName(ctx, field) + return ec.fieldContext_IdentityHolderHistory_externalUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.ExternalUserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26504,20 +26559,20 @@ func (ec *executionContext) _InternalPolicyHistory_scopeName(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_externalUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_scopeID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_externalReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.ExternalReferenceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -26527,43 +26582,43 @@ func (ec *executionContext) _InternalPolicyHistory_scopeID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_IdentityHolderHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistory_externalUUID(ctx, field) + return ec.fieldContext_IdentityHolderHistory_avatarRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.AvatarRemoteURL, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { @@ -26573,49 +26628,49 @@ func (ec *executionContext) _InternalPolicyHistory_externalUUID(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) + return ec.fieldContext_IdentityHolderHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.InternalPolicyHistoryEdge) graphql.Marshaler { - return ec.marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐInternalPolicyHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.IdentityHolderHistoryEdge) graphql.Marshaler { + return ec.marshalOIdentityHolderHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐIdentityHolderHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryConnection", + Object: "IdentityHolderHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyHistoryEdge(ctx, field) + return ec.childFields_IdentityHolderHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_IdentityHolderHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -26628,9 +26683,9 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx contex true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryConnection", + Object: "IdentityHolderHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -26641,13 +26696,13 @@ func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_pageInf return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_IdentityHolderHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -26660,49 +26715,49 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx cont true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) + return ec.fieldContext_IdentityHolderHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.InternalPolicyHistory) graphql.Marshaler { - return ec.marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐInternalPolicyHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.IdentityHolderHistory) graphql.Marshaler { + return ec.marshalOIdentityHolderHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐIdentityHolderHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IdentityHolderHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryEdge", + Object: "IdentityHolderHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_InternalPolicyHistory(ctx, field) + return ec.childFields_IdentityHolderHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _IdentityHolderHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.IdentityHolderHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) + return ec.fieldContext_IdentityHolderHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -26715,17 +26770,17 @@ func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("InternalPolicyHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_IdentityHolderHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("IdentityHolderHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_id(ctx, field) + return ec.fieldContext_InternalPolicyHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -26738,17 +26793,17 @@ func (ec *executionContext) _MappableDomainHistory_id(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_historyTime(ctx, field) + return ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -26761,17 +26816,17 @@ func (ec *executionContext) _MappableDomainHistory_historyTime(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_ref(ctx, field) + return ec.fieldContext_InternalPolicyHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -26784,40 +26839,40 @@ func (ec *executionContext) _MappableDomainHistory_ref(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_operation(ctx, field) + return ec.fieldContext_InternalPolicyHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNMappableDomainHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type MappableDomainHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryOpType does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_createdAt(ctx, field) + return ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -26830,17 +26885,17 @@ func (ec *executionContext) _MappableDomainHistory_createdAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_updatedAt(ctx, field) + return ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -26853,17 +26908,17 @@ func (ec *executionContext) _MappableDomainHistory_updatedAt(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_createdBy(ctx, field) + return ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -26876,17 +26931,17 @@ func (ec *executionContext) _MappableDomainHistory_createdBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_updatedBy(ctx, field) + return ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -26899,17 +26954,17 @@ func (ec *executionContext) _MappableDomainHistory_updatedBy(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_InternalPolicyHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -26922,277 +26977,286 @@ func (ec *executionContext) _MappableDomainHistory_updatedByImpersonator(ctx con false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_tags(ctx, field) + return ec.fieldContext_InternalPolicyHistory_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_MappableDomainHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_name(ctx, field) + return ec.fieldContext_InternalPolicyHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, 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_MappableDomainHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistory_zoneID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistory_zoneID(ctx, field) + return ec.fieldContext_InternalPolicyHistory_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ZoneID, nil + return obj.Revision, 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_MappableDomainHistory_zoneID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistoryConnection_edges(ctx, field) + return ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.MappableDomainHistoryEdge) graphql.Marshaler { - return ec.marshalOMappableDomainHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappableDomainHistoryEdge(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_MappableDomainHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappableDomainHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappableDomainHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_InternalPolicyHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.SystemOwned, 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 bool) graphql.Marshaler { + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_MappableDomainHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappableDomainHistoryConnection", - 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_InternalPolicyHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _MappableDomainHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_InternalPolicyHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.InternalNotes, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v int) graphql.Marshaler { - return ec.marshalNInt2int(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_MappableDomainHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistoryEdge_node(ctx, field) + return ec.fieldContext_InternalPolicyHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.SystemInternalID, nil }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.MappableDomainHistory) graphql.Marshaler { - return ec.marshalOMappableDomainHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappableDomainHistory(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_MappableDomainHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappableDomainHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappableDomainHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappableDomainHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappableDomainHistoryEdge_cursor(ctx, field) + return ec.fieldContext_InternalPolicyHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Name, 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.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_MappableDomainHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappableDomainHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_id(ctx, field) + return ec.fieldContext_InternalPolicyHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Status, 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.DocumentStatus) graphql.Marshaler { + return ec.marshalOInternalPolicyHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryDocumentStatus does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_managementMode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_historyTime(ctx, field) + return ec.fieldContext_InternalPolicyHistory_managementMode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.ManagementMode, 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.DocumentManagementMode) graphql.Marshaler { + return ec.marshalOInternalPolicyHistoryDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryDocumentManagementMode does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_ref(ctx, field) + return ec.fieldContext_InternalPolicyHistory_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.Details, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -27202,66 +27266,66 @@ func (ec *executionContext) _MappedControlHistory_ref(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_operation(ctx, field) + return ec.fieldContext_InternalPolicyHistory_detailsJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.DetailsJSON, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNMappedControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_MappedControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_createdAt(ctx, field) + return ec.fieldContext_InternalPolicyHistory_approvalRequired(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ApprovalRequired, 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_MappedControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_reviewDue(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_updatedAt(ctx, field) + return ec.fieldContext_InternalPolicyHistory_reviewDue(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.ReviewDue, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { @@ -27271,43 +27335,43 @@ func (ec *executionContext) _MappedControlHistory_updatedAt(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_createdBy(ctx, field) + return ec.fieldContext_InternalPolicyHistory_reviewFrequency(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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.marshalOInternalPolicyHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type InternalPolicyHistoryFrequency does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_approverID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_updatedBy(ctx, field) + return ec.fieldContext_InternalPolicyHistory_approverID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.ApproverID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -27317,474 +27381,411 @@ func (ec *executionContext) _MappedControlHistory_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_InternalPolicyHistory_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.DelegateID, 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_MappedControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_summary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_tags(ctx, field) + return ec.fieldContext_InternalPolicyHistory_summary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Summary, 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_MappedControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_systemOwned(ctx, field) + return ec.fieldContext_InternalPolicyHistory_tagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.TagSuggestions, 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_MappedControlHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_internalNotes(ctx, field) + return ec.fieldContext_InternalPolicyHistory_dismissedTagSuggestions(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.DismissedTagSuggestions, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_systemInternalID(ctx, field) + return ec.fieldContext_InternalPolicyHistory_controlSuggestions(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.ControlSuggestions, 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.marshalOString2ᚕstringᚄ(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_MappedControlHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_ownerID(ctx, field) + return ec.fieldContext_InternalPolicyHistory_dismissedControlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.DismissedControlSuggestions, 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_MappedControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_mappingType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_mappingType(ctx, field) + return ec.fieldContext_InternalPolicyHistory_improvementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MappingType, nil + return obj.ImprovementSuggestions, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.MappingType) graphql.Marshaler { - return ec.marshalNMappedControlHistoryMappingType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐMappingType(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_MappedControlHistory_mappingType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryMappingType does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_relation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_relation(ctx, field) + return ec.fieldContext_InternalPolicyHistory_dismissedImprovementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Relation, nil + return obj.DismissedImprovementSuggestions, 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_MappedControlHistory_relation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_confidence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_confidence(ctx, field) + return ec.fieldContext_InternalPolicyHistory_url(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Confidence, nil + return obj.URL, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *int) graphql.Marshaler { - return ec.marshalOInt2ᚖint(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_MappedControlHistory_confidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_fileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistory_source(ctx, field) + return ec.fieldContext_InternalPolicyHistory_fileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Source, nil + return obj.FileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.MappingSource) graphql.Marshaler { - return ec.marshalOMappedControlHistoryMappingSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐMappingSource(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_MappedControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryMappingSource does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_externalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistoryConnection_edges(ctx, field) + return ec.fieldContext_InternalPolicyHistory_externalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ExternalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.MappedControlHistoryEdge) graphql.Marshaler { - return ec.marshalOMappedControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappedControlHistoryEdge(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_MappedControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappedControlHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappedControlHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_externalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_externalContents(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_InternalPolicyHistory_externalContents(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ExternalContents, 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_MappedControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappedControlHistoryConnection", - 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_InternalPolicyHistory_externalContents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_internalPolicyKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_InternalPolicyHistory_internalPolicyKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.InternalPolicyKindName, 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_MappedControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_internalPolicyKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_internalPolicyKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistoryEdge_node(ctx, field) + return ec.fieldContext_InternalPolicyHistory_internalPolicyKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.InternalPolicyKindID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.MappedControlHistory) graphql.Marshaler { - return ec.marshalOMappedControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappedControlHistory(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_MappedControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "MappedControlHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_MappedControlHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_InternalPolicyHistory_internalPolicyKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _MappedControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_MappedControlHistoryEdge_cursor(ctx, field) + return ec.fieldContext_InternalPolicyHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.EnvironmentName, 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_MappedControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("MappedControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_id(ctx, field) + return ec.fieldContext_InternalPolicyHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.EnvironmentID, 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_NarrativeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_historyTime(ctx, field) + return ec.fieldContext_InternalPolicyHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.ScopeName, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_ref(ctx, field) + return ec.fieldContext_InternalPolicyHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.ScopeID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -27794,204 +27795,254 @@ func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_operation(ctx, field) + return ec.fieldContext_InternalPolicyHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.WorkflowEligibleMarker, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_NarrativeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type NarrativeHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_createdAt(ctx, field) + return ec.fieldContext_InternalPolicyHistory_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.ExternalUUID, 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_NarrativeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) + return ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Edges, 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 []*historygenerated.InternalPolicyHistoryEdge) graphql.Marshaler { + return ec.marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐInternalPolicyHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InternalPolicyHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_createdBy(ctx, field) + return ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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_NarrativeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistoryConnection", + 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) _NarrativeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) + return ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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_NarrativeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, 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 *historygenerated.InternalPolicyHistory) graphql.Marshaler { + return ec.marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐInternalPolicyHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_InternalPolicyHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NarrativeHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_displayID(ctx, field) + return ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, 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_InternalPolicyHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("InternalPolicyHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _MappableDomainHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_MappableDomainHistory_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_NarrativeHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_tags(ctx, field) + return ec.fieldContext_MappableDomainHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.HistoryTime, 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.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_ownerID(ctx, field) + return ec.fieldContext_MappableDomainHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -28001,104 +28052,137 @@ func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_systemOwned(ctx, field) + return ec.fieldContext_MappableDomainHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNMappableDomainHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type MappableDomainHistoryOpType does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_internalNotes(ctx, field) + return ec.fieldContext_MappableDomainHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.InternalNotes, nil + return obj.CreatedAt, 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) - } + 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_MappableDomainHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} - next = directive1 - return next +func (ec *executionContext) _MappableDomainHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_MappableDomainHistory_updatedAt(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.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_NarrativeHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_systemInternalID(ctx, field) + return ec.fieldContext_MappableDomainHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemInternalID, nil + return obj.CreatedBy, nil }, - func(ctx context.Context, next graphql.Resolver) graphql.Resolver { - directive0 := next + nil, + func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { + return ec.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_MappableDomainHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +} - 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) _MappableDomainHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_MappableDomainHistory_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_MappableDomainHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) +} - next = directive1 - return next +func (ec *executionContext) _MappableDomainHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_MappableDomainHistory_updatedByImpersonator(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedByImpersonator, nil }, + nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { return ec.marshalOString2ᚖstring(ctx, selections, v) }, @@ -28106,118 +28190,118 @@ func (ec *executionContext) _NarrativeHistory_systemInternalID(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_NarrativeHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_name(ctx, field) + return ec.fieldContext_MappableDomainHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, 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_NarrativeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_description(ctx, field) + return ec.fieldContext_MappableDomainHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, 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_NarrativeHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistory_zoneID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistory_details(ctx, field) + return ec.fieldContext_MappableDomainHistory_zoneID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.ZoneID, 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_NarrativeHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistory_zoneID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) + return ec.fieldContext_MappableDomainHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NarrativeHistoryEdge) graphql.Marshaler { - return ec.marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNarrativeHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.MappableDomainHistoryEdge) graphql.Marshaler { + return ec.marshalOMappableDomainHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappableDomainHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappableDomainHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryConnection", + Object: "MappableDomainHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeHistoryEdge(ctx, field) + return ec.childFields_MappableDomainHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_MappableDomainHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -28230,9 +28314,9 @@ func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappableDomainHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryConnection", + Object: "MappableDomainHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -28243,13 +28327,13 @@ func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_MappableDomainHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -28262,49 +28346,49 @@ func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) + return ec.fieldContext_MappableDomainHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.NarrativeHistory) graphql.Marshaler { - return ec.marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNarrativeHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.MappableDomainHistory) graphql.Marshaler { + return ec.marshalOMappableDomainHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappableDomainHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NarrativeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappableDomainHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryEdge", + Object: "MappableDomainHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NarrativeHistory(ctx, field) + return ec.childFields_MappableDomainHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _MappableDomainHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappableDomainHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) + return ec.fieldContext_MappableDomainHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -28317,17 +28401,17 @@ func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_NarrativeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NarrativeHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_MappableDomainHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappableDomainHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_id(ctx, field) + return ec.fieldContext_MappedControlHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -28340,17 +28424,17 @@ func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.C true, ) } -func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_historyTime(ctx, field) + return ec.fieldContext_MappedControlHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -28363,17 +28447,17 @@ func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_ref(ctx, field) + return ec.fieldContext_MappedControlHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -28386,40 +28470,40 @@ func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql. false, ) } -func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_operation(ctx, field) + return ec.fieldContext_MappedControlHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNMappedControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type NoteHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryOpType does not have child fields")) } -func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_createdAt(ctx, field) + return ec.fieldContext_MappedControlHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -28432,17 +28516,17 @@ func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_updatedAt(ctx, field) + return ec.fieldContext_MappedControlHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -28455,17 +28539,17 @@ func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_createdBy(ctx, field) + return ec.fieldContext_MappedControlHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -28478,17 +28562,17 @@ func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_updatedBy(ctx, field) + return ec.fieldContext_MappedControlHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -28501,17 +28585,17 @@ func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field gr false, ) } -func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_MappedControlHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -28524,68 +28608,86 @@ func (ec *executionContext) _NoteHistory_updatedByImpersonator(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_NoteHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_displayID(ctx, field) + return ec.fieldContext_MappedControlHistory_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_NoteHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_ownerID(ctx, field) + return ec.fieldContext_MappedControlHistory_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.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_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NoteHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_title(ctx, field) + return ec.fieldContext_MappedControlHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Title, nil + 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 }, - nil, func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { return ec.marshalOString2ᚖstring(ctx, selections, v) }, @@ -28593,89 +28695,61 @@ func (ec *executionContext) _NoteHistory_title(ctx context.Context, field graphq false, ) } -func (ec *executionContext) fieldContext_NoteHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_text(ctx, field) + return ec.fieldContext_MappedControlHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Text, nil - }, - nil, - func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { - return ec.marshalNString2string(ctx, selections, v) + return obj.SystemInternalID, nil }, - true, - true, - ) -} -func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) -} + func(ctx context.Context, next graphql.Resolver) graphql.Resolver { + directive0 := next -func (ec *executionContext) _NoteHistory_textJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_textJSON(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.TextJSON, 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_NoteHistory_textJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Any does not have child fields")) -} + 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) _NoteHistory_noteRef(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_noteRef(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.NoteRef, 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 *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NoteHistory_noteRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_discussionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_discussionID(ctx, field) + return ec.fieldContext_MappedControlHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DiscussionID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -28685,43 +28759,43 @@ func (ec *executionContext) _NoteHistory_discussionID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_NoteHistory_discussionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_isEdited(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_mappingType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_isEdited(ctx, field) + return ec.fieldContext_MappedControlHistory_mappingType(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsEdited, nil + return obj.MappingType, 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.MappingType) graphql.Marshaler { + return ec.marshalNMappedControlHistoryMappingType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐMappingType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NoteHistory_isEdited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_mappingType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryMappingType does not have child fields")) } -func (ec *executionContext) _NoteHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_relation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_trustCenterID(ctx, field) + return ec.fieldContext_MappedControlHistory_relation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustCenterID, nil + return obj.Relation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -28731,95 +28805,95 @@ func (ec *executionContext) _NoteHistory_trustCenterID(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_NoteHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_relation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NoteHistory_notifySubscribers(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_confidence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_notifySubscribers(ctx, field) + return ec.fieldContext_MappedControlHistory_confidence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NotifySubscribers, nil + return obj.Confidence, 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.marshalOInt2ᚖint(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NoteHistory_notifySubscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_confidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NoteHistory_notifiedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistory_notifiedAt(ctx, field) + return ec.fieldContext_MappedControlHistory_source(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.NotifiedAt, nil + return obj.Source, 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.MappingSource) graphql.Marshaler { + return ec.marshalOMappedControlHistoryMappingSource2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐMappingSource(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NoteHistory_notifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistory", field, false, false, errors.New("field of type MappedControlHistoryMappingSource does not have child fields")) } -func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) + return ec.fieldContext_MappedControlHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NoteHistoryEdge) graphql.Marshaler { - return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoteHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.MappedControlHistoryEdge) graphql.Marshaler { + return ec.marshalOMappedControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappedControlHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappedControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "MappedControlHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteHistoryEdge(ctx, field) + return ec.childFields_MappedControlHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_MappedControlHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -28832,9 +28906,9 @@ func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappedControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "MappedControlHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -28845,13 +28919,13 @@ func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_MappedControlHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -28864,49 +28938,49 @@ func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistoryEdge_node(ctx, field) + return ec.fieldContext_MappedControlHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.NoteHistory) graphql.Marshaler { - return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoteHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.MappedControlHistory) graphql.Marshaler { + return ec.marshalOMappedControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐMappedControlHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_MappedControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryEdge", + Object: "MappedControlHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NoteHistory(ctx, field) + return ec.childFields_MappedControlHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _MappedControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.MappedControlHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) + return ec.fieldContext_MappedControlHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -28919,17 +28993,17 @@ func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field g true, ) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NoteHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_MappedControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("MappedControlHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_id(ctx, field) + return ec.fieldContext_NarrativeHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -28942,17 +29016,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_id(ctx context.Contex true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_historyTime(ctx, field) + return ec.fieldContext_NarrativeHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -28965,17 +29039,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_historyTime(ctx conte true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_ref(ctx, field) + return ec.fieldContext_NarrativeHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -28988,40 +29062,40 @@ func (ec *executionContext) _NotificationPreferenceHistory_ref(ctx context.Conte false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_operation(ctx, field) + return ec.fieldContext_NarrativeHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNNotificationPreferenceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type NarrativeHistoryOpType does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_createdAt(ctx, field) + return ec.fieldContext_NarrativeHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -29034,17 +29108,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_createdAt(ctx context false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_updatedAt(ctx, field) + return ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -29057,17 +29131,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_updatedAt(ctx context false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_createdBy(ctx, field) + return ec.fieldContext_NarrativeHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -29080,17 +29154,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_createdBy(ctx context false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_updatedBy(ctx, field) + return ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -29103,17 +29177,17 @@ func (ec *executionContext) _NotificationPreferenceHistory_updatedBy(ctx context false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_NarrativeHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -29126,388 +29200,451 @@ func (ec *executionContext) _NotificationPreferenceHistory_updatedByImpersonator false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_ownerID(ctx, field) + return ec.fieldContext_NarrativeHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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_NotificationPreferenceHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_userID(ctx, field) + return ec.fieldContext_NarrativeHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, 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_NotificationPreferenceHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_channel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_channel(ctx, field) + return ec.fieldContext_NarrativeHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Channel, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Channel) graphql.Marshaler { - return ec.marshalNNotificationPreferenceHistoryChannel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐChannel(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_NotificationPreferenceHistory_channel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryChannel does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_status(ctx, field) + return ec.fieldContext_NarrativeHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.SystemOwned, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.NotificationChannelStatus) graphql.Marshaler { - return ec.marshalNNotificationPreferenceHistoryNotificationChannelStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationChannelStatus(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_NotificationPreferenceHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryNotificationChannelStatus does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_provider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_provider(ctx, field) + return ec.fieldContext_NarrativeHistory_internalNotes(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Provider, 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_NotificationPreferenceHistory_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_destination(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_destination(ctx, field) + return ec.fieldContext_NarrativeHistory_systemInternalID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Destination, nil + return obj.SystemInternalID, 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_NotificationPreferenceHistory_destination(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_config(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_config(ctx, field) + return ec.fieldContext_NarrativeHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Config, nil + return obj.Name, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_enabled(ctx, field) + return ec.fieldContext_NarrativeHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Enabled, nil + 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_NotificationPreferenceHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_cadence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_cadence(ctx, field) + return ec.fieldContext_NarrativeHistory_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cadence, nil + return obj.Details, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.NotificationCadence) graphql.Marshaler { - return ec.marshalNNotificationPreferenceHistoryNotificationCadence2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationCadence(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_NotificationPreferenceHistory_cadence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryNotificationCadence does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_priority(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_priority(ctx, field) + return ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Priority, nil + return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Priority) graphql.Marshaler { - return ec.marshalONotificationPreferenceHistoryPriority2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPriority(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NarrativeHistoryEdge) graphql.Marshaler { + return ec.marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNarrativeHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryPriority does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NarrativeHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NotificationPreferenceHistory_topicPatterns(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_topicPatterns(ctx, field) + return ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TopicPatterns, nil + return obj.PageInfo, 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.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_topicPatterns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeHistoryConnection", + 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) _NotificationPreferenceHistory_topicOverrides(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_topicOverrides(ctx, field) + return ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TopicOverrides, 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_NotificationPreferenceHistory_topicOverrides(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_templateID(ctx, field) + return ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateID, 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 *historygenerated.NarrativeHistory) graphql.Marshaler { + return ec.marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNarrativeHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NarrativeHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NotificationPreferenceHistory_muteUntil(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NarrativeHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_muteUntil(ctx, field) + return ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MuteUntil, nil + return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_muteUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NarrativeHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_quietHoursStart(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_quietHoursStart(ctx, field) + return ec.fieldContext_NoteHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuietHoursStart, 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_NotificationPreferenceHistory_quietHoursStart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_quietHoursEnd(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_quietHoursEnd(ctx, field) + return ec.fieldContext_NoteHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.QuietHoursEnd, nil + return obj.HistoryTime, 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_NotificationPreferenceHistory_quietHoursEnd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_timezone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_timezone(ctx, field) + return ec.fieldContext_NoteHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Timezone, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -29517,89 +29654,89 @@ func (ec *executionContext) _NotificationPreferenceHistory_timezone(ctx context. false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_timezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_isDefault(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_isDefault(ctx, field) + return ec.fieldContext_NoteHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IsDefault, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type NoteHistoryOpType does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_verifiedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_verifiedAt(ctx, field) + return ec.fieldContext_NoteHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.VerifiedAt, nil + return obj.CreatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_verifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_lastUsedAt(ctx, field) + return ec.fieldContext_NoteHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastUsedAt, nil + return obj.UpdatedAt, 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 time.Time) graphql.Marshaler { + return ec.marshalOTime2timeᚐTime(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_lastError(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_lastError(ctx, field) + return ec.fieldContext_NoteHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.LastError, nil + return obj.CreatedBy, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -29609,231 +29746,204 @@ func (ec *executionContext) _NotificationPreferenceHistory_lastError(ctx context false, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistory_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistory_metadata(ctx, field) + return ec.fieldContext_NoteHistory_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_NotificationPreferenceHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistoryConnection_edges(ctx, field) + return ec.fieldContext_NoteHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.UpdatedByImpersonator, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NotificationPreferenceHistoryEdge) graphql.Marshaler { - return ec.marshalONotificationPreferenceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationPreferenceHistoryEdge(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_NotificationPreferenceHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationPreferenceHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationPreferenceHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NoteHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_NoteHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.DisplayID, 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.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationPreferenceHistoryConnection", - 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_NoteHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_NoteHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.OwnerID, 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_NotificationPreferenceHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_title(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistoryEdge_node(ctx, field) + return ec.fieldContext_NoteHistory_title(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Title, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.NotificationPreferenceHistory) graphql.Marshaler { - return ec.marshalONotificationPreferenceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationPreferenceHistory(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_NotificationPreferenceHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationPreferenceHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationPreferenceHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NoteHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationPreferenceHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationPreferenceHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NoteHistory_text(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Text, 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.marshalNString2string(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationPreferenceHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationPreferenceHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_textJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_id(ctx, field) + return ec.fieldContext_NoteHistory_textJSON(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.TextJSON, 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 []any) graphql.Marshaler { + return ec.marshalOAny2ᚕinterfaceᚄ(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_textJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Any does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_noteRef(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_historyTime(ctx, field) + return ec.fieldContext_NoteHistory_noteRef(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.NoteRef, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_noteRef(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_discussionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_ref(ctx, field) + return ec.fieldContext_NoteHistory_discussionID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.DiscussionID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -29843,470 +29953,461 @@ func (ec *executionContext) _NotificationTemplateHistory_ref(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_discussionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_isEdited(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_operation(ctx, field) + return ec.fieldContext_NoteHistory_isEdited(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.IsEdited, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNNotificationTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_NotificationTemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_isEdited(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_trustCenterID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_createdAt(ctx, field) + return ec.fieldContext_NoteHistory_trustCenterID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.TrustCenterID, 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_NotificationTemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_trustCenterID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_notifySubscribers(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_updatedAt(ctx, field) + return ec.fieldContext_NoteHistory_notifySubscribers(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.NotifySubscribers, 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_NotificationTemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_notifySubscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistory_notifiedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_createdBy(ctx, field) + return ec.fieldContext_NoteHistory_notifiedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.NotifiedAt, 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_NotificationTemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistory_notifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_updatedBy(ctx, field) + return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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 []*historygenerated.NoteHistoryEdge) graphql.Marshaler { + return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoteHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NoteHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NoteHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NotificationTemplateHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.PageInfo, 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.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NoteHistoryConnection", + 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) _NotificationTemplateHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_revision(ctx, field) + return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, 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_NotificationTemplateHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_ownerID(ctx, field) + return ec.fieldContext_NoteHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, 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 *historygenerated.NoteHistory) graphql.Marshaler { + return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoteHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NoteHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NoteHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _NotificationTemplateHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NoteHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_systemOwned(ctx, field) + return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Cursor, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NoteHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_internalNotes(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_id(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.ID, 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.marshalNID2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_systemInternalID(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_historyTime(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.HistoryTime, 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.marshalNTime2timeᚐTime(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_key(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_key(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Key, nil + return obj.Ref, 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_NotificationTemplateHistory_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_name(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNNotificationPreferenceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryOpType does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_description(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_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 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_NotificationTemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_channel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_channel(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Channel, nil + return obj.UpdatedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Channel) graphql.Marshaler { - return ec.marshalONotificationTemplateHistoryChannel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐChannel(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_NotificationTemplateHistory_channel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryChannel does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_format(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_format(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Format, nil + return obj.CreatedBy, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.NotificationTemplateFormat) graphql.Marshaler { - return ec.marshalNNotificationTemplateHistoryNotificationTemplateFormat2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationTemplateFormat(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_NotificationTemplateHistory_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryNotificationTemplateFormat does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_locale(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_locale(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Locale, 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, - true, + false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_locale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_topicPattern(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_topicPattern(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TopicPattern, nil + return obj.UpdatedByImpersonator, 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_NotificationTemplateHistory_topicPattern(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_integrationID(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IntegrationID, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -30316,89 +30417,89 @@ func (ec *executionContext) _NotificationTemplateHistory_integrationID(ctx conte false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_destinations(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_destinations(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Destinations, 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.marshalNString2string(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_destinations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_channel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_workflowDefinitionID(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_channel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowDefinitionID, nil + return obj.Channel, 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.Channel) graphql.Marshaler { + return ec.marshalNNotificationPreferenceHistoryChannel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐChannel(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_channel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryChannel does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_emailTemplateID(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EmailTemplateID, 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.NotificationChannelStatus) graphql.Marshaler { + return ec.marshalNNotificationPreferenceHistoryNotificationChannelStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationChannelStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryNotificationChannelStatus does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_titleTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_provider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_titleTemplate(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_provider(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TitleTemplate, nil + return obj.Provider, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -30408,20 +30509,20 @@ func (ec *executionContext) _NotificationTemplateHistory_titleTemplate(ctx conte false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_titleTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_provider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_subjectTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_destination(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_subjectTemplate(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_destination(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SubjectTemplate, nil + return obj.Destination, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -30431,1109 +30532,1095 @@ func (ec *executionContext) _NotificationTemplateHistory_subjectTemplate(ctx con false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_subjectTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_destination(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_bodyTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_config(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_bodyTemplate(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_config(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BodyTemplate, nil + return obj.Config, 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_NotificationTemplateHistory_bodyTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_config(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_blocks(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_enabled(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_blocks(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_enabled(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Blocks, nil + return obj.Enabled, 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 bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_blocks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_enabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_cadence(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_jsonconfig(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_cadence(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Jsonconfig, nil + return obj.Cadence, 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 enums.NotificationCadence) graphql.Marshaler { + return ec.marshalNNotificationPreferenceHistoryNotificationCadence2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationCadence(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_cadence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryNotificationCadence does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_priority(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_uischema(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_priority(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Uischema, nil + return obj.Priority, 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 enums.Priority) graphql.Marshaler { + return ec.marshalONotificationPreferenceHistoryPriority2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPriority(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type NotificationPreferenceHistoryPriority does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_topicPatterns(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_metadata(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_topicPatterns(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, nil + return obj.TopicPatterns, 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_NotificationTemplateHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_topicPatterns(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_active(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_topicOverrides(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_active(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_topicOverrides(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Active, nil + return obj.TopicOverrides, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_topicOverrides(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_version(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_version(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_templateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Version, nil + return obj.TemplateID, 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_NotificationTemplateHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_templateContext(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_muteUntil(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_templateContext(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_muteUntil(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TemplateContext, nil + return obj.MuteUntil, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.TemplateContext) graphql.Marshaler { - return ec.marshalONotificationTemplateHistoryTemplateContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateContext(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_NotificationTemplateHistory_templateContext(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryTemplateContext does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_muteUntil(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistory_defaults(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_quietHoursStart(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistory_defaults(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_quietHoursStart(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Defaults, nil + return obj.QuietHoursStart, 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_NotificationTemplateHistory_defaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_quietHoursStart(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_quietHoursEnd(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistoryConnection_edges(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_quietHoursEnd(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.QuietHoursEnd, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NotificationTemplateHistoryEdge) graphql.Marshaler { - return ec.marshalONotificationTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationTemplateHistoryEdge(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_NotificationTemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationTemplateHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplateHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_quietHoursEnd(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_timezone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_timezone(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.Timezone, 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_NotificationTemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationTemplateHistoryConnection", - 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_NotificationPreferenceHistory_timezone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_isDefault(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_isDefault(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.IsDefault, 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 bool) graphql.Marshaler { + return ec.marshalNBoolean2bool(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_isDefault(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_verifiedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistoryEdge_node(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_verifiedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.VerifiedAt, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.NotificationTemplateHistory) graphql.Marshaler { - return ec.marshalONotificationTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationTemplateHistory(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_NotificationTemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "NotificationTemplateHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_NotificationTemplateHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_verifiedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _NotificationTemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_NotificationTemplateHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_lastUsedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.LastUsedAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_NotificationTemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("NotificationTemplateHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_lastError(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_id(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_lastError(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.LastError, 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_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_lastError(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) + return ec.fieldContext_NotificationPreferenceHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) + return ec.fieldContext_NotificationPreferenceHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, 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 []*historygenerated.NotificationPreferenceHistoryEdge) graphql.Marshaler { + return ec.marshalONotificationPreferenceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationPreferenceHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NotificationPreferenceHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NotificationPreferenceHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) + return ec.fieldContext_NotificationPreferenceHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type OrgMembershipHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NotificationPreferenceHistoryConnection", + 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) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) + return ec.fieldContext_NotificationPreferenceHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, 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_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) + return ec.fieldContext_NotificationPreferenceHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Node, 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 *historygenerated.NotificationPreferenceHistory) graphql.Marshaler { + return ec.marshalONotificationPreferenceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationPreferenceHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NotificationPreferenceHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_NotificationPreferenceHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationPreferenceHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationPreferenceHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) + return ec.fieldContext_NotificationPreferenceHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, 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_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationPreferenceHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationPreferenceHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, 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, - ) -} -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) -} - -func (ec *executionContext) _OrgMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { - return graphql.ResolveField( - ctx, - ec.OperationContext, - field, - func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_updatedByImpersonator(ctx, field) - }, - func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, 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_OrgMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_role(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.HistoryTime, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { - return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type OrgMembershipHistoryRole does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OrganizationID, nil + return obj.Ref, 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_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNNotificationTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryOpType does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_ssoExempt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_ssoExempt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOExempt, nil + return obj.CreatedAt, 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_OrgMembershipHistory_ssoExempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_ssoExemptReason(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_ssoExemptReason(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOExemptReason, 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_OrgMembershipHistory_ssoExemptReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_ssoExemptGrantedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_ssoExemptGrantedBy(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOExemptGrantedBy, 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_OrgMembershipHistory_ssoExemptGrantedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_ssoExemptGrantedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_ssoExemptGrantedAt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOExemptGrantedAt, nil + return obj.UpdatedBy, 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_OrgMembershipHistory_ssoExemptGrantedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_tfaEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_tfaEnforced(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TfaEnforced, nil + return obj.UpdatedByImpersonator, 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_OrgMembershipHistory_tfaEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedReason(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_tfaEnforcedReason(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TfaEnforcedReason, nil + return obj.Revision, 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_OrgMembershipHistory_tfaEnforcedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_tfaEnforcedBy(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TfaEnforcedBy, 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.marshalOString2string(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_tfaEnforcedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistory_tfaEnforcedAt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TfaEnforcedAt, nil + return obj.SystemOwned, 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_OrgMembershipHistory_tfaEnforcedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_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 []*historygenerated.OrgMembershipHistoryEdge) graphql.Marshaler { - return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrgMembershipHistoryEdge(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_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgMembershipHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NotificationTemplateHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_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_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", - 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_NotificationTemplateHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_key(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_key(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.Key, 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_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_key(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.OrgMembershipHistory) graphql.Marshaler { - return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrgMembershipHistory(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_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrgMembershipHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_NotificationTemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Description, 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_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrgMembershipHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_channel(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_id(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_channel(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.Channel, 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.Channel) graphql.Marshaler { + return ec.marshalONotificationTemplateHistoryChannel2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐChannel(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_channel(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryChannel does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_format(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_format(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.Format, 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.NotificationTemplateFormat) graphql.Marshaler { + return ec.marshalNNotificationTemplateHistoryNotificationTemplateFormat2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐNotificationTemplateFormat(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_format(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryNotificationTemplateFormat does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_locale(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_ref(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_locale(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.Locale, 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_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_locale(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_topicPattern(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_operation(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_topicPattern(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.TopicPattern, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type OrganizationHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_topicPattern(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_integrationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_integrationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.IntegrationID, 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_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_integrationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_destinations(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_destinations(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.Destinations, 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_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_destinations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_workflowDefinitionID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_workflowDefinitionID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.WorkflowDefinitionID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -31543,20 +31630,20 @@ func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_workflowDefinitionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_emailTemplateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_emailTemplateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.EmailTemplateID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -31566,302 +31653,302 @@ func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_emailTemplateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_titleTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_titleTemplate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.TitleTemplate, 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_OrganizationHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_titleTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_subjectTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_tags(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_subjectTemplate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.SubjectTemplate, 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_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_subjectTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_bodyTemplate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_name(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_bodyTemplate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.BodyTemplate, 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_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_bodyTemplate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_blocks(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_displayName(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_blocks(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayName, nil + return obj.Blocks, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_blocks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_description(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_jsonconfig(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + return obj.Jsonconfig, 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_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_uischema(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PersonalOrg, nil + return obj.Uischema, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarRemoteURL, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_active(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_avatarLocalFileID(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_active(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarLocalFileID, nil + return obj.Active, 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.marshalNBoolean2bool(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_version(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_avatarUpdatedAt(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_version(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AvatarUpdatedAt, nil + return obj.Version, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_templateContext(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_stripeCustomerID(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_templateContext(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StripeCustomerID, nil + return obj.TemplateContext, 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.TemplateContext) graphql.Marshaler { + return ec.marshalONotificationTemplateHistoryTemplateContext2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐTemplateContext(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistory_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_templateContext(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type NotificationTemplateHistoryTemplateContext does not have child fields")) } -func (ec *executionContext) _OrganizationHistory_slugName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistory_defaults(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistory_slugName(ctx, field) + return ec.fieldContext_NotificationTemplateHistory_defaults(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SlugName, nil + return obj.Defaults, 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_OrganizationHistory_slugName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistory_defaults(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) + return ec.fieldContext_NotificationTemplateHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.OrganizationHistoryEdge) graphql.Marshaler { - return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.NotificationTemplateHistoryEdge) graphql.Marshaler { + return ec.marshalONotificationTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationTemplateHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NotificationTemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryConnection", + Object: "NotificationTemplateHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationHistoryEdge(ctx, field) + return ec.childFields_NotificationTemplateHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_NotificationTemplateHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -31874,9 +31961,9 @@ func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context. true, ) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NotificationTemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryConnection", + Object: "NotificationTemplateHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -31887,13 +31974,13 @@ func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo( return fc, nil } -func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_NotificationTemplateHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -31906,49 +31993,49 @@ func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx contex true, ) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) + return ec.fieldContext_NotificationTemplateHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.OrganizationHistory) graphql.Marshaler { - return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.NotificationTemplateHistory) graphql.Marshaler { + return ec.marshalONotificationTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNotificationTemplateHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NotificationTemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryEdge", + Object: "NotificationTemplateHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationHistory(ctx, field) + return ec.childFields_NotificationTemplateHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _NotificationTemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.NotificationTemplateHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NotificationTemplateHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -31961,17 +32048,17 @@ func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_NotificationTemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("NotificationTemplateHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) + return ec.fieldContext_OrgMembershipHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -31984,17 +32071,17 @@ func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) + return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -32007,17 +32094,17 @@ func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context. true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) + return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -32030,40 +32117,40 @@ func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) + return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type OrgMembershipHistoryOpType does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -32076,17 +32163,17 @@ func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -32099,17 +32186,17 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -32122,17 +32209,17 @@ func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -32145,17 +32232,17 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -32168,434 +32255,461 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedByImpersonator(ct false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) + return ec.fieldContext_OrgMembershipHistory_role(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.Role, 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.Role) graphql.Marshaler { + return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type OrgMembershipHistoryRole does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) + return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Domains, nil + return obj.OrganizationID, 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_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) + return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingContact, nil + return obj.UserID, 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_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_ssoExempt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) + return ec.fieldContext_OrgMembershipHistory_ssoExempt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingEmail, nil + return obj.SSOExempt, 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_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_ssoExempt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_ssoExemptReason(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) + return ec.fieldContext_OrgMembershipHistory_ssoExemptReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingPhone, nil + return obj.SSOExemptReason, 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_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_ssoExemptReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_ssoExemptGrantedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) + return ec.fieldContext_OrgMembershipHistory_ssoExemptGrantedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingAddress, nil + return obj.SSOExemptGrantedBy, nil }, 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 *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Address does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_ssoExemptGrantedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_ssoExemptGrantedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) + return ec.fieldContext_OrgMembershipHistory_ssoExemptGrantedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TaxIdentifier, nil + return obj.SSOExemptGrantedAt, 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_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_ssoExemptGrantedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_tfaEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) + return ec.fieldContext_OrgMembershipHistory_tfaEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.GeoLocation, nil + return obj.TfaEnforced, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Region) graphql.Marshaler { - return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRegion(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_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_tfaEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedReason(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) + return ec.fieldContext_OrgMembershipHistory_tfaEnforcedReason(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OrganizationID, nil + return obj.TfaEnforcedReason, 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_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_tfaEnforcedReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_billingNotificationsEnabled(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_billingNotificationsEnabled(ctx, field) + return ec.fieldContext_OrgMembershipHistory_tfaEnforcedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BillingNotificationsEnabled, nil + return obj.TfaEnforcedBy, 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_OrganizationSettingHistory_billingNotificationsEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_tfaEnforcedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_allowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistory_tfaEnforcedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_allowedEmailDomains(ctx, field) + return ec.fieldContext_OrgMembershipHistory_tfaEnforcedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AllowedEmailDomains, nil + return obj.TfaEnforcedAt, 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_OrganizationSettingHistory_allowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistory_tfaEnforcedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_allowMatchingDomainsAutojoin(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_allowMatchingDomainsAutojoin(ctx, field) + return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AllowMatchingDomainsAutojoin, nil + return obj.Edges, 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 []*historygenerated.OrgMembershipHistoryEdge) graphql.Marshaler { + return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrgMembershipHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_allowMatchingDomainsAutojoin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrgMembershipHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_identityProvider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProvider(ctx, field) + return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProvider, nil + return obj.PageInfo, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SSOProvider) graphql.Marshaler { - return ec.marshalOOrganizationSettingHistorySSOProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSOProvider(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_OrganizationSettingHistory_identityProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistorySSOProvider does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipHistoryConnection", + 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) _OrganizationSettingHistory_identityProviderClientID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderClientID(ctx, field) + return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderClientID, nil + return obj.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderClientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderClientSecret(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderClientSecret(ctx, field) + return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderClientSecret, 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 *historygenerated.OrgMembershipHistory) graphql.Marshaler { + return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrgMembershipHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderClientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrgMembershipHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderMetadataEndpoint(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderMetadataEndpoint(ctx, field) + return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderMetadataEndpoint, 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_OrganizationSettingHistory_identityProviderMetadataEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrgMembershipHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderAuthTested(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderAuthTested(ctx, field) + return ec.fieldContext_OrganizationHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderAuthTested, nil + return obj.ID, 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_OrganizationSettingHistory_identityProviderAuthTested(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderEntityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderEntityID(ctx, field) + return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderEntityID, nil + return obj.HistoryTime, 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_OrganizationSettingHistory_identityProviderEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_oidcDiscoveryEndpoint(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_oidcDiscoveryEndpoint(ctx, field) + return ec.fieldContext_OrganizationHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OidcDiscoveryEndpoint, nil + return obj.Ref, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -32605,227 +32719,227 @@ func (ec *executionContext) _OrganizationSettingHistory_oidcDiscoveryEndpoint(ct false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_oidcDiscoveryEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_samlSigninURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_samlSigninURL(ctx, field) + return ec.fieldContext_OrganizationHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlSigninURL, nil + return obj.Operation, 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 history.OpType) graphql.Marshaler { + return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_samlSigninURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type OrganizationHistoryOpType does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_samlIssuer(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_samlIssuer(ctx, field) + return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlIssuer, 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_OrganizationSettingHistory_samlIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_samlCert(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_samlCert(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SamlCert, 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_OrganizationSettingHistory_samlCert(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderLoginEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderLoginEnforced(ctx, field) + return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderLoginEnforced, 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_OrganizationSettingHistory_identityProviderLoginEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_identityProviderJitProvisioning(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_identityProviderJitProvisioning(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.IdentityProviderJitProvisioning, nil + return obj.UpdatedBy, 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_OrganizationSettingHistory_identityProviderJitProvisioning(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_jitAllowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_jitAllowedEmailDomains(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.JitAllowedEmailDomains, nil + return obj.UpdatedByImpersonator, 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_OrganizationSettingHistory_jitAllowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_multifactorAuthEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_multifactorAuthEnforced(ctx, field) + return ec.fieldContext_OrganizationHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.MultifactorAuthEnforced, 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_OrganizationSettingHistory_multifactorAuthEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_ssoExemptDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_ssoExemptDomains(ctx, field) + return ec.fieldContext_OrganizationHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SSOExemptDomains, nil + return obj.Name, 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_OrganizationSettingHistory_ssoExemptDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_allowSupportAccess(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_allowSupportAccess(ctx, field) + return ec.fieldContext_OrganizationHistory_displayName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AllowSupportAccess, nil + return obj.DisplayName, 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_OrganizationSettingHistory_allowSupportAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_complianceWebhookToken(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_complianceWebhookToken(ctx, field) + return ec.fieldContext_OrganizationHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ComplianceWebhookToken, nil + return obj.Description, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -32835,297 +32949,297 @@ func (ec *executionContext) _OrganizationSettingHistory_complianceWebhookToken(c false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_complianceWebhookToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_paymentMethodAdded(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_paymentMethodAdded(ctx, field) + return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PaymentMethodAdded, nil + return obj.PersonalOrg, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + return ec.marshalOBoolean2bool(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_paymentMethodAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistory_pendingDeletionAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistory_pendingDeletionAt(ctx, field) + return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PendingDeletionAt, nil + return obj.AvatarRemoteURL, 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.marshalOString2ᚖstring(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_pendingDeletionAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) + return ec.fieldContext_OrganizationHistory_avatarLocalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.AvatarLocalFileID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.OrganizationSettingHistoryEdge) graphql.Marshaler { - return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationSettingHistoryEdge(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_OrganizationSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationSettingHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_OrganizationHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_OrganizationHistory_avatarUpdatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.AvatarUpdatedAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryConnection", - 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_OrganizationHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_OrganizationHistory_stripeCustomerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.StripeCustomerID, 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_OrganizationSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistory_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistory_slugName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) + return ec.fieldContext_OrganizationHistory_slugName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.SlugName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.OrganizationSettingHistory) graphql.Marshaler { - return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationSettingHistory(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_OrganizationSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_OrganizationSettingHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_OrganizationHistory_slugName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) + return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Edges, 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 []*historygenerated.OrganizationHistoryEdge) graphql.Marshaler { + return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationHistoryEdge(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("OrganizationSettingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrganizationHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (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_OrganizationHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HasNextPage, nil + return obj.PageInfo, 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 entgql.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(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_OrganizationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationHistoryConnection", + 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) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryConnection) (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_OrganizationHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HasPreviousPage, nil + return obj.TotalCount, 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_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_OrganizationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryEdge) (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_OrganizationHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartCursor, nil + return obj.Node, nil }, 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 *historygenerated.OrganizationHistory) graphql.Marshaler { + return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationHistory(ctx, selections, v) }, true, false, ) } -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_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrganizationHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationHistoryEdge) (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_OrganizationHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EndCursor, nil + return obj.Cursor, nil }, 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 entgql.Cursor[string]) graphql.Marshaler { + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(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_OrganizationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _PlatformHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_id(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -33138,17 +33252,17 @@ func (ec *executionContext) _PlatformHistory_id(ctx context.Context, field graph true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _PlatformHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_historyTime(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -33161,17 +33275,17 @@ func (ec *executionContext) _PlatformHistory_historyTime(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_ref(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -33184,40 +33298,40 @@ func (ec *executionContext) _PlatformHistory_ref(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_operation(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNPlatformHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields")) } -func (ec *executionContext) _PlatformHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_createdAt(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -33230,17 +33344,17 @@ func (ec *executionContext) _PlatformHistory_createdAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -33253,17 +33367,17 @@ func (ec *executionContext) _PlatformHistory_updatedAt(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_createdBy(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -33276,17 +33390,17 @@ func (ec *executionContext) _PlatformHistory_createdBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -33299,17 +33413,17 @@ func (ec *executionContext) _PlatformHistory_updatedBy(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -33322,43 +33436,43 @@ func (ec *executionContext) _PlatformHistory_updatedByImpersonator(ctx context.C false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_displayID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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_PlatformHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_tags(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33368,20 +33482,20 @@ func (ec *executionContext) _PlatformHistory_tags(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_ownerID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33391,20 +33505,20 @@ func (ec *executionContext) _PlatformHistory_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_internalOwner(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33414,20 +33528,20 @@ func (ec *executionContext) _PlatformHistory_internalOwner(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_internalOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33437,43 +33551,43 @@ func (ec *executionContext) _PlatformHistory_internalOwnerUserID(ctx context.Con false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_internalOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.marshalOString2string(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_PlatformHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Address does not have child fields")) } -func (ec *executionContext) _PlatformHistory_businessOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_businessOwner(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33483,43 +33597,43 @@ func (ec *executionContext) _PlatformHistory_businessOwner(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_businessOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_businessOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.marshalOString2string(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.Region) graphql.Marshaler { + return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRegion(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_businessOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields")) } -func (ec *executionContext) _PlatformHistory_businessOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_businessOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33529,158 +33643,158 @@ func (ec *executionContext) _PlatformHistory_businessOwnerGroupID(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_businessOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_technicalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_billingNotificationsEnabled(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_technicalOwner(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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_PlatformHistory_technicalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingNotificationsEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_technicalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_allowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_technicalOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_technicalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_allowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_technicalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_allowMatchingDomainsAutojoin(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_technicalOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_technicalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_allowMatchingDomainsAutojoin(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_securityOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProvider(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_securityOwner(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.marshalOOrganizationSettingHistorySSOProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSSOProvider(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type OrganizationSettingHistorySSOProvider does not have child fields")) } -func (ec *executionContext) _PlatformHistory_securityOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderClientID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_securityOwnerUserID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_securityOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderClientID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_securityOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderClientSecret(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_securityOwnerGroupID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_securityOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderClientSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_platformKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderMetadataEndpoint(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_platformKindName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33690,43 +33804,43 @@ func (ec *executionContext) _PlatformHistory_platformKindName(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_platformKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderMetadataEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_platformKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderAuthTested(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_platformKindID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_platformKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderAuthTested(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_platformDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderEntityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_platformDataClassificationName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33736,20 +33850,20 @@ func (ec *executionContext) _PlatformHistory_platformDataClassificationName(ctx false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_platformDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderEntityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_platformDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_oidcDiscoveryEndpoint(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_platformDataClassificationID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33759,20 +33873,20 @@ func (ec *executionContext) _PlatformHistory_platformDataClassificationID(ctx co false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_platformDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_oidcDiscoveryEndpoint(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_samlSigninURL(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_environmentName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33782,20 +33896,20 @@ func (ec *executionContext) _PlatformHistory_environmentName(ctx context.Context false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_samlSigninURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_samlIssuer(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_environmentID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33805,20 +33919,20 @@ func (ec *executionContext) _PlatformHistory_environmentID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_samlIssuer(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_samlCert(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_scopeName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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 { @@ -33828,158 +33942,158 @@ func (ec *executionContext) _PlatformHistory_scopeName(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_samlCert(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderLoginEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_scopeID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_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.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_PlatformHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderLoginEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_accessModelName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_identityProviderJitProvisioning(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_accessModelName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_identityProviderJitProvisioning(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelName, nil + return obj.IdentityProviderJitProvisioning, 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_PlatformHistory_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_identityProviderJitProvisioning(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_accessModelID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_jitAllowedEmailDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_accessModelID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_jitAllowedEmailDomains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AccessModelID, nil + return obj.JitAllowedEmailDomains, 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_PlatformHistory_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_jitAllowedEmailDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_multifactorAuthEnforced(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_encryptionStatusName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_multifactorAuthEnforced(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusName, 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_PlatformHistory_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_multifactorAuthEnforced(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_ssoExemptDomains(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_encryptionStatusID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_ssoExemptDomains(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EncryptionStatusID, nil + return obj.SSOExemptDomains, 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_PlatformHistory_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_ssoExemptDomains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_securityTierName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_allowSupportAccess(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_securityTierName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_allowSupportAccess(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierName, nil + return obj.AllowSupportAccess, 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_PlatformHistory_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_allowSupportAccess(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_securityTierID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_complianceWebhookToken(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_securityTierID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_complianceWebhookToken(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SecurityTierID, nil + return obj.ComplianceWebhookToken, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -33989,714 +34103,714 @@ func (ec *executionContext) _PlatformHistory_securityTierID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_complianceWebhookToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_criticalityName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_paymentMethodAdded(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_criticalityName(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_paymentMethodAdded(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CriticalityName, 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_PlatformHistory_criticalityName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_paymentMethodAdded(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _PlatformHistory_criticalityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistory_pendingDeletionAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_criticalityID(ctx, field) + return ec.fieldContext_OrganizationSettingHistory_pendingDeletionAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CriticalityID, nil + return obj.PendingDeletionAt, 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_PlatformHistory_criticalityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistory_pendingDeletionAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _PlatformHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Edges, 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 []*historygenerated.OrganizationSettingHistoryEdge) graphql.Marshaler { + return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationSettingHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrganizationSettingHistoryEdge(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _PlatformHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_externalUUID(ctx, field) + return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.PageInfo, 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.PageInfo[string]) graphql.Marshaler { + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingHistoryConnection", + 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) _PlatformHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_name(ctx, field) + return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.TotalCount, 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 int) graphql.Marshaler { + return ec.marshalNInt2int(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _PlatformHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_description(ctx, field) + return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, 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 *historygenerated.OrganizationSettingHistory) graphql.Marshaler { + return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐOrganizationSettingHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_OrganizationSettingHistory(ctx, field) + }, + } + return fc, nil } -func (ec *executionContext) _PlatformHistory_businessPurpose(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_businessPurpose(ctx, field) + return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.BusinessPurpose, 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_PlatformHistory_businessPurpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("OrganizationSettingHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _PlatformHistory_scopeStatement(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (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_PlatformHistory_scopeStatement(ctx, field) + return ec.fieldContext_PageInfo_hasNextPage(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeStatement, 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_PlatformHistory_scopeStatement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", 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) _PlatformHistory_trustBoundaryDescription(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (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_PlatformHistory_trustBoundaryDescription(ctx, field) + return ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TrustBoundaryDescription, 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_PlatformHistory_trustBoundaryDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", 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) _PlatformHistory_dataFlowSummary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (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_PlatformHistory_dataFlowSummary(ctx, field) + return ec.fieldContext_PageInfo_startCursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DataFlowSummary, 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_PlatformHistory_dataFlowSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", 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) _PlatformHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (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_PlatformHistory_status(ctx, field) + return ec.fieldContext_PageInfo_endCursor(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.EndCursor, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.PlatformStatus) graphql.Marshaler { - return ec.marshalNPlatformHistoryPlatformStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPlatformStatus(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, - true, + false, ) } -func (ec *executionContext) fieldContext_PlatformHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistoryPlatformStatus 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) _PlatformHistory_physicalLocation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_physicalLocation(ctx, field) + return ec.fieldContext_PlatformHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PhysicalLocation, 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_PlatformHistory_physicalLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _PlatformHistory_region(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_region(ctx, field) + return ec.fieldContext_PlatformHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Region, nil + return obj.HistoryTime, 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_PlatformHistory_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_containsPii(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_containsPii(ctx, field) + return ec.fieldContext_PlatformHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ContainsPii, nil + return obj.Ref, 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_PlatformHistory_containsPii(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_sourceType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_sourceType(ctx, field) + return ec.fieldContext_PlatformHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceType, nil + return obj.Operation, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.SourceType) graphql.Marshaler { - return ec.marshalNPlatformHistorySourceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSourceType(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { + return ec.marshalNPlatformHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_PlatformHistory_sourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistorySourceType does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistoryOpType does not have child fields")) } -func (ec *executionContext) _PlatformHistory_sourceIdentifier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_sourceIdentifier(ctx, field) + return ec.fieldContext_PlatformHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SourceIdentifier, 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_PlatformHistory_sourceIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_costCenter(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_costCenter(ctx, field) + return ec.fieldContext_PlatformHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CostCenter, 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_PlatformHistory_costCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _PlatformHistory_estimatedMonthlyCost(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_estimatedMonthlyCost(ctx, field) + return ec.fieldContext_PlatformHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EstimatedMonthlyCost, 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_PlatformHistory_estimatedMonthlyCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Float does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_purchaseDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_purchaseDate(ctx, field) + return ec.fieldContext_PlatformHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PurchaseDate, nil + return obj.UpdatedBy, 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_PlatformHistory_purchaseDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_platformOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_platformOwnerID(ctx, field) + return ec.fieldContext_PlatformHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PlatformOwnerID, nil + return obj.UpdatedByImpersonator, 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_PlatformHistory_platformOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PlatformHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_externalReferenceID(ctx, field) + return ec.fieldContext_PlatformHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalReferenceID, 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_PlatformHistory_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PlatformHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistory_metadata(ctx, field) + return ec.fieldContext_PlatformHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Metadata, 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_PlatformHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Map does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistoryConnection_edges(ctx, field) + return ec.fieldContext_PlatformHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.OwnerID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.PlatformHistoryEdge) graphql.Marshaler { - return ec.marshalOPlatformHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐPlatformHistoryEdge(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_PlatformHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_PlatformHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_internalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_PlatformHistory_internalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.InternalOwner, 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_PlatformHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformHistoryConnection", - 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_PlatformHistory_internalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_internalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_PlatformHistory_internalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.InternalOwnerUserID, 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_PlatformHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_internalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_internalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistoryEdge_node(ctx, field) + return ec.fieldContext_PlatformHistory_internalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.InternalOwnerGroupID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.PlatformHistory) graphql.Marshaler { - return ec.marshalOPlatformHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐPlatformHistory(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_PlatformHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "PlatformHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_PlatformHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_PlatformHistory_internalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _PlatformHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_businessOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_PlatformHistoryEdge_cursor(ctx, field) + return ec.fieldContext_PlatformHistory_businessOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.BusinessOwner, 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_PlatformHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("PlatformHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_businessOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_businessOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_id(ctx, field) + return ec.fieldContext_PlatformHistory_businessOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ID, nil + return obj.BusinessOwnerUserID, 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_ProcedureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_businessOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_businessOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_historyTime(ctx, field) + return ec.fieldContext_PlatformHistory_businessOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.HistoryTime, nil + return obj.BusinessOwnerGroupID, 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.marshalOString2string(ctx, selections, v) }, true, - true, + false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_businessOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_technicalOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_ref(ctx, field) + return ec.fieldContext_PlatformHistory_technicalOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Ref, nil + return obj.TechnicalOwner, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -34706,89 +34820,89 @@ func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field gra false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_technicalOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_technicalOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_operation(ctx, field) + return ec.fieldContext_PlatformHistory_technicalOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Operation, nil + return obj.TechnicalOwnerUserID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(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_ProcedureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_technicalOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_technicalOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_createdAt(ctx, field) + return ec.fieldContext_PlatformHistory_technicalOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedAt, nil + return obj.TechnicalOwnerGroupID, 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_ProcedureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_technicalOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_securityOwner(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) + return ec.fieldContext_PlatformHistory_securityOwner(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedAt, nil + return obj.SecurityOwner, 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_ProcedureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_securityOwner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_securityOwnerUserID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_createdBy(ctx, field) + return ec.fieldContext_PlatformHistory_securityOwnerUserID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.CreatedBy, nil + return obj.SecurityOwnerUserID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -34798,20 +34912,20 @@ func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_securityOwnerUserID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_securityOwnerGroupID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) + return ec.fieldContext_PlatformHistory_securityOwnerGroupID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedBy, nil + return obj.SecurityOwnerGroupID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -34821,89 +34935,89 @@ func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_securityOwnerGroupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_platformKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_PlatformHistory_platformKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UpdatedByImpersonator, nil + return obj.PlatformKindName, 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_ProcedureHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_platformKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_platformKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_displayID(ctx, field) + return ec.fieldContext_PlatformHistory_platformKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DisplayID, nil + return obj.PlatformKindID, 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_ProcedureHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_platformKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_platformDataClassificationName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_tags(ctx, field) + return ec.fieldContext_PlatformHistory_platformDataClassificationName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Tags, nil + return obj.PlatformDataClassificationName, 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_ProcedureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_platformDataClassificationName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_platformDataClassificationID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_revision(ctx, field) + return ec.fieldContext_PlatformHistory_platformDataClassificationID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Revision, nil + return obj.PlatformDataClassificationID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -34913,20 +35027,20 @@ func (ec *executionContext) _ProcedureHistory_revision(ctx context.Context, fiel false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_platformDataClassificationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_ownerID(ctx, field) + return ec.fieldContext_PlatformHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -34936,89 +35050,89 @@ func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_name(ctx, field) + return ec.fieldContext_PlatformHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.EnvironmentID, 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_ProcedureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_status(ctx, field) + return ec.fieldContext_PlatformHistory_scopeName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.ScopeName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentStatus) graphql.Marshaler { - return ec.marshalOProcedureHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(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_ProcedureHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryDocumentStatus does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_managementMode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_managementMode(ctx, field) + return ec.fieldContext_PlatformHistory_scopeID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ManagementMode, nil + return obj.ScopeID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.DocumentManagementMode) graphql.Marshaler { - return ec.marshalOProcedureHistoryDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(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_ProcedureHistory_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryDocumentManagementMode does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_accessModelName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_details(ctx, field) + return ec.fieldContext_PlatformHistory_accessModelName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Details, nil + return obj.AccessModelName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35028,112 +35142,112 @@ func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_accessModelName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_accessModelID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_detailsJSON(ctx, field) + return ec.fieldContext_PlatformHistory_accessModelID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DetailsJSON, nil + return obj.AccessModelID, 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_ProcedureHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Any does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_accessModelID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_encryptionStatusName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_approvalRequired(ctx, field) + return ec.fieldContext_PlatformHistory_encryptionStatusName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApprovalRequired, nil + return obj.EncryptionStatusName, 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_ProcedureHistory_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_encryptionStatusName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_reviewDue(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_encryptionStatusID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_reviewDue(ctx, field) + return ec.fieldContext_PlatformHistory_encryptionStatusID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewDue, nil + return obj.EncryptionStatusID, 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_ProcedureHistory_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_encryptionStatusID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_securityTierName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_reviewFrequency(ctx, field) + return ec.fieldContext_PlatformHistory_securityTierName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ReviewFrequency, nil + return obj.SecurityTierName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Frequency) graphql.Marshaler { - return ec.marshalOProcedureHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(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_ProcedureHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryFrequency does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_securityTierName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_approverID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_securityTierID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_approverID(ctx, field) + return ec.fieldContext_PlatformHistory_securityTierID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ApproverID, nil + return obj.SecurityTierID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35143,20 +35257,20 @@ func (ec *executionContext) _ProcedureHistory_approverID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_securityTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_criticalityName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_delegateID(ctx, field) + return ec.fieldContext_PlatformHistory_criticalityName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DelegateID, nil + return obj.CriticalityName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35166,20 +35280,20 @@ func (ec *executionContext) _ProcedureHistory_delegateID(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_criticalityName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_summary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_criticalityID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_summary(ctx, field) + return ec.fieldContext_PlatformHistory_criticalityID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Summary, nil + return obj.CriticalityID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35189,355 +35303,319 @@ func (ec *executionContext) _ProcedureHistory_summary(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_criticalityID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_tagSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_workflowEligibleMarker(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TagSuggestions, nil + return obj.WorkflowEligibleMarker, 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_ProcedureHistory_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_dismissedTagSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedTagSuggestions, 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_ProcedureHistory_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_controlSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ControlSuggestions, nil + return obj.Name, 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_ProcedureHistory_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_dismissedControlSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedControlSuggestions, nil + return obj.Description, 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_ProcedureHistory_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_businessPurpose(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_improvementSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_businessPurpose(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ImprovementSuggestions, nil + return obj.BusinessPurpose, 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_ProcedureHistory_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_businessPurpose(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_scopeStatement(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_dismissedImprovementSuggestions(ctx, field) + return ec.fieldContext_PlatformHistory_scopeStatement(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.DismissedImprovementSuggestions, nil + return obj.ScopeStatement, 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_ProcedureHistory_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_scopeStatement(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_trustBoundaryDescription(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_url(ctx, field) + return ec.fieldContext_PlatformHistory_trustBoundaryDescription(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.URL, nil + return obj.TrustBoundaryDescription, 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_ProcedureHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_trustBoundaryDescription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_fileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_dataFlowSummary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_fileID(ctx, field) + return ec.fieldContext_PlatformHistory_dataFlowSummary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FileID, nil + return obj.DataFlowSummary, 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_ProcedureHistory_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_dataFlowSummary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_externalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_externalFileID(ctx, field) + return ec.fieldContext_PlatformHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalFileID, nil + return obj.Status, 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.PlatformStatus) graphql.Marshaler { + return ec.marshalNPlatformHistoryPlatformStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐPlatformStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_externalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistoryPlatformStatus does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_externalContents(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_physicalLocation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_externalContents(ctx, field) + return ec.fieldContext_PlatformHistory_physicalLocation(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalContents, nil + return obj.PhysicalLocation, 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_ProcedureHistory_externalContents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_physicalLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_region(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_systemOwned(ctx, field) + return ec.fieldContext_PlatformHistory_region(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.SystemOwned, nil + return obj.Region, 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_ProcedureHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_region(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_containsPii(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_internalNotes(ctx, field) + return ec.fieldContext_PlatformHistory_containsPii(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.ContainsPii, 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.marshalOBoolean2bool(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_containsPii(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_sourceType(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_systemInternalID(ctx, field) + return ec.fieldContext_PlatformHistory_sourceType(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.SourceType, 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.SourceType) graphql.Marshaler { + return ec.marshalNPlatformHistorySourceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐSourceType(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_sourceType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type PlatformHistorySourceType does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_procedureKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_sourceIdentifier(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_procedureKindName(ctx, field) + return ec.fieldContext_PlatformHistory_sourceIdentifier(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProcedureKindName, nil + return obj.SourceIdentifier, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35547,20 +35625,20 @@ func (ec *executionContext) _ProcedureHistory_procedureKindName(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_procedureKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_sourceIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_procedureKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_costCenter(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_procedureKindID(ctx, field) + return ec.fieldContext_PlatformHistory_costCenter(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProcedureKindID, nil + return obj.CostCenter, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35570,66 +35648,66 @@ func (ec *executionContext) _ProcedureHistory_procedureKindID(ctx context.Contex false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_procedureKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_costCenter(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_estimatedMonthlyCost(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_environmentName(ctx, field) + return ec.fieldContext_PlatformHistory_estimatedMonthlyCost(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentName, 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_ProcedureHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_estimatedMonthlyCost(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Float does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_purchaseDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_environmentID(ctx, field) + return ec.fieldContext_PlatformHistory_purchaseDate(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EnvironmentID, nil + return obj.PurchaseDate, 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_ProcedureHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_purchaseDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type DateTime does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_platformOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_scopeName(ctx, field) + return ec.fieldContext_PlatformHistory_platformOwnerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeName, nil + return obj.PlatformOwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35639,20 +35717,20 @@ func (ec *executionContext) _ProcedureHistory_scopeName(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_platformOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_externalReferenceID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_scopeID(ctx, field) + return ec.fieldContext_PlatformHistory_externalReferenceID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ScopeID, nil + return obj.ExternalReferenceID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -35662,72 +35740,72 @@ func (ec *executionContext) _ProcedureHistory_scopeID(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_externalReferenceID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProcedureHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistory_workflowEligibleMarker(ctx, field) + return ec.fieldContext_PlatformHistory_metadata(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.WorkflowEligibleMarker, nil + return obj.Metadata, 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 map[string]any) graphql.Marshaler { + return ec.marshalOMap2map(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProcedureHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistory", field, false, false, errors.New("field of type Map does not have child fields")) } -func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) + return ec.fieldContext_PlatformHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProcedureHistoryEdge) graphql.Marshaler { - return ec.marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProcedureHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.PlatformHistoryEdge) graphql.Marshaler { + return ec.marshalOPlatformHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐPlatformHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PlatformHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryConnection", + Object: "PlatformHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureHistoryEdge(ctx, field) + return ec.childFields_PlatformHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_PlatformHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -35740,9 +35818,9 @@ func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PlatformHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryConnection", + Object: "PlatformHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -35753,13 +35831,13 @@ func (ec *executionContext) fieldContext_ProcedureHistoryConnection_pageInfo(_ c return fc, nil } -func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_PlatformHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -35772,49 +35850,49 @@ func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.C true, ) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) + return ec.fieldContext_PlatformHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProcedureHistory) graphql.Marshaler { - return ec.marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProcedureHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.PlatformHistory) graphql.Marshaler { + return ec.marshalOPlatformHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐPlatformHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProcedureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PlatformHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryEdge", + Object: "PlatformHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProcedureHistory(ctx, field) + return ec.childFields_PlatformHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _PlatformHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.PlatformHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) + return ec.fieldContext_PlatformHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -35827,17 +35905,17 @@ func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_ProcedureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProcedureHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_PlatformHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("PlatformHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_id(ctx, field) + return ec.fieldContext_ProcedureHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -35850,17 +35928,17 @@ func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphq true, ) } -func (ec *executionContext) fieldContext_ProgramHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_historyTime(ctx, field) + return ec.fieldContext_ProcedureHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -35873,17 +35951,17 @@ func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, fie true, ) } -func (ec *executionContext) fieldContext_ProgramHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_ref(ctx, field) + return ec.fieldContext_ProcedureHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -35896,40 +35974,40 @@ func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graph false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_operation(ctx, field) + return ec.fieldContext_ProcedureHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNProgramHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProgramHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ProgramHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryOpType does not have child fields")) } -func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_createdAt(ctx, field) + return ec.fieldContext_ProcedureHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -35942,17 +36020,17 @@ func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_updatedAt(ctx, field) + return ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -35965,17 +36043,17 @@ func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_createdBy(ctx, field) + return ec.fieldContext_ProcedureHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -35988,17 +36066,17 @@ func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_updatedBy(ctx, field) + return ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -36011,17 +36089,17 @@ func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ProcedureHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -36034,17 +36112,17 @@ func (ec *executionContext) _ProgramHistory_updatedByImpersonator(ctx context.Co false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_displayID(ctx, field) + return ec.fieldContext_ProcedureHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { return obj.DisplayID, nil @@ -36057,17 +36135,17 @@ func (ec *executionContext) _ProgramHistory_displayID(ctx context.Context, field true, ) } -func (ec *executionContext) fieldContext_ProgramHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_tags(ctx, field) + return ec.fieldContext_ProcedureHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Tags, nil @@ -36080,20 +36158,20 @@ func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field grap false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_revision(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_ownerID(ctx, field) + return ec.fieldContext_ProcedureHistory_revision(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.OwnerID, nil + return obj.Revision, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36103,20 +36181,20 @@ func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_revision(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_programKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_programKindName(ctx, field) + return ec.fieldContext_ProcedureHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramKindName, nil + return obj.OwnerID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36126,89 +36204,204 @@ func (ec *executionContext) _ProgramHistory_programKindName(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_programKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_programKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_programKindID(ctx, field) + return ec.fieldContext_ProcedureHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramKindID, 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, + true, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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.marshalOProcedureHistoryDocumentStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentStatus(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_programKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryDocumentStatus does not have child fields")) } -func (ec *executionContext) _ProgramHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_managementMode(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_externalUUID(ctx, field) + return ec.fieldContext_ProcedureHistory_managementMode(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ExternalUUID, nil + return obj.ManagementMode, 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.DocumentManagementMode) graphql.Marshaler { + return ec.marshalOProcedureHistoryDocumentManagementMode2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐDocumentManagementMode(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_managementMode(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryDocumentManagementMode does not have child fields")) } -func (ec *executionContext) _ProgramHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_name(ctx, field) + return ec.fieldContext_ProcedureHistory_details(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Name, nil + return obj.Details, 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_ProcedureHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_detailsJSON(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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_ProcedureHistory_detailsJSON(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Any does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_approvalRequired(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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_ProgramHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_approvalRequired(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) } -func (ec *executionContext) _ProgramHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_reviewDue(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_description(ctx, field) + return ec.fieldContext_ProcedureHistory_reviewDue(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Description, nil + 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_ProcedureHistory_reviewDue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_reviewFrequency(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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.marshalOProcedureHistoryFrequency2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐFrequency(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_reviewFrequency(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type ProcedureHistoryFrequency does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_approverID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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 { @@ -36218,43 +36411,43 @@ func (ec *executionContext) _ProgramHistory_description(ctx context.Context, fie false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_approverID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_delegateID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_status(ctx, field) + return ec.fieldContext_ProcedureHistory_delegateID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Status, nil + return obj.DelegateID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.ProgramStatus) graphql.Marshaler { - return ec.marshalNProgramHistoryProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐProgramStatus(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_ProgramHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ProgramHistoryProgramStatus does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_delegateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_frameworkName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_summary(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_frameworkName(ctx, field) + return ec.fieldContext_ProcedureHistory_summary(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FrameworkName, nil + return obj.Summary, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36264,227 +36457,355 @@ func (ec *executionContext) _ProgramHistory_frameworkName(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_frameworkName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_summary(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_tagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_startDate(ctx, field) + return ec.fieldContext_ProcedureHistory_tagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.StartDate, nil + return obj.TagSuggestions, 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_ProgramHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_tagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_dismissedTagSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_endDate(ctx, field) + return ec.fieldContext_ProcedureHistory_dismissedTagSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.EndDate, nil + return obj.DismissedTagSuggestions, 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_ProgramHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_dismissedTagSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_observationPeriodStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_controlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_observationPeriodStartDate(ctx, field) + return ec.fieldContext_ProcedureHistory_controlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObservationPeriodStartDate, nil + return obj.ControlSuggestions, 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_ProgramHistory_observationPeriodStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_controlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_observationPeriodEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_dismissedControlSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_observationPeriodEndDate(ctx, field) + return ec.fieldContext_ProcedureHistory_dismissedControlSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ObservationPeriodEndDate, nil + return obj.DismissedControlSuggestions, 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_ProgramHistory_observationPeriodEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_dismissedControlSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_fieldworkStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_improvementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_fieldworkStartDate(ctx, field) + return ec.fieldContext_ProcedureHistory_improvementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FieldworkStartDate, nil + return obj.ImprovementSuggestions, 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_ProgramHistory_fieldworkStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_improvementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_fieldworkEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_dismissedImprovementSuggestions(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_fieldworkEndDate(ctx, field) + return ec.fieldContext_ProcedureHistory_dismissedImprovementSuggestions(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.FieldworkEndDate, nil + return obj.DismissedImprovementSuggestions, 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_ProgramHistory_fieldworkEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_dismissedImprovementSuggestions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditorReady(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_url(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditorReady(ctx, field) + return ec.fieldContext_ProcedureHistory_url(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReady, nil + return obj.URL, 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, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_url(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_fileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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.marshalOString2ᚖstring(ctx, selections, v) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_fileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_externalFileID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) + return ec.fieldContext_ProcedureHistory_externalFileID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorWriteComments, nil + return obj.ExternalFileID, 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, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_externalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_externalContents(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_externalContents(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ExternalContents, 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_ProgramHistory_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_externalContents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_systemOwned(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) + return ec.fieldContext_ProcedureHistory_systemOwned(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorReadComments, nil + return obj.SystemOwned, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v bool) graphql.Marshaler { - return ec.marshalNBoolean2bool(ctx, selections, v) + return ec.marshalOBoolean2bool(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_systemOwned(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_internalNotes(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_internalNotes(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 + }, + func(ctx context.Context, selections ast.SelectionSet, v *string) graphql.Marshaler { + return ec.marshalOString2ᚖstring(ctx, selections, v) }, true, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_internalNotes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_systemInternalID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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) + }, true, + false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_systemInternalID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditFirm(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_procedureKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditFirm(ctx, field) + return ec.fieldContext_ProcedureHistory_procedureKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditFirm, nil + return obj.ProcedureKindName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36494,20 +36815,20 @@ func (ec *executionContext) _ProgramHistory_auditFirm(ctx context.Context, field false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_auditFirm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_procedureKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_procedureKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditor(ctx, field) + return ec.fieldContext_ProcedureHistory_procedureKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Auditor, nil + return obj.ProcedureKindID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36517,20 +36838,20 @@ func (ec *executionContext) _ProgramHistory_auditor(ctx context.Context, field g false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_auditor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_procedureKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_auditorEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_environmentName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_auditorEmail(ctx, field) + return ec.fieldContext_ProcedureHistory_environmentName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.AuditorEmail, nil + return obj.EnvironmentName, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36540,20 +36861,20 @@ func (ec *executionContext) _ProgramHistory_auditorEmail(ctx context.Context, fi false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_environmentName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistory_programOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_environmentID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistory_programOwnerID(ctx, field) + return ec.fieldContext_ProcedureHistory_environmentID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramOwnerID, nil + return obj.EnvironmentID, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v string) graphql.Marshaler { @@ -36563,49 +36884,118 @@ func (ec *executionContext) _ProgramHistory_programOwnerID(ctx context.Context, false, ) } -func (ec *executionContext) fieldContext_ProgramHistory_programOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistory_environmentID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistory_scopeName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) + return ec.fieldContext_ProcedureHistory_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_ProcedureHistory_scopeName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_scopeID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_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.marshalOString2string(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProcedureHistory_scopeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistory_workflowEligibleMarker(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistory_workflowEligibleMarker(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.WorkflowEligibleMarker, 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_ProcedureHistory_workflowEligibleMarker(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Edges, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProgramHistoryEdge) graphql.Marshaler { - return ec.marshalOProgramHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramHistoryEdge(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProcedureHistoryEdge) graphql.Marshaler { + return ec.marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProcedureHistoryEdge(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryConnection", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramHistoryEdge(ctx, field) + return ec.childFields_ProcedureHistoryEdge(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) }, func(ctx context.Context) (any, error) { return obj.PageInfo, nil @@ -36618,9 +37008,9 @@ func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Conte true, ) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryConnection", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -36631,13 +37021,13 @@ func (ec *executionContext) fieldContext_ProgramHistoryConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _ProgramHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryConnection) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) }, func(ctx context.Context) (any, error) { return obj.TotalCount, nil @@ -36650,49 +37040,49 @@ func (ec *executionContext) _ProgramHistoryConnection_totalCount(ctx context.Con true, ) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) } -func (ec *executionContext) _ProgramHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistoryEdge_node(ctx, field) + return ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Node, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProgramHistory) graphql.Marshaler { - return ec.marshalOProgramHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramHistory(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProcedureHistory) graphql.Marshaler { + return ec.marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProcedureHistory(ctx, selections, v) }, true, false, ) } -func (ec *executionContext) fieldContext_ProgramHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryEdge", + Object: "ProcedureHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramHistory(ctx, field) + return ec.childFields_ProcedureHistory(ctx, field) }, } return fc, nil } -func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProcedureHistoryEdge) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Cursor, nil @@ -36705,17 +37095,17 @@ func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, fiel true, ) } -func (ec *executionContext) fieldContext_ProgramHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ProcedureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProcedureHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_id(ctx, field) + return ec.fieldContext_ProgramHistory_id(ctx, field) }, func(ctx context.Context) (any, error) { return obj.ID, nil @@ -36728,17 +37118,17 @@ func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, fi true, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ID does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) + return ec.fieldContext_ProgramHistory_historyTime(ctx, field) }, func(ctx context.Context) (any, error) { return obj.HistoryTime, nil @@ -36751,17 +37141,17 @@ func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Co true, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) + return ec.fieldContext_ProgramHistory_ref(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Ref, nil @@ -36774,40 +37164,40 @@ func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, f false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) + return ec.fieldContext_ProgramHistory_operation(ctx, field) }, func(ctx context.Context) (any, error) { return obj.Operation, nil }, nil, func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { - return ec.marshalNProgramMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + return ec.marshalNProgramHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) }, true, true, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ProgramMembershipHistoryOpType does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ProgramHistoryOpType does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_createdAt(ctx, field) + return ec.fieldContext_ProgramHistory_createdAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedAt, nil @@ -36820,17 +37210,17 @@ func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_updatedAt(ctx, field) + return ec.fieldContext_ProgramHistory_updatedAt(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedAt, nil @@ -36843,17 +37233,17 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_createdBy(ctx, field) + return ec.fieldContext_ProgramHistory_createdBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.CreatedBy, nil @@ -36866,17 +37256,17 @@ func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_updatedBy(ctx, field) + return ec.fieldContext_ProgramHistory_updatedBy(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedBy, nil @@ -36889,17 +37279,17 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Cont false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_updatedByImpersonator(ctx, field) + return ec.fieldContext_ProgramHistory_updatedByImpersonator(ctx, field) }, func(ctx context.Context) (any, error) { return obj.UpdatedByImpersonator, nil @@ -36912,320 +37302,1198 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedByImpersonator(ctx false, ) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_displayID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_role(ctx, field) + return ec.fieldContext_ProgramHistory_displayID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Role, nil + return obj.DisplayID, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v enums.Role) graphql.Marshaler { - return ec.marshalNProgramMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(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_ProgramMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ProgramMembershipHistoryRole does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_displayID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_programID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_programID(ctx, field) + return ec.fieldContext_ProgramHistory_tags(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.ProgramID, 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_ProgramMembershipHistory_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistory_userID(ctx, field) + return ec.fieldContext_ProgramHistory_ownerID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.UserID, nil + return obj.OwnerID, 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_ProgramMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_programKindName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) + return ec.fieldContext_ProgramHistory_programKindName(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Edges, nil + return obj.ProgramKindName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProgramMembershipHistoryEdge) graphql.Marshaler { - return ec.marshalOProgramMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramMembershipHistoryEdge(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_ProgramMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembershipHistoryEdge(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramHistory_programKindName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_programKindID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ProgramHistory_programKindID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.PageInfo, nil + return obj.ProgramKindID, 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_ProgramMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryConnection", - 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_ProgramHistory_programKindID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_externalUUID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ProgramHistory_externalUUID(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.TotalCount, nil + return obj.ExternalUUID, 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_ProgramMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_externalUUID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_name(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) + return ec.fieldContext_ProgramHistory_name(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Node, nil + return obj.Name, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProgramMembershipHistory) graphql.Marshaler { - return ec.marshalOProgramMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramMembershipHistory(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_ProgramMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.childFields_ProgramMembershipHistory(ctx, field) - }, - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_description(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_ProgramMembershipHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ProgramHistory_description(ctx, field) }, func(ctx context.Context) (any, error) { - return obj.Cursor, nil + return obj.Description, 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_ProgramMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - return graphql.NewScalarFieldContext("ProgramMembershipHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +func (ec *executionContext) fieldContext_ProgramHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_node(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_status(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (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) + return ec.fieldContext_ProgramHistory_status(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Node(ctx, fc.Args["id"].(string)) + return obj.Status, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v historygenerated.Noder) graphql.Marshaler { - return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoder(ctx, selections, v) + func(ctx context.Context, selections ast.SelectionSet, v enums.ProgramStatus) graphql.Marshaler { + return ec.marshalNProgramHistoryProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐProgramStatus(ctx, selections, v) }, true, - false, + true, ) } -func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Query", - Field: field, - IsMethod: true, - IsResolver: true, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type ProgramHistoryProgramStatus does not have child fields")) } -func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_frameworkName(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (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_ProgramHistory_frameworkName(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().Nodes(ctx, fc.Args["ids"].([]string)) + return obj.FrameworkName, nil }, nil, - func(ctx context.Context, selections ast.SelectionSet, v []historygenerated.Noder) graphql.Marshaler { - return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoder(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_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 nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") - }, - } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } - return fc, nil +func (ec *executionContext) fieldContext_ProgramHistory_frameworkName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) } -func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { +func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, ec.OperationContext, field, func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return ec.fieldContext_Query_actionPlanHistories(ctx, field) + return ec.fieldContext_ProgramHistory_startDate(ctx, field) }, func(ctx context.Context) (any, error) { - fc := graphql.GetFieldContext(ctx) - return ec.Resolvers.Query().ActionPlanHistories(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*historygenerated.ActionPlanHistoryOrder), fc.Args["where"].(*historygenerated.ActionPlanHistoryWhereInput)) + return obj.StartDate, 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_ProgramHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_endDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.EndDate, 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_ProgramHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_observationPeriodStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_observationPeriodStartDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ObservationPeriodStartDate, 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_ProgramHistory_observationPeriodStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_observationPeriodEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_observationPeriodEndDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ObservationPeriodEndDate, 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_ProgramHistory_observationPeriodEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_fieldworkStartDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_fieldworkStartDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FieldworkStartDate, 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_ProgramHistory_fieldworkStartDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_fieldworkEndDate(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_fieldworkEndDate(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.FieldworkEndDate, 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_ProgramHistory_fieldworkEndDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditorReady(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditorReady(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AuditorReady, 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_ProgramHistory_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AuditorWriteComments, 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_ProgramHistory_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AuditorReadComments, 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_ProgramHistory_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type Boolean does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditFirm(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditFirm(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AuditFirm, 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_ProgramHistory_auditFirm(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditor(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Auditor, 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_ProgramHistory_auditor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_auditorEmail(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_auditorEmail(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.AuditorEmail, 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_ProgramHistory_auditorEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramHistory_programOwnerID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistory_programOwnerID(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.ProgramOwnerID, 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_ProgramHistory_programOwnerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProgramHistoryEdge) graphql.Marshaler { + return ec.marshalOProgramHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramHistoryEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramHistoryEdge(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistoryConnection_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_ProgramHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistoryConnection", + 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) _ProgramHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistoryConnection_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_ProgramHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _ProgramHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistoryEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProgramHistory) graphql.Marshaler { + return ec.marshalOProgramHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramHistory(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramHistory(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramHistoryEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramHistoryEdge_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_ProgramHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramHistoryEdge", field, false, false, errors.New("field of type Cursor does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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_ProgramMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ID does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.HistoryTime, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v time.Time) graphql.Marshaler { + return ec.marshalNTime2timeᚐTime(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Ref, 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_ProgramMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Operation, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v history.OpType) graphql.Marshaler { + return ec.marshalNProgramMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ProgramMembershipHistoryOpType does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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_ProgramMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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_ProgramMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type Time does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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_ProgramMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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_ProgramMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_updatedByImpersonator(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_updatedByImpersonator(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.UpdatedByImpersonator, 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_ProgramMembershipHistory_updatedByImpersonator(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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.marshalNProgramMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐRole(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type ProgramMembershipHistoryRole does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_programID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistory_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistory) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistory_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.marshalNString2string(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistory", field, false, false, errors.New("field of type String does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Edges, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []*historygenerated.ProgramMembershipHistoryEdge) graphql.Marshaler { + return ec.marshalOProgramMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramMembershipHistoryEdge(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipHistoryConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramMembershipHistoryEdge(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistoryConnection_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_ProgramMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipHistoryConnection", + 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) _ProgramMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistoryConnection_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_ProgramMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistoryConnection", field, false, false, errors.New("field of type Int does not have child fields")) +} + +func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) + }, + func(ctx context.Context) (any, error) { + return obj.Node, nil + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ProgramMembershipHistory) graphql.Marshaler { + return ec.marshalOProgramMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐProgramMembershipHistory(ctx, selections, v) + }, + true, + false, + ) +} +func (ec *executionContext) fieldContext_ProgramMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.childFields_ProgramMembershipHistory(ctx, field) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *historygenerated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_ProgramMembershipHistoryEdge_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_ProgramMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + return graphql.NewScalarFieldContext("ProgramMembershipHistoryEdge", 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 historygenerated.Noder) graphql.Marshaler { + return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐ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 nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_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_nodes(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().Nodes(ctx, fc.Args["ids"].([]string)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v []historygenerated.Noder) graphql.Marshaler { + return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐNoder(ctx, selections, v) + }, + true, + true, + ) +} +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 nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") + }, + } + defer func() { + if r := recover(); r != nil { + err = ec.Recover(ctx, r) + ec.Error(ctx, err) + } + }() + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + return graphql.ResolveField( + ctx, + ec.OperationContext, + field, + func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return ec.fieldContext_Query_actionPlanHistories(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().ActionPlanHistories(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*historygenerated.ActionPlanHistoryOrder), fc.Args["where"].(*historygenerated.ActionPlanHistoryWhereInput)) }, nil, func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.ActionPlanHistoryConnection) graphql.Marshaler { @@ -37391,6 +38659,94 @@ func (ec *executionContext) fieldContext_Query_assetHistories(ctx context.Contex return fc, nil } +func (ec *executionContext) _Query_audienceHistories(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_audienceHistories(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceHistories(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*historygenerated.AudienceHistoryOrder), fc.Args["where"].(*historygenerated.AudienceHistoryWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.AudienceHistoryConnection) graphql.Marshaler { + return ec.marshalNAudienceHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audienceHistories(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_AudienceHistoryConnection(ctx, field) + }, + } + defer func() { + if 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_audienceHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Query_audienceMemberHistories(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_audienceMemberHistories(ctx, field) + }, + func(ctx context.Context) (any, error) { + fc := graphql.GetFieldContext(ctx) + return ec.Resolvers.Query().AudienceMemberHistories(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*historygenerated.AudienceMemberHistoryOrder), fc.Args["where"].(*historygenerated.AudienceMemberHistoryWhereInput)) + }, + nil, + func(ctx context.Context, selections ast.SelectionSet, v *historygenerated.AudienceMemberHistoryConnection) graphql.Marshaler { + return ec.marshalNAudienceMemberHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryConnection(ctx, selections, v) + }, + true, + true, + ) +} +func (ec *executionContext) fieldContext_Query_audienceMemberHistories(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_AudienceMemberHistoryConnection(ctx, field) + }, + } + defer func() { + if 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_audienceMemberHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + func (ec *executionContext) _Query_campaignHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { return graphql.ResolveField( ctx, @@ -69688,6 +71044,2234 @@ func (ec *executionContext) unmarshalInputAssetHistoryWhereInput(ctx context.Con return it, nil } +func (ec *executionContext) unmarshalInputAudienceHistoryOrder(ctx context.Context, obj any) (historygenerated.AudienceHistoryOrder, error) { + var it historygenerated.AudienceHistoryOrder + 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.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNAudienceHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceHistoryWhereInput(ctx context.Context, obj any) (historygenerated.AudienceHistoryWhereInput, error) { + var it historygenerated.AudienceHistoryWhereInput + 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", "idEqualFold", "idContainsFold", "historyTime", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "name", "nameNEQ", "nameIn", "nameNotIn", "nameContains", "nameHasPrefix", "nameHasSuffix", "nameEqualFold", "nameContainsFold", "description", "descriptionNEQ", "descriptionIn", "descriptionNotIn", "descriptionContains", "descriptionHasPrefix", "descriptionHasSuffix", "descriptionIsNil", "descriptionNotNil", "descriptionEqualFold", "descriptionContainsFold", "audienceType", "audienceTypeNEQ", "audienceTypeIn", "audienceTypeNotIn"} + 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.unmarshalOAudienceHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAudienceHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAudienceHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInputᚄ(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 "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 "historyTime": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTime")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTime = data + case "historyTimeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeGT = data + case "historyTimeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeGTE = data + case "historyTimeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeLT = data + case "historyTimeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeLTE = data + case "ref": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Ref = data + case "refNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefNEQ = data + case "refIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RefIn = data + case "refNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RefNotIn = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefContains = data + case "refHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefHasPrefix = data + case "refHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefHasSuffix = data + case "refIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RefIsNil = data + case "refNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RefNotNil = data + case "refEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefEqualFold = data + case "refContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOAudienceHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + if err != nil { + return it, err + } + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOAudienceHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + if err != nil { + return it, err + } + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOAudienceHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOAudienceHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.OperationNotIn = 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 "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 "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 "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 "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 "updatedByImpersonator": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonator")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonator = data + case "updatedByImpersonatorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNEQ = data + case "updatedByImpersonatorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIn = data + case "updatedByImpersonatorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotIn = data + case "updatedByImpersonatorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContains = data + case "updatedByImpersonatorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasPrefix = data + case "updatedByImpersonatorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasSuffix = data + case "updatedByImpersonatorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIsNil = data + case "updatedByImpersonatorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotNil = data + case "updatedByImpersonatorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorEqualFold = data + case "updatedByImpersonatorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContainsFold = data + case "displayID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayID = data + case "displayIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNEQ = data + case "displayIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDIn = data + case "displayIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNotIn = data + case "displayIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContains = data + case "displayIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasPrefix = data + case "displayIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasSuffix = data + case "displayIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDEqualFold = data + case "displayIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖ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.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOString2ᚖ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 "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 "description": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("description")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Description = data + case "descriptionNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNEQ = data + case "descriptionIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DescriptionIn = data + case "descriptionNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNotIn = data + case "descriptionContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionContains = data + case "descriptionHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionHasPrefix = data + case "descriptionHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionHasSuffix = data + case "descriptionIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DescriptionIsNil = data + case "descriptionNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.DescriptionNotNil = data + case "descriptionEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionEqualFold = data + case "descriptionContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("descriptionContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DescriptionContainsFold = data + case "audienceType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceType")) + data, err := ec.unmarshalOAudienceHistoryAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceType = data + case "audienceTypeNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeNEQ")) + data, err := ec.unmarshalOAudienceHistoryAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeNEQ = data + case "audienceTypeIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeIn")) + data, err := ec.unmarshalOAudienceHistoryAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeIn = data + case "audienceTypeNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceTypeNotIn")) + data, err := ec.unmarshalOAudienceHistoryAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceTypeNotIn = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceMemberHistoryOrder(ctx context.Context, obj any) (historygenerated.AudienceMemberHistoryOrder, error) { + var it historygenerated.AudienceMemberHistoryOrder + 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.Direction = data + case "field": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("field")) + data, err := ec.unmarshalNAudienceMemberHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryOrderField(ctx, v) + if err != nil { + return it, err + } + it.Field = data + } + } + return it, nil +} + +func (ec *executionContext) unmarshalInputAudienceMemberHistoryWhereInput(ctx context.Context, obj any) (historygenerated.AudienceMemberHistoryWhereInput, error) { + var it historygenerated.AudienceMemberHistoryWhereInput + 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", "idEqualFold", "idContainsFold", "historyTime", "historyTimeGT", "historyTimeGTE", "historyTimeLT", "historyTimeLTE", "ref", "refNEQ", "refIn", "refNotIn", "refContains", "refHasPrefix", "refHasSuffix", "refIsNil", "refNotNil", "refEqualFold", "refContainsFold", "operation", "operationNEQ", "operationIn", "operationNotIn", "createdAt", "createdAtGT", "createdAtGTE", "createdAtLT", "createdAtLTE", "createdAtIsNil", "createdAtNotNil", "updatedAt", "updatedAtGT", "updatedAtGTE", "updatedAtLT", "updatedAtLTE", "updatedAtIsNil", "updatedAtNotNil", "createdBy", "createdByNEQ", "createdByIn", "createdByNotIn", "createdByContains", "createdByHasPrefix", "createdByHasSuffix", "createdByIsNil", "createdByNotNil", "createdByEqualFold", "createdByContainsFold", "updatedBy", "updatedByNEQ", "updatedByIn", "updatedByNotIn", "updatedByContains", "updatedByHasPrefix", "updatedByHasSuffix", "updatedByIsNil", "updatedByNotNil", "updatedByEqualFold", "updatedByContainsFold", "updatedByImpersonator", "updatedByImpersonatorNEQ", "updatedByImpersonatorIn", "updatedByImpersonatorNotIn", "updatedByImpersonatorContains", "updatedByImpersonatorHasPrefix", "updatedByImpersonatorHasSuffix", "updatedByImpersonatorIsNil", "updatedByImpersonatorNotNil", "updatedByImpersonatorEqualFold", "updatedByImpersonatorContainsFold", "displayID", "displayIDNEQ", "displayIDIn", "displayIDNotIn", "displayIDContains", "displayIDHasPrefix", "displayIDHasSuffix", "displayIDEqualFold", "displayIDContainsFold", "ownerID", "ownerIDNEQ", "ownerIDIn", "ownerIDNotIn", "ownerIDContains", "ownerIDHasPrefix", "ownerIDHasSuffix", "ownerIDIsNil", "ownerIDNotNil", "ownerIDEqualFold", "ownerIDContainsFold", "audienceID", "audienceIDNEQ", "audienceIDIn", "audienceIDNotIn", "audienceIDContains", "audienceIDHasPrefix", "audienceIDHasSuffix", "audienceIDEqualFold", "audienceIDContainsFold", "contactID", "contactIDNEQ", "contactIDIn", "contactIDNotIn", "contactIDContains", "contactIDHasPrefix", "contactIDHasSuffix", "contactIDIsNil", "contactIDNotNil", "contactIDEqualFold", "contactIDContainsFold", "userID", "userIDNEQ", "userIDIn", "userIDNotIn", "userIDContains", "userIDHasPrefix", "userIDHasSuffix", "userIDIsNil", "userIDNotNil", "userIDEqualFold", "userIDContainsFold", "groupID", "groupIDNEQ", "groupIDIn", "groupIDNotIn", "groupIDContains", "groupIDHasPrefix", "groupIDHasSuffix", "groupIDIsNil", "groupIDNotNil", "groupIDEqualFold", "groupIDContainsFold", "identityHolderID", "identityHolderIDNEQ", "identityHolderIDIn", "identityHolderIDNotIn", "identityHolderIDContains", "identityHolderIDHasPrefix", "identityHolderIDHasSuffix", "identityHolderIDIsNil", "identityHolderIDNotNil", "identityHolderIDEqualFold", "identityHolderIDContainsFold", "subscriberID", "subscriberIDNEQ", "subscriberIDIn", "subscriberIDNotIn", "subscriberIDContains", "subscriberIDHasPrefix", "subscriberIDHasSuffix", "subscriberIDIsNil", "subscriberIDNotNil", "subscriberIDEqualFold", "subscriberIDContainsFold", "email", "emailNEQ", "emailIn", "emailNotIn", "emailContains", "emailHasPrefix", "emailHasSuffix", "emailEqualFold", "emailContainsFold", "fullName", "fullNameNEQ", "fullNameIn", "fullNameNotIn", "fullNameContains", "fullNameHasPrefix", "fullNameHasSuffix", "fullNameIsNil", "fullNameNotNil", "fullNameEqualFold", "fullNameContainsFold"} + 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.unmarshalOAudienceMemberHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInput(ctx, v) + if err != nil { + return it, err + } + it.Not = data + case "and": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("and")) + data, err := ec.unmarshalOAudienceMemberHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.And = data + case "or": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("or")) + data, err := ec.unmarshalOAudienceMemberHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInputᚄ(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 "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 "historyTime": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTime")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTime = data + case "historyTimeGT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeGT = data + case "historyTimeGTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeGTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeGTE = data + case "historyTimeLT": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLT")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeLT = data + case "historyTimeLTE": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("historyTimeLTE")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.HistoryTimeLTE = data + case "ref": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ref")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Ref = data + case "refNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefNEQ = data + case "refIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RefIn = data + case "refNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RefNotIn = data + case "refContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefContains = data + case "refHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefHasPrefix = data + case "refHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefHasSuffix = data + case "refIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RefIsNil = data + case "refNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.RefNotNil = data + case "refEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefEqualFold = data + case "refContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefContainsFold = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOAudienceMemberHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + if err != nil { + return it, err + } + it.Operation = data + case "operationNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNEQ")) + data, err := ec.unmarshalOAudienceMemberHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, v) + if err != nil { + return it, err + } + it.OperationNEQ = data + case "operationIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationIn")) + data, err := ec.unmarshalOAudienceMemberHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.OperationIn = data + case "operationNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operationNotIn")) + data, err := ec.unmarshalOAudienceMemberHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx, v) + if err != nil { + return it, err + } + it.OperationNotIn = 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 "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 "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 "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 "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 "updatedByImpersonator": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonator")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonator = data + case "updatedByImpersonatorNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNEQ = data + case "updatedByImpersonatorIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIn = data + case "updatedByImpersonatorNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotIn = data + case "updatedByImpersonatorContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContains = data + case "updatedByImpersonatorHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasPrefix = data + case "updatedByImpersonatorHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorHasSuffix = data + case "updatedByImpersonatorIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorIsNil = data + case "updatedByImpersonatorNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorNotNil = data + case "updatedByImpersonatorEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorEqualFold = data + case "updatedByImpersonatorContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedByImpersonatorContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedByImpersonatorContainsFold = data + case "displayID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayID = data + case "displayIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNEQ = data + case "displayIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDIn = data + case "displayIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDNotIn = data + case "displayIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContains = data + case "displayIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasPrefix = data + case "displayIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDHasSuffix = data + case "displayIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDEqualFold = data + case "displayIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("displayIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.DisplayIDContainsFold = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "ownerIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNEQ = data + case "ownerIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDIn = data + case "ownerIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDNotIn = data + case "ownerIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContains = data + case "ownerIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDHasPrefix = data + case "ownerIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖ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.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDEqualFold = data + case "ownerIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.OwnerIDContainsFold = data + case "audienceID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceID = data + case "audienceIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDNEQ = data + case "audienceIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDIn = data + case "audienceIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDNotIn = data + case "audienceIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDContains = data + case "audienceIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDHasPrefix = data + case "audienceIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDHasSuffix = data + case "audienceIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDEqualFold = data + case "audienceIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("audienceIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.AudienceIDContainsFold = data + case "contactID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactID = data + case "contactIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNEQ = data + case "contactIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDIn = data + case "contactIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNotIn = data + case "contactIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDContains = data + case "contactIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDHasPrefix = data + case "contactIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDHasSuffix = data + case "contactIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ContactIDIsNil = data + case "contactIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.ContactIDNotNil = data + case "contactIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDEqualFold = data + case "contactIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("contactIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ContactIDContainsFold = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + case "userIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDNEQ = data + case "userIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDIn = data + case "userIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.UserIDNotIn = data + case "userIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDContains = data + case "userIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDHasPrefix = data + case "userIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDHasSuffix = data + case "userIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UserIDIsNil = data + case "userIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.UserIDNotNil = data + case "userIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDEqualFold = data + case "userIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UserIDContainsFold = data + case "groupID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupID = data + case "groupIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNEQ = data + case "groupIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDIn = data + case "groupIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNotIn = data + case "groupIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDContains = data + case "groupIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDHasPrefix = data + case "groupIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDHasSuffix = data + case "groupIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GroupIDIsNil = data + case "groupIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.GroupIDNotNil = data + case "groupIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDEqualFold = data + case "groupIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("groupIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.GroupIDContainsFold = data + case "identityHolderID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderID = data + case "identityHolderIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNEQ = data + case "identityHolderIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDIn = data + case "identityHolderIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNotIn = data + case "identityHolderIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDContains = data + case "identityHolderIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDHasPrefix = data + case "identityHolderIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDHasSuffix = data + case "identityHolderIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDIsNil = data + case "identityHolderIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDNotNil = data + case "identityHolderIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDEqualFold = data + case "identityHolderIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("identityHolderIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.IdentityHolderIDContainsFold = data + case "subscriberID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberID")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberID = data + case "subscriberIDNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNEQ = data + case "subscriberIDIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDIn = data + case "subscriberIDNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNotIn = data + case "subscriberIDContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDContains = data + case "subscriberIDHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDHasPrefix = data + case "subscriberIDHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDHasSuffix = data + case "subscriberIDIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDIsNil = data + case "subscriberIDNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDNotNil = data + case "subscriberIDEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDEqualFold = data + case "subscriberIDContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subscriberIDContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.SubscriberIDContainsFold = data + case "email": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Email = data + case "emailNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailNEQ = data + case "emailIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailIn = data + case "emailNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EmailNotIn = data + case "emailContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailContains = data + case "emailHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailHasPrefix = data + case "emailHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailHasSuffix = data + case "emailEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailEqualFold = data + case "emailContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("emailContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.EmailContainsFold = data + case "fullName": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullName")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullName = data + case "fullNameNEQ": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNEQ")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameNEQ = data + case "fullNameIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FullNameIn = data + case "fullNameNotIn": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNotIn")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.FullNameNotIn = data + case "fullNameContains": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContains")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameContains = data + case "fullNameHasPrefix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameHasPrefix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameHasPrefix = data + case "fullNameHasSuffix": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameHasSuffix")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameHasSuffix = data + case "fullNameIsNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameIsNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FullNameIsNil = data + case "fullNameNotNil": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameNotNil")) + data, err := ec.unmarshalOBoolean2bool(ctx, v) + if err != nil { + return it, err + } + it.FullNameNotNil = data + case "fullNameEqualFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameEqualFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameEqualFold = data + case "fullNameContainsFold": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fullNameContainsFold")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.FullNameContainsFold = data + } + } + return it, nil +} + func (ec *executionContext) unmarshalInputCampaignHistoryOrder(ctx context.Context, obj any) (historygenerated.CampaignHistoryOrder, error) { var it historygenerated.CampaignHistoryOrder if obj == nil { @@ -171589,6 +175173,16 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj return graphql.Null } return ec._CampaignHistory(ctx, sel, obj) + case *historygenerated.AudienceMemberHistory: + if obj == nil { + return graphql.Null + } + return ec._AudienceMemberHistory(ctx, sel, obj) + case *historygenerated.AudienceHistory: + if obj == nil { + return graphql.Null + } + return ec._AudienceHistory(ctx, sel, obj) case *historygenerated.AssetHistory: if obj == nil { return graphql.Null @@ -172514,10 +176108,603 @@ func (ec *executionContext) _AssessmentResponseHistoryEdge(ctx context.Context, return out } -var assetHistoryImplementors = []string{"AssetHistory", "Node"} +var assetHistoryImplementors = []string{"AssetHistory", "Node"} + +func (ec *executionContext) _AssetHistory(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssetHistory") + case "id": + out.Values[i] = ec._AssetHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._AssetHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._AssetHistory_ref(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "operation": + out.Values[i] = ec._AssetHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._AssetHistory_createdAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedAt": + out.Values[i] = ec._AssetHistory_updatedAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "createdBy": + out.Values[i] = ec._AssetHistory_createdBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedBy": + out.Values[i] = ec._AssetHistory_updatedBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedByImpersonator": + out.Values[i] = ec._AssetHistory_updatedByImpersonator(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "tags": + out.Values[i] = ec._AssetHistory_tags(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "ownerID": + out.Values[i] = ec._AssetHistory_ownerID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "internalOwner": + out.Values[i] = ec._AssetHistory_internalOwner(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "internalOwnerUserID": + out.Values[i] = ec._AssetHistory_internalOwnerUserID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "internalOwnerGroupID": + out.Values[i] = ec._AssetHistory_internalOwnerGroupID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "assetSubtypeName": + out.Values[i] = ec._AssetHistory_assetSubtypeName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "assetSubtypeID": + out.Values[i] = ec._AssetHistory_assetSubtypeID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "assetDataClassificationName": + out.Values[i] = ec._AssetHistory_assetDataClassificationName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "assetDataClassificationID": + out.Values[i] = ec._AssetHistory_assetDataClassificationID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "environmentName": + out.Values[i] = ec._AssetHistory_environmentName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "environmentID": + out.Values[i] = ec._AssetHistory_environmentID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "scopeName": + out.Values[i] = ec._AssetHistory_scopeName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "scopeID": + out.Values[i] = ec._AssetHistory_scopeID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "accessModelName": + out.Values[i] = ec._AssetHistory_accessModelName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "accessModelID": + out.Values[i] = ec._AssetHistory_accessModelID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "encryptionStatusName": + out.Values[i] = ec._AssetHistory_encryptionStatusName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "encryptionStatusID": + out.Values[i] = ec._AssetHistory_encryptionStatusID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "securityTierName": + out.Values[i] = ec._AssetHistory_securityTierName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "securityTierID": + out.Values[i] = ec._AssetHistory_securityTierID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "criticalityName": + out.Values[i] = ec._AssetHistory_criticalityName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "criticalityID": + out.Values[i] = ec._AssetHistory_criticalityID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "systemOwned": + out.Values[i] = ec._AssetHistory_systemOwned(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "internalNotes": + out.Values[i] = ec._AssetHistory_internalNotes(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "systemInternalID": + out.Values[i] = ec._AssetHistory_systemInternalID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "assetType": + out.Values[i] = ec._AssetHistory_assetType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec._AssetHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "displayName": + out.Values[i] = ec._AssetHistory_displayName(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "description": + out.Values[i] = ec._AssetHistory_description(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "identifier": + out.Values[i] = ec._AssetHistory_identifier(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "website": + out.Values[i] = ec._AssetHistory_website(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "physicalLocation": + out.Values[i] = ec._AssetHistory_physicalLocation(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "region": + out.Values[i] = ec._AssetHistory_region(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "containsPii": + out.Values[i] = ec._AssetHistory_containsPii(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "sourceType": + out.Values[i] = ec._AssetHistory_sourceType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "sourcePlatformID": + out.Values[i] = ec._AssetHistory_sourcePlatformID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "sourceIdentifier": + out.Values[i] = ec._AssetHistory_sourceIdentifier(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "costCenter": + out.Values[i] = ec._AssetHistory_costCenter(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "estimatedMonthlyCost": + out.Values[i] = ec._AssetHistory_estimatedMonthlyCost(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "purchaseDate": + out.Values[i] = ec._AssetHistory_purchaseDate(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "cpe": + out.Values[i] = ec._AssetHistory_cpe(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "categories": + out.Values[i] = ec._AssetHistory_categories(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "integrationID": + out.Values[i] = ec._AssetHistory_integrationID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "observedAt": + out.Values[i] = ec._AssetHistory_observedAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var assetHistoryConnectionImplementors = []string{"AssetHistoryConnection"} + +func (ec *executionContext) _AssetHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssetHistoryConnection") + case "edges": + out.Values[i] = ec._AssetHistoryConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._AssetHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AssetHistoryConnection_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var assetHistoryEdgeImplementors = []string{"AssetHistoryEdge"} + +func (ec *executionContext) _AssetHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AssetHistoryEdge") + case "node": + out.Values[i] = ec._AssetHistoryEdge_node(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "cursor": + out.Values[i] = ec._AssetHistoryEdge_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceHistoryImplementors = []string{"AudienceHistory", "Node"} + +func (ec *executionContext) _AudienceHistory(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceHistoryImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceHistory") + case "id": + out.Values[i] = ec._AudienceHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._AudienceHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._AudienceHistory_ref(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "operation": + out.Values[i] = ec._AudienceHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._AudienceHistory_createdAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedAt": + out.Values[i] = ec._AudienceHistory_updatedAt(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "createdBy": + out.Values[i] = ec._AudienceHistory_createdBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedBy": + out.Values[i] = ec._AudienceHistory_updatedBy(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "updatedByImpersonator": + out.Values[i] = ec._AudienceHistory_updatedByImpersonator(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "displayID": + out.Values[i] = ec._AudienceHistory_displayID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "tags": + out.Values[i] = ec._AudienceHistory_tags(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "ownerID": + out.Values[i] = ec._AudienceHistory_ownerID(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "name": + out.Values[i] = ec._AudienceHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._AudienceHistory_description(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "audienceType": + out.Values[i] = ec._AudienceHistory_audienceType(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "filters": + out.Values[i] = ec._AudienceHistory_filters(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "metadata": + out.Values[i] = ec._AudienceHistory_metadata(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceHistoryConnectionImplementors = []string{"AudienceHistoryConnection"} + +func (ec *executionContext) _AudienceHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceHistoryConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceHistoryConnection") + case "edges": + out.Values[i] = ec._AudienceHistoryConnection_edges(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "pageInfo": + out.Values[i] = ec._AudienceHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AudienceHistoryConnection_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceHistoryEdgeImplementors = []string{"AudienceHistoryEdge"} + +func (ec *executionContext) _AudienceHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceHistoryEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferredFieldSet := graphql.NewFieldSet(nil) + deferLabelToView := make(map[string]*graphql.FieldSetView) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AudienceHistoryEdge") + case "node": + out.Values[i] = ec._AudienceHistoryEdge_node(ctx, field, obj) + if out.Values[i] == graphql.RequiredNull { + out.Invalids++ + } + case "cursor": + out.Values[i] = ec._AudienceHistoryEdge_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(deferLabelToView), math.MaxInt32))) + + ec.ProcessDeferredGroup(graphql.DeferredGroup{ + Defers: deferLabelToView, + Path: graphql.GetPath(ctx), + FieldSet: deferredFieldSet, + Context: ctx, + }) + + return out +} + +var audienceMemberHistoryImplementors = []string{"AudienceMemberHistory", "Node"} -func (ec *executionContext) _AssetHistory(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryImplementors) +func (ec *executionContext) _AudienceMemberHistory(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceMemberHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberHistoryImplementors) out := graphql.NewFieldSet(fields) deferredFieldSet := graphql.NewFieldSet(nil) @@ -172525,264 +176712,109 @@ func (ec *executionContext) _AssetHistory(ctx context.Context, sel ast.Selection for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetHistory") + out.Values[i] = graphql.MarshalString("AudienceMemberHistory") case "id": - out.Values[i] = ec._AssetHistory_id(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_id(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "historyTime": - out.Values[i] = ec._AssetHistory_historyTime(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_historyTime(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "ref": - out.Values[i] = ec._AssetHistory_ref(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_ref(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "operation": - out.Values[i] = ec._AssetHistory_operation(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_operation(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "createdAt": - out.Values[i] = ec._AssetHistory_createdAt(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_createdAt(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "updatedAt": - out.Values[i] = ec._AssetHistory_updatedAt(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_updatedAt(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "createdBy": - out.Values[i] = ec._AssetHistory_createdBy(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_createdBy(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "updatedBy": - out.Values[i] = ec._AssetHistory_updatedBy(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_updatedBy(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "updatedByImpersonator": - out.Values[i] = ec._AssetHistory_updatedByImpersonator(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "tags": - out.Values[i] = ec._AssetHistory_tags(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "ownerID": - out.Values[i] = ec._AssetHistory_ownerID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "internalOwner": - out.Values[i] = ec._AssetHistory_internalOwner(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "internalOwnerUserID": - out.Values[i] = ec._AssetHistory_internalOwnerUserID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "internalOwnerGroupID": - out.Values[i] = ec._AssetHistory_internalOwnerGroupID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "assetSubtypeName": - out.Values[i] = ec._AssetHistory_assetSubtypeName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "assetSubtypeID": - out.Values[i] = ec._AssetHistory_assetSubtypeID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "assetDataClassificationName": - out.Values[i] = ec._AssetHistory_assetDataClassificationName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "assetDataClassificationID": - out.Values[i] = ec._AssetHistory_assetDataClassificationID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "environmentName": - out.Values[i] = ec._AssetHistory_environmentName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "environmentID": - out.Values[i] = ec._AssetHistory_environmentID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "scopeName": - out.Values[i] = ec._AssetHistory_scopeName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "scopeID": - out.Values[i] = ec._AssetHistory_scopeID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "accessModelName": - out.Values[i] = ec._AssetHistory_accessModelName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "accessModelID": - out.Values[i] = ec._AssetHistory_accessModelID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "encryptionStatusName": - out.Values[i] = ec._AssetHistory_encryptionStatusName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "encryptionStatusID": - out.Values[i] = ec._AssetHistory_encryptionStatusID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "securityTierName": - out.Values[i] = ec._AssetHistory_securityTierName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "securityTierID": - out.Values[i] = ec._AssetHistory_securityTierID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "criticalityName": - out.Values[i] = ec._AssetHistory_criticalityName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "criticalityID": - out.Values[i] = ec._AssetHistory_criticalityID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "systemOwned": - out.Values[i] = ec._AssetHistory_systemOwned(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "internalNotes": - out.Values[i] = ec._AssetHistory_internalNotes(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "systemInternalID": - out.Values[i] = ec._AssetHistory_systemInternalID(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistory_updatedByImpersonator(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "assetType": - out.Values[i] = ec._AssetHistory_assetType(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._AssetHistory_name(ctx, field, obj) + case "displayID": + out.Values[i] = ec._AudienceMemberHistory_displayID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "displayName": - out.Values[i] = ec._AssetHistory_displayName(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "description": - out.Values[i] = ec._AssetHistory_description(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "identifier": - out.Values[i] = ec._AssetHistory_identifier(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "website": - out.Values[i] = ec._AssetHistory_website(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "physicalLocation": - out.Values[i] = ec._AssetHistory_physicalLocation(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "region": - out.Values[i] = ec._AssetHistory_region(ctx, field, obj) + case "tags": + out.Values[i] = ec._AudienceMemberHistory_tags(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "containsPii": - out.Values[i] = ec._AssetHistory_containsPii(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._AudienceMemberHistory_ownerID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "sourceType": - out.Values[i] = ec._AssetHistory_sourceType(ctx, field, obj) + case "audienceID": + out.Values[i] = ec._AudienceMemberHistory_audienceID(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } - case "sourcePlatformID": - out.Values[i] = ec._AssetHistory_sourcePlatformID(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { - out.Invalids++ - } - case "sourceIdentifier": - out.Values[i] = ec._AssetHistory_sourceIdentifier(ctx, field, obj) + case "contactID": + out.Values[i] = ec._AudienceMemberHistory_contactID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "costCenter": - out.Values[i] = ec._AssetHistory_costCenter(ctx, field, obj) + case "userID": + out.Values[i] = ec._AudienceMemberHistory_userID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "estimatedMonthlyCost": - out.Values[i] = ec._AssetHistory_estimatedMonthlyCost(ctx, field, obj) + case "groupID": + out.Values[i] = ec._AudienceMemberHistory_groupID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "purchaseDate": - out.Values[i] = ec._AssetHistory_purchaseDate(ctx, field, obj) + case "identityHolderID": + out.Values[i] = ec._AudienceMemberHistory_identityHolderID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "cpe": - out.Values[i] = ec._AssetHistory_cpe(ctx, field, obj) + case "subscriberID": + out.Values[i] = ec._AudienceMemberHistory_subscriberID(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "categories": - out.Values[i] = ec._AssetHistory_categories(ctx, field, obj) - if out.Values[i] == graphql.RequiredNull { + case "email": + out.Values[i] = ec._AudienceMemberHistory_email(ctx, field, obj) + if out.Values[i] == graphql.Null { out.Invalids++ } - case "integrationID": - out.Values[i] = ec._AssetHistory_integrationID(ctx, field, obj) + case "fullName": + out.Values[i] = ec._AudienceMemberHistory_fullName(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } - case "observedAt": - out.Values[i] = ec._AssetHistory_observedAt(ctx, field, obj) + case "metadata": + out.Values[i] = ec._AudienceMemberHistory_metadata(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } @@ -172807,10 +176839,10 @@ func (ec *executionContext) _AssetHistory(ctx context.Context, sel ast.Selection return out } -var assetHistoryConnectionImplementors = []string{"AssetHistoryConnection"} +var audienceMemberHistoryConnectionImplementors = []string{"AudienceMemberHistoryConnection"} -func (ec *executionContext) _AssetHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryConnectionImplementors) +func (ec *executionContext) _AudienceMemberHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceMemberHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferredFieldSet := graphql.NewFieldSet(nil) @@ -172818,19 +176850,19 @@ func (ec *executionContext) _AssetHistoryConnection(ctx context.Context, sel ast for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetHistoryConnection") + out.Values[i] = graphql.MarshalString("AudienceMemberHistoryConnection") case "edges": - out.Values[i] = ec._AssetHistoryConnection_edges(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistoryConnection_edges(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "pageInfo": - out.Values[i] = ec._AssetHistoryConnection_pageInfo(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } case "totalCount": - out.Values[i] = ec._AssetHistoryConnection_totalCount(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -172855,10 +176887,10 @@ func (ec *executionContext) _AssetHistoryConnection(ctx context.Context, sel ast return out } -var assetHistoryEdgeImplementors = []string{"AssetHistoryEdge"} +var audienceMemberHistoryEdgeImplementors = []string{"AudienceMemberHistoryEdge"} -func (ec *executionContext) _AssetHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AssetHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, assetHistoryEdgeImplementors) +func (ec *executionContext) _AudienceMemberHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *historygenerated.AudienceMemberHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, audienceMemberHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferredFieldSet := graphql.NewFieldSet(nil) @@ -172866,14 +176898,14 @@ func (ec *executionContext) _AssetHistoryEdge(ctx context.Context, sel ast.Selec for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("AssetHistoryEdge") + out.Values[i] = graphql.MarshalString("AudienceMemberHistoryEdge") case "node": - out.Values[i] = ec._AssetHistoryEdge_node(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistoryEdge_node(ctx, field, obj) if out.Values[i] == graphql.RequiredNull { out.Invalids++ } case "cursor": - out.Values[i] = ec._AssetHistoryEdge_cursor(ctx, field, obj) + out.Values[i] = ec._AudienceMemberHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -182527,6 +186559,50 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceHistories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) + case "audienceMemberHistories": + field := field + + innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Query_audienceMemberHistories(ctx, field) + if res == graphql.Null { + atomic.AddUint32(&fs.Invalids, 1) + } + return res + } + + rrm := func(ctx context.Context) graphql.Marshaler { + return ec.OperationContext.RootResolverMiddleware(ctx, + func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) + } + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return rrm(innerCtx) }) case "campaignHistories": field := field @@ -191134,6 +195210,106 @@ func (ec *executionContext) unmarshalNAssetHistoryWhereInput2ᚖgithubᚗcomᚋt return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) unmarshalNAudienceHistoryAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, v any) (enums.AudienceType, error) { + var res enums.AudienceType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceHistoryAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, sel ast.SelectionSet, v enums.AudienceType) graphql.Marshaler { + return v +} + +func (ec *executionContext) marshalNAudienceHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryConnection(ctx context.Context, sel ast.SelectionSet, v historygenerated.AudienceHistoryConnection) graphql.Marshaler { + return ec._AudienceHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAudienceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v any) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAudienceHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryOrderField(ctx context.Context, v any) (*historygenerated.AudienceHistoryOrderField, error) { + var res = new(historygenerated.AudienceHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalNAudienceHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInput(ctx context.Context, v any) (*historygenerated.AudienceHistoryWhereInput, error) { + res, err := ec.unmarshalInputAudienceHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceMemberHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryConnection(ctx context.Context, sel ast.SelectionSet, v historygenerated.AudienceMemberHistoryConnection) graphql.Marshaler { + return ec._AudienceMemberHistoryConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAudienceMemberHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryConnection(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceMemberHistoryConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AudienceMemberHistoryConnection(ctx, sel, v) +} + +func (ec *executionContext) unmarshalNAudienceMemberHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v any) (history.OpType, error) { + var res history.OpType + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceMemberHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v history.OpType) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalNAudienceMemberHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryOrderField(ctx context.Context, v any) (*historygenerated.AudienceMemberHistoryOrderField, error) { + var res = new(historygenerated.AudienceMemberHistoryOrderField) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNAudienceMemberHistoryOrderField2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryOrderField(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceMemberHistoryOrderField) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + graphql.AddErrorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalNAudienceMemberHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInput(ctx context.Context, v any) (*historygenerated.AudienceMemberHistoryWhereInput, error) { + res, err := ec.unmarshalInputAudienceMemberHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) unmarshalNCampaignHistoryCampaignStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐCampaignStatus(ctx context.Context, v any) (enums.CampaignStatus, error) { var res enums.CampaignStatus err := res.UnmarshalGQL(v) @@ -195740,6 +199916,282 @@ func (ec *executionContext) unmarshalOAssetHistoryWhereInput2ᚖgithubᚗcomᚋt return &res, graphql.ErrorOnPath(ctx, err) } +func (ec *executionContext) marshalOAudienceHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistory(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceHistory(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAudienceHistoryAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx context.Context, v any) ([]enums.AudienceType, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]enums.AudienceType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceHistoryAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAudienceHistoryAudienceType2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.AudienceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudienceHistoryAudienceType2githubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAudienceHistoryAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, v any) (*enums.AudienceType, error) { + if v == nil { + return nil, nil + } + var res = new(enums.AudienceType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAudienceHistoryAudienceType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋcommonᚋenumsᚐAudienceType(ctx context.Context, sel ast.SelectionSet, v *enums.AudienceType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) marshalOAudienceHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*historygenerated.AudienceHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalOAudienceHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryEdge(ctx, sel, v[i]) + }) + + return ret +} + +func (ec *executionContext) marshalOAudienceHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceHistoryEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAudienceHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v any) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAudienceHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudienceHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAudienceHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v any) (*history.OpType, error) { + if v == nil { + return nil, nil + } + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAudienceHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOAudienceHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryOrder(ctx context.Context, v any) (*historygenerated.AudienceHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOAudienceHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInputᚄ(ctx context.Context, v any) ([]*historygenerated.AudienceHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*historygenerated.AudienceHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceHistoryWhereInput(ctx context.Context, v any) (*historygenerated.AudienceHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAudienceMemberHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistory(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceMemberHistory) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceMemberHistory(ctx, sel, v) +} + +func (ec *executionContext) marshalOAudienceMemberHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*historygenerated.AudienceMemberHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalOAudienceMemberHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryEdge(ctx, sel, v[i]) + }) + + return ret +} + +func (ec *executionContext) marshalOAudienceMemberHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *historygenerated.AudienceMemberHistoryEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AudienceMemberHistoryEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAudienceMemberHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v any) ([]history.OpType, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]history.OpType, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceMemberHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOAudienceMemberHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := graphql.MarshalSliceConcurrently(ctx, len(v), 0, false, func(ctx context.Context, i int) graphql.Marshaler { + fc := graphql.GetFieldContext(ctx) + fc.Result = &v[i] + return ec.marshalNAudienceMemberHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + }) + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOAudienceMemberHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v any) (*history.OpType, error) { + if v == nil { + return nil, nil + } + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOAudienceMemberHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return v +} + +func (ec *executionContext) unmarshalOAudienceMemberHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryOrder(ctx context.Context, v any) (*historygenerated.AudienceMemberHistoryOrder, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceMemberHistoryOrder(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOAudienceMemberHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInputᚄ(ctx context.Context, v any) ([]*historygenerated.AudienceMemberHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + vSlice := graphql.CoerceList(v) + var err error + res := make([]*historygenerated.AudienceMemberHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNAudienceMemberHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOAudienceMemberHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐAudienceMemberHistoryWhereInput(ctx context.Context, v any) (*historygenerated.AudienceMemberHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAudienceMemberHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + func (ec *executionContext) marshalOCampaignHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋv2ᚋinternalᚋentᚋhistorygeneratedᚐCampaignHistory(ctx context.Context, sel ast.SelectionSet, v *historygenerated.CampaignHistory) graphql.Marshaler { if v == nil { return graphql.Null diff --git a/internal/graphapi/historygenerated/root_.generated.go b/internal/graphapi/historygenerated/root_.generated.go index b3bb79867e..1c755e90ad 100644 --- a/internal/graphapi/historygenerated/root_.generated.go +++ b/internal/graphapi/historygenerated/root_.generated.go @@ -247,6 +247,72 @@ type ComplexityRoot struct { Node func(childComplexity int) int } + AudienceHistory struct { + AudienceType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayID func(childComplexity int) int + Filters func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Metadata func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UpdatedByImpersonator func(childComplexity int) int + } + + AudienceHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + AudienceHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + AudienceMemberHistory struct { + AudienceID func(childComplexity int) int + ContactID func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DisplayID func(childComplexity int) int + Email func(childComplexity int) int + FullName func(childComplexity int) int + GroupID func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + IdentityHolderID func(childComplexity int) int + Metadata func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + SubscriberID func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UpdatedByImpersonator func(childComplexity int) int + UserID func(childComplexity int) int + } + + AudienceMemberHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + AudienceMemberHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + CampaignHistory struct { AssessmentID func(childComplexity int) int CampaignType func(childComplexity int) int @@ -1766,6 +1832,8 @@ type ComplexityRoot struct { AssessmentHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssessmentHistoryOrder, where *historygenerated.AssessmentHistoryWhereInput) int AssessmentResponseHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssessmentResponseHistoryOrder, where *historygenerated.AssessmentResponseHistoryWhereInput) int AssetHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AssetHistoryOrder, where *historygenerated.AssetHistoryWhereInput) int + AudienceHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceHistoryOrder, where *historygenerated.AudienceHistoryWhereInput) int + AudienceMemberHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.AudienceMemberHistoryOrder, where *historygenerated.AudienceMemberHistoryWhereInput) int CampaignHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.CampaignHistoryOrder, where *historygenerated.CampaignHistoryWhereInput) int CampaignTargetHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.CampaignTargetHistoryOrder, where *historygenerated.CampaignTargetHistoryWhereInput) int ContactHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *historygenerated.ContactHistoryOrder, where *historygenerated.ContactHistoryWhereInput) int @@ -4012,6 +4080,300 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin return e.ComplexityRoot.AssetHistoryEdge.Node(childComplexity), true + case "AudienceHistory.audienceType": + if e.ComplexityRoot.AudienceHistory.AudienceType == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.AudienceType(childComplexity), true + case "AudienceHistory.createdAt": + if e.ComplexityRoot.AudienceHistory.CreatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.CreatedAt(childComplexity), true + case "AudienceHistory.createdBy": + if e.ComplexityRoot.AudienceHistory.CreatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.CreatedBy(childComplexity), true + case "AudienceHistory.description": + if e.ComplexityRoot.AudienceHistory.Description == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Description(childComplexity), true + case "AudienceHistory.displayID": + if e.ComplexityRoot.AudienceHistory.DisplayID == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.DisplayID(childComplexity), true + case "AudienceHistory.filters": + if e.ComplexityRoot.AudienceHistory.Filters == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Filters(childComplexity), true + case "AudienceHistory.historyTime": + if e.ComplexityRoot.AudienceHistory.HistoryTime == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.HistoryTime(childComplexity), true + case "AudienceHistory.id": + if e.ComplexityRoot.AudienceHistory.ID == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.ID(childComplexity), true + case "AudienceHistory.metadata": + if e.ComplexityRoot.AudienceHistory.Metadata == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Metadata(childComplexity), true + case "AudienceHistory.name": + if e.ComplexityRoot.AudienceHistory.Name == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Name(childComplexity), true + case "AudienceHistory.operation": + if e.ComplexityRoot.AudienceHistory.Operation == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Operation(childComplexity), true + case "AudienceHistory.ownerID": + if e.ComplexityRoot.AudienceHistory.OwnerID == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.OwnerID(childComplexity), true + case "AudienceHistory.ref": + if e.ComplexityRoot.AudienceHistory.Ref == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Ref(childComplexity), true + case "AudienceHistory.tags": + if e.ComplexityRoot.AudienceHistory.Tags == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.Tags(childComplexity), true + case "AudienceHistory.updatedAt": + if e.ComplexityRoot.AudienceHistory.UpdatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.UpdatedAt(childComplexity), true + case "AudienceHistory.updatedBy": + if e.ComplexityRoot.AudienceHistory.UpdatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.UpdatedBy(childComplexity), true + case "AudienceHistory.updatedByImpersonator": + if e.ComplexityRoot.AudienceHistory.UpdatedByImpersonator == nil { + break + } + + return e.ComplexityRoot.AudienceHistory.UpdatedByImpersonator(childComplexity), true + + case "AudienceHistoryConnection.edges": + if e.ComplexityRoot.AudienceHistoryConnection.Edges == nil { + break + } + + return e.ComplexityRoot.AudienceHistoryConnection.Edges(childComplexity), true + case "AudienceHistoryConnection.pageInfo": + if e.ComplexityRoot.AudienceHistoryConnection.PageInfo == nil { + break + } + + return e.ComplexityRoot.AudienceHistoryConnection.PageInfo(childComplexity), true + case "AudienceHistoryConnection.totalCount": + if e.ComplexityRoot.AudienceHistoryConnection.TotalCount == nil { + break + } + + return e.ComplexityRoot.AudienceHistoryConnection.TotalCount(childComplexity), true + + case "AudienceHistoryEdge.cursor": + if e.ComplexityRoot.AudienceHistoryEdge.Cursor == nil { + break + } + + return e.ComplexityRoot.AudienceHistoryEdge.Cursor(childComplexity), true + case "AudienceHistoryEdge.node": + if e.ComplexityRoot.AudienceHistoryEdge.Node == nil { + break + } + + return e.ComplexityRoot.AudienceHistoryEdge.Node(childComplexity), true + + case "AudienceMemberHistory.audienceID": + if e.ComplexityRoot.AudienceMemberHistory.AudienceID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.AudienceID(childComplexity), true + case "AudienceMemberHistory.contactID": + if e.ComplexityRoot.AudienceMemberHistory.ContactID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.ContactID(childComplexity), true + case "AudienceMemberHistory.createdAt": + if e.ComplexityRoot.AudienceMemberHistory.CreatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.CreatedAt(childComplexity), true + case "AudienceMemberHistory.createdBy": + if e.ComplexityRoot.AudienceMemberHistory.CreatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.CreatedBy(childComplexity), true + case "AudienceMemberHistory.displayID": + if e.ComplexityRoot.AudienceMemberHistory.DisplayID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.DisplayID(childComplexity), true + case "AudienceMemberHistory.email": + if e.ComplexityRoot.AudienceMemberHistory.Email == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.Email(childComplexity), true + case "AudienceMemberHistory.fullName": + if e.ComplexityRoot.AudienceMemberHistory.FullName == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.FullName(childComplexity), true + case "AudienceMemberHistory.groupID": + if e.ComplexityRoot.AudienceMemberHistory.GroupID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.GroupID(childComplexity), true + case "AudienceMemberHistory.historyTime": + if e.ComplexityRoot.AudienceMemberHistory.HistoryTime == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.HistoryTime(childComplexity), true + case "AudienceMemberHistory.id": + if e.ComplexityRoot.AudienceMemberHistory.ID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.ID(childComplexity), true + case "AudienceMemberHistory.identityHolderID": + if e.ComplexityRoot.AudienceMemberHistory.IdentityHolderID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.IdentityHolderID(childComplexity), true + case "AudienceMemberHistory.metadata": + if e.ComplexityRoot.AudienceMemberHistory.Metadata == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.Metadata(childComplexity), true + case "AudienceMemberHistory.operation": + if e.ComplexityRoot.AudienceMemberHistory.Operation == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.Operation(childComplexity), true + case "AudienceMemberHistory.ownerID": + if e.ComplexityRoot.AudienceMemberHistory.OwnerID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.OwnerID(childComplexity), true + case "AudienceMemberHistory.ref": + if e.ComplexityRoot.AudienceMemberHistory.Ref == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.Ref(childComplexity), true + case "AudienceMemberHistory.subscriberID": + if e.ComplexityRoot.AudienceMemberHistory.SubscriberID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.SubscriberID(childComplexity), true + case "AudienceMemberHistory.tags": + if e.ComplexityRoot.AudienceMemberHistory.Tags == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.Tags(childComplexity), true + case "AudienceMemberHistory.updatedAt": + if e.ComplexityRoot.AudienceMemberHistory.UpdatedAt == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.UpdatedAt(childComplexity), true + case "AudienceMemberHistory.updatedBy": + if e.ComplexityRoot.AudienceMemberHistory.UpdatedBy == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.UpdatedBy(childComplexity), true + case "AudienceMemberHistory.updatedByImpersonator": + if e.ComplexityRoot.AudienceMemberHistory.UpdatedByImpersonator == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.UpdatedByImpersonator(childComplexity), true + case "AudienceMemberHistory.userID": + if e.ComplexityRoot.AudienceMemberHistory.UserID == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistory.UserID(childComplexity), true + + case "AudienceMemberHistoryConnection.edges": + if e.ComplexityRoot.AudienceMemberHistoryConnection.Edges == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistoryConnection.Edges(childComplexity), true + case "AudienceMemberHistoryConnection.pageInfo": + if e.ComplexityRoot.AudienceMemberHistoryConnection.PageInfo == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistoryConnection.PageInfo(childComplexity), true + case "AudienceMemberHistoryConnection.totalCount": + if e.ComplexityRoot.AudienceMemberHistoryConnection.TotalCount == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistoryConnection.TotalCount(childComplexity), true + + case "AudienceMemberHistoryEdge.cursor": + if e.ComplexityRoot.AudienceMemberHistoryEdge.Cursor == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistoryEdge.Cursor(childComplexity), true + case "AudienceMemberHistoryEdge.node": + if e.ComplexityRoot.AudienceMemberHistoryEdge.Node == nil { + break + } + + return e.ComplexityRoot.AudienceMemberHistoryEdge.Node(childComplexity), true + case "CampaignHistory.assessmentID": if e.ComplexityRoot.CampaignHistory.AssessmentID == nil { break @@ -11338,6 +11700,28 @@ func (e *executableSchema) Complexity(ctx context.Context, typeName, field strin } return e.ComplexityRoot.Query.AssetHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*historygenerated.AssetHistoryOrder), args["where"].(*historygenerated.AssetHistoryWhereInput)), true + case "Query.audienceHistories": + if e.ComplexityRoot.Query.AudienceHistories == nil { + break + } + + args, err := ec.field_Query_audienceHistories_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*historygenerated.AudienceHistoryOrder), args["where"].(*historygenerated.AudienceHistoryWhereInput)), true + case "Query.audienceMemberHistories": + if e.ComplexityRoot.Query.AudienceMemberHistories == nil { + break + } + + args, err := ec.field_Query_audienceMemberHistories_args(ctx, rawArgs) + if err != nil { + return 0, false + } + + return e.ComplexityRoot.Query.AudienceMemberHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*historygenerated.AudienceMemberHistoryOrder), args["where"].(*historygenerated.AudienceMemberHistoryWhereInput)), true case "Query.campaignHistories": if e.ComplexityRoot.Query.CampaignHistories == nil { break @@ -17265,6 +17649,10 @@ func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler { ec.unmarshalInputAssessmentResponseHistoryWhereInput, ec.unmarshalInputAssetHistoryOrder, ec.unmarshalInputAssetHistoryWhereInput, + ec.unmarshalInputAudienceHistoryOrder, + ec.unmarshalInputAudienceHistoryWhereInput, + ec.unmarshalInputAudienceMemberHistoryOrder, + ec.unmarshalInputAudienceMemberHistoryWhereInput, ec.unmarshalInputCampaignHistoryOrder, ec.unmarshalInputCampaignHistoryWhereInput, ec.unmarshalInputCampaignTargetHistoryOrder, @@ -20129,11 +20517,11 @@ input AssetHistoryWhereInput { observedAtIsNil: Boolean observedAtNotNil: Boolean } -type CampaignHistory implements Node { +type AudienceHistory implements Node { id: ID! historyTime: Time! ref: String - operation: CampaignHistoryOpType! + operation: AudienceHistoryOpType! createdAt: Time updatedAt: Time createdBy: String @@ -20151,167 +20539,45 @@ type CampaignHistory implements Node { """ tags: [String!] """ - the ID of the organization owner of the object + the organization id that owns the object """ ownerID: String """ - the internal owner for the campaign when no user or group is linked - """ - internalOwner: String - """ - the internal owner user id for the campaign - """ - internalOwnerUserID: String - """ - the internal owner group id for the campaign - """ - internalOwnerGroupID: String - """ - internal marker field for workflow eligibility, not exposed in API - """ - workflowEligibleMarker: Boolean - """ - the name of the campaign + the name of the audience """ name: String! """ - the description of the campaign + the description of the audience """ description: String """ - the type of campaign + the audience resolution type """ - campaignType: CampaignHistoryCampaignType! - """ - the status of the campaign - """ - status: CampaignHistoryCampaignStatus! - """ - whether the campaign is active - """ - isActive: Boolean! + audienceType: AudienceHistoryAudienceType! """ - when the campaign is scheduled to start + selector filters for dynamic audiences """ - scheduledAt: DateTime + filters: Map """ - when the campaign was launched - """ - launchedAt: DateTime - """ - when the campaign completed - """ - completedAt: DateTime - """ - when responses are due for the campaign - """ - dueDate: DateTime - """ - whether the campaign recurs on a schedule - """ - isRecurring: Boolean! - """ - the recurrence cadence for the campaign - """ - recurrenceFrequency: CampaignHistoryFrequency - """ - the recurrence interval for the campaign, combined with the recurrence frequency - """ - recurrenceInterval: Int - """ - timezone used for the recurrence schedule - """ - recurrenceTimezone: String - """ - cron schedule to run the campaign in cron 6-field syntax, e.g. 0 0 0 * * * - """ - recurrenceCron: String - """ - when the campaign was last executed - """ - lastRunAt: DateTime - """ - when the campaign is scheduled to run next - """ - nextRunAt: DateTime - """ - when the recurring campaign should stop running - """ - recurrenceEndAt: DateTime - """ - the number of recipients targeted by the campaign - """ - recipientCount: Int - """ - the number of times campaign notifications were resent - """ - resendCount: Int - """ - when campaign notifications were last resent - """ - lastResentAt: DateTime - """ - the entity associated with the campaign - """ - entityID: String - """ - the template associated with the campaign - """ - templateID: String - """ - the assessment associated with the campaign - """ - assessmentID: String - """ - additional metadata about the campaign + additional metadata about the audience """ metadata: Map - """ - the email template associated with the campaign - """ - emailTemplateID: String - """ - the email integration used for campaign dispatch - """ - integrationID: String - """ - the email branding associated with the campaign - """ - emailBrandingID: String - """ - the trust center this campaign sends updates for, if any - """ - trustCenterID: String } """ -CampaignHistoryCampaignStatus is enum for the field status +AudienceHistoryAudienceType is enum for the field audience_type """ -enum CampaignHistoryCampaignStatus @goModel(model: "github.com/theopenlane/core/common/enums.CampaignStatus") { - DRAFT - SCHEDULED - ACTIVE - COMPLETED - CANCELED -} -""" -CampaignHistoryCampaignType is enum for the field campaign_type -""" -enum CampaignHistoryCampaignType @goModel(model: "github.com/theopenlane/core/common/enums.CampaignType") { - QUESTIONNAIRE - TRAINING - POLICY_ATTESTATION - VENDOR_ASSESSMENT - CUSTOM - TRUST_CENTER_UPDATE +enum AudienceHistoryAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC } """ A connection to a list of items. """ -type CampaignHistoryConnection { +type AudienceHistoryConnection { """ A list of edges. """ - edges: [CampaignHistoryEdge] + edges: [AudienceHistoryEdge] """ Information to aid in pagination. """ @@ -20324,84 +20590,854 @@ type CampaignHistoryConnection { """ An edge in a connection. """ -type CampaignHistoryEdge { +type AudienceHistoryEdge { """ The item at the end of the edge. """ - node: CampaignHistory + node: AudienceHistory """ A cursor for use in pagination. """ cursor: Cursor! } """ -CampaignHistoryFrequency is enum for the field recurrence_frequency +AudienceHistoryOpType is enum for the field operation """ -enum CampaignHistoryFrequency @goModel(model: "github.com/theopenlane/core/common/enums.Frequency") { - YEARLY - QUARTERLY - BIANNUALLY - MONTHLY - NONE - BIENNIALLY - TRIENNIALLY -} -""" -CampaignHistoryOpType is enum for the field operation -""" -enum CampaignHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { +enum AudienceHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { INSERT UPDATE DELETE } """ -Ordering options for CampaignHistory connections +Ordering options for AudienceHistory connections """ -input CampaignHistoryOrder { +input AudienceHistoryOrder { """ The ordering direction. """ direction: OrderDirection! = ASC """ - The field by which to order CampaignHistories. + The field by which to order AudienceHistories. """ - field: CampaignHistoryOrderField! + field: AudienceHistoryOrderField! } """ -Properties by which CampaignHistory connections can be ordered. +Properties by which AudienceHistory connections can be ordered. """ -enum CampaignHistoryOrderField { +enum AudienceHistoryOrderField { history_time created_at updated_at - internal_owner name - CAMPAIGN_TYPE - STATUS - is_active - scheduled_at - launched_at - completed_at - due_date - is_recurring - recurrence_frequency - recurrence_interval - recurrence_timezone - last_run_at - next_run_at - recurrence_end_at - recipient_count - resend_count - last_resent_at + AUDIENCE_TYPE } """ -CampaignHistoryWhereInput is used for filtering CampaignHistory objects. +AudienceHistoryWhereInput is used for filtering AudienceHistory objects. Input was generated by ent. """ -input CampaignHistoryWhereInput { - not: CampaignHistoryWhereInput - and: [CampaignHistoryWhereInput!] - or: [CampaignHistoryWhereInput!] +input AudienceHistoryWhereInput { + not: AudienceHistoryWhereInput + and: [AudienceHistoryWhereInput!] + or: [AudienceHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceHistoryOpType + operationNEQ: AudienceHistoryOpType + operationIn: [AudienceHistoryOpType!] + operationNotIn: [AudienceHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceHistoryAudienceType + audienceTypeNEQ: AudienceHistoryAudienceType + audienceTypeIn: [AudienceHistoryAudienceType!] + audienceTypeNotIn: [AudienceHistoryAudienceType!] +} +type AudienceMemberHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: AudienceMemberHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the audience this member belongs to + """ + audienceID: String! + """ + the contact associated with this audience member + """ + contactID: String + """ + the user associated with this audience member + """ + userID: String + """ + the group associated with this audience member + """ + groupID: String + """ + the identity holder associated with this audience member + """ + identityHolderID: String + """ + the subscriber associated with this audience member + """ + subscriberID: String + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map +} +""" +A connection to a list of items. +""" +type AudienceMemberHistoryConnection { + """ + A list of edges. + """ + edges: [AudienceMemberHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceMemberHistoryEdge { + """ + The item at the end of the edge. + """ + node: AudienceMemberHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +AudienceMemberHistoryOpType is enum for the field operation +""" +enum AudienceMemberHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for AudienceMemberHistory connections +""" +input AudienceMemberHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMemberHistories. + """ + field: AudienceMemberHistoryOrderField! +} +""" +Properties by which AudienceMemberHistory connections can be ordered. +""" +enum AudienceMemberHistoryOrderField { + history_time + created_at + updated_at + email + full_name +} +""" +AudienceMemberHistoryWhereInput is used for filtering AudienceMemberHistory objects. +Input was generated by ent. +""" +input AudienceMemberHistoryWhereInput { + not: AudienceMemberHistoryWhereInput + and: [AudienceMemberHistoryWhereInput!] + or: [AudienceMemberHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceMemberHistoryOpType + operationNEQ: AudienceMemberHistoryOpType + operationIn: [AudienceMemberHistoryOpType!] + operationNotIn: [AudienceMemberHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + audience_id field predicates + """ + audienceID: String + audienceIDNEQ: String + audienceIDIn: [String!] + audienceIDNotIn: [String!] + audienceIDContains: String + audienceIDHasPrefix: String + audienceIDHasSuffix: String + audienceIDEqualFold: String + audienceIDContainsFold: String + """ + contact_id field predicates + """ + contactID: String + contactIDNEQ: String + contactIDIn: [String!] + contactIDNotIn: [String!] + contactIDContains: String + contactIDHasPrefix: String + contactIDHasSuffix: String + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: String + contactIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String + """ + identity_holder_id field predicates + """ + identityHolderID: String + identityHolderIDNEQ: String + identityHolderIDIn: [String!] + identityHolderIDNotIn: [String!] + identityHolderIDContains: String + identityHolderIDHasPrefix: String + identityHolderIDHasSuffix: String + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: String + identityHolderIDContainsFold: String + """ + subscriber_id field predicates + """ + subscriberID: String + subscriberIDNEQ: String + subscriberIDIn: [String!] + subscriberIDNotIn: [String!] + subscriberIDContains: String + subscriberIDHasPrefix: String + subscriberIDHasSuffix: String + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: String + subscriberIDContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String +} +type CampaignHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: CampaignHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String + """ + the internal owner for the campaign when no user or group is linked + """ + internalOwner: String + """ + the internal owner user id for the campaign + """ + internalOwnerUserID: String + """ + the internal owner group id for the campaign + """ + internalOwnerGroupID: String + """ + internal marker field for workflow eligibility, not exposed in API + """ + workflowEligibleMarker: Boolean + """ + the name of the campaign + """ + name: String! + """ + the description of the campaign + """ + description: String + """ + the type of campaign + """ + campaignType: CampaignHistoryCampaignType! + """ + the status of the campaign + """ + status: CampaignHistoryCampaignStatus! + """ + whether the campaign is active + """ + isActive: Boolean! + """ + when the campaign is scheduled to start + """ + scheduledAt: DateTime + """ + when the campaign was launched + """ + launchedAt: DateTime + """ + when the campaign completed + """ + completedAt: DateTime + """ + when responses are due for the campaign + """ + dueDate: DateTime + """ + whether the campaign recurs on a schedule + """ + isRecurring: Boolean! + """ + the recurrence cadence for the campaign + """ + recurrenceFrequency: CampaignHistoryFrequency + """ + the recurrence interval for the campaign, combined with the recurrence frequency + """ + recurrenceInterval: Int + """ + timezone used for the recurrence schedule + """ + recurrenceTimezone: String + """ + cron schedule to run the campaign in cron 6-field syntax, e.g. 0 0 0 * * * + """ + recurrenceCron: String + """ + when the campaign was last executed + """ + lastRunAt: DateTime + """ + when the campaign is scheduled to run next + """ + nextRunAt: DateTime + """ + when the recurring campaign should stop running + """ + recurrenceEndAt: DateTime + """ + the number of recipients targeted by the campaign + """ + recipientCount: Int + """ + the number of times campaign notifications were resent + """ + resendCount: Int + """ + when campaign notifications were last resent + """ + lastResentAt: DateTime + """ + the entity associated with the campaign + """ + entityID: String + """ + the template associated with the campaign + """ + templateID: String + """ + the assessment associated with the campaign + """ + assessmentID: String + """ + additional metadata about the campaign + """ + metadata: Map + """ + the email template associated with the campaign + """ + emailTemplateID: String + """ + the email integration used for campaign dispatch + """ + integrationID: String + """ + the email branding associated with the campaign + """ + emailBrandingID: String + """ + the trust center this campaign sends updates for, if any + """ + trustCenterID: String +} +""" +CampaignHistoryCampaignStatus is enum for the field status +""" +enum CampaignHistoryCampaignStatus @goModel(model: "github.com/theopenlane/core/common/enums.CampaignStatus") { + DRAFT + SCHEDULED + ACTIVE + COMPLETED + CANCELED +} +""" +CampaignHistoryCampaignType is enum for the field campaign_type +""" +enum CampaignHistoryCampaignType @goModel(model: "github.com/theopenlane/core/common/enums.CampaignType") { + QUESTIONNAIRE + TRAINING + POLICY_ATTESTATION + VENDOR_ASSESSMENT + CUSTOM + TRUST_CENTER_UPDATE +} +""" +A connection to a list of items. +""" +type CampaignHistoryConnection { + """ + A list of edges. + """ + edges: [CampaignHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type CampaignHistoryEdge { + """ + The item at the end of the edge. + """ + node: CampaignHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +CampaignHistoryFrequency is enum for the field recurrence_frequency +""" +enum CampaignHistoryFrequency @goModel(model: "github.com/theopenlane/core/common/enums.Frequency") { + YEARLY + QUARTERLY + BIANNUALLY + MONTHLY + NONE + BIENNIALLY + TRIENNIALLY +} +""" +CampaignHistoryOpType is enum for the field operation +""" +enum CampaignHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for CampaignHistory connections +""" +input CampaignHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order CampaignHistories. + """ + field: CampaignHistoryOrderField! +} +""" +Properties by which CampaignHistory connections can be ordered. +""" +enum CampaignHistoryOrderField { + history_time + created_at + updated_at + internal_owner + name + CAMPAIGN_TYPE + STATUS + is_active + scheduled_at + launched_at + completed_at + due_date + is_recurring + recurrence_frequency + recurrence_interval + recurrence_timezone + last_run_at + next_run_at + recurrence_end_at + recipient_count + resend_count + last_resent_at +} +""" +CampaignHistoryWhereInput is used for filtering CampaignHistory objects. +Input was generated by ent. +""" +input CampaignHistoryWhereInput { + not: CampaignHistoryWhereInput + and: [CampaignHistoryWhereInput!] + or: [CampaignHistoryWhereInput!] """ id field predicates """ @@ -37394,6 +38430,68 @@ type Query { """ where: AssetHistoryWhereInput ): AssetHistoryConnection! + audienceHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceHistories returned from the connection. + """ + orderBy: AudienceHistoryOrder + + """ + Filtering options for AudienceHistories returned from the connection. + """ + where: AudienceHistoryWhereInput + ): AudienceHistoryConnection! + audienceMemberHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMemberHistories returned from the connection. + """ + orderBy: AudienceMemberHistoryOrder + + """ + Filtering options for AudienceMemberHistories returned from the connection. + """ + where: AudienceMemberHistoryWhereInput + ): AudienceMemberHistoryConnection! campaignHistories( """ Returns the elements in the list that come after the specified cursor. @@ -51983,6 +53081,138 @@ func (ec *executionContext) childFields_AssetHistoryEdge(ctx context.Context, fi return nil, fmt.Errorf("no field named %q was found under type AssetHistoryEdge", field.Name) } +func (ec *executionContext) childFields_AudienceHistory(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AudienceHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_AudienceHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_AudienceHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_AudienceHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_AudienceHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_AudienceHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_AudienceHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_AudienceHistory_updatedBy(ctx, field) + case "updatedByImpersonator": + return ec.fieldContext_AudienceHistory_updatedByImpersonator(ctx, field) + case "displayID": + return ec.fieldContext_AudienceHistory_displayID(ctx, field) + case "tags": + return ec.fieldContext_AudienceHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_AudienceHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_AudienceHistory_name(ctx, field) + case "description": + return ec.fieldContext_AudienceHistory_description(ctx, field) + case "audienceType": + return ec.fieldContext_AudienceHistory_audienceType(ctx, field) + case "filters": + return ec.fieldContext_AudienceHistory_filters(ctx, field) + case "metadata": + return ec.fieldContext_AudienceHistory_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceHistory", field.Name) +} + +func (ec *executionContext) childFields_AudienceHistoryConnection(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_AudienceHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AudienceHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AudienceHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceHistoryConnection", field.Name) +} + +func (ec *executionContext) childFields_AudienceHistoryEdge(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AudienceHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AudienceHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceHistoryEdge", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberHistory(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_AudienceMemberHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_AudienceMemberHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_AudienceMemberHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_AudienceMemberHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_AudienceMemberHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_AudienceMemberHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_AudienceMemberHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_AudienceMemberHistory_updatedBy(ctx, field) + case "updatedByImpersonator": + return ec.fieldContext_AudienceMemberHistory_updatedByImpersonator(ctx, field) + case "displayID": + return ec.fieldContext_AudienceMemberHistory_displayID(ctx, field) + case "tags": + return ec.fieldContext_AudienceMemberHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_AudienceMemberHistory_ownerID(ctx, field) + case "audienceID": + return ec.fieldContext_AudienceMemberHistory_audienceID(ctx, field) + case "contactID": + return ec.fieldContext_AudienceMemberHistory_contactID(ctx, field) + case "userID": + return ec.fieldContext_AudienceMemberHistory_userID(ctx, field) + case "groupID": + return ec.fieldContext_AudienceMemberHistory_groupID(ctx, field) + case "identityHolderID": + return ec.fieldContext_AudienceMemberHistory_identityHolderID(ctx, field) + case "subscriberID": + return ec.fieldContext_AudienceMemberHistory_subscriberID(ctx, field) + case "email": + return ec.fieldContext_AudienceMemberHistory_email(ctx, field) + case "fullName": + return ec.fieldContext_AudienceMemberHistory_fullName(ctx, field) + case "metadata": + return ec.fieldContext_AudienceMemberHistory_metadata(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberHistory", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberHistoryConnection(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_AudienceMemberHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AudienceMemberHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AudienceMemberHistoryConnection_totalCount(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberHistoryConnection", field.Name) +} + +func (ec *executionContext) childFields_AudienceMemberHistoryEdge(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AudienceMemberHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AudienceMemberHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AudienceMemberHistoryEdge", field.Name) +} + func (ec *executionContext) childFields_CampaignHistory(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": diff --git a/internal/graphapi/historyschema/checksum/.history_schema_checksum b/internal/graphapi/historyschema/checksum/.history_schema_checksum index 5b05ec1d65..a84f554018 100644 --- a/internal/graphapi/historyschema/checksum/.history_schema_checksum +++ b/internal/graphapi/historyschema/checksum/.history_schema_checksum @@ -1 +1 @@ -fde70165872c1a9faebb43a13963a94f9c38ac12facdbec6e97e48ff0742cac8 \ No newline at end of file +74eb6a193da08b30e7ecfba61b3cf326a7c6f4651ffd71117cec45493f7094b3 \ No newline at end of file diff --git a/internal/graphapi/historyschema/schema.graphql b/internal/graphapi/historyschema/schema.graphql index 7d9af923f4..73b05e8379 100644 --- a/internal/graphapi/historyschema/schema.graphql +++ b/internal/graphapi/historyschema/schema.graphql @@ -2562,6 +2562,654 @@ input AssetHistoryWhereInput { AssignmentOutcome captures consolidated terminal outcome metadata for a workflow assignment, discriminated by decision. """ scalar AssignmentOutcome +type AudienceHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: AudienceHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceHistoryAudienceType! + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map +} +""" +AudienceHistoryAudienceType is enum for the field audience_type +""" +enum AudienceHistoryAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC +} +""" +A connection to a list of items. +""" +type AudienceHistoryConnection { + """ + A list of edges. + """ + edges: [AudienceHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceHistoryEdge { + """ + The item at the end of the edge. + """ + node: AudienceHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +AudienceHistoryOpType is enum for the field operation +""" +enum AudienceHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for AudienceHistory connections +""" +input AudienceHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceHistories. + """ + field: AudienceHistoryOrderField! +} +""" +Properties by which AudienceHistory connections can be ordered. +""" +enum AudienceHistoryOrderField { + history_time + created_at + updated_at + name + AUDIENCE_TYPE +} +""" +AudienceHistoryWhereInput is used for filtering AudienceHistory objects. +Input was generated by ent. +""" +input AudienceHistoryWhereInput { + not: AudienceHistoryWhereInput + and: [AudienceHistoryWhereInput!] + or: [AudienceHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceHistoryOpType + operationNEQ: AudienceHistoryOpType + operationIn: [AudienceHistoryOpType!] + operationNotIn: [AudienceHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceHistoryAudienceType + audienceTypeNEQ: AudienceHistoryAudienceType + audienceTypeIn: [AudienceHistoryAudienceType!] + audienceTypeNotIn: [AudienceHistoryAudienceType!] +} +type AudienceMemberHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: AudienceMemberHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the audience this member belongs to + """ + audienceID: String! + """ + the contact associated with this audience member + """ + contactID: String + """ + the user associated with this audience member + """ + userID: String + """ + the group associated with this audience member + """ + groupID: String + """ + the identity holder associated with this audience member + """ + identityHolderID: String + """ + the subscriber associated with this audience member + """ + subscriberID: String + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map +} +""" +A connection to a list of items. +""" +type AudienceMemberHistoryConnection { + """ + A list of edges. + """ + edges: [AudienceMemberHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceMemberHistoryEdge { + """ + The item at the end of the edge. + """ + node: AudienceMemberHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +AudienceMemberHistoryOpType is enum for the field operation +""" +enum AudienceMemberHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for AudienceMemberHistory connections +""" +input AudienceMemberHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMemberHistories. + """ + field: AudienceMemberHistoryOrderField! +} +""" +Properties by which AudienceMemberHistory connections can be ordered. +""" +enum AudienceMemberHistoryOrderField { + history_time + created_at + updated_at + email + full_name +} +""" +AudienceMemberHistoryWhereInput is used for filtering AudienceMemberHistory objects. +Input was generated by ent. +""" +input AudienceMemberHistoryWhereInput { + not: AudienceMemberHistoryWhereInput + and: [AudienceMemberHistoryWhereInput!] + or: [AudienceMemberHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceMemberHistoryOpType + operationNEQ: AudienceMemberHistoryOpType + operationIn: [AudienceMemberHistoryOpType!] + operationNotIn: [AudienceMemberHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + audience_id field predicates + """ + audienceID: String + audienceIDNEQ: String + audienceIDIn: [String!] + audienceIDNotIn: [String!] + audienceIDContains: String + audienceIDHasPrefix: String + audienceIDHasSuffix: String + audienceIDEqualFold: String + audienceIDContainsFold: String + """ + contact_id field predicates + """ + contactID: String + contactIDNEQ: String + contactIDIn: [String!] + contactIDNotIn: [String!] + contactIDContains: String + contactIDHasPrefix: String + contactIDHasSuffix: String + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: String + contactIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String + """ + identity_holder_id field predicates + """ + identityHolderID: String + identityHolderIDNEQ: String + identityHolderIDIn: [String!] + identityHolderIDNotIn: [String!] + identityHolderIDContains: String + identityHolderIDHasPrefix: String + identityHolderIDHasSuffix: String + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: String + identityHolderIDContainsFold: String + """ + subscriber_id field predicates + """ + subscriberID: String + subscriberIDNEQ: String + subscriberIDIn: [String!] + subscriberIDNotIn: [String!] + subscriberIDContains: String + subscriberIDHasPrefix: String + subscriberIDHasSuffix: String + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: String + subscriberIDContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String +} type CampaignHistory implements Node { id: ID! historyTime: Time! @@ -19881,6 +20529,68 @@ type Query { """ where: AssetHistoryWhereInput ): AssetHistoryConnection! + audienceHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceHistories returned from the connection. + """ + orderBy: AudienceHistoryOrder + + """ + Filtering options for AudienceHistories returned from the connection. + """ + where: AudienceHistoryWhereInput + ): AudienceHistoryConnection! + audienceMemberHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMemberHistories returned from the connection. + """ + orderBy: AudienceMemberHistoryOrder + + """ + Filtering options for AudienceMemberHistories returned from the connection. + """ + where: AudienceMemberHistoryWhereInput + ): AudienceMemberHistoryConnection! campaignHistories( """ Returns the elements in the list that come after the specified cursor. diff --git a/internal/graphapi/model/gen_models.go b/internal/graphapi/model/gen_models.go index 5569de9e59..047e360369 100644 --- a/internal/graphapi/model/gen_models.go +++ b/internal/graphapi/model/gen_models.go @@ -210,6 +210,90 @@ type AssetUpdatePayload struct { Asset *generated.Asset `json:"asset"` } +// Return response for createBulkAudience mutation +type AudienceBulkCreatePayload struct { + // Created audiences + Audiences []*generated.Audience `json:"audiences,omitempty"` +} + +// Return response for deleteBulkAudience mutation +type AudienceBulkDeletePayload struct { + // Deleted audience IDs + DeletedIDs []string `json:"deletedIDs"` + // Error returned when the bulk delete is only partially applied + Error *string `json:"error,omitempty"` + // IDs of audiences that were not deleted + NotDeletedIDs []string `json:"notDeletedIDs,omitempty"` +} + +// Return response for updateBulkAudience mutation +type AudienceBulkUpdatePayload struct { + // Updated audiences + Audiences []*generated.Audience `json:"audiences,omitempty"` + // IDs of the updated audiences + UpdatedIDs []string `json:"updatedIDs,omitempty"` +} + +// Return response for createAudience mutation +type AudienceCreatePayload struct { + // Created audience + Audience *generated.Audience `json:"audience"` +} + +// Return response for deleteAudience mutation +type AudienceDeletePayload struct { + // Deleted audience ID + DeletedID string `json:"deletedID"` +} + +// Return response for createBulkAudienceMember mutation +type AudienceMemberBulkCreatePayload struct { + // Created audienceMembers + AudienceMembers []*generated.AudienceMember `json:"audienceMembers,omitempty"` +} + +// Return response for deleteBulkAudienceMember mutation +type AudienceMemberBulkDeletePayload struct { + // Deleted audienceMember IDs + DeletedIDs []string `json:"deletedIDs"` + // Error returned when the bulk delete is only partially applied + Error *string `json:"error,omitempty"` + // IDs of audienceMembers that were not deleted + NotDeletedIDs []string `json:"notDeletedIDs,omitempty"` +} + +// Return response for updateBulkAudienceMember mutation +type AudienceMemberBulkUpdatePayload struct { + // Updated audienceMembers + AudienceMembers []*generated.AudienceMember `json:"audienceMembers,omitempty"` + // IDs of the updated audienceMembers + UpdatedIDs []string `json:"updatedIDs,omitempty"` +} + +// Return response for createAudienceMember mutation +type AudienceMemberCreatePayload struct { + // Created audienceMember + AudienceMember *generated.AudienceMember `json:"audienceMember"` +} + +// Return response for deleteAudienceMember mutation +type AudienceMemberDeletePayload struct { + // Deleted audienceMember ID + DeletedID string `json:"deletedID"` +} + +// Return response for updateAudienceMember mutation +type AudienceMemberUpdatePayload struct { + // Updated audienceMember + AudienceMember *generated.AudienceMember `json:"audienceMember"` +} + +// Return response for updateAudience mutation +type AudienceUpdatePayload struct { + // Updated audience + Audience *generated.Audience `json:"audience"` +} + // Return response for approveNDARequests or denyNDARequests mutation type BulkUpdateStatusPayload struct { // Updated nda request IDs @@ -2998,6 +3082,8 @@ type SearchResults struct { Assessments *generated.AssessmentConnection `json:"assessments,omitempty"` AssessmentResponses *generated.AssessmentResponseConnection `json:"assessmentResponses,omitempty"` Assets *generated.AssetConnection `json:"assets,omitempty"` + Audiences *generated.AudienceConnection `json:"audiences,omitempty"` + AudienceMembers *generated.AudienceMemberConnection `json:"audienceMembers,omitempty"` Campaigns *generated.CampaignConnection `json:"campaigns,omitempty"` CampaignTargets *generated.CampaignTargetConnection `json:"campaignTargets,omitempty"` Contacts *generated.ContactConnection `json:"contacts,omitempty"` diff --git a/internal/graphapi/query/audience.graphql b/internal/graphapi/query/audience.graphql new file mode 100644 index 0000000000..c7cd20fe30 --- /dev/null +++ b/internal/graphapi/query/audience.graphql @@ -0,0 +1,208 @@ +mutation CreateAudience ($input: CreateAudienceInput!) { + createAudience(input: $input) { + audience { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +mutation CreateBulkAudience ($input: [CreateAudienceInput!]) { + createBulkAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +mutation CreateBulkCSVAudience ($input: Upload!) { + createBulkCSVAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +mutation DeleteAudience ($deleteAudienceId: ID!) { + deleteAudience(id: $deleteAudienceId) { + deletedID + } +} +mutation DeleteBulkAudience ($ids: [ID!]!) { + deleteBulkAudience(ids: $ids) { + deletedIDs + } +} +query GetAllAudiences ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceOrder!]) { + audiences(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} +query GetAudienceByID ($audienceId: ID!) { + audience(id: $audienceId) { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } +} +query GetAudiences ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceOrder!], $where: AudienceWhereInput) { + audiences(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} +mutation UpdateAudience ($updateAudienceId: ID!, $input: UpdateAudienceInput!) { + updateAudience(id: $updateAudienceId, input: $input) { + audience { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +mutation UpdateBulkAudience ($ids: [ID!]!, $input: UpdateAudienceInput!) { + updateBulkAudience(ids: $ids, input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + updatedIDs + } +} +mutation UpdateBulkCSVAudience ($input: Upload!) { + updateBulkCSVAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + updatedIDs + } +} diff --git a/internal/graphapi/query/audiencemember.graphql b/internal/graphapi/query/audiencemember.graphql new file mode 100644 index 0000000000..e4f5327b3c --- /dev/null +++ b/internal/graphapi/query/audiencemember.graphql @@ -0,0 +1,244 @@ +mutation CreateAudienceMember ($input: CreateAudienceMemberInput!) { + createAudienceMember(input: $input) { + audienceMember { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +mutation CreateBulkAudienceMember ($input: [CreateAudienceMemberInput!]) { + createBulkAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +mutation CreateBulkCSVAudienceMember ($input: Upload!) { + createBulkCSVAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +mutation DeleteAudienceMember ($deleteAudienceMemberId: ID!) { + deleteAudienceMember(id: $deleteAudienceMemberId) { + deletedID + } +} +mutation DeleteBulkAudienceMember ($ids: [ID!]!) { + deleteBulkAudienceMember(ids: $ids) { + deletedIDs + } +} +query GetAllAudienceMembers ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberOrder!]) { + audienceMembers(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} +query GetAudienceMemberByID ($audienceMemberId: ID!) { + audienceMember(id: $audienceMemberId) { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } +} +query GetAudienceMembers ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberOrder!], $where: AudienceMemberWhereInput) { + audienceMembers(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} +mutation UpdateAudienceMember ($updateAudienceMemberId: ID!, $input: UpdateAudienceMemberInput!) { + updateAudienceMember(id: $updateAudienceMemberId, input: $input) { + audienceMember { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +mutation UpdateBulkAudienceMember ($ids: [ID!]!, $input: UpdateAudienceMemberInput!) { + updateBulkAudienceMember(ids: $ids, input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + updatedIDs + } +} +mutation UpdateBulkCSVAudienceMember ($input: Upload!) { + updateBulkCSVAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + updatedIDs + } +} diff --git a/internal/graphapi/query/history/audiencehistory.graphql b/internal/graphapi/query/history/audiencehistory.graphql new file mode 100644 index 0000000000..a35c79d7fb --- /dev/null +++ b/internal/graphapi/query/history/audiencehistory.graphql @@ -0,0 +1,64 @@ +query GetAllAudienceHistories ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceHistoryOrder!]) { + audienceHistories(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + historyTime + id + metadata + name + operation + ownerID + ref + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} +query GetAudienceHistories ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceHistoryOrder!], $where: AudienceHistoryWhereInput) { + audienceHistories(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + historyTime + id + metadata + name + operation + ownerID + ref + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} diff --git a/internal/graphapi/query/history/audiencememberhistory.graphql b/internal/graphapi/query/history/audiencememberhistory.graphql new file mode 100644 index 0000000000..a22b01518e --- /dev/null +++ b/internal/graphapi/query/history/audiencememberhistory.graphql @@ -0,0 +1,72 @@ +query GetAllAudienceMemberHistories ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberHistoryOrder!]) { + audienceMemberHistories(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + historyTime + id + identityHolderID + metadata + operation + ownerID + ref + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} +query GetAudienceMemberHistories ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberHistoryOrder!], $where: AudienceMemberHistoryWhereInput) { + audienceMemberHistories(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + historyTime + id + identityHolderID + metadata + operation + ownerID + ref + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} diff --git a/internal/graphapi/query/search.graphql b/internal/graphapi/query/search.graphql index fb882d5a92..4071fb6414 100644 --- a/internal/graphapi/query/search.graphql +++ b/internal/graphapi/query/search.graphql @@ -69,6 +69,40 @@ query GlobalSearch($query: String!) { } } } + audiences { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + node { + displayID + id + name + tags + } + } + } + audienceMembers { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + node { + displayID + email + id + tags + } + } + } campaigns { totalCount pageInfo { diff --git a/internal/graphapi/schema/audience.graphql b/internal/graphapi/schema/audience.graphql new file mode 100644 index 0000000000..25a355ea41 --- /dev/null +++ b/internal/graphapi/schema/audience.graphql @@ -0,0 +1,166 @@ +extend type Query { + """ + Look up audience by ID + """ + audience( + """ + ID of the audience + """ + id: ID! + ): Audience! +} + +extend type Mutation{ + """ + Create a new audience + """ + createAudience( + """ + values of the audience + """ + input: CreateAudienceInput! + ): AudienceCreatePayload! + """ + Create multiple new audiences + """ + createBulkAudience( + """ + values of the audience + """ + input: [CreateAudienceInput!] + ): AudienceBulkCreatePayload! + """ + Create multiple new audiences via file upload + """ + createBulkCSVAudience( + """ + csv file containing values of the audience + """ + input: Upload! + ): AudienceBulkCreatePayload! + """ + Update multiple existing audiences + """ + updateBulkAudience( + """ + IDs of the audiences to update + """ + ids: [ID!]! + """ + values to update the audiences with + """ + input: UpdateAudienceInput! + ): AudienceBulkUpdatePayload! + """ + Update multiple existing audiences via file upload + """ + updateBulkCSVAudience( + """ + csv file containing values of the audience, must include ID column + """ + input: Upload! + ): AudienceBulkUpdatePayload! + """ + Update an existing audience + """ + updateAudience( + """ + ID of the audience + """ + id: ID! + """ + New values for the audience + """ + input: UpdateAudienceInput! + ): AudienceUpdatePayload! + """ + Delete an existing audience + """ + deleteAudience( + """ + ID of the audience + """ + id: ID! + ): AudienceDeletePayload! + """ + Delete multiple audiences + """ + deleteBulkAudience( + """ + IDs of the audiences to delete + """ + ids: [ID!]! + ): AudienceBulkDeletePayload! +} + +""" +Return response for createAudience mutation +""" +type AudienceCreatePayload { + """ + Created audience + """ + audience: Audience! +} + +""" +Return response for updateAudience mutation +""" +type AudienceUpdatePayload { + """ + Updated audience + """ + audience: Audience! +} + +""" +Return response for deleteAudience mutation +""" +type AudienceDeletePayload { + """ + Deleted audience ID + """ + deletedID: ID! +} + +""" +Return response for createBulkAudience mutation +""" +type AudienceBulkCreatePayload { + """ + Created audiences + """ + audiences: [Audience!] +} + +""" +Return response for updateBulkAudience mutation +""" +type AudienceBulkUpdatePayload { + """ + Updated audiences + """ + audiences: [Audience!] + """ + IDs of the updated audiences + """ + updatedIDs: [ID!] +} + +""" +Return response for deleteBulkAudience mutation +""" +type AudienceBulkDeletePayload { + """ + Deleted audience IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audiences that were not deleted + """ + notDeletedIDs: [ID!] +} diff --git a/internal/graphapi/schema/audiencemember.graphql b/internal/graphapi/schema/audiencemember.graphql new file mode 100644 index 0000000000..cb09182d09 --- /dev/null +++ b/internal/graphapi/schema/audiencemember.graphql @@ -0,0 +1,166 @@ +extend type Query { + """ + Look up audienceMember by ID + """ + audienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMember! +} + +extend type Mutation{ + """ + Create a new audienceMember + """ + createAudienceMember( + """ + values of the audienceMember + """ + input: CreateAudienceMemberInput! + ): AudienceMemberCreatePayload! + """ + Create multiple new audienceMembers + """ + createBulkAudienceMember( + """ + values of the audienceMember + """ + input: [CreateAudienceMemberInput!] + ): AudienceMemberBulkCreatePayload! + """ + Create multiple new audienceMembers via file upload + """ + createBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember + """ + input: Upload! + ): AudienceMemberBulkCreatePayload! + """ + Update multiple existing audienceMembers + """ + updateBulkAudienceMember( + """ + IDs of the audienceMembers to update + """ + ids: [ID!]! + """ + values to update the audienceMembers with + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberBulkUpdatePayload! + """ + Update multiple existing audienceMembers via file upload + """ + updateBulkCSVAudienceMember( + """ + csv file containing values of the audienceMember, must include ID column + """ + input: Upload! + ): AudienceMemberBulkUpdatePayload! + """ + Update an existing audienceMember + """ + updateAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + """ + New values for the audienceMember + """ + input: UpdateAudienceMemberInput! + ): AudienceMemberUpdatePayload! + """ + Delete an existing audienceMember + """ + deleteAudienceMember( + """ + ID of the audienceMember + """ + id: ID! + ): AudienceMemberDeletePayload! + """ + Delete multiple audienceMembers + """ + deleteBulkAudienceMember( + """ + IDs of the audienceMembers to delete + """ + ids: [ID!]! + ): AudienceMemberBulkDeletePayload! +} + +""" +Return response for createAudienceMember mutation +""" +type AudienceMemberCreatePayload { + """ + Created audienceMember + """ + audienceMember: AudienceMember! +} + +""" +Return response for updateAudienceMember mutation +""" +type AudienceMemberUpdatePayload { + """ + Updated audienceMember + """ + audienceMember: AudienceMember! +} + +""" +Return response for deleteAudienceMember mutation +""" +type AudienceMemberDeletePayload { + """ + Deleted audienceMember ID + """ + deletedID: ID! +} + +""" +Return response for createBulkAudienceMember mutation +""" +type AudienceMemberBulkCreatePayload { + """ + Created audienceMembers + """ + audienceMembers: [AudienceMember!] +} + +""" +Return response for updateBulkAudienceMember mutation +""" +type AudienceMemberBulkUpdatePayload { + """ + Updated audienceMembers + """ + audienceMembers: [AudienceMember!] + """ + IDs of the updated audienceMembers + """ + updatedIDs: [ID!] +} + +""" +Return response for deleteBulkAudienceMember mutation +""" +type AudienceMemberBulkDeletePayload { + """ + Deleted audienceMember IDs + """ + deletedIDs: [ID!]! + """ + Error returned when the bulk delete is only partially applied + """ + error: String + """ + IDs of audienceMembers that were not deleted + """ + notDeletedIDs: [ID!] +} diff --git a/internal/graphapi/schema/ent.graphql b/internal/graphapi/schema/ent.graphql index 34bc8fd48d..078c4f587b 100644 --- a/internal/graphapi/schema/ent.graphql +++ b/internal/graphapi/schema/ent.graphql @@ -4355,6 +4355,808 @@ input AssetWhereInput { """ categoriesHas: String } +type Audience implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType! + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + owner: Organization + blockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + editors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + viewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! + 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! +} +""" +AudienceAudienceType is enum for the field audience_type +""" +enum AudienceAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC +} +""" +A connection to a list of items. +""" +type AudienceConnection { + """ + A list of edges. + """ + edges: [AudienceEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceEdge { + """ + The item at the end of the edge. + """ + node: Audience + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type AudienceMember implements Node @modules(names: ["compliance_module","trust_center_module"]) { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the audience this member belongs to + """ + audienceID: ID! + """ + the contact associated with this audience member + """ + contactID: ID + """ + the user associated with this audience member + """ + userID: ID + """ + the group associated with this audience member + """ + groupID: ID + """ + the identity holder associated with this audience member + """ + identityHolderID: ID + """ + the subscriber associated with this audience member + """ + subscriberID: ID + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + owner: Organization + audience: Audience! + contact: Contact + user: User + group: Group + identityHolder: IdentityHolder + subscriber: Subscriber +} +""" +A connection to a list of items. +""" +type AudienceMemberConnection { + """ + A list of edges. + """ + edges: [AudienceMemberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceMemberEdge { + """ + The item at the end of the edge. + """ + node: AudienceMember + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +Ordering options for AudienceMember connections +""" +input AudienceMemberOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMembers. + """ + field: AudienceMemberOrderField! +} +""" +Properties by which AudienceMember connections can be ordered. +""" +enum AudienceMemberOrderField { + created_at + updated_at + email + full_name +} +""" +AudienceMemberWhereInput is used for filtering AudienceMember objects. +Input was generated by ent. +""" +input AudienceMemberWhereInput { + not: AudienceMemberWhereInput + and: [AudienceMemberWhereInput!] + or: [AudienceMemberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + audience_id field predicates + """ + audienceID: ID + audienceIDNEQ: ID + audienceIDIn: [ID!] + audienceIDNotIn: [ID!] + audienceIDContains: ID + audienceIDHasPrefix: ID + audienceIDHasSuffix: ID + audienceIDEqualFold: ID + audienceIDContainsFold: ID + """ + contact_id field predicates + """ + contactID: ID + contactIDNEQ: ID + contactIDIn: [ID!] + contactIDNotIn: [ID!] + contactIDContains: ID + contactIDHasPrefix: ID + contactIDHasSuffix: ID + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: ID + contactIDContainsFold: ID + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + identity_holder_id field predicates + """ + identityHolderID: ID + identityHolderIDNEQ: ID + identityHolderIDIn: [ID!] + identityHolderIDNotIn: [ID!] + identityHolderIDContains: ID + identityHolderIDHasPrefix: ID + identityHolderIDHasSuffix: ID + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: ID + identityHolderIDContainsFold: ID + """ + subscriber_id field predicates + """ + subscriberID: ID + subscriberIDNEQ: ID + subscriberIDIn: [ID!] + subscriberIDNotIn: [ID!] + subscriberIDContains: ID + subscriberIDHasPrefix: ID + subscriberIDHasSuffix: ID + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: ID + subscriberIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + audience edge predicates + """ + hasAudience: Boolean + hasAudienceWith: [AudienceWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + identity_holder edge predicates + """ + hasIdentityHolder: Boolean + hasIdentityHolderWith: [IdentityHolderWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} +""" +Ordering options for Audience connections +""" +input AudienceOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Audiences. + """ + field: AudienceOrderField! +} +""" +Properties by which Audience connections can be ordered. +""" +enum AudienceOrderField { + created_at + updated_at + name + AUDIENCE_TYPE +} +""" +AudienceWhereInput is used for filtering Audience objects. +Input was generated by ent. +""" +input AudienceWhereInput { + not: AudienceWhereInput + and: [AudienceWhereInput!] + or: [AudienceWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceAudienceType + audienceTypeNEQ: AudienceAudienceType + audienceTypeIn: [AudienceAudienceType!] + audienceTypeNotIn: [AudienceAudienceType!] + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ + campaigns edge predicates + """ + hasCampaigns: Boolean + hasCampaignsWith: [CampaignWhereInput!] + """ + Filter for tagsHas to contain a specific value + """ + tagsHas: String +} type Campaign implements Node @modules(names: ["compliance_module","trust_center_module"]) { id: ID! createdAt: Time @@ -4793,6 +5595,37 @@ type Campaign implements Node @modules(names: ["compliance_module","trust_center """ where: IdentityHolderWhereInput ): IdentityHolderConnection! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! controls( """ Returns the elements in the list that come after the specified cursor. @@ -5911,6 +6744,11 @@ input CampaignWhereInput { hasIdentityHolders: Boolean hasIdentityHoldersWith: [IdentityHolderWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ controls edge predicates """ hasControls: Boolean @@ -6539,6 +7377,37 @@ type Contact implements Node @modules(names: ["entity_management_module","compli """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! files( """ Returns the elements in the list that come after the specified cursor. @@ -6913,6 +7782,11 @@ input ContactWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ files edge predicates """ hasFiles: Boolean @@ -10644,6 +11518,71 @@ input CreateAssetInput { connectedFromIDs: [ID!] } """ +CreateAudienceInput is used for create Audience object. +Input was generated by ent. +""" +input CreateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + audienceMemberIDs: [ID!] + campaignIDs: [ID!] +} +""" +CreateAudienceMemberInput is used for create AudienceMember object. +Input was generated by ent. +""" +input CreateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map + ownerID: ID + audienceID: ID! + contactID: ID + userID: ID + groupID: ID + identityHolderID: ID + subscriberID: ID +} +""" CreateCampaignInput is used for create Campaign object. Input was generated by ent. """ @@ -10766,6 +11705,7 @@ input CreateCampaignInput { userIDs: [ID!] groupIDs: [ID!] identityHolderIDs: [ID!] + audienceIDs: [ID!] controlIDs: [ID!] workflowObjectRefIDs: [ID!] } @@ -10903,6 +11843,7 @@ input CreateContactInput { entityIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] fileIDs: [ID!] subscriberIDs: [ID!] } @@ -12687,6 +13628,9 @@ input CreateGroupInput { campaignEditorIDs: [ID!] campaignBlockedGroupIDs: [ID!] campaignViewerIDs: [ID!] + audienceEditorIDs: [ID!] + audienceBlockedGroupIDs: [ID!] + audienceViewerIDs: [ID!] procedureEditorIDs: [ID!] procedureBlockedGroupIDs: [ID!] internalPolicyEditorIDs: [ID!] @@ -12713,6 +13657,7 @@ input CreateGroupInput { taskIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] } """ CreateGroupMembershipInput is used for create GroupMembership object. @@ -12918,6 +13863,7 @@ input CreateIdentityHolderInput { subcontrolIDs: [ID!] platformIDs: [ID!] campaignIDs: [ID!] + audienceMemberIDs: [ID!] taskIDs: [ID!] fileIDs: [ID!] findingIDs: [ID!] @@ -13552,6 +14498,8 @@ input CreateOrganizationInput { apiTokenCreatorIDs: [ID!] assessmentCreatorIDs: [ID!] assetCreatorIDs: [ID!] + audienceCreatorIDs: [ID!] + audienceMemberCreatorIDs: [ID!] campaignCreatorIDs: [ID!] campaignTargetCreatorIDs: [ID!] checkResultCreatorIDs: [ID!] @@ -13672,6 +14620,8 @@ input CreateOrganizationInput { slaDefinitionIDs: [ID!] subprocessorIDs: [ID!] exportIDs: [ID!] + audienceIDs: [ID!] + audienceMemberIDs: [ID!] trustCenterWatermarkConfigIDs: [ID!] impersonationEventIDs: [ID!] assessmentIDs: [ID!] @@ -15069,6 +16019,7 @@ input CreateSubscriberInput { campaignTargetIDs: [ID!] contactID: ID userID: ID + audienceMemberIDs: [ID!] } """ CreateSystemDetailInput is used for create SystemDetail object. @@ -15766,6 +16717,7 @@ input CreateUserInput { actionPlanIDs: [ID!] campaignIDs: [ID!] campaignTargetIDs: [ID!] + audienceMemberIDs: [ID!] subcontrolIDs: [ID!] assignerTaskIDs: [ID!] assigneeTaskIDs: [ID!] @@ -25929,6 +26881,8 @@ ExportExportType is enum for the field export_type enum ExportExportType @goModel(model: "github.com/theopenlane/core/common/enums.ExportType") { ASSESSMENT ASSET + AUDIENCE + AUDIENCE_MEMBER CAMPAIGN CHECK_RESULT CONTACT @@ -29942,6 +30896,99 @@ type Group implements Node { """ where: CampaignWhereInput ): CampaignConnection! + audienceEditors( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceBlockedGroups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceViewers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! procedureEditors( """ Returns the elements in the list that come after the specified cursor. @@ -30719,6 +31766,37 @@ type Group implements Node { """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! members( """ Returns the elements in the list that come after the specified cursor. @@ -31573,6 +32651,21 @@ input GroupWhereInput { hasCampaignViewers: Boolean hasCampaignViewersWith: [CampaignWhereInput!] """ + audience_editors edge predicates + """ + hasAudienceEditors: Boolean + hasAudienceEditorsWith: [AudienceWhereInput!] + """ + audience_blocked_groups edge predicates + """ + hasAudienceBlockedGroups: Boolean + hasAudienceBlockedGroupsWith: [AudienceWhereInput!] + """ + audience_viewers edge predicates + """ + hasAudienceViewers: Boolean + hasAudienceViewersWith: [AudienceWhereInput!] + """ procedure_editors edge predicates """ hasProcedureEditors: Boolean @@ -31708,6 +32801,11 @@ input GroupWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ members edge predicates """ hasMembers: Boolean @@ -32681,6 +33779,37 @@ type IdentityHolder implements Node @modules(names: ["compliance_module","regist """ where: CampaignWhereInput ): CampaignConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! tasks( """ Returns the elements in the list that come after the specified cursor. @@ -33487,6 +34616,11 @@ input IdentityHolderWhereInput { hasCampaigns: Boolean hasCampaignsWith: [CampaignWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ tasks edge predicates """ hasTasks: Boolean @@ -40363,6 +41497,68 @@ type Organization implements Node { """ where: GroupWhereInput ): GroupConnection! + audienceCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! + audienceMemberCreators( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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! campaignCreators( """ Returns the elements in the list that come after the specified cursor. @@ -43799,16 +44995,78 @@ type Organization implements Node { last: Int """ - Ordering options for CustomDomains returned from the connection. + Ordering options for CustomDomains returned from the connection. + """ + orderBy: [CustomDomainOrder!] + + """ + Filtering options for CustomDomains returned from the connection. + """ + where: CustomDomainWhereInput + ): CustomDomainConnection! + 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! + 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: [CustomDomainOrder!] + orderBy: [TrustCenterOrder!] """ - Filtering options for CustomDomains returned from the connection. + Filtering options for TrustCenters returned from the connection. """ - where: CustomDomainWhereInput - ): CustomDomainConnection! - dnsVerifications( + where: TrustCenterWhereInput + ): TrustCenterConnection! + assets( """ Returns the elements in the list that come after the specified cursor. """ @@ -43830,16 +45088,16 @@ type Organization implements Node { last: Int """ - Ordering options for DNSVerifications returned from the connection. + Ordering options for Assets returned from the connection. """ - orderBy: [DNSVerificationOrder!] + orderBy: [AssetOrder!] """ - Filtering options for DNSVerifications returned from the connection. + Filtering options for Assets returned from the connection. """ - where: DNSVerificationWhereInput - ): DNSVerificationConnection! - trustCenters( + where: AssetWhereInput + ): AssetConnection! + scans( """ Returns the elements in the list that come after the specified cursor. """ @@ -43861,16 +45119,16 @@ type Organization implements Node { last: Int """ - Ordering options for TrustCenters returned from the connection. + Ordering options for Scans returned from the connection. """ - orderBy: [TrustCenterOrder!] + orderBy: [ScanOrder!] """ - Filtering options for TrustCenters returned from the connection. + Filtering options for Scans returned from the connection. """ - where: TrustCenterWhereInput - ): TrustCenterConnection! - assets( + where: ScanWhereInput + ): ScanConnection! + slaDefinitions( """ Returns the elements in the list that come after the specified cursor. """ @@ -43892,16 +45150,16 @@ type Organization implements Node { last: Int """ - Ordering options for Assets returned from the connection. + Ordering options for SLADefinitions returned from the connection. """ - orderBy: [AssetOrder!] + orderBy: [SLADefinitionOrder!] """ - Filtering options for Assets returned from the connection. + Filtering options for SLADefinitions returned from the connection. """ - where: AssetWhereInput - ): AssetConnection! - scans( + where: SLADefinitionWhereInput + ): SLADefinitionConnection! + subprocessors( """ Returns the elements in the list that come after the specified cursor. """ @@ -43923,16 +45181,16 @@ type Organization implements Node { last: Int """ - Ordering options for Scans returned from the connection. + Ordering options for Subprocessors returned from the connection. """ - orderBy: [ScanOrder!] + orderBy: [SubprocessorOrder!] """ - Filtering options for Scans returned from the connection. + Filtering options for Subprocessors returned from the connection. """ - where: ScanWhereInput - ): ScanConnection! - slaDefinitions( + where: SubprocessorWhereInput + ): SubprocessorConnection! + exports( """ Returns the elements in the list that come after the specified cursor. """ @@ -43954,16 +45212,16 @@ type Organization implements Node { last: Int """ - Ordering options for SLADefinitions returned from the connection. + Ordering options for Exports returned from the connection. """ - orderBy: [SLADefinitionOrder!] + orderBy: [ExportOrder!] """ - Filtering options for SLADefinitions returned from the connection. + Filtering options for Exports returned from the connection. """ - where: SLADefinitionWhereInput - ): SLADefinitionConnection! - subprocessors( + where: ExportWhereInput + ): ExportConnection! + audiences( """ Returns the elements in the list that come after the specified cursor. """ @@ -43985,16 +45243,16 @@ type Organization implements Node { last: Int """ - Ordering options for Subprocessors returned from the connection. + Ordering options for Audiences returned from the connection. """ - orderBy: [SubprocessorOrder!] + orderBy: [AudienceOrder!] """ - Filtering options for Subprocessors returned from the connection. + Filtering options for Audiences returned from the connection. """ - where: SubprocessorWhereInput - ): SubprocessorConnection! - exports( + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( """ Returns the elements in the list that come after the specified cursor. """ @@ -44016,15 +45274,15 @@ type Organization implements Node { last: Int """ - Ordering options for Exports returned from the connection. + Ordering options for AudienceMembers returned from the connection. """ - orderBy: [ExportOrder!] + orderBy: [AudienceMemberOrder!] """ - Filtering options for Exports returned from the connection. + Filtering options for AudienceMembers returned from the connection. """ - where: ExportWhereInput - ): ExportConnection! + where: AudienceMemberWhereInput + ): AudienceMemberConnection! trustCenterWatermarkConfigs( """ Returns the elements in the list that come after the specified cursor. @@ -45625,6 +46883,16 @@ input OrganizationWhereInput { hasAssetCreators: Boolean hasAssetCreatorsWith: [GroupWhereInput!] """ + audience_creators edge predicates + """ + hasAudienceCreators: Boolean + hasAudienceCreatorsWith: [GroupWhereInput!] + """ + audience_member_creators edge predicates + """ + hasAudienceMemberCreators: Boolean + hasAudienceMemberCreatorsWith: [GroupWhereInput!] + """ campaign_creators edge predicates """ hasCampaignCreators: Boolean @@ -46235,6 +47503,16 @@ input OrganizationWhereInput { hasExports: Boolean hasExportsWith: [ExportWhereInput!] """ + audiences edge predicates + """ + hasAudiences: Boolean + hasAudiencesWith: [AudienceWhereInput!] + """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ trust_center_watermark_configs edge predicates """ hasTrustCenterWatermarkConfigs: Boolean @@ -51661,6 +52939,68 @@ type Query { """ where: AssetWhereInput ): AssetConnection! + audiences( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 Audiences returned from the connection. + """ + orderBy: [AudienceOrder!] + + """ + Filtering options for Audiences returned from the connection. + """ + where: AudienceWhereInput + ): AudienceConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! campaigns( """ Returns the elements in the list that come after the specified cursor. @@ -62388,6 +63728,37 @@ type Subscriber implements Node { ): CampaignTargetConnection! contact: Contact user: User + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! } """ A connection to a list of items. @@ -62664,6 +64035,11 @@ input SubscriberWhereInput { hasUser: Boolean hasUserWith: [UserWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ Filter for tagsHas to contain a specific value """ tagsHas: String @@ -70142,6 +71518,96 @@ input UpdateAssetInput { clearConnectedFrom: Boolean } """ +UpdateAudienceInput is used for update Audience object. +Input was generated by ent. +""" +input UpdateAudienceInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the audience + """ + name: String + """ + the description of the audience + """ + description: String + clearDescription: Boolean + """ + the audience resolution type + """ + audienceType: AudienceAudienceType + """ + selector filters for dynamic audiences + """ + filters: Map + clearFilters: Boolean + """ + additional metadata about the audience + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean + addCampaignIDs: [ID!] + removeCampaignIDs: [ID!] + clearCampaigns: Boolean +} +""" +UpdateAudienceMemberInput is used for update AudienceMember object. +Input was generated by ent. +""" +input UpdateAudienceMemberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the email address for this audience member + """ + email: String + """ + the name of this audience member, if known + """ + fullName: String + clearFullName: Boolean + """ + additional metadata about the audience member + """ + metadata: Map + clearMetadata: Boolean + ownerID: ID + clearOwner: Boolean + contactID: ID + clearContact: Boolean + userID: ID + clearUser: Boolean + groupID: ID + clearGroup: Boolean + identityHolderID: ID + clearIdentityHolder: Boolean + subscriberID: ID + clearSubscriber: Boolean +} +""" UpdateCampaignInput is used for update Campaign object. Input was generated by ent. """ @@ -70310,6 +71776,9 @@ input UpdateCampaignInput { addIdentityHolderIDs: [ID!] removeIdentityHolderIDs: [ID!] clearIdentityHolders: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean addControlIDs: [ID!] removeControlIDs: [ID!] clearControls: Boolean @@ -70493,6 +71962,9 @@ input UpdateContactInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addFileIDs: [ID!] removeFileIDs: [ID!] clearFiles: Boolean @@ -72972,6 +74444,15 @@ input UpdateGroupInput { addCampaignViewerIDs: [ID!] removeCampaignViewerIDs: [ID!] clearCampaignViewers: Boolean + addAudienceEditorIDs: [ID!] + removeAudienceEditorIDs: [ID!] + clearAudienceEditors: Boolean + addAudienceBlockedGroupIDs: [ID!] + removeAudienceBlockedGroupIDs: [ID!] + clearAudienceBlockedGroups: Boolean + addAudienceViewerIDs: [ID!] + removeAudienceViewerIDs: [ID!] + clearAudienceViewers: Boolean addProcedureEditorIDs: [ID!] removeProcedureEditorIDs: [ID!] clearProcedureEditors: Boolean @@ -73048,6 +74529,9 @@ input UpdateGroupInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean } """ UpdateGroupMembershipInput is used for update GroupMembership object. @@ -73314,6 +74798,9 @@ input UpdateIdentityHolderInput { addCampaignIDs: [ID!] removeCampaignIDs: [ID!] clearCampaigns: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTaskIDs: [ID!] removeTaskIDs: [ID!] clearTasks: Boolean @@ -74087,6 +75574,12 @@ input UpdateOrganizationInput { addAssetCreatorIDs: [ID!] removeAssetCreatorIDs: [ID!] clearAssetCreators: Boolean + addAudienceCreatorIDs: [ID!] + removeAudienceCreatorIDs: [ID!] + clearAudienceCreators: Boolean + addAudienceMemberCreatorIDs: [ID!] + removeAudienceMemberCreatorIDs: [ID!] + clearAudienceMemberCreators: Boolean addCampaignCreatorIDs: [ID!] removeCampaignCreatorIDs: [ID!] clearCampaignCreators: Boolean @@ -74442,6 +75935,12 @@ input UpdateOrganizationInput { addExportIDs: [ID!] removeExportIDs: [ID!] clearExports: Boolean + addAudienceIDs: [ID!] + removeAudienceIDs: [ID!] + clearAudiences: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addTrustCenterWatermarkConfigIDs: [ID!] removeTrustCenterWatermarkConfigIDs: [ID!] clearTrustCenterWatermarkConfigs: Boolean @@ -76546,6 +78045,9 @@ input UpdateSubscriberInput { clearContact: Boolean userID: ID clearUser: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean } """ UpdateSystemDetailInput is used for update SystemDetail object. @@ -77510,6 +79012,9 @@ input UpdateUserInput { addCampaignTargetIDs: [ID!] removeCampaignTargetIDs: [ID!] clearCampaignTargets: Boolean + addAudienceMemberIDs: [ID!] + removeAudienceMemberIDs: [ID!] + clearAudienceMembers: Boolean addSubcontrolIDs: [ID!] removeSubcontrolIDs: [ID!] clearSubcontrols: Boolean @@ -78488,6 +79993,37 @@ type User implements Node { """ where: CampaignTargetWhereInput ): CampaignTargetConnection! + audienceMembers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMembers returned from the connection. + """ + orderBy: [AudienceMemberOrder!] + + """ + Filtering options for AudienceMembers returned from the connection. + """ + where: AudienceMemberWhereInput + ): AudienceMemberConnection! subcontrols( """ Returns the elements in the list that come after the specified cursor. @@ -79518,6 +81054,11 @@ input UserWhereInput { hasCampaignTargets: Boolean hasCampaignTargetsWith: [CampaignTargetWhereInput!] """ + audience_members edge predicates + """ + hasAudienceMembers: Boolean + hasAudienceMembersWith: [AudienceMemberWhereInput!] + """ subcontrols edge predicates """ hasSubcontrols: Boolean diff --git a/internal/graphapi/schema/search.graphql b/internal/graphapi/schema/search.graphql index be01d5152d..342581d82e 100644 --- a/internal/graphapi/schema/search.graphql +++ b/internal/graphapi/schema/search.graphql @@ -100,6 +100,56 @@ extend type Query{ last: Int ): AssetConnection """ + Search across Audience objects + """ + audienceSearch( + """ + Query string to search across objects + """ + query: String! + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + """ + Returns the first _n_ elements from the list. + """ + first: Int + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceConnection + """ + Search across AudienceMember objects + """ + audienceMemberSearch( + """ + Query string to search across objects + """ + query: String! + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + """ + Returns the first _n_ elements from the list. + """ + first: Int + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + """ + Returns the last _n_ elements from the list. + """ + last: Int + ): AudienceMemberConnection + """ Search across Campaign objects """ campaignSearch( @@ -988,6 +1038,8 @@ type SearchResults{ assessments: AssessmentConnection assessmentResponses: AssessmentResponseConnection assets: AssetConnection + audiences: AudienceConnection + audienceMembers: AudienceMemberConnection campaigns: CampaignConnection campaignTargets: CampaignTargetConnection contacts: ContactConnection diff --git a/internal/graphapi/schemahistory/ent.graphql b/internal/graphapi/schemahistory/ent.graphql index 4c41c366b9..0c90557948 100644 --- a/internal/graphapi/schemahistory/ent.graphql +++ b/internal/graphapi/schemahistory/ent.graphql @@ -2509,6 +2509,654 @@ input AssetHistoryWhereInput { observedAtIsNil: Boolean observedAtNotNil: Boolean } +type AudienceHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: AudienceHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the audience + """ + name: String! + """ + the description of the audience + """ + description: String + """ + the audience resolution type + """ + audienceType: AudienceHistoryAudienceType! + """ + selector filters for dynamic audiences + """ + filters: Map + """ + additional metadata about the audience + """ + metadata: Map +} +""" +AudienceHistoryAudienceType is enum for the field audience_type +""" +enum AudienceHistoryAudienceType @goModel(model: "github.com/theopenlane/core/common/enums.AudienceType") { + MANUAL + DYNAMIC +} +""" +A connection to a list of items. +""" +type AudienceHistoryConnection { + """ + A list of edges. + """ + edges: [AudienceHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceHistoryEdge { + """ + The item at the end of the edge. + """ + node: AudienceHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +AudienceHistoryOpType is enum for the field operation +""" +enum AudienceHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for AudienceHistory connections +""" +input AudienceHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceHistories. + """ + field: AudienceHistoryOrderField! +} +""" +Properties by which AudienceHistory connections can be ordered. +""" +enum AudienceHistoryOrderField { + history_time + created_at + updated_at + name + AUDIENCE_TYPE +} +""" +AudienceHistoryWhereInput is used for filtering AudienceHistory objects. +Input was generated by ent. +""" +input AudienceHistoryWhereInput { + not: AudienceHistoryWhereInput + and: [AudienceHistoryWhereInput!] + or: [AudienceHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceHistoryOpType + operationNEQ: AudienceHistoryOpType + operationIn: [AudienceHistoryOpType!] + operationNotIn: [AudienceHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + audience_type field predicates + """ + audienceType: AudienceHistoryAudienceType + audienceTypeNEQ: AudienceHistoryAudienceType + audienceTypeIn: [AudienceHistoryAudienceType!] + audienceTypeNotIn: [AudienceHistoryAudienceType!] +} +type AudienceMemberHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: AudienceMemberHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + the real user acting through an impersonation session when the record was last mutated, if any + """ + updatedByImpersonator: String + """ + a shortened prefixed id field to use as a human readable identifier + """ + displayID: String! + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the audience this member belongs to + """ + audienceID: String! + """ + the contact associated with this audience member + """ + contactID: String + """ + the user associated with this audience member + """ + userID: String + """ + the group associated with this audience member + """ + groupID: String + """ + the identity holder associated with this audience member + """ + identityHolderID: String + """ + the subscriber associated with this audience member + """ + subscriberID: String + """ + the email address for this audience member + """ + email: String! + """ + the name of this audience member, if known + """ + fullName: String + """ + additional metadata about the audience member + """ + metadata: Map +} +""" +A connection to a list of items. +""" +type AudienceMemberHistoryConnection { + """ + A list of edges. + """ + edges: [AudienceMemberHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AudienceMemberHistoryEdge { + """ + The item at the end of the edge. + """ + node: AudienceMemberHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +AudienceMemberHistoryOpType is enum for the field operation +""" +enum AudienceMemberHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for AudienceMemberHistory connections +""" +input AudienceMemberHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order AudienceMemberHistories. + """ + field: AudienceMemberHistoryOrderField! +} +""" +Properties by which AudienceMemberHistory connections can be ordered. +""" +enum AudienceMemberHistoryOrderField { + history_time + created_at + updated_at + email + full_name +} +""" +AudienceMemberHistoryWhereInput is used for filtering AudienceMemberHistory objects. +Input was generated by ent. +""" +input AudienceMemberHistoryWhereInput { + not: AudienceMemberHistoryWhereInput + and: [AudienceMemberHistoryWhereInput!] + or: [AudienceMemberHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: AudienceMemberHistoryOpType + operationNEQ: AudienceMemberHistoryOpType + operationIn: [AudienceMemberHistoryOpType!] + operationNotIn: [AudienceMemberHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + updated_by_impersonator field predicates + """ + updatedByImpersonator: String + updatedByImpersonatorNEQ: String + updatedByImpersonatorIn: [String!] + updatedByImpersonatorNotIn: [String!] + updatedByImpersonatorContains: String + updatedByImpersonatorHasPrefix: String + updatedByImpersonatorHasSuffix: String + updatedByImpersonatorIsNil: Boolean + updatedByImpersonatorNotNil: Boolean + updatedByImpersonatorEqualFold: String + updatedByImpersonatorContainsFold: String + """ + display_id field predicates + """ + displayID: String + displayIDNEQ: String + displayIDIn: [String!] + displayIDNotIn: [String!] + displayIDContains: String + displayIDHasPrefix: String + displayIDHasSuffix: String + displayIDEqualFold: String + displayIDContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + audience_id field predicates + """ + audienceID: String + audienceIDNEQ: String + audienceIDIn: [String!] + audienceIDNotIn: [String!] + audienceIDContains: String + audienceIDHasPrefix: String + audienceIDHasSuffix: String + audienceIDEqualFold: String + audienceIDContainsFold: String + """ + contact_id field predicates + """ + contactID: String + contactIDNEQ: String + contactIDIn: [String!] + contactIDNotIn: [String!] + contactIDContains: String + contactIDHasPrefix: String + contactIDHasSuffix: String + contactIDIsNil: Boolean + contactIDNotNil: Boolean + contactIDEqualFold: String + contactIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String + """ + identity_holder_id field predicates + """ + identityHolderID: String + identityHolderIDNEQ: String + identityHolderIDIn: [String!] + identityHolderIDNotIn: [String!] + identityHolderIDContains: String + identityHolderIDHasPrefix: String + identityHolderIDHasSuffix: String + identityHolderIDIsNil: Boolean + identityHolderIDNotNil: Boolean + identityHolderIDEqualFold: String + identityHolderIDContainsFold: String + """ + subscriber_id field predicates + """ + subscriberID: String + subscriberIDNEQ: String + subscriberIDIn: [String!] + subscriberIDNotIn: [String!] + subscriberIDContains: String + subscriberIDHasPrefix: String + subscriberIDHasSuffix: String + subscriberIDIsNil: Boolean + subscriberIDNotNil: Boolean + subscriberIDEqualFold: String + subscriberIDContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameIsNil: Boolean + fullNameNotNil: Boolean + fullNameEqualFold: String + fullNameContainsFold: String +} type CampaignHistory implements Node { id: ID! historyTime: Time! @@ -19774,6 +20422,68 @@ type Query { """ where: AssetHistoryWhereInput ): AssetHistoryConnection! + audienceHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceHistories returned from the connection. + """ + orderBy: AudienceHistoryOrder + + """ + Filtering options for AudienceHistories returned from the connection. + """ + where: AudienceHistoryWhereInput + ): AudienceHistoryConnection! + audienceMemberHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + 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 AudienceMemberHistories returned from the connection. + """ + orderBy: AudienceMemberHistoryOrder + + """ + Filtering options for AudienceMemberHistories returned from the connection. + """ + where: AudienceMemberHistoryWhereInput + ): AudienceMemberHistoryConnection! campaignHistories( """ Returns the elements in the list that come after the specified cursor. diff --git a/internal/graphapi/search.go b/internal/graphapi/search.go index 15909aa01e..46cefb170f 100644 --- a/internal/graphapi/search.go +++ b/internal/graphapi/search.go @@ -13,6 +13,8 @@ import ( "github.com/theopenlane/core/v2/internal/ent/generated/assessment" "github.com/theopenlane/core/v2/internal/ent/generated/assessmentresponse" "github.com/theopenlane/core/v2/internal/ent/generated/asset" + "github.com/theopenlane/core/v2/internal/ent/generated/audience" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" "github.com/theopenlane/core/v2/internal/ent/generated/campaign" "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/contact" @@ -123,6 +125,42 @@ func searchAssets(ctx context.Context, query string, after *entgql.Cursor[string return request.Paginate(ctx, after, first, before, last) } +// searchAudience searches for Audience based on the query string looking for matches +func searchAudiences(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceConnection, error) { + request := withTransactionalMutation(ctx).Audience.Query(). + Where( + audience.Or( + audience.DisplayID(query), // search equal to DisplayID + audience.ID(query), // search equal to ID + audience.NameContainsFold(query), // search by Name + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $4", likeQuery)) // search by Tags + }, + ), + ) + + return request.Paginate(ctx, after, first, before, last) +} + +// searchAudienceMember searches for AudienceMember based on the query string looking for matches +func searchAudienceMembers(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceMemberConnection, error) { + request := withTransactionalMutation(ctx).AudienceMember.Query(). + Where( + audiencemember.Or( + audiencemember.DisplayID(query), // search equal to DisplayID + audiencemember.EmailContainsFold(query), // search by Email + audiencemember.ID(query), // search equal to ID + func(s *sql.Selector) { + likeQuery := "%" + query + "%" + s.Where(sql.ExprP("(tags)::text LIKE $4", likeQuery)) // search by Tags + }, + ), + ) + + return request.Paginate(ctx, after, first, before, last) +} + // searchCampaign searches for Campaign based on the query string looking for matches func searchCampaigns(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.CampaignConnection, error) { request := withTransactionalMutation(ctx).Campaign.Query(). diff --git a/internal/graphapi/search.resolvers.go b/internal/graphapi/search.resolvers.go index d286e31ca9..9483451798 100644 --- a/internal/graphapi/search.resolvers.go +++ b/internal/graphapi/search.resolvers.go @@ -27,6 +27,8 @@ func (r *queryResolver) Search(ctx context.Context, query string, after *entgql. assessmentResults *generated.AssessmentConnection assessmentresponseResults *generated.AssessmentResponseConnection assetResults *generated.AssetConnection + audienceResults *generated.AudienceConnection + audiencememberResults *generated.AudienceMemberConnection campaignResults *generated.CampaignConnection campaigntargetResults *generated.CampaignTargetConnection contactResults *generated.ContactConnection @@ -117,6 +119,30 @@ func (r *queryResolver) Search(ctx context.Context, query string, after *entgql. highlightSearchContext(ctx, query, assetResults, highlightTracker) } }, + func() { + var err error + audienceResults, err = searchAudiences(ctx, query, after, first, before, last) + // ignore not found errors + if err != nil && !generated.IsNotFound(err) { + errors = append(errors, err) + } + + if hasSearchContext { + highlightSearchContext(ctx, query, audienceResults, highlightTracker) + } + }, + func() { + var err error + audiencememberResults, err = searchAudienceMembers(ctx, query, after, first, before, last) + // ignore not found errors + if err != nil && !generated.IsNotFound(err) { + errors = append(errors, err) + } + + if hasSearchContext { + highlightSearchContext(ctx, query, audiencememberResults, highlightTracker) + } + }, func() { var err error campaignResults, err = searchCampaigns(ctx, query, after, first, before, last) @@ -571,6 +597,16 @@ func (r *queryResolver) Search(ctx context.Context, query string, after *entgql. res.TotalCount += assetResults.TotalCount } + if audienceResults != nil && len(audienceResults.Edges) > 0 { + res.Audiences = audienceResults + + res.TotalCount += audienceResults.TotalCount + } + if audiencememberResults != nil && len(audiencememberResults.Edges) > 0 { + res.AudienceMembers = audiencememberResults + + res.TotalCount += audiencememberResults.TotalCount + } if campaignResults != nil && len(campaignResults.Edges) > 0 { res.Campaigns = campaignResults @@ -789,6 +825,26 @@ func (r *queryResolver) AssetSearch(ctx context.Context, query string, after *en // return the results return assetResults, nil } +func (r *queryResolver) AudienceSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceConnection, error) { + audienceResults, err := searchAudiences(ctx, query, after, first, before, last) + + if err != nil { + return nil, common.ErrSearchFailed + } + + // return the results + return audienceResults, nil +} +func (r *queryResolver) AudienceMemberSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.AudienceMemberConnection, error) { + audiencememberResults, err := searchAudienceMembers(ctx, query, after, first, before, last) + + if err != nil { + return nil, common.ErrSearchFailed + } + + // return the results + return audiencememberResults, nil +} func (r *queryResolver) CampaignSearch(ctx context.Context, query string, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int) (*generated.CampaignConnection, error) { campaignResults, err := searchCampaigns(ctx, query, after, first, before, last) diff --git a/internal/graphapi/testclient/checksum/.client_checksum b/internal/graphapi/testclient/checksum/.client_checksum index 1b38ccabe3..edc1a43351 100644 --- a/internal/graphapi/testclient/checksum/.client_checksum +++ b/internal/graphapi/testclient/checksum/.client_checksum @@ -1 +1 @@ -0960998afa441541c77aa5d6e4ab9b547b06905f57c85279753e00ca982c347e \ No newline at end of file +11d440e27c019f72aebd24b175306adaed1d7066674508f2102953be70556d43 \ No newline at end of file diff --git a/internal/graphapi/testclient/graphclient.go b/internal/graphapi/testclient/graphclient.go index cee7019930..71bfe21645 100644 --- a/internal/graphapi/testclient/graphclient.go +++ b/internal/graphapi/testclient/graphclient.go @@ -52,6 +52,28 @@ type TestGraphClient interface { UpdateAsset(ctx context.Context, updateAssetID string, input UpdateAssetInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAsset, error) UpdateBulkAsset(ctx context.Context, ids []string, input UpdateAssetInput, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkAsset, error) UpdateBulkCSVAsset(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkCSVAsset, error) + CreateAudience(ctx context.Context, input CreateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*CreateAudience, error) + CreateBulkAudience(ctx context.Context, input []*CreateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkAudience, error) + CreateBulkCSVAudience(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVAudience, error) + DeleteAudience(ctx context.Context, deleteAudienceID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAudience, error) + DeleteBulkAudience(ctx context.Context, ids []string, interceptors ...clientv2.RequestInterceptor) (*DeleteBulkAudience, error) + GetAllAudiences(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceOrder, interceptors ...clientv2.RequestInterceptor) (*GetAllAudiences, error) + GetAudienceByID(ctx context.Context, audienceID string, interceptors ...clientv2.RequestInterceptor) (*GetAudienceByID, error) + GetAudiences(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceOrder, where *AudienceWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetAudiences, error) + UpdateAudience(ctx context.Context, updateAudienceID string, input UpdateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAudience, error) + UpdateBulkAudience(ctx context.Context, ids []string, input UpdateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkAudience, error) + UpdateBulkCSVAudience(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkCSVAudience, error) + CreateAudienceMember(ctx context.Context, input CreateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*CreateAudienceMember, error) + CreateBulkAudienceMember(ctx context.Context, input []*CreateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkAudienceMember, error) + CreateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVAudienceMember, error) + DeleteAudienceMember(ctx context.Context, deleteAudienceMemberID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAudienceMember, error) + DeleteBulkAudienceMember(ctx context.Context, ids []string, interceptors ...clientv2.RequestInterceptor) (*DeleteBulkAudienceMember, error) + GetAllAudienceMembers(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceMemberOrder, interceptors ...clientv2.RequestInterceptor) (*GetAllAudienceMembers, error) + GetAudienceMemberByID(ctx context.Context, audienceMemberID string, interceptors ...clientv2.RequestInterceptor) (*GetAudienceMemberByID, error) + GetAudienceMembers(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetAudienceMembers, error) + UpdateAudienceMember(ctx context.Context, updateAudienceMemberID string, input UpdateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAudienceMember, error) + UpdateBulkAudienceMember(ctx context.Context, ids []string, input UpdateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkAudienceMember, error) + UpdateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkCSVAudienceMember, error) CreateBulkCSVCampaign(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVCampaign, error) CreateBulkCampaign(ctx context.Context, input []*CreateCampaignInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCampaign, error) CreateCampaign(ctx context.Context, input CreateCampaignInput, interceptors ...clientv2.RequestInterceptor) (*CreateCampaign, error) @@ -9099,6 +9121,2570 @@ func (t *UpdateBulkCSVAsset_UpdateBulkCSVAsset) GetUpdatedIDs() []string { return t.UpdatedIDs } +type CreateAudience_CreateAudience_Audience struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *CreateAudience_CreateAudience_Audience) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return &t.AudienceType +} +func (t *CreateAudience_CreateAudience_Audience) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.CreatedAt +} +func (t *CreateAudience_CreateAudience_Audience) GetCreatedBy() *string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.CreatedBy +} +func (t *CreateAudience_CreateAudience_Audience) GetDescription() *string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.Description +} +func (t *CreateAudience_CreateAudience_Audience) GetDisplayID() string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.DisplayID +} +func (t *CreateAudience_CreateAudience_Audience) GetFilters() map[string]any { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.Filters +} +func (t *CreateAudience_CreateAudience_Audience) GetID() string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.ID +} +func (t *CreateAudience_CreateAudience_Audience) GetMetadata() map[string]any { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.Metadata +} +func (t *CreateAudience_CreateAudience_Audience) GetName() string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.Name +} +func (t *CreateAudience_CreateAudience_Audience) GetOwnerID() *string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.OwnerID +} +func (t *CreateAudience_CreateAudience_Audience) GetTags() []string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.Tags +} +func (t *CreateAudience_CreateAudience_Audience) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.UpdatedAt +} +func (t *CreateAudience_CreateAudience_Audience) GetUpdatedBy() *string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.UpdatedBy +} +func (t *CreateAudience_CreateAudience_Audience) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateAudience_CreateAudience_Audience{} + } + return t.UpdatedByImpersonator +} + +type CreateAudience_CreateAudience struct { + Audience CreateAudience_CreateAudience_Audience "json:\"audience\" graphql:\"audience\"" +} + +func (t *CreateAudience_CreateAudience) GetAudience() *CreateAudience_CreateAudience_Audience { + if t == nil { + t = &CreateAudience_CreateAudience{} + } + return &t.Audience +} + +type CreateBulkAudience_CreateBulkAudience_Audiences struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return &t.AudienceType +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.CreatedAt +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.CreatedBy +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetDescription() *string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.Description +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetDisplayID() string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.DisplayID +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetFilters() map[string]any { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.Filters +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetID() string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.ID +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetMetadata() map[string]any { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.Metadata +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetName() string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.Name +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetOwnerID() *string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.OwnerID +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetTags() []string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.Tags +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.UpdatedAt +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.UpdatedBy +} +func (t *CreateBulkAudience_CreateBulkAudience_Audiences) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience_Audiences{} + } + return t.UpdatedByImpersonator +} + +type CreateBulkAudience_CreateBulkAudience struct { + Audiences []*CreateBulkAudience_CreateBulkAudience_Audiences "json:\"audiences,omitempty\" graphql:\"audiences\"" +} + +func (t *CreateBulkAudience_CreateBulkAudience) GetAudiences() []*CreateBulkAudience_CreateBulkAudience_Audiences { + if t == nil { + t = &CreateBulkAudience_CreateBulkAudience{} + } + return t.Audiences +} + +type CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return &t.AudienceType +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.CreatedAt +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.CreatedBy +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetDescription() *string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.Description +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetDisplayID() string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.DisplayID +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetFilters() map[string]any { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.Filters +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetID() string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.ID +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetMetadata() map[string]any { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.Metadata +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetName() string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.Name +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetOwnerID() *string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.OwnerID +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetTags() []string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.Tags +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.UpdatedAt +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.UpdatedBy +} +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences{} + } + return t.UpdatedByImpersonator +} + +type CreateBulkCSVAudience_CreateBulkCSVAudience struct { + Audiences []*CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences "json:\"audiences,omitempty\" graphql:\"audiences\"" +} + +func (t *CreateBulkCSVAudience_CreateBulkCSVAudience) GetAudiences() []*CreateBulkCSVAudience_CreateBulkCSVAudience_Audiences { + if t == nil { + t = &CreateBulkCSVAudience_CreateBulkCSVAudience{} + } + return t.Audiences +} + +type DeleteAudience_DeleteAudience struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteAudience_DeleteAudience) GetDeletedID() string { + if t == nil { + t = &DeleteAudience_DeleteAudience{} + } + return t.DeletedID +} + +type DeleteBulkAudience_DeleteBulkAudience struct { + DeletedIDs []string "json:\"deletedIDs\" graphql:\"deletedIDs\"" +} + +func (t *DeleteBulkAudience_DeleteBulkAudience) GetDeletedIDs() []string { + if t == nil { + t = &DeleteBulkAudience_DeleteBulkAudience{} + } + return t.DeletedIDs +} + +type GetAllAudiences_Audiences_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GetAllAudiences_Audiences_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GetAllAudiences_Audiences_PageInfo{} + } + return t.EndCursor +} +func (t *GetAllAudiences_Audiences_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GetAllAudiences_Audiences_PageInfo{} + } + return t.HasNextPage +} +func (t *GetAllAudiences_Audiences_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GetAllAudiences_Audiences_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GetAllAudiences_Audiences_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GetAllAudiences_Audiences_PageInfo{} + } + return t.StartCursor +} + +type GetAllAudiences_Audiences_Edges_Node struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *GetAllAudiences_Audiences_Edges_Node) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return &t.AudienceType +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.Description +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.DisplayID +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetFilters() map[string]any { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.Filters +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetID() string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.ID +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetMetadata() map[string]any { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.Metadata +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetName() string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.Name +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.Tags +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllAudiences_Audiences_Edges_Node) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAllAudiences_Audiences_Edges_Node{} + } + return t.UpdatedByImpersonator +} + +type GetAllAudiences_Audiences_Edges struct { + Node *GetAllAudiences_Audiences_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllAudiences_Audiences_Edges) GetNode() *GetAllAudiences_Audiences_Edges_Node { + if t == nil { + t = &GetAllAudiences_Audiences_Edges{} + } + return t.Node +} + +type GetAllAudiences_Audiences struct { + Edges []*GetAllAudiences_Audiences_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GetAllAudiences_Audiences_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GetAllAudiences_Audiences) GetEdges() []*GetAllAudiences_Audiences_Edges { + if t == nil { + t = &GetAllAudiences_Audiences{} + } + return t.Edges +} +func (t *GetAllAudiences_Audiences) GetPageInfo() *GetAllAudiences_Audiences_PageInfo { + if t == nil { + t = &GetAllAudiences_Audiences{} + } + return &t.PageInfo +} +func (t *GetAllAudiences_Audiences) GetTotalCount() int64 { + if t == nil { + t = &GetAllAudiences_Audiences{} + } + return t.TotalCount +} + +type GetAudienceByID_Audience struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *GetAudienceByID_Audience) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return &t.AudienceType +} +func (t *GetAudienceByID_Audience) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.CreatedAt +} +func (t *GetAudienceByID_Audience) GetCreatedBy() *string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.CreatedBy +} +func (t *GetAudienceByID_Audience) GetDescription() *string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.Description +} +func (t *GetAudienceByID_Audience) GetDisplayID() string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.DisplayID +} +func (t *GetAudienceByID_Audience) GetFilters() map[string]any { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.Filters +} +func (t *GetAudienceByID_Audience) GetID() string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.ID +} +func (t *GetAudienceByID_Audience) GetMetadata() map[string]any { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.Metadata +} +func (t *GetAudienceByID_Audience) GetName() string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.Name +} +func (t *GetAudienceByID_Audience) GetOwnerID() *string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.OwnerID +} +func (t *GetAudienceByID_Audience) GetTags() []string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.Tags +} +func (t *GetAudienceByID_Audience) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.UpdatedAt +} +func (t *GetAudienceByID_Audience) GetUpdatedBy() *string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.UpdatedBy +} +func (t *GetAudienceByID_Audience) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAudienceByID_Audience{} + } + return t.UpdatedByImpersonator +} + +type GetAudiences_Audiences_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GetAudiences_Audiences_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GetAudiences_Audiences_PageInfo{} + } + return t.EndCursor +} +func (t *GetAudiences_Audiences_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GetAudiences_Audiences_PageInfo{} + } + return t.HasNextPage +} +func (t *GetAudiences_Audiences_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GetAudiences_Audiences_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GetAudiences_Audiences_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GetAudiences_Audiences_PageInfo{} + } + return t.StartCursor +} + +type GetAudiences_Audiences_Edges_Node struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *GetAudiences_Audiences_Edges_Node) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return &t.AudienceType +} +func (t *GetAudiences_Audiences_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAudiences_Audiences_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAudiences_Audiences_Edges_Node) GetDescription() *string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.Description +} +func (t *GetAudiences_Audiences_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.DisplayID +} +func (t *GetAudiences_Audiences_Edges_Node) GetFilters() map[string]any { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.Filters +} +func (t *GetAudiences_Audiences_Edges_Node) GetID() string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.ID +} +func (t *GetAudiences_Audiences_Edges_Node) GetMetadata() map[string]any { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.Metadata +} +func (t *GetAudiences_Audiences_Edges_Node) GetName() string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.Name +} +func (t *GetAudiences_Audiences_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAudiences_Audiences_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.Tags +} +func (t *GetAudiences_Audiences_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAudiences_Audiences_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAudiences_Audiences_Edges_Node) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAudiences_Audiences_Edges_Node{} + } + return t.UpdatedByImpersonator +} + +type GetAudiences_Audiences_Edges struct { + Node *GetAudiences_Audiences_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAudiences_Audiences_Edges) GetNode() *GetAudiences_Audiences_Edges_Node { + if t == nil { + t = &GetAudiences_Audiences_Edges{} + } + return t.Node +} + +type GetAudiences_Audiences struct { + Edges []*GetAudiences_Audiences_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GetAudiences_Audiences_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GetAudiences_Audiences) GetEdges() []*GetAudiences_Audiences_Edges { + if t == nil { + t = &GetAudiences_Audiences{} + } + return t.Edges +} +func (t *GetAudiences_Audiences) GetPageInfo() *GetAudiences_Audiences_PageInfo { + if t == nil { + t = &GetAudiences_Audiences{} + } + return &t.PageInfo +} +func (t *GetAudiences_Audiences) GetTotalCount() int64 { + if t == nil { + t = &GetAudiences_Audiences{} + } + return t.TotalCount +} + +type UpdateAudience_UpdateAudience_Audience struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *UpdateAudience_UpdateAudience_Audience) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return &t.AudienceType +} +func (t *UpdateAudience_UpdateAudience_Audience) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.CreatedAt +} +func (t *UpdateAudience_UpdateAudience_Audience) GetCreatedBy() *string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.CreatedBy +} +func (t *UpdateAudience_UpdateAudience_Audience) GetDescription() *string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.Description +} +func (t *UpdateAudience_UpdateAudience_Audience) GetDisplayID() string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.DisplayID +} +func (t *UpdateAudience_UpdateAudience_Audience) GetFilters() map[string]any { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.Filters +} +func (t *UpdateAudience_UpdateAudience_Audience) GetID() string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.ID +} +func (t *UpdateAudience_UpdateAudience_Audience) GetMetadata() map[string]any { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.Metadata +} +func (t *UpdateAudience_UpdateAudience_Audience) GetName() string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.Name +} +func (t *UpdateAudience_UpdateAudience_Audience) GetOwnerID() *string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.OwnerID +} +func (t *UpdateAudience_UpdateAudience_Audience) GetTags() []string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.Tags +} +func (t *UpdateAudience_UpdateAudience_Audience) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.UpdatedAt +} +func (t *UpdateAudience_UpdateAudience_Audience) GetUpdatedBy() *string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.UpdatedBy +} +func (t *UpdateAudience_UpdateAudience_Audience) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateAudience_UpdateAudience_Audience{} + } + return t.UpdatedByImpersonator +} + +type UpdateAudience_UpdateAudience struct { + Audience UpdateAudience_UpdateAudience_Audience "json:\"audience\" graphql:\"audience\"" +} + +func (t *UpdateAudience_UpdateAudience) GetAudience() *UpdateAudience_UpdateAudience_Audience { + if t == nil { + t = &UpdateAudience_UpdateAudience{} + } + return &t.Audience +} + +type UpdateBulkAudience_UpdateBulkAudience_Audiences struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return &t.AudienceType +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.CreatedAt +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetCreatedBy() *string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.CreatedBy +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetDescription() *string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.Description +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetDisplayID() string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.DisplayID +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetFilters() map[string]any { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.Filters +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetID() string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.ID +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetMetadata() map[string]any { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.Metadata +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetName() string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.Name +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetOwnerID() *string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.OwnerID +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetTags() []string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.Tags +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.UpdatedAt +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetUpdatedBy() *string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.UpdatedBy +} +func (t *UpdateBulkAudience_UpdateBulkAudience_Audiences) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience_Audiences{} + } + return t.UpdatedByImpersonator +} + +type UpdateBulkAudience_UpdateBulkAudience struct { + Audiences []*UpdateBulkAudience_UpdateBulkAudience_Audiences "json:\"audiences,omitempty\" graphql:\"audiences\"" + UpdatedIDs []string "json:\"updatedIDs,omitempty\" graphql:\"updatedIDs\"" +} + +func (t *UpdateBulkAudience_UpdateBulkAudience) GetAudiences() []*UpdateBulkAudience_UpdateBulkAudience_Audiences { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience{} + } + return t.Audiences +} +func (t *UpdateBulkAudience_UpdateBulkAudience) GetUpdatedIDs() []string { + if t == nil { + t = &UpdateBulkAudience_UpdateBulkAudience{} + } + return t.UpdatedIDs +} + +type UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences struct { + AudienceType enums.AudienceType "json:\"audienceType\" graphql:\"audienceType\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + Description *string "json:\"description,omitempty\" graphql:\"description\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Filters map[string]any "json:\"filters,omitempty\" graphql:\"filters\"" + ID string "json:\"id\" graphql:\"id\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + Name string "json:\"name\" graphql:\"name\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" +} + +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetAudienceType() *enums.AudienceType { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return &t.AudienceType +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.CreatedAt +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetCreatedBy() *string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.CreatedBy +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetDescription() *string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.Description +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetDisplayID() string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.DisplayID +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetFilters() map[string]any { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.Filters +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetID() string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.ID +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetMetadata() map[string]any { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.Metadata +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetName() string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.Name +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetOwnerID() *string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.OwnerID +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetTags() []string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.Tags +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.UpdatedAt +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetUpdatedBy() *string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.UpdatedBy +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences{} + } + return t.UpdatedByImpersonator +} + +type UpdateBulkCSVAudience_UpdateBulkCSVAudience struct { + Audiences []*UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences "json:\"audiences,omitempty\" graphql:\"audiences\"" + UpdatedIDs []string "json:\"updatedIDs,omitempty\" graphql:\"updatedIDs\"" +} + +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience) GetAudiences() []*UpdateBulkCSVAudience_UpdateBulkCSVAudience_Audiences { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience{} + } + return t.Audiences +} +func (t *UpdateBulkCSVAudience_UpdateBulkCSVAudience) GetUpdatedIDs() []string { + if t == nil { + t = &UpdateBulkCSVAudience_UpdateBulkCSVAudience{} + } + return t.UpdatedIDs +} + +type CreateAudienceMember_CreateAudienceMember_AudienceMember struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetAudienceID() string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.AudienceID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetContactID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.ContactID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.CreatedAt +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetCreatedBy() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.CreatedBy +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetDisplayID() string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.DisplayID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetEmail() string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.Email +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetFullName() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.FullName +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetGroupID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.GroupID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetID() string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.ID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetIdentityHolderID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.IdentityHolderID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetMetadata() map[string]any { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.Metadata +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetOwnerID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.OwnerID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetSubscriberID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.SubscriberID +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetTags() []string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.Tags +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.UpdatedAt +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetUpdatedBy() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.UpdatedBy +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.UpdatedByImpersonator +} +func (t *CreateAudienceMember_CreateAudienceMember_AudienceMember) GetUserID() *string { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember_AudienceMember{} + } + return t.UserID +} + +type CreateAudienceMember_CreateAudienceMember struct { + AudienceMember CreateAudienceMember_CreateAudienceMember_AudienceMember "json:\"audienceMember\" graphql:\"audienceMember\"" +} + +func (t *CreateAudienceMember_CreateAudienceMember) GetAudienceMember() *CreateAudienceMember_CreateAudienceMember_AudienceMember { + if t == nil { + t = &CreateAudienceMember_CreateAudienceMember{} + } + return &t.AudienceMember +} + +type CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetAudienceID() string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.AudienceID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetContactID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.ContactID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.CreatedAt +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.CreatedBy +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetDisplayID() string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.DisplayID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetEmail() string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.Email +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetFullName() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.FullName +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetGroupID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.GroupID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetID() string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.ID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetIdentityHolderID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.IdentityHolderID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetMetadata() map[string]any { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.Metadata +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetOwnerID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.OwnerID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetSubscriberID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.SubscriberID +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetTags() []string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.Tags +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedAt +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedBy +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedByImpersonator +} +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers) GetUserID() *string { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers{} + } + return t.UserID +} + +type CreateBulkAudienceMember_CreateBulkAudienceMember struct { + AudienceMembers []*CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers "json:\"audienceMembers,omitempty\" graphql:\"audienceMembers\"" +} + +func (t *CreateBulkAudienceMember_CreateBulkAudienceMember) GetAudienceMembers() []*CreateBulkAudienceMember_CreateBulkAudienceMember_AudienceMembers { + if t == nil { + t = &CreateBulkAudienceMember_CreateBulkAudienceMember{} + } + return t.AudienceMembers +} + +type CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetAudienceID() string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.AudienceID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetContactID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.ContactID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetCreatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.CreatedAt +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetCreatedBy() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.CreatedBy +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetDisplayID() string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.DisplayID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetEmail() string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Email +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetFullName() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.FullName +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetGroupID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.GroupID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetID() string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.ID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetIdentityHolderID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.IdentityHolderID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetMetadata() map[string]any { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Metadata +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetOwnerID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.OwnerID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetSubscriberID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.SubscriberID +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetTags() []string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Tags +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetUpdatedAt() *time.Time { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedAt +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetUpdatedBy() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedBy +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetUpdatedByImpersonator() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedByImpersonator +} +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers) GetUserID() *string { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UserID +} + +type CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember struct { + AudienceMembers []*CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers "json:\"audienceMembers,omitempty\" graphql:\"audienceMembers\"" +} + +func (t *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember) GetAudienceMembers() []*CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember_AudienceMembers { + if t == nil { + t = &CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember{} + } + return t.AudienceMembers +} + +type DeleteAudienceMember_DeleteAudienceMember struct { + DeletedID string "json:\"deletedID\" graphql:\"deletedID\"" +} + +func (t *DeleteAudienceMember_DeleteAudienceMember) GetDeletedID() string { + if t == nil { + t = &DeleteAudienceMember_DeleteAudienceMember{} + } + return t.DeletedID +} + +type DeleteBulkAudienceMember_DeleteBulkAudienceMember struct { + DeletedIDs []string "json:\"deletedIDs\" graphql:\"deletedIDs\"" +} + +func (t *DeleteBulkAudienceMember_DeleteBulkAudienceMember) GetDeletedIDs() []string { + if t == nil { + t = &DeleteBulkAudienceMember_DeleteBulkAudienceMember{} + } + return t.DeletedIDs +} + +type GetAllAudienceMembers_AudienceMembers_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GetAllAudienceMembers_AudienceMembers_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_PageInfo{} + } + return t.EndCursor +} +func (t *GetAllAudienceMembers_AudienceMembers_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_PageInfo{} + } + return t.HasNextPage +} +func (t *GetAllAudienceMembers_AudienceMembers_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GetAllAudienceMembers_AudienceMembers_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_PageInfo{} + } + return t.StartCursor +} + +type GetAllAudienceMembers_AudienceMembers_Edges_Node struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetAudienceID() string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.AudienceID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetContactID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.ContactID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.DisplayID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetEmail() string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Email +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetFullName() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.FullName +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetGroupID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.GroupID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetID() string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.ID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetIdentityHolderID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.IdentityHolderID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetMetadata() map[string]any { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Metadata +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetSubscriberID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.SubscriberID +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Tags +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedByImpersonator +} +func (t *GetAllAudienceMembers_AudienceMembers_Edges_Node) GetUserID() *string { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UserID +} + +type GetAllAudienceMembers_AudienceMembers_Edges struct { + Node *GetAllAudienceMembers_AudienceMembers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllAudienceMembers_AudienceMembers_Edges) GetNode() *GetAllAudienceMembers_AudienceMembers_Edges_Node { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers_Edges{} + } + return t.Node +} + +type GetAllAudienceMembers_AudienceMembers struct { + Edges []*GetAllAudienceMembers_AudienceMembers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GetAllAudienceMembers_AudienceMembers_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GetAllAudienceMembers_AudienceMembers) GetEdges() []*GetAllAudienceMembers_AudienceMembers_Edges { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers{} + } + return t.Edges +} +func (t *GetAllAudienceMembers_AudienceMembers) GetPageInfo() *GetAllAudienceMembers_AudienceMembers_PageInfo { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers{} + } + return &t.PageInfo +} +func (t *GetAllAudienceMembers_AudienceMembers) GetTotalCount() int64 { + if t == nil { + t = &GetAllAudienceMembers_AudienceMembers{} + } + return t.TotalCount +} + +type GetAudienceMemberByID_AudienceMember struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *GetAudienceMemberByID_AudienceMember) GetAudienceID() string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.AudienceID +} +func (t *GetAudienceMemberByID_AudienceMember) GetContactID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.ContactID +} +func (t *GetAudienceMemberByID_AudienceMember) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.CreatedAt +} +func (t *GetAudienceMemberByID_AudienceMember) GetCreatedBy() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.CreatedBy +} +func (t *GetAudienceMemberByID_AudienceMember) GetDisplayID() string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.DisplayID +} +func (t *GetAudienceMemberByID_AudienceMember) GetEmail() string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.Email +} +func (t *GetAudienceMemberByID_AudienceMember) GetFullName() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.FullName +} +func (t *GetAudienceMemberByID_AudienceMember) GetGroupID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.GroupID +} +func (t *GetAudienceMemberByID_AudienceMember) GetID() string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.ID +} +func (t *GetAudienceMemberByID_AudienceMember) GetIdentityHolderID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.IdentityHolderID +} +func (t *GetAudienceMemberByID_AudienceMember) GetMetadata() map[string]any { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.Metadata +} +func (t *GetAudienceMemberByID_AudienceMember) GetOwnerID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.OwnerID +} +func (t *GetAudienceMemberByID_AudienceMember) GetSubscriberID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.SubscriberID +} +func (t *GetAudienceMemberByID_AudienceMember) GetTags() []string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.Tags +} +func (t *GetAudienceMemberByID_AudienceMember) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.UpdatedAt +} +func (t *GetAudienceMemberByID_AudienceMember) GetUpdatedBy() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.UpdatedBy +} +func (t *GetAudienceMemberByID_AudienceMember) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.UpdatedByImpersonator +} +func (t *GetAudienceMemberByID_AudienceMember) GetUserID() *string { + if t == nil { + t = &GetAudienceMemberByID_AudienceMember{} + } + return t.UserID +} + +type GetAudienceMembers_AudienceMembers_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GetAudienceMembers_AudienceMembers_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_PageInfo{} + } + return t.EndCursor +} +func (t *GetAudienceMembers_AudienceMembers_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_PageInfo{} + } + return t.HasNextPage +} +func (t *GetAudienceMembers_AudienceMembers_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GetAudienceMembers_AudienceMembers_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_PageInfo{} + } + return t.StartCursor +} + +type GetAudienceMembers_AudienceMembers_Edges_Node struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetAudienceID() string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.AudienceID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetContactID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.ContactID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetCreatedAt() *time.Time { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.CreatedAt +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetCreatedBy() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.CreatedBy +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.DisplayID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetEmail() string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Email +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetFullName() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.FullName +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetGroupID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.GroupID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetID() string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.ID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetIdentityHolderID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.IdentityHolderID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetMetadata() map[string]any { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Metadata +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetOwnerID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.OwnerID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetSubscriberID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.SubscriberID +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetTags() []string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.Tags +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedAt() *time.Time { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedAt +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedBy() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedBy +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetUpdatedByImpersonator() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UpdatedByImpersonator +} +func (t *GetAudienceMembers_AudienceMembers_Edges_Node) GetUserID() *string { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges_Node{} + } + return t.UserID +} + +type GetAudienceMembers_AudienceMembers_Edges struct { + Node *GetAudienceMembers_AudienceMembers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAudienceMembers_AudienceMembers_Edges) GetNode() *GetAudienceMembers_AudienceMembers_Edges_Node { + if t == nil { + t = &GetAudienceMembers_AudienceMembers_Edges{} + } + return t.Node +} + +type GetAudienceMembers_AudienceMembers struct { + Edges []*GetAudienceMembers_AudienceMembers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GetAudienceMembers_AudienceMembers_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GetAudienceMembers_AudienceMembers) GetEdges() []*GetAudienceMembers_AudienceMembers_Edges { + if t == nil { + t = &GetAudienceMembers_AudienceMembers{} + } + return t.Edges +} +func (t *GetAudienceMembers_AudienceMembers) GetPageInfo() *GetAudienceMembers_AudienceMembers_PageInfo { + if t == nil { + t = &GetAudienceMembers_AudienceMembers{} + } + return &t.PageInfo +} +func (t *GetAudienceMembers_AudienceMembers) GetTotalCount() int64 { + if t == nil { + t = &GetAudienceMembers_AudienceMembers{} + } + return t.TotalCount +} + +type UpdateAudienceMember_UpdateAudienceMember_AudienceMember struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetAudienceID() string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.AudienceID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetContactID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.ContactID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.CreatedAt +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetCreatedBy() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.CreatedBy +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetDisplayID() string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.DisplayID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetEmail() string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.Email +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetFullName() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.FullName +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetGroupID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.GroupID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetID() string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.ID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetIdentityHolderID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.IdentityHolderID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetMetadata() map[string]any { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.Metadata +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetOwnerID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.OwnerID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetSubscriberID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.SubscriberID +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetTags() []string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.Tags +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.UpdatedAt +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetUpdatedBy() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.UpdatedBy +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.UpdatedByImpersonator +} +func (t *UpdateAudienceMember_UpdateAudienceMember_AudienceMember) GetUserID() *string { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember_AudienceMember{} + } + return t.UserID +} + +type UpdateAudienceMember_UpdateAudienceMember struct { + AudienceMember UpdateAudienceMember_UpdateAudienceMember_AudienceMember "json:\"audienceMember\" graphql:\"audienceMember\"" +} + +func (t *UpdateAudienceMember_UpdateAudienceMember) GetAudienceMember() *UpdateAudienceMember_UpdateAudienceMember_AudienceMember { + if t == nil { + t = &UpdateAudienceMember_UpdateAudienceMember{} + } + return &t.AudienceMember +} + +type UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetAudienceID() string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.AudienceID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetContactID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.ContactID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.CreatedAt +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetCreatedBy() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.CreatedBy +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetDisplayID() string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.DisplayID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetEmail() string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.Email +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetFullName() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.FullName +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetGroupID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.GroupID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetID() string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.ID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetIdentityHolderID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.IdentityHolderID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetMetadata() map[string]any { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.Metadata +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetOwnerID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.OwnerID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetSubscriberID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.SubscriberID +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetTags() []string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.Tags +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedAt +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetUpdatedBy() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedBy +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.UpdatedByImpersonator +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers) GetUserID() *string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers{} + } + return t.UserID +} + +type UpdateBulkAudienceMember_UpdateBulkAudienceMember struct { + AudienceMembers []*UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers "json:\"audienceMembers,omitempty\" graphql:\"audienceMembers\"" + UpdatedIDs []string "json:\"updatedIDs,omitempty\" graphql:\"updatedIDs\"" +} + +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember) GetAudienceMembers() []*UpdateBulkAudienceMember_UpdateBulkAudienceMember_AudienceMembers { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember{} + } + return t.AudienceMembers +} +func (t *UpdateBulkAudienceMember_UpdateBulkAudienceMember) GetUpdatedIDs() []string { + if t == nil { + t = &UpdateBulkAudienceMember_UpdateBulkAudienceMember{} + } + return t.UpdatedIDs +} + +type UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers struct { + AudienceID string "json:\"audienceID\" graphql:\"audienceID\"" + ContactID *string "json:\"contactID,omitempty\" graphql:\"contactID\"" + CreatedAt *time.Time "json:\"createdAt,omitempty\" graphql:\"createdAt\"" + CreatedBy *string "json:\"createdBy,omitempty\" graphql:\"createdBy\"" + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + FullName *string "json:\"fullName,omitempty\" graphql:\"fullName\"" + GroupID *string "json:\"groupID,omitempty\" graphql:\"groupID\"" + ID string "json:\"id\" graphql:\"id\"" + IdentityHolderID *string "json:\"identityHolderID,omitempty\" graphql:\"identityHolderID\"" + Metadata map[string]any "json:\"metadata,omitempty\" graphql:\"metadata\"" + OwnerID *string "json:\"ownerID,omitempty\" graphql:\"ownerID\"" + SubscriberID *string "json:\"subscriberID,omitempty\" graphql:\"subscriberID\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" + UpdatedAt *time.Time "json:\"updatedAt,omitempty\" graphql:\"updatedAt\"" + UpdatedBy *string "json:\"updatedBy,omitempty\" graphql:\"updatedBy\"" + UpdatedByImpersonator *string "json:\"updatedByImpersonator,omitempty\" graphql:\"updatedByImpersonator\"" + UserID *string "json:\"userID,omitempty\" graphql:\"userID\"" +} + +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetAudienceID() string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.AudienceID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetContactID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.ContactID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetCreatedAt() *time.Time { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.CreatedAt +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetCreatedBy() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.CreatedBy +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetDisplayID() string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.DisplayID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetEmail() string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Email +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetFullName() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.FullName +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetGroupID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.GroupID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetID() string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.ID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetIdentityHolderID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.IdentityHolderID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetMetadata() map[string]any { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Metadata +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetOwnerID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.OwnerID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetSubscriberID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.SubscriberID +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetTags() []string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.Tags +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetUpdatedAt() *time.Time { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedAt +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetUpdatedBy() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedBy +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetUpdatedByImpersonator() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UpdatedByImpersonator +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers) GetUserID() *string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers{} + } + return t.UserID +} + +type UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember struct { + AudienceMembers []*UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers "json:\"audienceMembers,omitempty\" graphql:\"audienceMembers\"" + UpdatedIDs []string "json:\"updatedIDs,omitempty\" graphql:\"updatedIDs\"" +} + +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember) GetAudienceMembers() []*UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember_AudienceMembers { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember{} + } + return t.AudienceMembers +} +func (t *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember) GetUpdatedIDs() []string { + if t == nil { + t = &UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember{} + } + return t.UpdatedIDs +} + type CreateBulkCSVCampaign_CreateBulkCSVCampaign_Campaigns struct { AssessmentID *string "json:\"assessmentID,omitempty\" graphql:\"assessmentID\"" CampaignType enums.CampaignType "json:\"campaignType\" graphql:\"campaignType\"" @@ -108749,6 +111335,206 @@ func (t *GlobalSearch_Search_Assets) GetTotalCount() int64 { return t.TotalCount } +type GlobalSearch_Search_Audiences_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GlobalSearch_Search_Audiences_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GlobalSearch_Search_Audiences_PageInfo{} + } + return t.EndCursor +} +func (t *GlobalSearch_Search_Audiences_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GlobalSearch_Search_Audiences_PageInfo{} + } + return t.HasNextPage +} +func (t *GlobalSearch_Search_Audiences_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GlobalSearch_Search_Audiences_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GlobalSearch_Search_Audiences_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GlobalSearch_Search_Audiences_PageInfo{} + } + return t.StartCursor +} + +type GlobalSearch_Search_Audiences_Edges_Node struct { + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + ID string "json:\"id\" graphql:\"id\"" + Name string "json:\"name\" graphql:\"name\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_Audiences_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GlobalSearch_Search_Audiences_Edges_Node{} + } + return t.DisplayID +} +func (t *GlobalSearch_Search_Audiences_Edges_Node) GetID() string { + if t == nil { + t = &GlobalSearch_Search_Audiences_Edges_Node{} + } + return t.ID +} +func (t *GlobalSearch_Search_Audiences_Edges_Node) GetName() string { + if t == nil { + t = &GlobalSearch_Search_Audiences_Edges_Node{} + } + return t.Name +} +func (t *GlobalSearch_Search_Audiences_Edges_Node) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_Audiences_Edges_Node{} + } + return t.Tags +} + +type GlobalSearch_Search_Audiences_Edges struct { + Node *GlobalSearch_Search_Audiences_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GlobalSearch_Search_Audiences_Edges) GetNode() *GlobalSearch_Search_Audiences_Edges_Node { + if t == nil { + t = &GlobalSearch_Search_Audiences_Edges{} + } + return t.Node +} + +type GlobalSearch_Search_Audiences struct { + Edges []*GlobalSearch_Search_Audiences_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GlobalSearch_Search_Audiences_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GlobalSearch_Search_Audiences) GetEdges() []*GlobalSearch_Search_Audiences_Edges { + if t == nil { + t = &GlobalSearch_Search_Audiences{} + } + return t.Edges +} +func (t *GlobalSearch_Search_Audiences) GetPageInfo() *GlobalSearch_Search_Audiences_PageInfo { + if t == nil { + t = &GlobalSearch_Search_Audiences{} + } + return &t.PageInfo +} +func (t *GlobalSearch_Search_Audiences) GetTotalCount() int64 { + if t == nil { + t = &GlobalSearch_Search_Audiences{} + } + return t.TotalCount +} + +type GlobalSearch_Search_AudienceMembers_PageInfo struct { + EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" + HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" + HasPreviousPage bool "json:\"hasPreviousPage\" graphql:\"hasPreviousPage\"" + StartCursor *string "json:\"startCursor,omitempty\" graphql:\"startCursor\"" +} + +func (t *GlobalSearch_Search_AudienceMembers_PageInfo) GetEndCursor() *string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_PageInfo{} + } + return t.EndCursor +} +func (t *GlobalSearch_Search_AudienceMembers_PageInfo) GetHasNextPage() bool { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_PageInfo{} + } + return t.HasNextPage +} +func (t *GlobalSearch_Search_AudienceMembers_PageInfo) GetHasPreviousPage() bool { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_PageInfo{} + } + return t.HasPreviousPage +} +func (t *GlobalSearch_Search_AudienceMembers_PageInfo) GetStartCursor() *string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_PageInfo{} + } + return t.StartCursor +} + +type GlobalSearch_Search_AudienceMembers_Edges_Node struct { + DisplayID string "json:\"displayID\" graphql:\"displayID\"" + Email string "json:\"email\" graphql:\"email\"" + ID string "json:\"id\" graphql:\"id\"" + Tags []string "json:\"tags,omitempty\" graphql:\"tags\"" +} + +func (t *GlobalSearch_Search_AudienceMembers_Edges_Node) GetDisplayID() string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_Edges_Node{} + } + return t.DisplayID +} +func (t *GlobalSearch_Search_AudienceMembers_Edges_Node) GetEmail() string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_Edges_Node{} + } + return t.Email +} +func (t *GlobalSearch_Search_AudienceMembers_Edges_Node) GetID() string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_Edges_Node{} + } + return t.ID +} +func (t *GlobalSearch_Search_AudienceMembers_Edges_Node) GetTags() []string { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_Edges_Node{} + } + return t.Tags +} + +type GlobalSearch_Search_AudienceMembers_Edges struct { + Node *GlobalSearch_Search_AudienceMembers_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GlobalSearch_Search_AudienceMembers_Edges) GetNode() *GlobalSearch_Search_AudienceMembers_Edges_Node { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers_Edges{} + } + return t.Node +} + +type GlobalSearch_Search_AudienceMembers struct { + Edges []*GlobalSearch_Search_AudienceMembers_Edges "json:\"edges,omitempty\" graphql:\"edges\"" + PageInfo GlobalSearch_Search_AudienceMembers_PageInfo "json:\"pageInfo\" graphql:\"pageInfo\"" + TotalCount int64 "json:\"totalCount\" graphql:\"totalCount\"" +} + +func (t *GlobalSearch_Search_AudienceMembers) GetEdges() []*GlobalSearch_Search_AudienceMembers_Edges { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers{} + } + return t.Edges +} +func (t *GlobalSearch_Search_AudienceMembers) GetPageInfo() *GlobalSearch_Search_AudienceMembers_PageInfo { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers{} + } + return &t.PageInfo +} +func (t *GlobalSearch_Search_AudienceMembers) GetTotalCount() int64 { + if t == nil { + t = &GlobalSearch_Search_AudienceMembers{} + } + return t.TotalCount +} + type GlobalSearch_Search_Campaigns_PageInfo struct { EndCursor *string "json:\"endCursor,omitempty\" graphql:\"endCursor\"" HasNextPage bool "json:\"hasNextPage\" graphql:\"hasNextPage\"" @@ -112478,6 +115264,8 @@ type GlobalSearch_Search struct { AssessmentResponses *GlobalSearch_Search_AssessmentResponses "json:\"assessmentResponses,omitempty\" graphql:\"assessmentResponses\"" Assessments *GlobalSearch_Search_Assessments "json:\"assessments,omitempty\" graphql:\"assessments\"" Assets *GlobalSearch_Search_Assets "json:\"assets,omitempty\" graphql:\"assets\"" + AudienceMembers *GlobalSearch_Search_AudienceMembers "json:\"audienceMembers,omitempty\" graphql:\"audienceMembers\"" + Audiences *GlobalSearch_Search_Audiences "json:\"audiences,omitempty\" graphql:\"audiences\"" CampaignTargets *GlobalSearch_Search_CampaignTargets "json:\"campaignTargets,omitempty\" graphql:\"campaignTargets\"" Campaigns *GlobalSearch_Search_Campaigns "json:\"campaigns,omitempty\" graphql:\"campaigns\"" Contacts *GlobalSearch_Search_Contacts "json:\"contacts,omitempty\" graphql:\"contacts\"" @@ -112540,6 +115328,18 @@ func (t *GlobalSearch_Search) GetAssets() *GlobalSearch_Search_Assets { } return t.Assets } +func (t *GlobalSearch_Search) GetAudienceMembers() *GlobalSearch_Search_AudienceMembers { + if t == nil { + t = &GlobalSearch_Search{} + } + return t.AudienceMembers +} +func (t *GlobalSearch_Search) GetAudiences() *GlobalSearch_Search_Audiences { + if t == nil { + t = &GlobalSearch_Search{} + } + return t.Audiences +} func (t *GlobalSearch_Search) GetCampaignTargets() *GlobalSearch_Search_CampaignTargets { if t == nil { t = &GlobalSearch_Search{} @@ -162902,6 +165702,248 @@ func (t *UpdateBulkCSVAsset) GetUpdateBulkCSVAsset() *UpdateBulkCSVAsset_UpdateB return &t.UpdateBulkCSVAsset } +type CreateAudience struct { + CreateAudience CreateAudience_CreateAudience "json:\"createAudience\" graphql:\"createAudience\"" +} + +func (t *CreateAudience) GetCreateAudience() *CreateAudience_CreateAudience { + if t == nil { + t = &CreateAudience{} + } + return &t.CreateAudience +} + +type CreateBulkAudience struct { + CreateBulkAudience CreateBulkAudience_CreateBulkAudience "json:\"createBulkAudience\" graphql:\"createBulkAudience\"" +} + +func (t *CreateBulkAudience) GetCreateBulkAudience() *CreateBulkAudience_CreateBulkAudience { + if t == nil { + t = &CreateBulkAudience{} + } + return &t.CreateBulkAudience +} + +type CreateBulkCSVAudience struct { + CreateBulkCSVAudience CreateBulkCSVAudience_CreateBulkCSVAudience "json:\"createBulkCSVAudience\" graphql:\"createBulkCSVAudience\"" +} + +func (t *CreateBulkCSVAudience) GetCreateBulkCSVAudience() *CreateBulkCSVAudience_CreateBulkCSVAudience { + if t == nil { + t = &CreateBulkCSVAudience{} + } + return &t.CreateBulkCSVAudience +} + +type DeleteAudience struct { + DeleteAudience DeleteAudience_DeleteAudience "json:\"deleteAudience\" graphql:\"deleteAudience\"" +} + +func (t *DeleteAudience) GetDeleteAudience() *DeleteAudience_DeleteAudience { + if t == nil { + t = &DeleteAudience{} + } + return &t.DeleteAudience +} + +type DeleteBulkAudience struct { + DeleteBulkAudience DeleteBulkAudience_DeleteBulkAudience "json:\"deleteBulkAudience\" graphql:\"deleteBulkAudience\"" +} + +func (t *DeleteBulkAudience) GetDeleteBulkAudience() *DeleteBulkAudience_DeleteBulkAudience { + if t == nil { + t = &DeleteBulkAudience{} + } + return &t.DeleteBulkAudience +} + +type GetAllAudiences struct { + Audiences GetAllAudiences_Audiences "json:\"audiences\" graphql:\"audiences\"" +} + +func (t *GetAllAudiences) GetAudiences() *GetAllAudiences_Audiences { + if t == nil { + t = &GetAllAudiences{} + } + return &t.Audiences +} + +type GetAudienceByID struct { + Audience GetAudienceByID_Audience "json:\"audience\" graphql:\"audience\"" +} + +func (t *GetAudienceByID) GetAudience() *GetAudienceByID_Audience { + if t == nil { + t = &GetAudienceByID{} + } + return &t.Audience +} + +type GetAudiences struct { + Audiences GetAudiences_Audiences "json:\"audiences\" graphql:\"audiences\"" +} + +func (t *GetAudiences) GetAudiences() *GetAudiences_Audiences { + if t == nil { + t = &GetAudiences{} + } + return &t.Audiences +} + +type UpdateAudience struct { + UpdateAudience UpdateAudience_UpdateAudience "json:\"updateAudience\" graphql:\"updateAudience\"" +} + +func (t *UpdateAudience) GetUpdateAudience() *UpdateAudience_UpdateAudience { + if t == nil { + t = &UpdateAudience{} + } + return &t.UpdateAudience +} + +type UpdateBulkAudience struct { + UpdateBulkAudience UpdateBulkAudience_UpdateBulkAudience "json:\"updateBulkAudience\" graphql:\"updateBulkAudience\"" +} + +func (t *UpdateBulkAudience) GetUpdateBulkAudience() *UpdateBulkAudience_UpdateBulkAudience { + if t == nil { + t = &UpdateBulkAudience{} + } + return &t.UpdateBulkAudience +} + +type UpdateBulkCSVAudience struct { + UpdateBulkCSVAudience UpdateBulkCSVAudience_UpdateBulkCSVAudience "json:\"updateBulkCSVAudience\" graphql:\"updateBulkCSVAudience\"" +} + +func (t *UpdateBulkCSVAudience) GetUpdateBulkCSVAudience() *UpdateBulkCSVAudience_UpdateBulkCSVAudience { + if t == nil { + t = &UpdateBulkCSVAudience{} + } + return &t.UpdateBulkCSVAudience +} + +type CreateAudienceMember struct { + CreateAudienceMember CreateAudienceMember_CreateAudienceMember "json:\"createAudienceMember\" graphql:\"createAudienceMember\"" +} + +func (t *CreateAudienceMember) GetCreateAudienceMember() *CreateAudienceMember_CreateAudienceMember { + if t == nil { + t = &CreateAudienceMember{} + } + return &t.CreateAudienceMember +} + +type CreateBulkAudienceMember struct { + CreateBulkAudienceMember CreateBulkAudienceMember_CreateBulkAudienceMember "json:\"createBulkAudienceMember\" graphql:\"createBulkAudienceMember\"" +} + +func (t *CreateBulkAudienceMember) GetCreateBulkAudienceMember() *CreateBulkAudienceMember_CreateBulkAudienceMember { + if t == nil { + t = &CreateBulkAudienceMember{} + } + return &t.CreateBulkAudienceMember +} + +type CreateBulkCSVAudienceMember struct { + CreateBulkCSVAudienceMember CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember "json:\"createBulkCSVAudienceMember\" graphql:\"createBulkCSVAudienceMember\"" +} + +func (t *CreateBulkCSVAudienceMember) GetCreateBulkCSVAudienceMember() *CreateBulkCSVAudienceMember_CreateBulkCSVAudienceMember { + if t == nil { + t = &CreateBulkCSVAudienceMember{} + } + return &t.CreateBulkCSVAudienceMember +} + +type DeleteAudienceMember struct { + DeleteAudienceMember DeleteAudienceMember_DeleteAudienceMember "json:\"deleteAudienceMember\" graphql:\"deleteAudienceMember\"" +} + +func (t *DeleteAudienceMember) GetDeleteAudienceMember() *DeleteAudienceMember_DeleteAudienceMember { + if t == nil { + t = &DeleteAudienceMember{} + } + return &t.DeleteAudienceMember +} + +type DeleteBulkAudienceMember struct { + DeleteBulkAudienceMember DeleteBulkAudienceMember_DeleteBulkAudienceMember "json:\"deleteBulkAudienceMember\" graphql:\"deleteBulkAudienceMember\"" +} + +func (t *DeleteBulkAudienceMember) GetDeleteBulkAudienceMember() *DeleteBulkAudienceMember_DeleteBulkAudienceMember { + if t == nil { + t = &DeleteBulkAudienceMember{} + } + return &t.DeleteBulkAudienceMember +} + +type GetAllAudienceMembers struct { + AudienceMembers GetAllAudienceMembers_AudienceMembers "json:\"audienceMembers\" graphql:\"audienceMembers\"" +} + +func (t *GetAllAudienceMembers) GetAudienceMembers() *GetAllAudienceMembers_AudienceMembers { + if t == nil { + t = &GetAllAudienceMembers{} + } + return &t.AudienceMembers +} + +type GetAudienceMemberByID struct { + AudienceMember GetAudienceMemberByID_AudienceMember "json:\"audienceMember\" graphql:\"audienceMember\"" +} + +func (t *GetAudienceMemberByID) GetAudienceMember() *GetAudienceMemberByID_AudienceMember { + if t == nil { + t = &GetAudienceMemberByID{} + } + return &t.AudienceMember +} + +type GetAudienceMembers struct { + AudienceMembers GetAudienceMembers_AudienceMembers "json:\"audienceMembers\" graphql:\"audienceMembers\"" +} + +func (t *GetAudienceMembers) GetAudienceMembers() *GetAudienceMembers_AudienceMembers { + if t == nil { + t = &GetAudienceMembers{} + } + return &t.AudienceMembers +} + +type UpdateAudienceMember struct { + UpdateAudienceMember UpdateAudienceMember_UpdateAudienceMember "json:\"updateAudienceMember\" graphql:\"updateAudienceMember\"" +} + +func (t *UpdateAudienceMember) GetUpdateAudienceMember() *UpdateAudienceMember_UpdateAudienceMember { + if t == nil { + t = &UpdateAudienceMember{} + } + return &t.UpdateAudienceMember +} + +type UpdateBulkAudienceMember struct { + UpdateBulkAudienceMember UpdateBulkAudienceMember_UpdateBulkAudienceMember "json:\"updateBulkAudienceMember\" graphql:\"updateBulkAudienceMember\"" +} + +func (t *UpdateBulkAudienceMember) GetUpdateBulkAudienceMember() *UpdateBulkAudienceMember_UpdateBulkAudienceMember { + if t == nil { + t = &UpdateBulkAudienceMember{} + } + return &t.UpdateBulkAudienceMember +} + +type UpdateBulkCSVAudienceMember struct { + UpdateBulkCSVAudienceMember UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember "json:\"updateBulkCSVAudienceMember\" graphql:\"updateBulkCSVAudienceMember\"" +} + +func (t *UpdateBulkCSVAudienceMember) GetUpdateBulkCSVAudienceMember() *UpdateBulkCSVAudienceMember_UpdateBulkCSVAudienceMember { + if t == nil { + t = &UpdateBulkCSVAudienceMember{} + } + return &t.UpdateBulkCSVAudienceMember +} + type CreateBulkCSVCampaign struct { CreateBulkCSVCampaign CreateBulkCSVCampaign_CreateBulkCSVCampaign "json:\"createBulkCSVCampaign\" graphql:\"createBulkCSVCampaign\"" } @@ -172893,6 +175935,898 @@ func (c *Client) UpdateBulkCSVAsset(ctx context.Context, input graphql.Upload, i return &res, nil } +const CreateAudienceDocument = `mutation CreateAudience ($input: CreateAudienceInput!) { + createAudience(input: $input) { + audience { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +` + +func (c *Client) CreateAudience(ctx context.Context, input CreateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*CreateAudience, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateAudience + if err := c.Client.Post(ctx, "CreateAudience", CreateAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkAudienceDocument = `mutation CreateBulkAudience ($input: [CreateAudienceInput!]) { + createBulkAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +` + +func (c *Client) CreateBulkAudience(ctx context.Context, input []*CreateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkAudience, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkAudience + if err := c.Client.Post(ctx, "CreateBulkAudience", CreateBulkAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVAudienceDocument = `mutation CreateBulkCSVAudience ($input: Upload!) { + createBulkCSVAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +` + +func (c *Client) CreateBulkCSVAudience(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVAudience, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVAudience + if err := c.Client.Post(ctx, "CreateBulkCSVAudience", CreateBulkCSVAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteAudienceDocument = `mutation DeleteAudience ($deleteAudienceId: ID!) { + deleteAudience(id: $deleteAudienceId) { + deletedID + } +} +` + +func (c *Client) DeleteAudience(ctx context.Context, deleteAudienceID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAudience, error) { + vars := map[string]any{ + "deleteAudienceId": deleteAudienceID, + } + + var res DeleteAudience + if err := c.Client.Post(ctx, "DeleteAudience", DeleteAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteBulkAudienceDocument = `mutation DeleteBulkAudience ($ids: [ID!]!) { + deleteBulkAudience(ids: $ids) { + deletedIDs + } +} +` + +func (c *Client) DeleteBulkAudience(ctx context.Context, ids []string, interceptors ...clientv2.RequestInterceptor) (*DeleteBulkAudience, error) { + vars := map[string]any{ + "ids": ids, + } + + var res DeleteBulkAudience + if err := c.Client.Post(ctx, "DeleteBulkAudience", DeleteBulkAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllAudiencesDocument = `query GetAllAudiences ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceOrder!]) { + audiences(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} +` + +func (c *Client) GetAllAudiences(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceOrder, interceptors ...clientv2.RequestInterceptor) (*GetAllAudiences, error) { + vars := map[string]any{ + "first": first, + "last": last, + "after": after, + "before": before, + "orderBy": orderBy, + } + + var res GetAllAudiences + if err := c.Client.Post(ctx, "GetAllAudiences", GetAllAudiencesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAudienceByIDDocument = `query GetAudienceByID ($audienceId: ID!) { + audience(id: $audienceId) { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } +} +` + +func (c *Client) GetAudienceByID(ctx context.Context, audienceID string, interceptors ...clientv2.RequestInterceptor) (*GetAudienceByID, error) { + vars := map[string]any{ + "audienceId": audienceID, + } + + var res GetAudienceByID + if err := c.Client.Post(ctx, "GetAudienceByID", GetAudienceByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAudiencesDocument = `query GetAudiences ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceOrder!], $where: AudienceWhereInput) { + audiences(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } + } +} +` + +func (c *Client) GetAudiences(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceOrder, where *AudienceWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetAudiences, error) { + vars := map[string]any{ + "first": first, + "last": last, + "after": after, + "before": before, + "orderBy": orderBy, + "where": where, + } + + var res GetAudiences + if err := c.Client.Post(ctx, "GetAudiences", GetAudiencesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateAudienceDocument = `mutation UpdateAudience ($updateAudienceId: ID!, $input: UpdateAudienceInput!) { + updateAudience(id: $updateAudienceId, input: $input) { + audience { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + } +} +` + +func (c *Client) UpdateAudience(ctx context.Context, updateAudienceID string, input UpdateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAudience, error) { + vars := map[string]any{ + "updateAudienceId": updateAudienceID, + "input": input, + } + + var res UpdateAudience + if err := c.Client.Post(ctx, "UpdateAudience", UpdateAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateBulkAudienceDocument = `mutation UpdateBulkAudience ($ids: [ID!]!, $input: UpdateAudienceInput!) { + updateBulkAudience(ids: $ids, input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + updatedIDs + } +} +` + +func (c *Client) UpdateBulkAudience(ctx context.Context, ids []string, input UpdateAudienceInput, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkAudience, error) { + vars := map[string]any{ + "ids": ids, + "input": input, + } + + var res UpdateBulkAudience + if err := c.Client.Post(ctx, "UpdateBulkAudience", UpdateBulkAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateBulkCSVAudienceDocument = `mutation UpdateBulkCSVAudience ($input: Upload!) { + updateBulkCSVAudience(input: $input) { + audiences { + audienceType + createdAt + createdBy + description + displayID + filters + id + metadata + name + ownerID + tags + updatedAt + updatedBy + updatedByImpersonator + } + updatedIDs + } +} +` + +func (c *Client) UpdateBulkCSVAudience(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkCSVAudience, error) { + vars := map[string]any{ + "input": input, + } + + var res UpdateBulkCSVAudience + if err := c.Client.Post(ctx, "UpdateBulkCSVAudience", UpdateBulkCSVAudienceDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateAudienceMemberDocument = `mutation CreateAudienceMember ($input: CreateAudienceMemberInput!) { + createAudienceMember(input: $input) { + audienceMember { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +` + +func (c *Client) CreateAudienceMember(ctx context.Context, input CreateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*CreateAudienceMember, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateAudienceMember + if err := c.Client.Post(ctx, "CreateAudienceMember", CreateAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkAudienceMemberDocument = `mutation CreateBulkAudienceMember ($input: [CreateAudienceMemberInput!]) { + createBulkAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +` + +func (c *Client) CreateBulkAudienceMember(ctx context.Context, input []*CreateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkAudienceMember, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkAudienceMember + if err := c.Client.Post(ctx, "CreateBulkAudienceMember", CreateBulkAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const CreateBulkCSVAudienceMemberDocument = `mutation CreateBulkCSVAudienceMember ($input: Upload!) { + createBulkCSVAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +` + +func (c *Client) CreateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVAudienceMember, error) { + vars := map[string]any{ + "input": input, + } + + var res CreateBulkCSVAudienceMember + if err := c.Client.Post(ctx, "CreateBulkCSVAudienceMember", CreateBulkCSVAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteAudienceMemberDocument = `mutation DeleteAudienceMember ($deleteAudienceMemberId: ID!) { + deleteAudienceMember(id: $deleteAudienceMemberId) { + deletedID + } +} +` + +func (c *Client) DeleteAudienceMember(ctx context.Context, deleteAudienceMemberID string, interceptors ...clientv2.RequestInterceptor) (*DeleteAudienceMember, error) { + vars := map[string]any{ + "deleteAudienceMemberId": deleteAudienceMemberID, + } + + var res DeleteAudienceMember + if err := c.Client.Post(ctx, "DeleteAudienceMember", DeleteAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const DeleteBulkAudienceMemberDocument = `mutation DeleteBulkAudienceMember ($ids: [ID!]!) { + deleteBulkAudienceMember(ids: $ids) { + deletedIDs + } +} +` + +func (c *Client) DeleteBulkAudienceMember(ctx context.Context, ids []string, interceptors ...clientv2.RequestInterceptor) (*DeleteBulkAudienceMember, error) { + vars := map[string]any{ + "ids": ids, + } + + var res DeleteBulkAudienceMember + if err := c.Client.Post(ctx, "DeleteBulkAudienceMember", DeleteBulkAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAllAudienceMembersDocument = `query GetAllAudienceMembers ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberOrder!]) { + audienceMembers(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} +` + +func (c *Client) GetAllAudienceMembers(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceMemberOrder, interceptors ...clientv2.RequestInterceptor) (*GetAllAudienceMembers, error) { + vars := map[string]any{ + "first": first, + "last": last, + "after": after, + "before": before, + "orderBy": orderBy, + } + + var res GetAllAudienceMembers + if err := c.Client.Post(ctx, "GetAllAudienceMembers", GetAllAudienceMembersDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAudienceMemberByIDDocument = `query GetAudienceMemberByID ($audienceMemberId: ID!) { + audienceMember(id: $audienceMemberId) { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } +} +` + +func (c *Client) GetAudienceMemberByID(ctx context.Context, audienceMemberID string, interceptors ...clientv2.RequestInterceptor) (*GetAudienceMemberByID, error) { + vars := map[string]any{ + "audienceMemberId": audienceMemberID, + } + + var res GetAudienceMemberByID + if err := c.Client.Post(ctx, "GetAudienceMemberByID", GetAudienceMemberByIDDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const GetAudienceMembersDocument = `query GetAudienceMembers ($first: Int, $last: Int, $after: Cursor, $before: Cursor, $orderBy: [AudienceMemberOrder!], $where: AudienceMemberWhereInput) { + audienceMembers(first: $first, last: $last, after: $after, before: $before, orderBy: $orderBy, where: $where) { + totalCount + pageInfo { + startCursor + endCursor + hasPreviousPage + hasNextPage + } + edges { + node { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } + } +} +` + +func (c *Client) GetAudienceMembers(ctx context.Context, first *int64, last *int64, after *string, before *string, orderBy []*AudienceMemberOrder, where *AudienceMemberWhereInput, interceptors ...clientv2.RequestInterceptor) (*GetAudienceMembers, error) { + vars := map[string]any{ + "first": first, + "last": last, + "after": after, + "before": before, + "orderBy": orderBy, + "where": where, + } + + var res GetAudienceMembers + if err := c.Client.Post(ctx, "GetAudienceMembers", GetAudienceMembersDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateAudienceMemberDocument = `mutation UpdateAudienceMember ($updateAudienceMemberId: ID!, $input: UpdateAudienceMemberInput!) { + updateAudienceMember(id: $updateAudienceMemberId, input: $input) { + audienceMember { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + } +} +` + +func (c *Client) UpdateAudienceMember(ctx context.Context, updateAudienceMemberID string, input UpdateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*UpdateAudienceMember, error) { + vars := map[string]any{ + "updateAudienceMemberId": updateAudienceMemberID, + "input": input, + } + + var res UpdateAudienceMember + if err := c.Client.Post(ctx, "UpdateAudienceMember", UpdateAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateBulkAudienceMemberDocument = `mutation UpdateBulkAudienceMember ($ids: [ID!]!, $input: UpdateAudienceMemberInput!) { + updateBulkAudienceMember(ids: $ids, input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + updatedIDs + } +} +` + +func (c *Client) UpdateBulkAudienceMember(ctx context.Context, ids []string, input UpdateAudienceMemberInput, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkAudienceMember, error) { + vars := map[string]any{ + "ids": ids, + "input": input, + } + + var res UpdateBulkAudienceMember + if err := c.Client.Post(ctx, "UpdateBulkAudienceMember", UpdateBulkAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + +const UpdateBulkCSVAudienceMemberDocument = `mutation UpdateBulkCSVAudienceMember ($input: Upload!) { + updateBulkCSVAudienceMember(input: $input) { + audienceMembers { + audienceID + contactID + createdAt + createdBy + displayID + email + fullName + groupID + id + identityHolderID + metadata + ownerID + subscriberID + tags + updatedAt + updatedBy + updatedByImpersonator + userID + } + updatedIDs + } +} +` + +func (c *Client) UpdateBulkCSVAudienceMember(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*UpdateBulkCSVAudienceMember, error) { + vars := map[string]any{ + "input": input, + } + + var res UpdateBulkCSVAudienceMember + if err := c.Client.Post(ctx, "UpdateBulkCSVAudienceMember", UpdateBulkCSVAudienceMemberDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + const CreateBulkCSVCampaignDocument = `mutation CreateBulkCSVCampaign ($input: Upload!) { createBulkCSVCampaign(input: $input) { campaigns { @@ -198242,6 +202176,40 @@ const GlobalSearchDocument = `query GlobalSearch ($query: String!) { } } } + audiences { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + node { + displayID + id + name + tags + } + } + } + audienceMembers { + totalCount + pageInfo { + hasNextPage + hasPreviousPage + startCursor + endCursor + } + edges { + node { + displayID + email + id + tags + } + } + } campaigns { totalCount pageInfo { @@ -212495,6 +216463,28 @@ var DocumentOperationNames = map[string]string{ UpdateAssetDocument: "UpdateAsset", UpdateBulkAssetDocument: "UpdateBulkAsset", UpdateBulkCSVAssetDocument: "UpdateBulkCSVAsset", + CreateAudienceDocument: "CreateAudience", + CreateBulkAudienceDocument: "CreateBulkAudience", + CreateBulkCSVAudienceDocument: "CreateBulkCSVAudience", + DeleteAudienceDocument: "DeleteAudience", + DeleteBulkAudienceDocument: "DeleteBulkAudience", + GetAllAudiencesDocument: "GetAllAudiences", + GetAudienceByIDDocument: "GetAudienceByID", + GetAudiencesDocument: "GetAudiences", + UpdateAudienceDocument: "UpdateAudience", + UpdateBulkAudienceDocument: "UpdateBulkAudience", + UpdateBulkCSVAudienceDocument: "UpdateBulkCSVAudience", + CreateAudienceMemberDocument: "CreateAudienceMember", + CreateBulkAudienceMemberDocument: "CreateBulkAudienceMember", + CreateBulkCSVAudienceMemberDocument: "CreateBulkCSVAudienceMember", + DeleteAudienceMemberDocument: "DeleteAudienceMember", + DeleteBulkAudienceMemberDocument: "DeleteBulkAudienceMember", + GetAllAudienceMembersDocument: "GetAllAudienceMembers", + GetAudienceMemberByIDDocument: "GetAudienceMemberByID", + GetAudienceMembersDocument: "GetAudienceMembers", + UpdateAudienceMemberDocument: "UpdateAudienceMember", + UpdateBulkAudienceMemberDocument: "UpdateBulkAudienceMember", + UpdateBulkCSVAudienceMemberDocument: "UpdateBulkCSVAudienceMember", CreateBulkCSVCampaignDocument: "CreateBulkCSVCampaign", CreateBulkCampaignDocument: "CreateBulkCampaign", CreateCampaignDocument: "CreateCampaign", diff --git a/internal/graphapi/testclient/models.go b/internal/graphapi/testclient/models.go index d6982c26cb..65739e8529 100644 --- a/internal/graphapi/testclient/models.go +++ b/internal/graphapi/testclient/models.go @@ -2389,6 +2389,559 @@ type AssetWhereInput struct { CategoriesHas *string `json:"categoriesHas,omitempty"` } +type Audience struct { + ID string `json:"id"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"displayID"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the name of the audience + Name string `json:"name"` + // the description of the audience + Description *string `json:"description,omitempty"` + // the audience resolution type + AudienceType enums.AudienceType `json:"audienceType"` + // selector filters for dynamic audiences + Filters map[string]any `json:"filters,omitempty"` + // additional metadata about the audience + Metadata map[string]any `json:"metadata,omitempty"` + Owner *Organization `json:"owner,omitempty"` + BlockedGroups *GroupConnection `json:"blockedGroups"` + Editors *GroupConnection `json:"editors"` + Viewers *GroupConnection `json:"viewers"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` + Campaigns *CampaignConnection `json:"campaigns"` +} + +func (Audience) IsNode() {} + +// Return response for createBulkAudience mutation +type AudienceBulkCreatePayload struct { + // Created audiences + Audiences []*Audience `json:"audiences,omitempty"` +} + +// Return response for deleteBulkAudience mutation +type AudienceBulkDeletePayload struct { + // Deleted audience IDs + DeletedIDs []string `json:"deletedIDs"` + // Error returned when the bulk delete is only partially applied + Error *string `json:"error,omitempty"` + // IDs of audiences that were not deleted + NotDeletedIDs []string `json:"notDeletedIDs,omitempty"` +} + +// Return response for updateBulkAudience mutation +type AudienceBulkUpdatePayload struct { + // Updated audiences + Audiences []*Audience `json:"audiences,omitempty"` + // IDs of the updated audiences + UpdatedIDs []string `json:"updatedIDs,omitempty"` +} + +// A connection to a list of items. +type AudienceConnection struct { + // A list of edges. + Edges []*AudienceEdge `json:"edges,omitempty"` + // Information to aid in pagination. + PageInfo *PageInfo `json:"pageInfo"` + // Identifies the total count of items in the connection. + TotalCount int64 `json:"totalCount"` +} + +// Return response for createAudience mutation +type AudienceCreatePayload struct { + // Created audience + Audience *Audience `json:"audience"` +} + +// Return response for deleteAudience mutation +type AudienceDeletePayload struct { + // Deleted audience ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type AudienceEdge struct { + // The item at the end of the edge. + Node *Audience `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +type AudienceMember struct { + ID string `json:"id"` + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + UpdatedBy *string `json:"updatedBy,omitempty"` + // the real user acting through an impersonation session when the record was last mutated, if any + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + // a shortened prefixed id field to use as a human readable identifier + DisplayID string `json:"displayID"` + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the organization id that owns the object + OwnerID *string `json:"ownerID,omitempty"` + // the audience this member belongs to + AudienceID string `json:"audienceID"` + // the contact associated with this audience member + ContactID *string `json:"contactID,omitempty"` + // the user associated with this audience member + UserID *string `json:"userID,omitempty"` + // the group associated with this audience member + GroupID *string `json:"groupID,omitempty"` + // the identity holder associated with this audience member + IdentityHolderID *string `json:"identityHolderID,omitempty"` + // the subscriber associated with this audience member + SubscriberID *string `json:"subscriberID,omitempty"` + // the email address for this audience member + Email string `json:"email"` + // the name of this audience member, if known + FullName *string `json:"fullName,omitempty"` + // additional metadata about the audience member + Metadata map[string]any `json:"metadata,omitempty"` + Owner *Organization `json:"owner,omitempty"` + Audience *Audience `json:"audience"` + Contact *Contact `json:"contact,omitempty"` + User *User `json:"user,omitempty"` + Group *Group `json:"group,omitempty"` + IdentityHolder *IdentityHolder `json:"identityHolder,omitempty"` + Subscriber *Subscriber `json:"subscriber,omitempty"` +} + +func (AudienceMember) IsNode() {} + +// Return response for createBulkAudienceMember mutation +type AudienceMemberBulkCreatePayload struct { + // Created audienceMembers + AudienceMembers []*AudienceMember `json:"audienceMembers,omitempty"` +} + +// Return response for deleteBulkAudienceMember mutation +type AudienceMemberBulkDeletePayload struct { + // Deleted audienceMember IDs + DeletedIDs []string `json:"deletedIDs"` + // Error returned when the bulk delete is only partially applied + Error *string `json:"error,omitempty"` + // IDs of audienceMembers that were not deleted + NotDeletedIDs []string `json:"notDeletedIDs,omitempty"` +} + +// Return response for updateBulkAudienceMember mutation +type AudienceMemberBulkUpdatePayload struct { + // Updated audienceMembers + AudienceMembers []*AudienceMember `json:"audienceMembers,omitempty"` + // IDs of the updated audienceMembers + UpdatedIDs []string `json:"updatedIDs,omitempty"` +} + +// A connection to a list of items. +type AudienceMemberConnection struct { + // A list of edges. + Edges []*AudienceMemberEdge `json:"edges,omitempty"` + // Information to aid in pagination. + PageInfo *PageInfo `json:"pageInfo"` + // Identifies the total count of items in the connection. + TotalCount int64 `json:"totalCount"` +} + +// Return response for createAudienceMember mutation +type AudienceMemberCreatePayload struct { + // Created audienceMember + AudienceMember *AudienceMember `json:"audienceMember"` +} + +// Return response for deleteAudienceMember mutation +type AudienceMemberDeletePayload struct { + // Deleted audienceMember ID + DeletedID string `json:"deletedID"` +} + +// An edge in a connection. +type AudienceMemberEdge struct { + // The item at the end of the edge. + Node *AudienceMember `json:"node,omitempty"` + // A cursor for use in pagination. + Cursor string `json:"cursor"` +} + +// Ordering options for AudienceMember connections +type AudienceMemberOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order AudienceMembers. + Field AudienceMemberOrderField `json:"field"` +} + +// Return response for updateAudienceMember mutation +type AudienceMemberUpdatePayload struct { + // Updated audienceMember + AudienceMember *AudienceMember `json:"audienceMember"` +} + +// AudienceMemberWhereInput is used for filtering AudienceMember objects. +// Input was generated by ent. +type AudienceMemberWhereInput struct { + Not *AudienceMemberWhereInput `json:"not,omitempty"` + And []*AudienceMemberWhereInput `json:"and,omitempty"` + Or []*AudienceMemberWhereInput `json:"or,omitempty"` + // id field predicates + ID *string `json:"id,omitempty"` + IDNeq *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGt *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGte *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLt *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLte *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil *bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil *bool `json:"createdAtNotNil,omitempty"` + // updated_at field predicates + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGt *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGte *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLt *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLte *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil *bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil *bool `json:"updatedAtNotNil,omitempty"` + // created_by field predicates + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNeq *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil *bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil *bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + // updated_by field predicates + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNeq *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil *bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + // updated_by_impersonator field predicates + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNeq *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil *bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil *bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + // display_id field predicates + DisplayID *string `json:"displayID,omitempty"` + DisplayIdneq *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + // owner_id field predicates + OwnerID *string `json:"ownerID,omitempty"` + OwnerIdneq *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil *bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + // audience_id field predicates + AudienceID *string `json:"audienceID,omitempty"` + AudienceIdneq *string `json:"audienceIDNEQ,omitempty"` + AudienceIDIn []string `json:"audienceIDIn,omitempty"` + AudienceIDNotIn []string `json:"audienceIDNotIn,omitempty"` + AudienceIDContains *string `json:"audienceIDContains,omitempty"` + AudienceIDHasPrefix *string `json:"audienceIDHasPrefix,omitempty"` + AudienceIDHasSuffix *string `json:"audienceIDHasSuffix,omitempty"` + AudienceIDEqualFold *string `json:"audienceIDEqualFold,omitempty"` + AudienceIDContainsFold *string `json:"audienceIDContainsFold,omitempty"` + // contact_id field predicates + ContactID *string `json:"contactID,omitempty"` + ContactIdneq *string `json:"contactIDNEQ,omitempty"` + ContactIDIn []string `json:"contactIDIn,omitempty"` + ContactIDNotIn []string `json:"contactIDNotIn,omitempty"` + ContactIDContains *string `json:"contactIDContains,omitempty"` + ContactIDHasPrefix *string `json:"contactIDHasPrefix,omitempty"` + ContactIDHasSuffix *string `json:"contactIDHasSuffix,omitempty"` + ContactIDIsNil *bool `json:"contactIDIsNil,omitempty"` + ContactIDNotNil *bool `json:"contactIDNotNil,omitempty"` + ContactIDEqualFold *string `json:"contactIDEqualFold,omitempty"` + ContactIDContainsFold *string `json:"contactIDContainsFold,omitempty"` + // user_id field predicates + UserID *string `json:"userID,omitempty"` + UserIdneq *string `json:"userIDNEQ,omitempty"` + UserIDIn []string `json:"userIDIn,omitempty"` + UserIDNotIn []string `json:"userIDNotIn,omitempty"` + UserIDContains *string `json:"userIDContains,omitempty"` + UserIDHasPrefix *string `json:"userIDHasPrefix,omitempty"` + UserIDHasSuffix *string `json:"userIDHasSuffix,omitempty"` + UserIDIsNil *bool `json:"userIDIsNil,omitempty"` + UserIDNotNil *bool `json:"userIDNotNil,omitempty"` + UserIDEqualFold *string `json:"userIDEqualFold,omitempty"` + UserIDContainsFold *string `json:"userIDContainsFold,omitempty"` + // group_id field predicates + GroupID *string `json:"groupID,omitempty"` + GroupIdneq *string `json:"groupIDNEQ,omitempty"` + GroupIDIn []string `json:"groupIDIn,omitempty"` + GroupIDNotIn []string `json:"groupIDNotIn,omitempty"` + GroupIDContains *string `json:"groupIDContains,omitempty"` + GroupIDHasPrefix *string `json:"groupIDHasPrefix,omitempty"` + GroupIDHasSuffix *string `json:"groupIDHasSuffix,omitempty"` + GroupIDIsNil *bool `json:"groupIDIsNil,omitempty"` + GroupIDNotNil *bool `json:"groupIDNotNil,omitempty"` + GroupIDEqualFold *string `json:"groupIDEqualFold,omitempty"` + GroupIDContainsFold *string `json:"groupIDContainsFold,omitempty"` + // identity_holder_id field predicates + IdentityHolderID *string `json:"identityHolderID,omitempty"` + IdentityHolderIdneq *string `json:"identityHolderIDNEQ,omitempty"` + IdentityHolderIDIn []string `json:"identityHolderIDIn,omitempty"` + IdentityHolderIDNotIn []string `json:"identityHolderIDNotIn,omitempty"` + IdentityHolderIDContains *string `json:"identityHolderIDContains,omitempty"` + IdentityHolderIDHasPrefix *string `json:"identityHolderIDHasPrefix,omitempty"` + IdentityHolderIDHasSuffix *string `json:"identityHolderIDHasSuffix,omitempty"` + IdentityHolderIDIsNil *bool `json:"identityHolderIDIsNil,omitempty"` + IdentityHolderIDNotNil *bool `json:"identityHolderIDNotNil,omitempty"` + IdentityHolderIDEqualFold *string `json:"identityHolderIDEqualFold,omitempty"` + IdentityHolderIDContainsFold *string `json:"identityHolderIDContainsFold,omitempty"` + // subscriber_id field predicates + SubscriberID *string `json:"subscriberID,omitempty"` + SubscriberIdneq *string `json:"subscriberIDNEQ,omitempty"` + SubscriberIDIn []string `json:"subscriberIDIn,omitempty"` + SubscriberIDNotIn []string `json:"subscriberIDNotIn,omitempty"` + SubscriberIDContains *string `json:"subscriberIDContains,omitempty"` + SubscriberIDHasPrefix *string `json:"subscriberIDHasPrefix,omitempty"` + SubscriberIDHasSuffix *string `json:"subscriberIDHasSuffix,omitempty"` + SubscriberIDIsNil *bool `json:"subscriberIDIsNil,omitempty"` + SubscriberIDNotNil *bool `json:"subscriberIDNotNil,omitempty"` + SubscriberIDEqualFold *string `json:"subscriberIDEqualFold,omitempty"` + SubscriberIDContainsFold *string `json:"subscriberIDContainsFold,omitempty"` + // email field predicates + Email *string `json:"email,omitempty"` + EmailNeq *string `json:"emailNEQ,omitempty"` + EmailIn []string `json:"emailIn,omitempty"` + EmailNotIn []string `json:"emailNotIn,omitempty"` + EmailContains *string `json:"emailContains,omitempty"` + EmailHasPrefix *string `json:"emailHasPrefix,omitempty"` + EmailHasSuffix *string `json:"emailHasSuffix,omitempty"` + EmailEqualFold *string `json:"emailEqualFold,omitempty"` + EmailContainsFold *string `json:"emailContainsFold,omitempty"` + // full_name field predicates + FullName *string `json:"fullName,omitempty"` + FullNameNeq *string `json:"fullNameNEQ,omitempty"` + FullNameIn []string `json:"fullNameIn,omitempty"` + FullNameNotIn []string `json:"fullNameNotIn,omitempty"` + FullNameContains *string `json:"fullNameContains,omitempty"` + FullNameHasPrefix *string `json:"fullNameHasPrefix,omitempty"` + FullNameHasSuffix *string `json:"fullNameHasSuffix,omitempty"` + FullNameIsNil *bool `json:"fullNameIsNil,omitempty"` + FullNameNotNil *bool `json:"fullNameNotNil,omitempty"` + FullNameEqualFold *string `json:"fullNameEqualFold,omitempty"` + FullNameContainsFold *string `json:"fullNameContainsFold,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // audience edge predicates + HasAudience *bool `json:"hasAudience,omitempty"` + HasAudienceWith []*AudienceWhereInput `json:"hasAudienceWith,omitempty"` + // contact edge predicates + HasContact *bool `json:"hasContact,omitempty"` + HasContactWith []*ContactWhereInput `json:"hasContactWith,omitempty"` + // user edge predicates + HasUser *bool `json:"hasUser,omitempty"` + HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // group edge predicates + HasGroup *bool `json:"hasGroup,omitempty"` + HasGroupWith []*GroupWhereInput `json:"hasGroupWith,omitempty"` + // identity_holder edge predicates + HasIdentityHolder *bool `json:"hasIdentityHolder,omitempty"` + HasIdentityHolderWith []*IdentityHolderWhereInput `json:"hasIdentityHolderWith,omitempty"` + // subscriber edge predicates + HasSubscriber *bool `json:"hasSubscriber,omitempty"` + HasSubscriberWith []*SubscriberWhereInput `json:"hasSubscriberWith,omitempty"` + // Filter for tagsHas to contain a specific value + TagsHas *string `json:"tagsHas,omitempty"` +} + +// Ordering options for Audience connections +type AudienceOrder struct { + // The ordering direction. + Direction OrderDirection `json:"direction"` + // The field by which to order Audiences. + Field AudienceOrderField `json:"field"` +} + +// Return response for updateAudience mutation +type AudienceUpdatePayload struct { + // Updated audience + Audience *Audience `json:"audience"` +} + +// AudienceWhereInput is used for filtering Audience objects. +// Input was generated by ent. +type AudienceWhereInput struct { + Not *AudienceWhereInput `json:"not,omitempty"` + And []*AudienceWhereInput `json:"and,omitempty"` + Or []*AudienceWhereInput `json:"or,omitempty"` + // id field predicates + ID *string `json:"id,omitempty"` + IDNeq *string `json:"idNEQ,omitempty"` + IDIn []string `json:"idIn,omitempty"` + IDNotIn []string `json:"idNotIn,omitempty"` + IDEqualFold *string `json:"idEqualFold,omitempty"` + IDContainsFold *string `json:"idContainsFold,omitempty"` + // created_at field predicates + CreatedAt *time.Time `json:"createdAt,omitempty"` + CreatedAtGt *time.Time `json:"createdAtGT,omitempty"` + CreatedAtGte *time.Time `json:"createdAtGTE,omitempty"` + CreatedAtLt *time.Time `json:"createdAtLT,omitempty"` + CreatedAtLte *time.Time `json:"createdAtLTE,omitempty"` + CreatedAtIsNil *bool `json:"createdAtIsNil,omitempty"` + CreatedAtNotNil *bool `json:"createdAtNotNil,omitempty"` + // updated_at field predicates + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + UpdatedAtGt *time.Time `json:"updatedAtGT,omitempty"` + UpdatedAtGte *time.Time `json:"updatedAtGTE,omitempty"` + UpdatedAtLt *time.Time `json:"updatedAtLT,omitempty"` + UpdatedAtLte *time.Time `json:"updatedAtLTE,omitempty"` + UpdatedAtIsNil *bool `json:"updatedAtIsNil,omitempty"` + UpdatedAtNotNil *bool `json:"updatedAtNotNil,omitempty"` + // created_by field predicates + CreatedBy *string `json:"createdBy,omitempty"` + CreatedByNeq *string `json:"createdByNEQ,omitempty"` + CreatedByIn []string `json:"createdByIn,omitempty"` + CreatedByNotIn []string `json:"createdByNotIn,omitempty"` + CreatedByContains *string `json:"createdByContains,omitempty"` + CreatedByHasPrefix *string `json:"createdByHasPrefix,omitempty"` + CreatedByHasSuffix *string `json:"createdByHasSuffix,omitempty"` + CreatedByIsNil *bool `json:"createdByIsNil,omitempty"` + CreatedByNotNil *bool `json:"createdByNotNil,omitempty"` + CreatedByEqualFold *string `json:"createdByEqualFold,omitempty"` + CreatedByContainsFold *string `json:"createdByContainsFold,omitempty"` + // updated_by field predicates + UpdatedBy *string `json:"updatedBy,omitempty"` + UpdatedByNeq *string `json:"updatedByNEQ,omitempty"` + UpdatedByIn []string `json:"updatedByIn,omitempty"` + UpdatedByNotIn []string `json:"updatedByNotIn,omitempty"` + UpdatedByContains *string `json:"updatedByContains,omitempty"` + UpdatedByHasPrefix *string `json:"updatedByHasPrefix,omitempty"` + UpdatedByHasSuffix *string `json:"updatedByHasSuffix,omitempty"` + UpdatedByIsNil *bool `json:"updatedByIsNil,omitempty"` + UpdatedByNotNil *bool `json:"updatedByNotNil,omitempty"` + UpdatedByEqualFold *string `json:"updatedByEqualFold,omitempty"` + UpdatedByContainsFold *string `json:"updatedByContainsFold,omitempty"` + // updated_by_impersonator field predicates + UpdatedByImpersonator *string `json:"updatedByImpersonator,omitempty"` + UpdatedByImpersonatorNeq *string `json:"updatedByImpersonatorNEQ,omitempty"` + UpdatedByImpersonatorIn []string `json:"updatedByImpersonatorIn,omitempty"` + UpdatedByImpersonatorNotIn []string `json:"updatedByImpersonatorNotIn,omitempty"` + UpdatedByImpersonatorContains *string `json:"updatedByImpersonatorContains,omitempty"` + UpdatedByImpersonatorHasPrefix *string `json:"updatedByImpersonatorHasPrefix,omitempty"` + UpdatedByImpersonatorHasSuffix *string `json:"updatedByImpersonatorHasSuffix,omitempty"` + UpdatedByImpersonatorIsNil *bool `json:"updatedByImpersonatorIsNil,omitempty"` + UpdatedByImpersonatorNotNil *bool `json:"updatedByImpersonatorNotNil,omitempty"` + UpdatedByImpersonatorEqualFold *string `json:"updatedByImpersonatorEqualFold,omitempty"` + UpdatedByImpersonatorContainsFold *string `json:"updatedByImpersonatorContainsFold,omitempty"` + // display_id field predicates + DisplayID *string `json:"displayID,omitempty"` + DisplayIdneq *string `json:"displayIDNEQ,omitempty"` + DisplayIDIn []string `json:"displayIDIn,omitempty"` + DisplayIDNotIn []string `json:"displayIDNotIn,omitempty"` + DisplayIDContains *string `json:"displayIDContains,omitempty"` + DisplayIDHasPrefix *string `json:"displayIDHasPrefix,omitempty"` + DisplayIDHasSuffix *string `json:"displayIDHasSuffix,omitempty"` + DisplayIDEqualFold *string `json:"displayIDEqualFold,omitempty"` + DisplayIDContainsFold *string `json:"displayIDContainsFold,omitempty"` + // owner_id field predicates + OwnerID *string `json:"ownerID,omitempty"` + OwnerIdneq *string `json:"ownerIDNEQ,omitempty"` + OwnerIDIn []string `json:"ownerIDIn,omitempty"` + OwnerIDNotIn []string `json:"ownerIDNotIn,omitempty"` + OwnerIDContains *string `json:"ownerIDContains,omitempty"` + OwnerIDHasPrefix *string `json:"ownerIDHasPrefix,omitempty"` + OwnerIDHasSuffix *string `json:"ownerIDHasSuffix,omitempty"` + OwnerIDIsNil *bool `json:"ownerIDIsNil,omitempty"` + OwnerIDNotNil *bool `json:"ownerIDNotNil,omitempty"` + OwnerIDEqualFold *string `json:"ownerIDEqualFold,omitempty"` + OwnerIDContainsFold *string `json:"ownerIDContainsFold,omitempty"` + // name field predicates + Name *string `json:"name,omitempty"` + NameNeq *string `json:"nameNEQ,omitempty"` + NameIn []string `json:"nameIn,omitempty"` + NameNotIn []string `json:"nameNotIn,omitempty"` + NameContains *string `json:"nameContains,omitempty"` + NameHasPrefix *string `json:"nameHasPrefix,omitempty"` + NameHasSuffix *string `json:"nameHasSuffix,omitempty"` + NameEqualFold *string `json:"nameEqualFold,omitempty"` + NameContainsFold *string `json:"nameContainsFold,omitempty"` + // description field predicates + Description *string `json:"description,omitempty"` + DescriptionNeq *string `json:"descriptionNEQ,omitempty"` + DescriptionIn []string `json:"descriptionIn,omitempty"` + DescriptionNotIn []string `json:"descriptionNotIn,omitempty"` + DescriptionContains *string `json:"descriptionContains,omitempty"` + DescriptionHasPrefix *string `json:"descriptionHasPrefix,omitempty"` + DescriptionHasSuffix *string `json:"descriptionHasSuffix,omitempty"` + DescriptionIsNil *bool `json:"descriptionIsNil,omitempty"` + DescriptionNotNil *bool `json:"descriptionNotNil,omitempty"` + DescriptionEqualFold *string `json:"descriptionEqualFold,omitempty"` + DescriptionContainsFold *string `json:"descriptionContainsFold,omitempty"` + // audience_type field predicates + AudienceType *enums.AudienceType `json:"audienceType,omitempty"` + AudienceTypeNeq *enums.AudienceType `json:"audienceTypeNEQ,omitempty"` + AudienceTypeIn []enums.AudienceType `json:"audienceTypeIn,omitempty"` + AudienceTypeNotIn []enums.AudienceType `json:"audienceTypeNotIn,omitempty"` + // owner edge predicates + HasOwner *bool `json:"hasOwner,omitempty"` + HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"` + // blocked_groups edge predicates + HasBlockedGroups *bool `json:"hasBlockedGroups,omitempty"` + HasBlockedGroupsWith []*GroupWhereInput `json:"hasBlockedGroupsWith,omitempty"` + // editors edge predicates + HasEditors *bool `json:"hasEditors,omitempty"` + HasEditorsWith []*GroupWhereInput `json:"hasEditorsWith,omitempty"` + // viewers edge predicates + HasViewers *bool `json:"hasViewers,omitempty"` + HasViewersWith []*GroupWhereInput `json:"hasViewersWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` + // campaigns edge predicates + HasCampaigns *bool `json:"hasCampaigns,omitempty"` + HasCampaignsWith []*CampaignWhereInput `json:"hasCampaignsWith,omitempty"` + // Filter for tagsHas to contain a specific value + TagsHas *string `json:"tagsHas,omitempty"` +} + // Return response for approveNDARequests or denyNDARequests mutation type BulkUpdateStatusPayload struct { // Updated nda request IDs @@ -2491,6 +3044,7 @@ type Campaign struct { Users *UserConnection `json:"users"` Groups *GroupConnection `json:"groups"` IdentityHolders *IdentityHolderConnection `json:"identityHolders"` + Audiences *AudienceConnection `json:"audiences"` Controls *ControlConnection `json:"controls"` WorkflowObjectRefs *WorkflowObjectRefConnection `json:"workflowObjectRefs"` // Indicates if this campaign has pending changes awaiting workflow approval @@ -3308,6 +3862,9 @@ type CampaignWhereInput struct { // identity_holders edge predicates HasIdentityHolders *bool `json:"hasIdentityHolders,omitempty"` HasIdentityHoldersWith []*IdentityHolderWhereInput `json:"hasIdentityHoldersWith,omitempty"` + // audiences edge predicates + HasAudiences *bool `json:"hasAudiences,omitempty"` + HasAudiencesWith []*AudienceWhereInput `json:"hasAudiencesWith,omitempty"` // controls edge predicates HasControls *bool `json:"hasControls,omitempty"` HasControlsWith []*ControlWhereInput `json:"hasControlsWith,omitempty"` @@ -3670,6 +4227,7 @@ type Contact struct { Entities *EntityConnection `json:"entities"` Campaigns *CampaignConnection `json:"campaigns"` CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` Files *FileConnection `json:"files"` Subscribers *SubscriberConnection `json:"subscribers"` } @@ -3946,6 +4504,9 @@ type ContactWhereInput struct { // campaign_targets edge predicates HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // files edge predicates HasFiles *bool `json:"hasFiles,omitempty"` HasFilesWith []*FileWhereInput `json:"hasFilesWith,omitempty"` @@ -5894,6 +6455,49 @@ type CreateAssetInput struct { ConnectedFromIDs []string `json:"connectedFromIDs,omitempty"` } +// CreateAudienceInput is used for create Audience object. +// Input was generated by ent. +type CreateAudienceInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the name of the audience + Name string `json:"name"` + // the description of the audience + Description *string `json:"description,omitempty"` + // the audience resolution type + AudienceType *enums.AudienceType `json:"audienceType,omitempty"` + // selector filters for dynamic audiences + Filters map[string]any `json:"filters,omitempty"` + // additional metadata about the audience + Metadata map[string]any `json:"metadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + BlockedGroupIDs []string `json:"blockedGroupIDs,omitempty"` + EditorIDs []string `json:"editorIDs,omitempty"` + ViewerIDs []string `json:"viewerIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` + CampaignIDs []string `json:"campaignIDs,omitempty"` +} + +// CreateAudienceMemberInput is used for create AudienceMember object. +// Input was generated by ent. +type CreateAudienceMemberInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + // the email address for this audience member + Email string `json:"email"` + // the name of this audience member, if known + FullName *string `json:"fullName,omitempty"` + // additional metadata about the audience member + Metadata map[string]any `json:"metadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + AudienceID string `json:"audienceID"` + ContactID *string `json:"contactID,omitempty"` + UserID *string `json:"userID,omitempty"` + GroupID *string `json:"groupID,omitempty"` + IdentityHolderID *string `json:"identityHolderID,omitempty"` + SubscriberID *string `json:"subscriberID,omitempty"` +} + // CreateCampaignInput is used for create Campaign object. // Input was generated by ent. type CreateCampaignInput struct { @@ -5965,6 +6569,7 @@ type CreateCampaignInput struct { UserIDs []string `json:"userIDs,omitempty"` GroupIDs []string `json:"groupIDs,omitempty"` IdentityHolderIDs []string `json:"identityHolderIDs,omitempty"` + AudienceIDs []string `json:"audienceIDs,omitempty"` ControlIDs []string `json:"controlIDs,omitempty"` WorkflowObjectRefIDs []string `json:"workflowObjectRefIDs,omitempty"` } @@ -6057,6 +6662,7 @@ type CreateContactInput struct { EntityIDs []string `json:"entityIDs,omitempty"` CampaignIDs []string `json:"campaignIDs,omitempty"` CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` FileIDs []string `json:"fileIDs,omitempty"` SubscriberIDs []string `json:"subscriberIDs,omitempty"` } @@ -7152,6 +7758,9 @@ type CreateGroupInput struct { CampaignEditorIDs []string `json:"campaignEditorIDs,omitempty"` CampaignBlockedGroupIDs []string `json:"campaignBlockedGroupIDs,omitempty"` CampaignViewerIDs []string `json:"campaignViewerIDs,omitempty"` + AudienceEditorIDs []string `json:"audienceEditorIDs,omitempty"` + AudienceBlockedGroupIDs []string `json:"audienceBlockedGroupIDs,omitempty"` + AudienceViewerIDs []string `json:"audienceViewerIDs,omitempty"` ProcedureEditorIDs []string `json:"procedureEditorIDs,omitempty"` ProcedureBlockedGroupIDs []string `json:"procedureBlockedGroupIDs,omitempty"` InternalPolicyEditorIDs []string `json:"internalPolicyEditorIDs,omitempty"` @@ -7178,6 +7787,7 @@ type CreateGroupInput struct { TaskIDs []string `json:"taskIDs,omitempty"` CampaignIDs []string `json:"campaignIDs,omitempty"` CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` CreateGroupSettings *CreateGroupSettingInput `json:"createGroupSettings,omitempty"` } @@ -7304,6 +7914,7 @@ type CreateIdentityHolderInput struct { SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` PlatformIDs []string `json:"platformIDs,omitempty"` CampaignIDs []string `json:"campaignIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` TaskIDs []string `json:"taskIDs,omitempty"` FileIDs []string `json:"fileIDs,omitempty"` FindingIDs []string `json:"findingIDs,omitempty"` @@ -7701,6 +8312,8 @@ type CreateOrganizationInput struct { APITokenCreatorIDs []string `json:"apiTokenCreatorIDs,omitempty"` AssessmentCreatorIDs []string `json:"assessmentCreatorIDs,omitempty"` AssetCreatorIDs []string `json:"assetCreatorIDs,omitempty"` + AudienceCreatorIDs []string `json:"audienceCreatorIDs,omitempty"` + AudienceMemberCreatorIDs []string `json:"audienceMemberCreatorIDs,omitempty"` CampaignCreatorIDs []string `json:"campaignCreatorIDs,omitempty"` CampaignTargetCreatorIDs []string `json:"campaignTargetCreatorIDs,omitempty"` CheckResultCreatorIDs []string `json:"checkResultCreatorIDs,omitempty"` @@ -7821,6 +8434,8 @@ type CreateOrganizationInput struct { SLADefinitionIDs []string `json:"slaDefinitionIDs,omitempty"` SubprocessorIDs []string `json:"subprocessorIDs,omitempty"` ExportIDs []string `json:"exportIDs,omitempty"` + AudienceIDs []string `json:"audienceIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` TrustCenterWatermarkConfigIDs []string `json:"trustCenterWatermarkConfigIDs,omitempty"` ImpersonationEventIDs []string `json:"impersonationEventIDs,omitempty"` AssessmentIDs []string `json:"assessmentIDs,omitempty"` @@ -8695,6 +9310,7 @@ type CreateSubscriberInput struct { CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` ContactID *string `json:"contactID,omitempty"` UserID *string `json:"userID,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` } // CreateSystemDetailInput is used for create SystemDetail object. @@ -9182,6 +9798,7 @@ type CreateUserInput struct { ActionPlanIDs []string `json:"actionPlanIDs,omitempty"` CampaignIDs []string `json:"campaignIDs,omitempty"` CampaignTargetIDs []string `json:"campaignTargetIDs,omitempty"` + AudienceMemberIDs []string `json:"audienceMemberIDs,omitempty"` SubcontrolIDs []string `json:"subcontrolIDs,omitempty"` AssignerTaskIDs []string `json:"assignerTaskIDs,omitempty"` AssigneeTaskIDs []string `json:"assigneeTaskIDs,omitempty"` @@ -16914,6 +17531,9 @@ type Group struct { CampaignEditors *CampaignConnection `json:"campaignEditors"` CampaignBlockedGroups *CampaignConnection `json:"campaignBlockedGroups"` CampaignViewers *CampaignConnection `json:"campaignViewers"` + AudienceEditors *AudienceConnection `json:"audienceEditors"` + AudienceBlockedGroups *AudienceConnection `json:"audienceBlockedGroups"` + AudienceViewers *AudienceConnection `json:"audienceViewers"` ProcedureEditors *ProcedureConnection `json:"procedureEditors"` ProcedureBlockedGroups *ProcedureConnection `json:"procedureBlockedGroups"` InternalPolicyEditors *InternalPolicyConnection `json:"internalPolicyEditors"` @@ -16941,6 +17561,7 @@ type Group struct { Tasks *TaskConnection `json:"tasks"` Campaigns *CampaignConnection `json:"campaigns"` CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` Members *GroupMembershipConnection `json:"members"` // permissions the group provides Permissions *GroupPermissionConnection `json:"permissions"` @@ -17751,6 +18372,15 @@ type GroupWhereInput struct { // campaign_viewers edge predicates HasCampaignViewers *bool `json:"hasCampaignViewers,omitempty"` HasCampaignViewersWith []*CampaignWhereInput `json:"hasCampaignViewersWith,omitempty"` + // audience_editors edge predicates + HasAudienceEditors *bool `json:"hasAudienceEditors,omitempty"` + HasAudienceEditorsWith []*AudienceWhereInput `json:"hasAudienceEditorsWith,omitempty"` + // audience_blocked_groups edge predicates + HasAudienceBlockedGroups *bool `json:"hasAudienceBlockedGroups,omitempty"` + HasAudienceBlockedGroupsWith []*AudienceWhereInput `json:"hasAudienceBlockedGroupsWith,omitempty"` + // audience_viewers edge predicates + HasAudienceViewers *bool `json:"hasAudienceViewers,omitempty"` + HasAudienceViewersWith []*AudienceWhereInput `json:"hasAudienceViewersWith,omitempty"` // procedure_editors edge predicates HasProcedureEditors *bool `json:"hasProcedureEditors,omitempty"` HasProcedureEditorsWith []*ProcedureWhereInput `json:"hasProcedureEditorsWith,omitempty"` @@ -17832,6 +18462,9 @@ type GroupWhereInput struct { // campaign_targets edge predicates HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // members edge predicates HasMembers *bool `json:"hasMembers,omitempty"` HasMembersWith []*GroupMembershipWhereInput `json:"hasMembersWith,omitempty"` @@ -18213,6 +18846,7 @@ type IdentityHolder struct { Subcontrols *SubcontrolConnection `json:"subcontrols"` Platforms *PlatformConnection `json:"platforms"` Campaigns *CampaignConnection `json:"campaigns"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` Tasks *TaskConnection `json:"tasks"` Files *FileConnection `json:"files"` Findings *FindingConnection `json:"findings"` @@ -18723,6 +19357,9 @@ type IdentityHolderWhereInput struct { // campaigns edge predicates HasCampaigns *bool `json:"hasCampaigns,omitempty"` HasCampaignsWith []*CampaignWhereInput `json:"hasCampaignsWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // tasks edge predicates HasTasks *bool `json:"hasTasks,omitempty"` HasTasksWith []*TaskWhereInput `json:"hasTasksWith,omitempty"` @@ -22655,6 +23292,8 @@ type Organization struct { APITokenCreators *GroupConnection `json:"apiTokenCreators"` AssessmentCreators *GroupConnection `json:"assessmentCreators"` AssetCreators *GroupConnection `json:"assetCreators"` + AudienceCreators *GroupConnection `json:"audienceCreators"` + AudienceMemberCreators *GroupConnection `json:"audienceMemberCreators"` CampaignCreators *GroupConnection `json:"campaignCreators"` CampaignTargetCreators *GroupConnection `json:"campaignTargetCreators"` CheckResultCreators *GroupConnection `json:"checkResultCreators"` @@ -22777,6 +23416,8 @@ type Organization struct { SLADefinitions *SLADefinitionConnection `json:"slaDefinitions"` Subprocessors *SubprocessorConnection `json:"subprocessors"` Exports *ExportConnection `json:"exports"` + Audiences *AudienceConnection `json:"audiences"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` TrustCenterWatermarkConfigs *TrustCenterWatermarkConfigConnection `json:"trustCenterWatermarkConfigs"` Assessments *AssessmentConnection `json:"assessments"` AssessmentResponses *AssessmentResponseConnection `json:"assessmentResponses"` @@ -23462,6 +24103,12 @@ type OrganizationWhereInput struct { // asset_creators edge predicates HasAssetCreators *bool `json:"hasAssetCreators,omitempty"` HasAssetCreatorsWith []*GroupWhereInput `json:"hasAssetCreatorsWith,omitempty"` + // audience_creators edge predicates + HasAudienceCreators *bool `json:"hasAudienceCreators,omitempty"` + HasAudienceCreatorsWith []*GroupWhereInput `json:"hasAudienceCreatorsWith,omitempty"` + // audience_member_creators edge predicates + HasAudienceMemberCreators *bool `json:"hasAudienceMemberCreators,omitempty"` + HasAudienceMemberCreatorsWith []*GroupWhereInput `json:"hasAudienceMemberCreatorsWith,omitempty"` // campaign_creators edge predicates HasCampaignCreators *bool `json:"hasCampaignCreators,omitempty"` HasCampaignCreatorsWith []*GroupWhereInput `json:"hasCampaignCreatorsWith,omitempty"` @@ -23828,6 +24475,12 @@ type OrganizationWhereInput struct { // exports edge predicates HasExports *bool `json:"hasExports,omitempty"` HasExportsWith []*ExportWhereInput `json:"hasExportsWith,omitempty"` + // audiences edge predicates + HasAudiences *bool `json:"hasAudiences,omitempty"` + HasAudiencesWith []*AudienceWhereInput `json:"hasAudiencesWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // trust_center_watermark_configs edge predicates HasTrustCenterWatermarkConfigs *bool `json:"hasTrustCenterWatermarkConfigs,omitempty"` HasTrustCenterWatermarkConfigsWith []*TrustCenterWatermarkConfigWhereInput `json:"hasTrustCenterWatermarkConfigsWith,omitempty"` @@ -29059,6 +29712,8 @@ type SearchResults struct { Assessments *AssessmentConnection `json:"assessments,omitempty"` AssessmentResponses *AssessmentResponseConnection `json:"assessmentResponses,omitempty"` Assets *AssetConnection `json:"assets,omitempty"` + Audiences *AudienceConnection `json:"audiences,omitempty"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers,omitempty"` Campaigns *CampaignConnection `json:"campaigns,omitempty"` CampaignTargets *CampaignTargetConnection `json:"campaignTargets,omitempty"` Contacts *ContactConnection `json:"contacts,omitempty"` @@ -30492,6 +31147,7 @@ type Subscriber struct { CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` Contact *Contact `json:"contact,omitempty"` User *User `json:"user,omitempty"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` } func (Subscriber) IsNode() {} @@ -30718,6 +31374,9 @@ type SubscriberWhereInput struct { // user edge predicates HasUser *bool `json:"hasUser,omitempty"` HasUserWith []*UserWhereInput `json:"hasUserWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // Filter for tagsHas to contain a specific value TagsHas *string `json:"tagsHas,omitempty"` } @@ -35402,6 +36061,74 @@ type UpdateAssetInput struct { ClearConnectedFrom *bool `json:"clearConnectedFrom,omitempty"` } +// UpdateAudienceInput is used for update Audience object. +// Input was generated by ent. +type UpdateAudienceInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + AppendTags []string `json:"appendTags,omitempty"` + ClearTags *bool `json:"clearTags,omitempty"` + // the name of the audience + Name *string `json:"name,omitempty"` + // the description of the audience + Description *string `json:"description,omitempty"` + ClearDescription *bool `json:"clearDescription,omitempty"` + // the audience resolution type + AudienceType *enums.AudienceType `json:"audienceType,omitempty"` + // selector filters for dynamic audiences + Filters map[string]any `json:"filters,omitempty"` + ClearFilters *bool `json:"clearFilters,omitempty"` + // additional metadata about the audience + Metadata map[string]any `json:"metadata,omitempty"` + ClearMetadata *bool `json:"clearMetadata,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"` + AddEditorIDs []string `json:"addEditorIDs,omitempty"` + RemoveEditorIDs []string `json:"removeEditorIDs,omitempty"` + ClearEditors *bool `json:"clearEditors,omitempty"` + AddViewerIDs []string `json:"addViewerIDs,omitempty"` + RemoveViewerIDs []string `json:"removeViewerIDs,omitempty"` + ClearViewers *bool `json:"clearViewers,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` + AddCampaignIDs []string `json:"addCampaignIDs,omitempty"` + RemoveCampaignIDs []string `json:"removeCampaignIDs,omitempty"` + ClearCampaigns *bool `json:"clearCampaigns,omitempty"` +} + +// UpdateAudienceMemberInput is used for update AudienceMember object. +// Input was generated by ent. +type UpdateAudienceMemberInput struct { + // tags associated with the object + Tags []string `json:"tags,omitempty"` + AppendTags []string `json:"appendTags,omitempty"` + ClearTags *bool `json:"clearTags,omitempty"` + // the email address for this audience member + Email *string `json:"email,omitempty"` + // the name of this audience member, if known + FullName *string `json:"fullName,omitempty"` + ClearFullName *bool `json:"clearFullName,omitempty"` + // additional metadata about the audience member + Metadata map[string]any `json:"metadata,omitempty"` + ClearMetadata *bool `json:"clearMetadata,omitempty"` + OwnerID *string `json:"ownerID,omitempty"` + ClearOwner *bool `json:"clearOwner,omitempty"` + ContactID *string `json:"contactID,omitempty"` + ClearContact *bool `json:"clearContact,omitempty"` + UserID *string `json:"userID,omitempty"` + ClearUser *bool `json:"clearUser,omitempty"` + GroupID *string `json:"groupID,omitempty"` + ClearGroup *bool `json:"clearGroup,omitempty"` + IdentityHolderID *string `json:"identityHolderID,omitempty"` + ClearIdentityHolder *bool `json:"clearIdentityHolder,omitempty"` + SubscriberID *string `json:"subscriberID,omitempty"` + ClearSubscriber *bool `json:"clearSubscriber,omitempty"` +} + // UpdateCampaignInput is used for update Campaign object. // Input was generated by ent. type UpdateCampaignInput struct { @@ -35519,6 +36246,9 @@ type UpdateCampaignInput struct { AddIdentityHolderIDs []string `json:"addIdentityHolderIDs,omitempty"` RemoveIdentityHolderIDs []string `json:"removeIdentityHolderIDs,omitempty"` ClearIdentityHolders *bool `json:"clearIdentityHolders,omitempty"` + AddAudienceIDs []string `json:"addAudienceIDs,omitempty"` + RemoveAudienceIDs []string `json:"removeAudienceIDs,omitempty"` + ClearAudiences *bool `json:"clearAudiences,omitempty"` AddControlIDs []string `json:"addControlIDs,omitempty"` RemoveControlIDs []string `json:"removeControlIDs,omitempty"` ClearControls *bool `json:"clearControls,omitempty"` @@ -35649,6 +36379,9 @@ type UpdateContactInput struct { AddCampaignTargetIDs []string `json:"addCampaignTargetIDs,omitempty"` RemoveCampaignTargetIDs []string `json:"removeCampaignTargetIDs,omitempty"` ClearCampaignTargets *bool `json:"clearCampaignTargets,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` AddFileIDs []string `json:"addFileIDs,omitempty"` RemoveFileIDs []string `json:"removeFileIDs,omitempty"` ClearFiles *bool `json:"clearFiles,omitempty"` @@ -37468,6 +38201,15 @@ type UpdateGroupInput struct { AddCampaignViewerIDs []string `json:"addCampaignViewerIDs,omitempty"` RemoveCampaignViewerIDs []string `json:"removeCampaignViewerIDs,omitempty"` ClearCampaignViewers *bool `json:"clearCampaignViewers,omitempty"` + AddAudienceEditorIDs []string `json:"addAudienceEditorIDs,omitempty"` + RemoveAudienceEditorIDs []string `json:"removeAudienceEditorIDs,omitempty"` + ClearAudienceEditors *bool `json:"clearAudienceEditors,omitempty"` + AddAudienceBlockedGroupIDs []string `json:"addAudienceBlockedGroupIDs,omitempty"` + RemoveAudienceBlockedGroupIDs []string `json:"removeAudienceBlockedGroupIDs,omitempty"` + ClearAudienceBlockedGroups *bool `json:"clearAudienceBlockedGroups,omitempty"` + AddAudienceViewerIDs []string `json:"addAudienceViewerIDs,omitempty"` + RemoveAudienceViewerIDs []string `json:"removeAudienceViewerIDs,omitempty"` + ClearAudienceViewers *bool `json:"clearAudienceViewers,omitempty"` AddProcedureEditorIDs []string `json:"addProcedureEditorIDs,omitempty"` RemoveProcedureEditorIDs []string `json:"removeProcedureEditorIDs,omitempty"` ClearProcedureEditors *bool `json:"clearProcedureEditors,omitempty"` @@ -37544,6 +38286,9 @@ type UpdateGroupInput struct { AddCampaignTargetIDs []string `json:"addCampaignTargetIDs,omitempty"` RemoveCampaignTargetIDs []string `json:"removeCampaignTargetIDs,omitempty"` ClearCampaignTargets *bool `json:"clearCampaignTargets,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` AddGroupMembers []*CreateGroupMembershipInput `json:"addGroupMembers,omitempty"` RemoveGroupMembers []string `json:"removeGroupMembers,omitempty"` UpdateGroupSettings *UpdateGroupSettingInput `json:"updateGroupSettings,omitempty"` @@ -37740,6 +38485,9 @@ type UpdateIdentityHolderInput struct { AddCampaignIDs []string `json:"addCampaignIDs,omitempty"` RemoveCampaignIDs []string `json:"removeCampaignIDs,omitempty"` ClearCampaigns *bool `json:"clearCampaigns,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` AddTaskIDs []string `json:"addTaskIDs,omitempty"` RemoveTaskIDs []string `json:"removeTaskIDs,omitempty"` ClearTasks *bool `json:"clearTasks,omitempty"` @@ -38304,6 +39052,12 @@ type UpdateOrganizationInput struct { AddAssetCreatorIDs []string `json:"addAssetCreatorIDs,omitempty"` RemoveAssetCreatorIDs []string `json:"removeAssetCreatorIDs,omitempty"` ClearAssetCreators *bool `json:"clearAssetCreators,omitempty"` + AddAudienceCreatorIDs []string `json:"addAudienceCreatorIDs,omitempty"` + RemoveAudienceCreatorIDs []string `json:"removeAudienceCreatorIDs,omitempty"` + ClearAudienceCreators *bool `json:"clearAudienceCreators,omitempty"` + AddAudienceMemberCreatorIDs []string `json:"addAudienceMemberCreatorIDs,omitempty"` + RemoveAudienceMemberCreatorIDs []string `json:"removeAudienceMemberCreatorIDs,omitempty"` + ClearAudienceMemberCreators *bool `json:"clearAudienceMemberCreators,omitempty"` AddCampaignCreatorIDs []string `json:"addCampaignCreatorIDs,omitempty"` RemoveCampaignCreatorIDs []string `json:"removeCampaignCreatorIDs,omitempty"` ClearCampaignCreators *bool `json:"clearCampaignCreators,omitempty"` @@ -38659,6 +39413,12 @@ type UpdateOrganizationInput struct { AddExportIDs []string `json:"addExportIDs,omitempty"` RemoveExportIDs []string `json:"removeExportIDs,omitempty"` ClearExports *bool `json:"clearExports,omitempty"` + AddAudienceIDs []string `json:"addAudienceIDs,omitempty"` + RemoveAudienceIDs []string `json:"removeAudienceIDs,omitempty"` + ClearAudiences *bool `json:"clearAudiences,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` AddTrustCenterWatermarkConfigIDs []string `json:"addTrustCenterWatermarkConfigIDs,omitempty"` RemoveTrustCenterWatermarkConfigIDs []string `json:"removeTrustCenterWatermarkConfigIDs,omitempty"` ClearTrustCenterWatermarkConfigs *bool `json:"clearTrustCenterWatermarkConfigs,omitempty"` @@ -40246,6 +41006,9 @@ type UpdateSubscriberInput struct { ClearContact *bool `json:"clearContact,omitempty"` UserID *string `json:"userID,omitempty"` ClearUser *bool `json:"clearUser,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` } // UpdateSystemDetailInput is used for update SystemDetail object. @@ -40966,6 +41729,9 @@ type UpdateUserInput struct { AddCampaignTargetIDs []string `json:"addCampaignTargetIDs,omitempty"` RemoveCampaignTargetIDs []string `json:"removeCampaignTargetIDs,omitempty"` ClearCampaignTargets *bool `json:"clearCampaignTargets,omitempty"` + AddAudienceMemberIDs []string `json:"addAudienceMemberIDs,omitempty"` + RemoveAudienceMemberIDs []string `json:"removeAudienceMemberIDs,omitempty"` + ClearAudienceMembers *bool `json:"clearAudienceMembers,omitempty"` AddSubcontrolIDs []string `json:"addSubcontrolIDs,omitempty"` RemoveSubcontrolIDs []string `json:"removeSubcontrolIDs,omitempty"` ClearSubcontrols *bool `json:"clearSubcontrols,omitempty"` @@ -41440,6 +42206,7 @@ type User struct { ActionPlans *ActionPlanConnection `json:"actionPlans"` Campaigns *CampaignConnection `json:"campaigns"` CampaignTargets *CampaignTargetConnection `json:"campaignTargets"` + AudienceMembers *AudienceMemberConnection `json:"audienceMembers"` Subcontrols *SubcontrolConnection `json:"subcontrols"` AssignerTasks *TaskConnection `json:"assignerTasks"` AssigneeTasks *TaskConnection `json:"assigneeTasks"` @@ -42022,6 +42789,9 @@ type UserWhereInput struct { // campaign_targets edge predicates HasCampaignTargets *bool `json:"hasCampaignTargets,omitempty"` HasCampaignTargetsWith []*CampaignTargetWhereInput `json:"hasCampaignTargetsWith,omitempty"` + // audience_members edge predicates + HasAudienceMembers *bool `json:"hasAudienceMembers,omitempty"` + HasAudienceMembersWith []*AudienceMemberWhereInput `json:"hasAudienceMembersWith,omitempty"` // subcontrols edge predicates HasSubcontrols *bool `json:"hasSubcontrols,omitempty"` HasSubcontrolsWith []*SubcontrolWhereInput `json:"hasSubcontrolsWith,omitempty"` @@ -46297,6 +47067,126 @@ func (e AssetOrderField) MarshalJSON() ([]byte, error) { return buf.Bytes(), nil } +// Properties by which AudienceMember connections can be ordered. +type AudienceMemberOrderField string + +const ( + AudienceMemberOrderFieldCreatedAt AudienceMemberOrderField = "created_at" + AudienceMemberOrderFieldUpdatedAt AudienceMemberOrderField = "updated_at" + AudienceMemberOrderFieldEmail AudienceMemberOrderField = "email" + AudienceMemberOrderFieldFullName AudienceMemberOrderField = "full_name" +) + +var AllAudienceMemberOrderField = []AudienceMemberOrderField{ + AudienceMemberOrderFieldCreatedAt, + AudienceMemberOrderFieldUpdatedAt, + AudienceMemberOrderFieldEmail, + AudienceMemberOrderFieldFullName, +} + +func (e AudienceMemberOrderField) IsValid() bool { + switch e { + case AudienceMemberOrderFieldCreatedAt, AudienceMemberOrderFieldUpdatedAt, AudienceMemberOrderFieldEmail, AudienceMemberOrderFieldFullName: + return true + } + return false +} + +func (e AudienceMemberOrderField) String() string { + return string(e) +} + +func (e *AudienceMemberOrderField) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AudienceMemberOrderField(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AudienceMemberOrderField", str) + } + return nil +} + +func (e AudienceMemberOrderField) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *AudienceMemberOrderField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AudienceMemberOrderField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + +// Properties by which Audience connections can be ordered. +type AudienceOrderField string + +const ( + AudienceOrderFieldCreatedAt AudienceOrderField = "created_at" + AudienceOrderFieldUpdatedAt AudienceOrderField = "updated_at" + AudienceOrderFieldName AudienceOrderField = "name" + AudienceOrderFieldAudienceType AudienceOrderField = "AUDIENCE_TYPE" +) + +var AllAudienceOrderField = []AudienceOrderField{ + AudienceOrderFieldCreatedAt, + AudienceOrderFieldUpdatedAt, + AudienceOrderFieldName, + AudienceOrderFieldAudienceType, +} + +func (e AudienceOrderField) IsValid() bool { + switch e { + case AudienceOrderFieldCreatedAt, AudienceOrderFieldUpdatedAt, AudienceOrderFieldName, AudienceOrderFieldAudienceType: + return true + } + return false +} + +func (e AudienceOrderField) String() string { + return string(e) +} + +func (e *AudienceOrderField) UnmarshalGQL(v any) error { + str, ok := v.(string) + if !ok { + return fmt.Errorf("enums must be strings") + } + + *e = AudienceOrderField(str) + if !e.IsValid() { + return fmt.Errorf("%s is not a valid AudienceOrderField", str) + } + return nil +} + +func (e AudienceOrderField) MarshalGQL(w io.Writer) { + fmt.Fprint(w, strconv.Quote(e.String())) +} + +func (e *AudienceOrderField) UnmarshalJSON(b []byte) error { + s, err := strconv.Unquote(string(b)) + if err != nil { + return err + } + return e.UnmarshalGQL(s) +} + +func (e AudienceOrderField) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + e.MarshalGQL(&buf) + return buf.Bytes(), nil +} + // Properties by which Campaign connections can be ordered. type CampaignOrderField string diff --git a/internal/httpserve/handlers/csv/sample_audience.csv b/internal/httpserve/handlers/csv/sample_audience.csv new file mode 100644 index 0000000000..950113cece --- /dev/null +++ b/internal/httpserve/handlers/csv/sample_audience.csv @@ -0,0 +1,2 @@ +Tags,Name,Description,AudienceType,Filters,Metadata,OwnerId,BlockedGroupIDs,EditorIDs,ViewerIDs,AudienceMemberIDs,CampaignIDs +example_tags,example_name,example_description,example_audiencetype,example_filters,example_metadata,example_ownerid,example_blockedgroupids,example_editorids,example_viewerids,example_audiencememberids,example_campaignids diff --git a/internal/httpserve/handlers/csv/sample_audiencemember.csv b/internal/httpserve/handlers/csv/sample_audiencemember.csv new file mode 100644 index 0000000000..d30ef7d244 --- /dev/null +++ b/internal/httpserve/handlers/csv/sample_audiencemember.csv @@ -0,0 +1,2 @@ +Tags,Email,FullName,Metadata,OwnerId,AudienceId,ContactId,UserId,GroupId,IdentityHolderId,SubscriberId +example_tags,example_email,example_fullname,example_metadata,example_ownerid,example_audienceid,example_contactid,example_userid,example_groupid,example_identityholderid,example_subscriberid diff --git a/internal/httpserve/handlers/csv/sample_campaign.csv b/internal/httpserve/handlers/csv/sample_campaign.csv index 117c3c9100..a122836a3d 100644 --- a/internal/httpserve/handlers/csv/sample_campaign.csv +++ b/internal/httpserve/handlers/csv/sample_campaign.csv @@ -1,2 +1,2 @@ -Tags,InternalOwner,WorkflowEligibleMarker,Name,Description,CampaignType,Status,IsActive,ScheduledAt,LaunchedAt,CompletedAt,DueDate,IsRecurring,RecurrenceFrequency,RecurrenceInterval,RecurrenceTimezone,RecurrenceCron,LastRunAt,NextRunAt,RecurrenceEndAt,RecipientCount,ResendCount,LastResentAt,Metadata,EmailBrandingId,OwnerId,BlockedGroupIDs,EditorIDs,ViewerIDs,InternalOwnerUserId,InternalOwnerGroupId,AssessmentId,TemplateId,IntegrationId,EmailTemplateId,EntityId,TrustCenterId,CampaignTargetIDs,AssessmentResponseIDs,ContactIDs,UserIDs,GroupIDs,IdentityHolderIDs,ControlIDs,WorkflowObjectRefIDs,CampaignEntityName,CampaignTemplateRef,InternalOwnerGroupName,InternalOwnerUserEmail -example_tags,example_internalowner,example_workfloweligiblemarker,example_name,example_description,example_campaigntype,example_status,example_isactive,example_scheduledat,example_launchedat,example_completedat,example_duedate,example_isrecurring,example_recurrencefrequency,example_recurrenceinterval,example_recurrencetimezone,example_recurrencecron,example_lastrunat,example_nextrunat,example_recurrenceendat,example_recipientcount,example_resendcount,example_lastresentat,example_metadata,example_emailbrandingid,example_ownerid,example_blockedgroupids,example_editorids,example_viewerids,example_internalowneruserid,example_internalownergroupid,example_assessmentid,example_templateid,example_integrationid,example_emailtemplateid,example_entityid,example_trustcenterid,example_campaigntargetids,example_assessmentresponseids,example_contactids,example_userids,example_groupids,example_identityholderids,example_controlids,example_workflowobjectrefids,example_campaignentityname,example_campaigntemplateref,example_internalownergroupname,example_internalowneruseremail +Tags,InternalOwner,WorkflowEligibleMarker,Name,Description,CampaignType,Status,IsActive,ScheduledAt,LaunchedAt,CompletedAt,DueDate,IsRecurring,RecurrenceFrequency,RecurrenceInterval,RecurrenceTimezone,RecurrenceCron,LastRunAt,NextRunAt,RecurrenceEndAt,RecipientCount,ResendCount,LastResentAt,Metadata,EmailBrandingId,OwnerId,BlockedGroupIDs,EditorIDs,ViewerIDs,InternalOwnerUserId,InternalOwnerGroupId,AssessmentId,TemplateId,IntegrationId,EmailTemplateId,EntityId,TrustCenterId,CampaignTargetIDs,AssessmentResponseIDs,ContactIDs,UserIDs,GroupIDs,IdentityHolderIDs,AudienceIDs,ControlIDs,WorkflowObjectRefIDs,CampaignEntityName,CampaignTemplateRef,InternalOwnerGroupName,InternalOwnerUserEmail +example_tags,example_internalowner,example_workfloweligiblemarker,example_name,example_description,example_campaigntype,example_status,example_isactive,example_scheduledat,example_launchedat,example_completedat,example_duedate,example_isrecurring,example_recurrencefrequency,example_recurrenceinterval,example_recurrencetimezone,example_recurrencecron,example_lastrunat,example_nextrunat,example_recurrenceendat,example_recipientcount,example_resendcount,example_lastresentat,example_metadata,example_emailbrandingid,example_ownerid,example_blockedgroupids,example_editorids,example_viewerids,example_internalowneruserid,example_internalownergroupid,example_assessmentid,example_templateid,example_integrationid,example_emailtemplateid,example_entityid,example_trustcenterid,example_campaigntargetids,example_assessmentresponseids,example_contactids,example_userids,example_groupids,example_identityholderids,example_audienceids,example_controlids,example_workflowobjectrefids,example_campaignentityname,example_campaigntemplateref,example_internalownergroupname,example_internalowneruseremail diff --git a/internal/httpserve/handlers/csv/sample_contact.csv b/internal/httpserve/handlers/csv/sample_contact.csv index 307c0420c2..3346e66b85 100644 --- a/internal/httpserve/handlers/csv/sample_contact.csv +++ b/internal/httpserve/handlers/csv/sample_contact.csv @@ -1,2 +1,2 @@ -Tags,FullName,Title,Company,Email,PhoneNumber,Address,Status,ExternalId,IntegrationId,ObservedAt,OwnerId,EntityIDs,CampaignIDs,CampaignTargetIDs,FileIDs,SubscriberIDs -example_tags,example_fullname,example_title,example_company,example_email,example_phonenumber,example_address,example_status,example_externalid,example_integrationid,example_observedat,example_ownerid,example_entityids,example_campaignids,example_campaigntargetids,example_fileids,example_subscriberids +Tags,FullName,Title,Company,Email,PhoneNumber,Address,Status,ExternalId,IntegrationId,ObservedAt,OwnerId,EntityIDs,CampaignIDs,CampaignTargetIDs,AudienceMemberIDs,FileIDs,SubscriberIDs +example_tags,example_fullname,example_title,example_company,example_email,example_phonenumber,example_address,example_status,example_externalid,example_integrationid,example_observedat,example_ownerid,example_entityids,example_campaignids,example_campaigntargetids,example_audiencememberids,example_fileids,example_subscriberids diff --git a/internal/httpserve/handlers/csv/sample_group.csv b/internal/httpserve/handlers/csv/sample_group.csv index 7048405da5..1fc71cee06 100644 --- a/internal/httpserve/handlers/csv/sample_group.csv +++ b/internal/httpserve/handlers/csv/sample_group.csv @@ -1,2 +1,2 @@ -Tags,Name,Description,LogoUrl,DisplayName,OscalRole,OscalPartyUuid,OscalContactUuids,ScimExternalId,ScimDisplayName,ScimActive,ScimGroupMailing,OwnerId,ProgramEditorIDs,ProgramBlockedGroupIDs,ProgramViewerIDs,RiskEditorIDs,RiskBlockedGroupIDs,RiskViewerIDs,ControlObjectiveEditorIDs,ControlObjectiveBlockedGroupIDs,ControlObjectiveViewerIDs,NarrativeEditorIDs,NarrativeBlockedGroupIDs,NarrativeViewerIDs,ControlImplementationEditorIDs,ControlImplementationBlockedGroupIDs,ControlImplementationViewerIDs,ActionPlanEditorIDs,ActionPlanBlockedGroupIDs,ActionPlanViewerIDs,PlatformEditorIDs,PlatformBlockedGroupIDs,PlatformViewerIDs,CampaignEditorIDs,CampaignBlockedGroupIDs,CampaignViewerIDs,ProcedureEditorIDs,ProcedureBlockedGroupIDs,InternalPolicyEditorIDs,InternalPolicyBlockedGroupIDs,ControlEditorIDs,ControlBlockedGroupIDs,MappedControlEditorIDs,MappedControlBlockedGroupIDs,ScanEditorIDs,ScanBlockedGroupIDs,EntityEditorIDs,EntityBlockedGroupIDs,FindingEditorIDs,FindingBlockedGroupIDs,ReviewEditorIDs,ReviewBlockedGroupIDs,RemediationEditorIDs,RemediationBlockedGroupIDs,SettingId,EventIDs,IntegrationIDs,AvatarFileId,FileIDs,TaskIDs,CampaignIDs,CampaignTargetIDs,CreateGroupSettings -example_tags,example_name,example_description,example_logourl,example_displayname,example_oscalrole,example_oscalpartyuuid,example_oscalcontactuuids,example_scimexternalid,example_scimdisplayname,example_scimactive,example_scimgroupmailing,example_ownerid,example_programeditorids,example_programblockedgroupids,example_programviewerids,example_riskeditorids,example_riskblockedgroupids,example_riskviewerids,example_controlobjectiveeditorids,example_controlobjectiveblockedgroupids,example_controlobjectiveviewerids,example_narrativeeditorids,example_narrativeblockedgroupids,example_narrativeviewerids,example_controlimplementationeditorids,example_controlimplementationblockedgroupids,example_controlimplementationviewerids,example_actionplaneditorids,example_actionplanblockedgroupids,example_actionplanviewerids,example_platformeditorids,example_platformblockedgroupids,example_platformviewerids,example_campaigneditorids,example_campaignblockedgroupids,example_campaignviewerids,example_procedureeditorids,example_procedureblockedgroupids,example_internalpolicyeditorids,example_internalpolicyblockedgroupids,example_controleditorids,example_controlblockedgroupids,example_mappedcontroleditorids,example_mappedcontrolblockedgroupids,example_scaneditorids,example_scanblockedgroupids,example_entityeditorids,example_entityblockedgroupids,example_findingeditorids,example_findingblockedgroupids,example_revieweditorids,example_reviewblockedgroupids,example_remediationeditorids,example_remediationblockedgroupids,example_settingid,example_eventids,example_integrationids,example_avatarfileid,example_fileids,example_taskids,example_campaignids,example_campaigntargetids,example_creategroupsettings +Tags,Name,Description,LogoUrl,DisplayName,OscalRole,OscalPartyUuid,OscalContactUuids,ScimExternalId,ScimDisplayName,ScimActive,ScimGroupMailing,OwnerId,ProgramEditorIDs,ProgramBlockedGroupIDs,ProgramViewerIDs,RiskEditorIDs,RiskBlockedGroupIDs,RiskViewerIDs,ControlObjectiveEditorIDs,ControlObjectiveBlockedGroupIDs,ControlObjectiveViewerIDs,NarrativeEditorIDs,NarrativeBlockedGroupIDs,NarrativeViewerIDs,ControlImplementationEditorIDs,ControlImplementationBlockedGroupIDs,ControlImplementationViewerIDs,ActionPlanEditorIDs,ActionPlanBlockedGroupIDs,ActionPlanViewerIDs,PlatformEditorIDs,PlatformBlockedGroupIDs,PlatformViewerIDs,CampaignEditorIDs,CampaignBlockedGroupIDs,CampaignViewerIDs,AudienceEditorIDs,AudienceBlockedGroupIDs,AudienceViewerIDs,ProcedureEditorIDs,ProcedureBlockedGroupIDs,InternalPolicyEditorIDs,InternalPolicyBlockedGroupIDs,ControlEditorIDs,ControlBlockedGroupIDs,MappedControlEditorIDs,MappedControlBlockedGroupIDs,ScanEditorIDs,ScanBlockedGroupIDs,EntityEditorIDs,EntityBlockedGroupIDs,FindingEditorIDs,FindingBlockedGroupIDs,ReviewEditorIDs,ReviewBlockedGroupIDs,RemediationEditorIDs,RemediationBlockedGroupIDs,SettingId,EventIDs,IntegrationIDs,AvatarFileId,FileIDs,TaskIDs,CampaignIDs,CampaignTargetIDs,AudienceMemberIDs,CreateGroupSettings +example_tags,example_name,example_description,example_logourl,example_displayname,example_oscalrole,example_oscalpartyuuid,example_oscalcontactuuids,example_scimexternalid,example_scimdisplayname,example_scimactive,example_scimgroupmailing,example_ownerid,example_programeditorids,example_programblockedgroupids,example_programviewerids,example_riskeditorids,example_riskblockedgroupids,example_riskviewerids,example_controlobjectiveeditorids,example_controlobjectiveblockedgroupids,example_controlobjectiveviewerids,example_narrativeeditorids,example_narrativeblockedgroupids,example_narrativeviewerids,example_controlimplementationeditorids,example_controlimplementationblockedgroupids,example_controlimplementationviewerids,example_actionplaneditorids,example_actionplanblockedgroupids,example_actionplanviewerids,example_platformeditorids,example_platformblockedgroupids,example_platformviewerids,example_campaigneditorids,example_campaignblockedgroupids,example_campaignviewerids,example_audienceeditorids,example_audienceblockedgroupids,example_audienceviewerids,example_procedureeditorids,example_procedureblockedgroupids,example_internalpolicyeditorids,example_internalpolicyblockedgroupids,example_controleditorids,example_controlblockedgroupids,example_mappedcontroleditorids,example_mappedcontrolblockedgroupids,example_scaneditorids,example_scanblockedgroupids,example_entityeditorids,example_entityblockedgroupids,example_findingeditorids,example_findingblockedgroupids,example_revieweditorids,example_reviewblockedgroupids,example_remediationeditorids,example_remediationblockedgroupids,example_settingid,example_eventids,example_integrationids,example_avatarfileid,example_fileids,example_taskids,example_campaignids,example_campaigntargetids,example_audiencememberids,example_creategroupsettings diff --git a/internal/httpserve/handlers/csv/sample_identityholder.csv b/internal/httpserve/handlers/csv/sample_identityholder.csv index 84fb41ef08..bc6c4bd7f0 100644 --- a/internal/httpserve/handlers/csv/sample_identityholder.csv +++ b/internal/httpserve/handlers/csv/sample_identityholder.csv @@ -1,2 +1,2 @@ -Tags,InternalOwner,EnvironmentName,ScopeName,WorkflowEligibleMarker,FullName,Email,AlternateEmail,EmailAliases,PhoneNumber,IsOpenlaneUser,IdentityHolderType,Status,IsActive,Title,Department,Team,Location,StartDate,EndDate,ExternalUserId,ExternalReferenceId,Metadata,AvatarRemoteUrl,OwnerId,BlockedGroupIDs,EditorIDs,ViewerIDs,InternalOwnerUserId,InternalOwnerGroupId,EnvironmentId,ScopeId,EmployerId,AssessmentResponseIDs,AssessmentIDs,TemplateIDs,AssetIDs,EntityIDs,DirectoryAccountIDs,ControlIDs,SubcontrolIDs,PlatformIDs,CampaignIDs,TaskIDs,FileIDs,FindingIDs,WorkflowObjectRefIDs,AccessPlatformIDs,UserId,InternalPolicyIDs,EmployerEntityName,IdentityHolderUserEmail,InternalOwnerGroupName,InternalOwnerUserEmail -example_tags,example_internalowner,example_environmentname,example_scopename,example_workfloweligiblemarker,example_fullname,example_email,example_alternateemail,example_emailaliases,example_phonenumber,example_isopenlaneuser,example_identityholdertype,example_status,example_isactive,example_title,example_department,example_team,example_location,example_startdate,example_enddate,example_externaluserid,example_externalreferenceid,example_metadata,example_avatarremoteurl,example_ownerid,example_blockedgroupids,example_editorids,example_viewerids,example_internalowneruserid,example_internalownergroupid,example_environmentid,example_scopeid,example_employerid,example_assessmentresponseids,example_assessmentids,example_templateids,example_assetids,example_entityids,example_directoryaccountids,example_controlids,example_subcontrolids,example_platformids,example_campaignids,example_taskids,example_fileids,example_findingids,example_workflowobjectrefids,example_accessplatformids,example_userid,example_internalpolicyids,example_employerentityname,example_identityholderuseremail,example_internalownergroupname,example_internalowneruseremail +Tags,InternalOwner,EnvironmentName,ScopeName,WorkflowEligibleMarker,FullName,Email,AlternateEmail,EmailAliases,PhoneNumber,IsOpenlaneUser,IdentityHolderType,Status,IsActive,Title,Department,Team,Location,StartDate,EndDate,ExternalUserId,ExternalReferenceId,Metadata,AvatarRemoteUrl,OwnerId,BlockedGroupIDs,EditorIDs,ViewerIDs,InternalOwnerUserId,InternalOwnerGroupId,EnvironmentId,ScopeId,EmployerId,AssessmentResponseIDs,AssessmentIDs,TemplateIDs,AssetIDs,EntityIDs,DirectoryAccountIDs,ControlIDs,SubcontrolIDs,PlatformIDs,CampaignIDs,AudienceMemberIDs,TaskIDs,FileIDs,FindingIDs,WorkflowObjectRefIDs,AccessPlatformIDs,UserId,InternalPolicyIDs,EmployerEntityName,IdentityHolderUserEmail,InternalOwnerGroupName,InternalOwnerUserEmail +example_tags,example_internalowner,example_environmentname,example_scopename,example_workfloweligiblemarker,example_fullname,example_email,example_alternateemail,example_emailaliases,example_phonenumber,example_isopenlaneuser,example_identityholdertype,example_status,example_isactive,example_title,example_department,example_team,example_location,example_startdate,example_enddate,example_externaluserid,example_externalreferenceid,example_metadata,example_avatarremoteurl,example_ownerid,example_blockedgroupids,example_editorids,example_viewerids,example_internalowneruserid,example_internalownergroupid,example_environmentid,example_scopeid,example_employerid,example_assessmentresponseids,example_assessmentids,example_templateids,example_assetids,example_entityids,example_directoryaccountids,example_controlids,example_subcontrolids,example_platformids,example_campaignids,example_audiencememberids,example_taskids,example_fileids,example_findingids,example_workflowobjectrefids,example_accessplatformids,example_userid,example_internalpolicyids,example_employerentityname,example_identityholderuseremail,example_internalownergroupname,example_internalowneruseremail diff --git a/internal/httpserve/handlers/csv/sample_subscriber.csv b/internal/httpserve/handlers/csv/sample_subscriber.csv index e8c6d4eccb..4a6d750cd0 100644 --- a/internal/httpserve/handlers/csv/sample_subscriber.csv +++ b/internal/httpserve/handlers/csv/sample_subscriber.csv @@ -1,2 +1,2 @@ -Tags,Email,PhoneNumber,OwnerId,EventIDs,TrustCenterId,CampaignTargetIDs,ContactId,UserId -example_tags,example_email,example_phonenumber,example_ownerid,example_eventids,example_trustcenterid,example_campaigntargetids,example_contactid,example_userid +Tags,Email,PhoneNumber,OwnerId,EventIDs,TrustCenterId,CampaignTargetIDs,ContactId,UserId,AudienceMemberIDs +example_tags,example_email,example_phonenumber,example_ownerid,example_eventids,example_trustcenterid,example_campaigntargetids,example_contactid,example_userid,example_audiencememberids diff --git a/internal/integrations/definitions/email/audience_targets.go b/internal/integrations/definitions/email/audience_targets.go new file mode 100644 index 0000000000..ef86a6f3e9 --- /dev/null +++ b/internal/integrations/definitions/email/audience_targets.go @@ -0,0 +1,352 @@ +package email + +import ( + "context" + "errors" + "fmt" + "strings" + + "github.com/samber/lo" + + "github.com/theopenlane/core/common/enums" + "github.com/theopenlane/core/v2/internal/audiences" + "github.com/theopenlane/core/v2/internal/ent/generated" + "github.com/theopenlane/core/v2/internal/ent/generated/audiencemember" + "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" + "github.com/theopenlane/core/v2/internal/ent/generated/privacy" + "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" +) + +const ( + audienceTargetSourceKey = "audience_source" + audienceTargetAudienceIDKey = "audience_id" + audienceTargetSourceObjectKey = "source_object_id" + audienceTargetBatchSize = 100 + audienceTargetMetadataFields = 3 +) + +var errUnsupportedAudienceType = errors.New("unsupported audience type") + +type audienceRecipient struct { + email string + fullName string + contactID string + userID string + groupID string + subscriberID string + source string + audienceID string + sourceObjectID string + metadata map[string]any +} + +type audienceRecipientResolveOptions struct { + audienceID string + audienceType enums.AudienceType + audience *generated.Audience + db *generated.Client + orgID string + filters map[string]any +} + +type campaignRecipientHandlerFunc func([]audienceRecipient) error + +func snapshotCampaignAudiences(ctx context.Context, db *generated.Client, camp *generated.Campaign) error { + allowCtx := privacy.DecisionContext(ctx, privacy.Allow) + + records, err := camp.QueryAudiences().All(allowCtx) + if err != nil { + return err + } + + if len(records) == 0 { + return nil + } + + return snapshotCampaignRecipients(allowCtx, db, camp, func(handle campaignRecipientHandlerFunc) error { + for _, aud := range records { + opts := audienceRecipientResolveOptions{ + audienceID: aud.ID, + audienceType: aud.AudienceType, + audience: aud, + db: db, + orgID: camp.OwnerID, + filters: aud.Filters, + } + + if err := resolveAudienceRecipients(allowCtx, opts, handle); err != nil { + return err + } + } + + return nil + }) +} + +func snapshotCampaignRecipients(ctx context.Context, db *generated.Client, camp *generated.Campaign, resolveFn func(campaignRecipientHandlerFunc) error) error { + recipients := &set{ + seen: map[string]struct{}{}, + } + if err := recipients.loadExistingCampaignTargets(ctx, db, camp.ID); err != nil { + return err + } + + builders := make([]*generated.CampaignTargetCreate, 0, audienceTargetBatchSize) + createTargetsFn := func() error { + if len(builders) == 0 { + return nil + } + + if err := db.CampaignTarget.CreateBulk(builders...).Exec(ctx); err != nil { + return err + } + + builders = builders[:0] + + return nil + } + + err := resolveFn(func(page []audienceRecipient) error { + for _, recipient := range page { + if !recipients.add(recipient) { + continue + } + + builders = append(builders, buildAudienceCampaignTarget(db, camp, recipient)) + if len(builders) == audienceTargetBatchSize { + if err := createTargetsFn(); err != nil { + return err + } + } + } + + return nil + }) + if err != nil { + return err + } + + return createTargetsFn() +} + +type set struct { + seen map[string]struct{} +} + +func (s *set) loadExistingCampaignTargets(ctx context.Context, db *generated.Client, campaignID string) error { + var lastID string + for { + query := db.CampaignTarget.Query(). + Where(campaigntarget.CampaignIDEQ(campaignID)). + Select(campaigntarget.FieldID, campaigntarget.FieldEmail). + Order(campaigntarget.ByID()). + Limit(audienceTargetBatchSize) + + if lastID != "" { + query.Where(campaigntarget.IDGT(lastID)) + } + + targets, err := query.All(ctx) + if err != nil { + return err + } + + for _, target := range targets { + lastID = target.ID + key := normalizeAudienceEmail(target.Email) + if key != "" { + s.seen[key] = struct{}{} + } + } + + if len(targets) < audienceTargetBatchSize { + break + } + } + + return nil +} + +func (s *set) add(recipient audienceRecipient) bool { + key := normalizeAudienceEmail(recipient.email) + if key == "" { + return false + } + + if _, ok := s.seen[key]; ok { + return false + } + + s.seen[key] = struct{}{} + + return true +} + +func resolveAudienceRecipients(ctx context.Context, opts audienceRecipientResolveOptions, handle campaignRecipientHandlerFunc) error { + switch opts.audienceType { + case enums.AudienceTypeManual: + var lastID string + for { + query := opts.audience.QueryAudienceMembers(). + Order(audiencemember.ByID()). + Limit(audienceTargetBatchSize) + + if lastID != "" { + query.Where(audiencemember.IDGT(lastID)) + } + + members, err := query.All(ctx) + if err != nil { + return err + } + + recipients := make([]audienceRecipient, 0, len(members)) + for _, member := range members { + lastID = member.ID + recipients = append(recipients, audienceRecipient{ + email: member.Email, + fullName: member.FullName, + contactID: member.ContactID, + userID: member.UserID, + groupID: member.GroupID, + subscriberID: member.SubscriberID, + source: audiencemember.Label, + audienceID: opts.audienceID, + sourceObjectID: member.ID, + metadata: member.Metadata, + }) + } + + if len(recipients) > 0 { + if err := handle(recipients); err != nil { + return err + } + } + + if len(members) < audienceTargetBatchSize { + break + } + } + + return nil + case enums.AudienceTypeDynamic: + return audiences.ResolveRecipients(ctx, opts.db, opts.orgID, opts.filters, func(page []audiences.Recipient) error { + recipients := make([]audienceRecipient, 0, len(page)) + for _, recipient := range page { + recipients = append(recipients, audienceRecipient{ + email: recipient.Email, + fullName: recipient.FullName, + contactID: recipient.ContactID, + userID: recipient.UserID, + groupID: recipient.GroupID, + subscriberID: recipient.SubscriberID, + source: recipient.Source, + audienceID: opts.audienceID, + sourceObjectID: recipient.SourceObjectID, + metadata: recipient.Metadata, + }) + } + + return handle(recipients) + }) + default: + return fmt.Errorf("%w: %q", errUnsupportedAudienceType, opts.audienceType) + } +} + +func resolveTrustCenterSubscriberRecipients(ctx context.Context, db *generated.Client, camp *generated.Campaign, handle campaignRecipientHandlerFunc) error { + var lastID string + for { + query := db.Subscriber.Query(). + Where( + subscriber.TrustCenterID(camp.TrustCenterID), + subscriber.Active(true), + subscriber.VerifiedEmail(true), + subscriber.Unsubscribed(false), + ). + Order(subscriber.ByID()). + Limit(audienceTargetBatchSize) + + if lastID != "" { + query.Where(subscriber.IDGT(lastID)) + } + + subscribers, err := query.All(ctx) + if err != nil { + return err + } + + recipients := make([]audienceRecipient, 0, len(subscribers)) + for _, sub := range subscribers { + lastID = sub.ID + recipients = append(recipients, audienceRecipient{ + email: sub.Email, + subscriberID: sub.ID, + source: subscriber.Label, + sourceObjectID: sub.ID, + metadata: map[string]any{ + MetadataUnsubscribeTokenKey: sub.Token, + }, + }) + } + + if len(recipients) > 0 { + if err := handle(recipients); err != nil { + return err + } + } + + if len(subscribers) < audienceTargetBatchSize { + break + } + } + + return nil +} + +func buildAudienceCampaignTarget(db *generated.Client, camp *generated.Campaign, recipient audienceRecipient) *generated.CampaignTargetCreate { + create := db.CampaignTarget.Create(). + SetCampaignID(camp.ID). + SetOwnerID(camp.OwnerID). + SetEmail(recipient.email). + SetNillableContactID(lo.EmptyableToPtr(recipient.contactID)). + SetNillableUserID(lo.EmptyableToPtr(recipient.userID)). + SetNillableGroupID(lo.EmptyableToPtr(recipient.groupID)). + SetNillableSubscriberID(lo.EmptyableToPtr(recipient.subscriberID)) + + if strings.TrimSpace(recipient.fullName) != "" { + create.SetFullName(recipient.fullName) + } + + metadata := audienceTargetMetadata(recipient) + if len(metadata) > 0 { + create.SetMetadata(metadata) + } + + return create +} + +func audienceTargetMetadata(recipient audienceRecipient) map[string]any { + metadata := make(map[string]any, len(recipient.metadata)+audienceTargetMetadataFields) + for key, value := range recipient.metadata { + metadata[key] = value + } + + if recipient.source != "" { + metadata[audienceTargetSourceKey] = recipient.source + } + + if recipient.audienceID != "" { + metadata[audienceTargetAudienceIDKey] = recipient.audienceID + } + + if recipient.sourceObjectID != "" { + metadata[audienceTargetSourceObjectKey] = recipient.sourceObjectID + } + + return metadata +} + +func normalizeAudienceEmail(email string) string { + return strings.ToLower(strings.TrimSpace(email)) +} diff --git a/internal/integrations/definitions/email/audience_targets_test.go b/internal/integrations/definitions/email/audience_targets_test.go new file mode 100644 index 0000000000..9f173847d1 --- /dev/null +++ b/internal/integrations/definitions/email/audience_targets_test.go @@ -0,0 +1,54 @@ +package email + +import "testing" + +func TestAudienceRecipientSetDedupe(t *testing.T) { + set := &set{ + seen: map[string]struct{}{ + "existing@example.com": {}, + }, + } + + if set.add(audienceRecipient{email: "Existing@Example.com"}) { + t.Fatal("existing email was added") + } + + if !set.add(audienceRecipient{email: "new@example.com"}) { + t.Fatal("new email was not added") + } + + if set.add(audienceRecipient{email: "NEW@example.com"}) { + t.Fatal("duplicate normalized email was added") + } + + if set.add(audienceRecipient{email: " "}) { + t.Fatal("blank email was added") + } +} + +func TestAudienceTargetMetadata(t *testing.T) { + metadata := audienceTargetMetadata(audienceRecipient{ + source: "identity_holder", + audienceID: "aud_123", + sourceObjectID: "idh_123", + metadata: map[string]any{ + "custom": "value", + }, + }) + + if got, want := metadata[audienceTargetSourceKey], "identity_holder"; got != want { + t.Fatalf("source metadata = %v, want %v", got, want) + } + + if got, want := metadata[audienceTargetAudienceIDKey], "aud_123"; got != want { + t.Fatalf("audience metadata = %v, want %v", got, want) + } + + if got, want := metadata[audienceTargetSourceObjectKey], "idh_123"; got != want { + t.Fatalf("source object metadata = %v, want %v", got, want) + } + + if got, want := metadata["custom"], "value"; got != want { + t.Fatalf("custom metadata = %v, want %v", got, want) + } +} diff --git a/internal/integrations/definitions/email/compose.go b/internal/integrations/definitions/email/compose.go index 49d91b8a57..1b7fd3db29 100644 --- a/internal/integrations/definitions/email/compose.go +++ b/internal/integrations/definitions/email/compose.go @@ -252,6 +252,12 @@ func loadCampaignWithTargets(ctx context.Context, db *generated.Client, input Ca return nil, nil, 0, err } + if err := snapshotCampaignAudiences(ctx, db, camp); err != nil { + logx.FromContext(ctx).Error().Err(err).Str("campaign_id", input.CampaignID).Msg("failed snapshotting campaign audiences") + + return nil, nil, 0, err + } + targets, err := db.CampaignTarget.Query(). Where(campaigntarget.CampaignIDEQ(input.CampaignID)). All(ctx) diff --git a/internal/integrations/definitions/email/trustcenter_campaign.go b/internal/integrations/definitions/email/trustcenter_campaign.go index b9df201fa7..773cd600a6 100644 --- a/internal/integrations/definitions/email/trustcenter_campaign.go +++ b/internal/integrations/definitions/email/trustcenter_campaign.go @@ -8,9 +8,7 @@ import ( "github.com/theopenlane/core/common/enums" "github.com/theopenlane/core/v2/internal/ent/generated" - "github.com/theopenlane/core/v2/internal/ent/generated/campaigntarget" "github.com/theopenlane/core/v2/internal/ent/generated/privacy" - "github.com/theopenlane/core/v2/internal/ent/generated/subscriber" "github.com/theopenlane/core/v2/internal/integrations/templatekit" "github.com/theopenlane/core/v2/pkg/logx" ) @@ -26,55 +24,9 @@ func snapshotTrustCenterSubscribers(ctx context.Context, db *generated.Client, c allowCtx := privacy.DecisionContext(ctx, privacy.Allow) - subscribers, err := db.Subscriber.Query(). - Where( - subscriber.TrustCenterID(camp.TrustCenterID), - subscriber.Active(true), - subscriber.VerifiedEmail(true), - subscriber.Unsubscribed(false), - ). - All(allowCtx) - if err != nil { - return err - } - - if len(subscribers) == 0 { - return nil - } - - existing, err := db.CampaignTarget.Query(). - Where(campaigntarget.CampaignIDEQ(camp.ID)). - All(allowCtx) - if err != nil { - return err - } - - seen := make(map[string]struct{}, len(existing)) - for _, target := range existing { - if target.SubscriberID != "" { - seen[target.SubscriberID] = struct{}{} - } - } - - builders := make([]*generated.CampaignTargetCreate, 0, len(subscribers)) - for _, sub := range subscribers { - if _, ok := seen[sub.ID]; ok { - continue - } - - builders = append(builders, db.CampaignTarget.Create(). - SetCampaignID(camp.ID). - SetOwnerID(camp.OwnerID). - SetEmail(sub.Email). - SetSubscriberID(sub.ID). - SetMetadata(map[string]any{MetadataUnsubscribeTokenKey: sub.Token})) - } - - if len(builders) == 0 { - return nil - } - - return db.CampaignTarget.CreateBulk(builders...).Exec(allowCtx) + return snapshotCampaignRecipients(allowCtx, db, camp, func(handle campaignRecipientHandlerFunc) error { + return resolveTrustCenterSubscriberRecipients(allowCtx, db, camp, handle) + }) } // renderMessagesForCampaign routes campaign rendering: trust center update campaigns render the